@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Inter:wght@300;400;600&family=Cairo:wght@400;600;700&display=swap');

:root {
    --primary: #C28B6D; /* Bronze/Gold */
    --primary-hover: #A6765A;
    --bg-dark: #1A1F2C; /* Deep Charcoal/Navy */
    --bg-light: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #F5F6FA;
    --gray-100: #F8F9FA;
    --gray-200: #E1E8ED;
    --gray-800: #34495E;
    --glass: rgba(255, 255, 255, 0.95);
    --glass-dark: rgba(26, 31, 44, 0.95);
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 40px 80px rgba(194, 139, 109, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.rtl {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

.arabic {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 25px 0;
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

/* Subpage Hero */
.sub-hero {
    padding-top: 220px; /* Increased padding */
    padding-bottom: 60px;
    background: var(--gray-100);
    text-align: center;
}

.sub-hero h1 {
    font-size: 56px;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.breadcrumbs {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    display: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .ao {
    font-size: 36px;
    color: var(--primary);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo-text .tagline {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
    color: var(--text-dark);
    opacity: 0.5;
    margin-top: 5px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.nav-links li {
    position: relative;
    padding: 10px 0;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 15px 0;
    z-index: 1000;
}

.nav-links li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    padding: 0;
}

.dropdown a {
    display: block;
    padding: 8px 25px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.dropdown a:hover {
    background: var(--gray-100);
    color: var(--primary);
    opacity: 1;
}

.search-icon {
    font-size: 14px;
    cursor: pointer;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-btn {
    font-weight: 700;
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    padding: 6px 16px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--primary);
    color: white;
}

/* Hero Slider */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    width: 100%;
    display: flex;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide.active {
    /* No longer needed for fade, but kept for JS reference */
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 10;
    color: white;
    max-width: 600px;
}

.hero-category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: block;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 500;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-subtitle {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    display: block;
    opacity: 0.8;
    animation: fadeInUp 1.2s ease 0.4s forwards;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: white;
    padding: 16px 40px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.btn-hero:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Sections */
.section, .content-section {
    padding: 120px 0;
}

.section-title {
    font-size: 42px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
}

/* Cards & Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}


.card {
    background: white;
    border: 1px solid var(--gray-200);
    padding: 60px 40px;
    border-radius: 24px;
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-15px);
    box-shadow: var(--shadow-premium);
}

.card i {
    font-size: 48px !important;
    margin-bottom: 30px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.card p {
    font-size: 15px;
    opacity: 0.7;
    line-height: 1.8;
}

/* Responsive */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 1100;
    transition: var(--transition);
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2.5px;
    transition: var(--transition);
}

header.scrolled .menu-toggle .bar {
    background-color: var(--text-dark);
}

/* Active hamburger state morphing to X */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 1024px) {
    header {
        padding: 15px 0;
    }
    
    header.scrolled {
        padding: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--glass);
        backdrop-filter: blur(25px);
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        padding: 100px 30px 40px;
        gap: 15px;
        transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1050;
        overflow-y: auto;
        text-align: left;
    }

    /* RTL Arabic support: Slide from left instead of right */
    .rtl .nav-links {
        right: auto;
        left: -100%;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.1);
        transition: left 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        text-align: right;
    }

    .nav-links.active {
        right: 0;
    }

    .rtl .nav-links.active {
        left: 0;
        right: auto;
    }

    .nav-links li {
        width: 100%;
        padding: 0;
    }

    .nav-links a {
        font-size: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(194, 139, 109, 0.1);
        opacity: 0.9;
    }

    /* Disable hover-based dropdown showing on tablet/mobile */
    .nav-links li:hover > .dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(0);
        position: static;
    }

    /* Interactive mobile dropdown style */
    .nav-links .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        background: transparent;
        min-width: unset;
        width: 100%;
        transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .nav-links .dropdown.open {
        max-height: 500px;
        padding: 5px 0 10px 15px;
    }
    
    .rtl .nav-links .dropdown.open {
        padding: 5px 15px 10px 0;
    }

    .nav-links .dropdown a {
        font-size: 13px;
        padding: 8px 10px;
        border-bottom: none;
        opacity: 0.8;
    }

    .nav-links a i {
        font-size: 10px !important;
        transition: transform 0.3s ease;
    }

    .nav-links a.active-parent i {
        transform: rotate(180deg);
    }

    /* Layout responsive styles */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .hero-title {
        font-size: 42px !important;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-content {
        left: 5%;
        right: 5%;
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 32px !important;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .btn-hero {
        padding: 12px 30px;
        font-size: 12px;
    }

    .sub-hero {
        padding-top: 150px;
        padding-bottom: 40px;
    }

    .sub-hero h1 {
        font-size: 32px !important;
    }

    .section, .content-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .video-container {
        border-radius: 16px;
    }

    .video-text-content h2 {
        font-size: 28px !important;
        margin-bottom: 15px;
    }

    .video-text-content p {
        font-size: 16px !important;
        margin-bottom: 15px;
    }

    /* Footer styling */
    footer {
        padding: 60px 0 20px !important;
    }

    footer .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    footer .container > div:last-child {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }

    /* Overrides for inline styles in PHP pages */
    .content-section .container > div[style*="grid-template-columns"],
    main .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .content-section .container > div[style*="padding: 100px 80px"] {
        padding: 40px 20px !important;
        border-radius: 20px !important;
        gap: 40px !important;
    }

    .content-section form[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .content-section form[style*="grid-template-columns"] > div {
        grid-column: span 2 !important;
    }

    .content-section .container > div > div[style*="height: 400px"] {
        height: 250px !important;
    }
    
    .card {
        padding: 40px 25px !important;
    }
}


/* Premium Polish */
html {
    scroll-behavior: smooth;
}

section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Video Section */
.video-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    background: var(--bg-dark);
    position: relative;
    aspect-ratio: 16 / 9;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

