:root {
    /* Brand Colors */
    --primary: #d1a043;
    --primary-dark: #b8862b;
    --secondary: #a5a9ac;
    --secondary-dark: #8c9093;

    /* Neutral Colors */
    --bg-white: #ffffff;
    --bg-light: #f4f6f8;
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --border-color: #e9ecef;

    /* Typography */
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Outfit', sans-serif;

    /* Effects */
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Base Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* LTR Specific Styles */
html[dir="ltr"] body {
    font-family: var(--font-en);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography Utils */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

/* About Section Flex */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.about-text-wrapper {
    flex: 1;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-align: justify;
    line-height: 1.8;
}

.about-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(209, 160, 67, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 160, 67, 0.4);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    transition: var(--transition);
}

.nav-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

html[dir="rtl"] .nav-link::after {
    right: 0;
    left: auto;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switch {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.lang-switch:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    overflow: hidden;
}

/* Swiper Slider */
.heroSwiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 45, 66, 0.7) 0%, rgba(43, 45, 66, 0.3) 100%);
    z-index: -1;
}

/* Swiper Controls Config */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
    z-index: 10;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary);
    z-index: 10;
}

.hero-content {
    text-align: center;
    color: var(--bg-white);
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--bg-white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

/* Vision, Mission, Goal Cards */
.vmg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.vmg-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.vmg-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

.vmg-card .card-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(209, 160, 67, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.vmg-card:hover .card-icon {
    background-color: var(--primary);
    color: var(--bg-white);
}

.vmg-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.vmg-card .card-text {
    color: var(--text-muted);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary);
    z-index: -1;
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition);
}

.service-card:hover .service-icon,
.service-card:hover .service-title {
    color: var(--bg-white);
}

/* Policies Section */
.policies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.policy-box {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.policy-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--text-main);
}

.policy-header i {
    font-size: 2rem;
    color: var(--primary);
}

.policy-header h3 {
    font-size: 1.6rem;
    color: var(--text-main);
}

.policy-body p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.policy-list {
    margin-top: 20px;
}

.policy-list li {
    margin-bottom: 15px;
    color: var(--text-muted);
    padding-inline-start: 20px;
    position: relative;
}

.policy-list li::before {
    content: '\f101';
    /* FontAwesome angle-double-right/left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 2px;
    color: var(--primary);
}

/* Handle RTL list bullet position */
html[dir="rtl"] .policy-list li {
    padding-inline-start: 25px;
    padding-inline-end: 0;
}

html[dir="rtl"] .policy-list li::before {
    right: 0;
    left: auto;
    content: '\f100';
    /* Left angle for RTL */
}

/* Handle LTR list bullet position */
html[dir="ltr"] .policy-list li {
    padding-inline-start: 25px;
    padding-inline-end: 0;
}

html[dir="ltr"] .policy-list li::before {
    left: 0;
    right: auto;
    content: '\f101';
    /* Right angle for LTR */
}

.policy-list li strong {
    color: var(--text-main);
    display: inline-block;
    margin-inline-end: 8px;
}

/* Footer Section */
.footer {
    background-color: var(--text-main);
    color: var(--bg-white);
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .footer-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    /* makes the logo white */
}

.footer-desc {
    color: var(--secondary);
    font-size: 1.05rem;
    max-width: 400px;
}

.footer-title {
    font-size: 1.4rem;
    color: var(--bg-white);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

html[dir="rtl"] .footer-title::after {
    right: 0;
    left: auto;
}

html[dir="ltr"] .footer-title::after {
    left: 0;
    right: auto;
}

.footer-contact {
    display: grid;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-label {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 2px;
}

.contact-value {
    color: var(--bg-white);
    transition: var(--transition);
}

a.contact-value:hover {
    color: var(--primary);
}

.phones-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.phones-list a {
    color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: var(--transition);
    direction: ltr;
    /* Force LTR for phone numbers */
    display: inline-block;
}

.phones-list a:hover {
    background-color: var(--primary);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    color: var(--secondary);
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .vmg-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .lead-text {
        text-align: center;
    }

    .about-image-wrapper {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .policies-grid {
        grid-template-columns: 1fr;
    }

    .policy-box-large {
        grid-column: 1 / -1;
    }

    .policy-box {
        text-align: right;
    }

    html[dir="ltr"] .policy-box {
        text-align: left;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand,
    .footer-contact {
        text-align: center;
    }

    .footer-title::after {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }

    .contact-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .phones-list {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link::after {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

.section {
    padding: 60px 0;
}