/* ==========================================
   Variables & Reset
   ========================================== */
:root {
    --primary-color: #1B4D3E;
    --primary-dark: #0F2E25;
    --primary-light: #2D7A62;
    --secondary-color: #C5A028;
    --secondary-dark: #9A7D1E;
    --accent-color: #D4AF37;
    --text-dark: #1A1A2E;
    --text-light: #F5F5F5;
    --text-gray: #6B7280;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Amiri', serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* ==========================================
   Animated Background
   ========================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    overflow: hidden;
}

.cell {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(27, 77, 62, 0.08), rgba(197, 160, 40, 0.05));
    animation: float 20s ease-in-out infinite;
}

.cell-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.cell-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 4s;
}

.cell-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 15%;
    animation-delay: 8s;
}

.cell-4 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 25%;
    animation-delay: 12s;
}

.cell-5 {
    width: 220px;
    height: 220px;
    bottom: 25%;
    right: 5%;
    animation-delay: 16s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.4;
    }
}

/* ==========================================
   Container
   ========================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.uni-logo,
.hem-logo {
    height: 55px;
    width: auto;
    max-width: 55px;
    object-fit: contain;
    transition: var(--transition);
    flex-shrink: 0;
}

.uni-logo:hover,
.hem-logo:hover {
    transform: scale(1.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.logo-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    max-width: 400px;
    word-wrap: break-word;
}

.center-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 6px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-gray);
}

.nav-menu {
    display: flex;
    gap: 24px;
    flex-shrink: 1;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.lang-switcher {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
}

.lang-switcher:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ==========================================
   Hero Section (college photos slideshow)
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 124px 0 96px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--primary-dark);
    color: var(--text-light);
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.6s ease;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform-origin: center;
    will-change: transform;
}

.hero-slide.focus-upper img {
    object-position: center 35%;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

/* The previous photo stays visible underneath while the next one fades in */
.hero-slide.is-leaving {
    opacity: 1;
    z-index: 1;
}

.hero-slide.is-active img,
.hero-slide.is-leaving img {
    animation: kenBurnsIn 9s ease-out forwards;
}

.hero-slide:nth-child(even).is-active img,
.hero-slide:nth-child(even).is-leaving img {
    animation-name: kenBurnsOut;
}

.hero.is-paused .hero-slide img {
    animation-play-state: paused;
}

@keyframes kenBurnsIn {
    from {
        transform: scale(1.02) translate(0, 0);
    }
    to {
        transform: scale(1.14) translate(-2%, -1.5%);
    }
}

@keyframes kenBurnsOut {
    from {
        transform: scale(1.14) translate(2%, 1%);
    }
    to {
        transform: scale(1.02) translate(0, 0);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to left, rgba(8, 32, 26, 0.94) 0%, rgba(15, 46, 37, 0.82) 45%, rgba(15, 46, 37, 0.48) 100%),
        linear-gradient(to top, rgba(8, 32, 26, 0.9) 0%, rgba(8, 32, 26, 0) 38%);
}

html[dir="ltr"] .hero-overlay {
    background:
        linear-gradient(to right, rgba(8, 32, 26, 0.94) 0%, rgba(15, 46, 37, 0.82) 45%, rgba(15, 46, 37, 0.48) 100%),
        linear-gradient(to top, rgba(8, 32, 26, 0.9) 0%, rgba(8, 32, 26, 0) 38%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

/* Formal conference heading: gold serif text between ornamental rules */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    font-family: 'Amiri', serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #E9D08A;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    animation: fadeInUp 0.8s ease-out;
}

html[dir="ltr"] .hero-badge {
    letter-spacing: 0.5px;
}

.badge-ornament {
    position: relative;
    width: 64px;
    height: 1px;
    flex-shrink: 0;
}

/* Each rule fades toward the outer edge */
.badge-ornament:first-child {
    background: linear-gradient(to left, rgba(212, 175, 55, 0), var(--accent-color));
}

.badge-ornament:last-child {
    background: linear-gradient(to right, rgba(212, 175, 55, 0), var(--accent-color));
}

html[dir="ltr"] .badge-ornament:first-child {
    background: linear-gradient(to right, rgba(212, 175, 55, 0), var(--accent-color));
}

html[dir="ltr"] .badge-ornament:last-child {
    background: linear-gradient(to left, rgba(212, 175, 55, 0), var(--accent-color));
}

/* Small diamond at the inner end of each rule */
.badge-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    background: var(--accent-color);
    transform: translateY(-50%) rotate(45deg);
}

.badge-ornament:first-child::after {
    inset-inline-end: -3px;
}

.badge-ornament:last-child::after {
    inset-inline-start: -3px;
}

.hero-org {
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
    animation: fadeInUp 0.8s ease-out 0.05s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 54px;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out backwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.1s;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.3s;
}

.title-line.highlight {
    color: var(--accent-color);
}

.hero-slogan {
    padding-inline-start: 20px;
    border-inline-start: 3px solid var(--accent-color);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.slogan-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.slogan-text {
    font-family: 'Amiri', serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
    color: #F3D98B;
}

.hero-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.detail-item .icon {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.detail-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.detail-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero .btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-dark);
}

.hero .btn-primary:hover {
    background: #E6C35A;
    border-color: #E6C35A;
}

.hero .btn-outline {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.7);
}

.hero .btn-outline:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--primary-dark);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease-out 0.3s backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.visual-card {
    position: relative;
    width: min(360px, 70vw);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotating gold ring around the college seal */
.visual-card::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 2px dashed rgba(212, 175, 55, 0.65);
    animation: rotate 40s linear infinite;
}

.visual-card::after {
    content: '';
    position: absolute;
    inset: -48px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, transparent 65%);
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.conference-logo-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 50%;
    padding: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.12);
}

/* Slideshow controls */
.hero-controls-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    z-index: 3;
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.hero-toggle {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.hero-toggle:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-dark);
}

.hero-toggle svg {
    width: 16px;
    height: 16px;
}

.hero-toggle .icon-play,
.hero.is-paused .hero-toggle .icon-pause {
    display: none;
}

.hero.is-paused .hero-toggle .icon-play {
    display: block;
}

.hero-dots {
    display: flex;
    align-items: center;
}

.hero-dot {
    background: none;
    border: 0;
    padding: 10px 4px;
    cursor: pointer;
}

.hero-dot-bar {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    position: relative;
    overflow: hidden;
    transition: width 0.4s ease, background 0.3s ease;
}

.hero-dot:hover .hero-dot-bar {
    background: rgba(255, 255, 255, 0.8);
}

.hero-dot.is-active .hero-dot-bar {
    width: 38px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-dot.is-active .hero-dot-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    animation: dotProgress var(--slide-interval, 6.5s) linear forwards;
}

html[dir="ltr"] .hero-dot.is-active .hero-dot-bar::after {
    transform-origin: left;
}

.hero.is-paused .hero-dot.is-active .hero-dot-bar::after {
    animation-play-state: paused;
}

@keyframes dotProgress {
    to {
        transform: scaleX(1);
    }
}

.hero-caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.hero-caption::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    z-index: 3;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ==========================================
   Section Styles
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(27, 77, 62, 0.08);
    color: var(--primary-color);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-tag.on-dark {
    background: rgba(212, 175, 55, 0.14);
    color: var(--accent-color);
}

.section-title {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   Patronage Section
   ========================================== */
.patronage {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
}

.patronage-header {
    text-align: center;
    margin-bottom: 48px;
}

.patronage-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.patronage-profiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 48px;
}

.patron-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.patron-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.patron-card.featured {
    border: 3px solid var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.patron-image {
    flex-shrink: 0;
}

.patron-image img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.2);
}

.patron-card.featured .patron-image img {
    width: 200px;
    height: 200px;
    border-width: 4px;
}

.patron-info {
    flex: 1;
    text-align: right;
}

html[dir="ltr"] .patron-info {
    text-align: left;
}

.patron-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.patron-card.featured .patron-info h3 {
    font-size: 22px;
    color: var(--primary-color);
}

.patron-info p {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 600;
}

.patronage-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.patronage-content p {
    font-size: 18px;
    line-height: 2;
    color: var(--text-dark);
    font-weight: 500;
    padding: 24px 32px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 32px;
}

html[dir="ltr"] .patronage-content p {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

.conference-title-box {
    position: relative;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(27, 77, 62, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    overflow: hidden;
}

.conference-title-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateGradient 15s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.conference-title-decoration {
    flex-shrink: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    position: relative;
    z-index: 1;
}

.conference-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.title-main {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
}

.title-sub {
    font-size: 28px;
    font-weight: 600;
    opacity: 0.95;
}

.title-slogan {
    font-size: 20px;
    font-weight: 700;
    color: #F3D98B;
    margin-top: 4px;
}

/* Patron without a photo yet */
.patron-image.is-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 4px solid var(--primary-color);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.2);
}

.patron-image.is-placeholder svg {
    width: 96px;
    height: 96px;
    color: var(--text-light);
}

/* Patron title shown alone until a name is added */
.patron-info p:only-child {
    font-family: 'Amiri', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ==========================================
   About Section
   ========================================== */
.about {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--text-light);
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

.about-card ul {
    color: var(--text-gray);
}

.about-card ul li {
    padding: 8px 0;
    padding-right: 24px;
    position: relative;
}

.about-card ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-size: 20px;
}

/* ==========================================
   Themes Section
   ========================================== */
.themes {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.theme-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.theme-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.theme-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.theme-number {
    font-size: 36px;
    font-weight: 700;
    color: rgba(27, 77, 62, 0.2);
    margin-bottom: 16px;
}

.theme-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.theme-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* New Themes Axes Layout */
.themes-axes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.theme-axis {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-axis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.theme-axis:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.axis-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.axis-subtitle {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 16px;
    font-style: italic;
}

.axis-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.axis-items li {
    position: relative;
    padding: 10px 0;
    padding-right: 24px;
    font-size: 15px;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.axis-items li:last-child {
    border-bottom: none;
}

.axis-items li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
}

.axis-items li:hover {
    color: var(--primary-color);
    padding-right: 28px;
}

[dir="ltr"] .axis-items li {
    padding-right: 0;
    padding-left: 24px;
}

[dir="ltr"] .axis-items li::before {
    right: auto;
    left: 0;
}

[dir="ltr"] .axis-items li:hover {
    padding-right: 0;
    padding-left: 28px;
}

/* ==========================================
   Committees Section
   ========================================== */
.committees {
    padding: 100px 0;
    background: var(--bg-white);
}

.committee-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.tab-btn {
    padding: 12px 32px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.member-card {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.member-avatar {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.2);
    transition: var(--transition);
}

.member-card:hover .member-avatar {
    border-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(27, 77, 62, 0.3);
    transform: scale(1.05);
}

.member-avatar-icon {
    width: 50px;
    height: 50px;
    color: var(--text-light);
}

.member-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card.has-image .member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 12px;
}

.member-info {
    flex: 1;
}

.member-image {
    margin-bottom: 20px;
}

.member-image img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.2);
    transition: var(--transition);
}

.member-card:hover .member-image img {
    border-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(27, 77, 62, 0.3);
    transform: scale(1.05);
}

.member-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-placeholder svg {
    width: 60px;
    height: 60px;
    color: var(--text-light);
}

.member-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.4;
}

.member-card p {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.member-affiliation {
    font-size: 13px;
    color: var(--text-gray);
}

.members-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    color: var(--text-gray);
    font-size: 18px;
    font-weight: 500;
    background: var(--bg-light);
}

.note-box {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-inline-start: 4px solid var(--primary-color);
    border-radius: 4px;
}

.note-box strong {
    color: var(--primary-color);
}

/* ==========================================
   Participation Section
   ========================================== */
.participation {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.participation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.participation-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.participation-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.card-header .card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
}

.card-header h3 {
    font-size: 22px;
}

.requirements-list li {
    padding: 12px 0;
    padding-right: 24px;
    position: relative;
    color: var(--text-gray);
    line-height: 1.7;
}

.requirements-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ==========================================
   Timeline Section
   ========================================== */
.dates {
    padding: 100px 0;
    background: var(--bg-white);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 48px;
    position: relative;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-white);
    border-radius: 50%;
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(27, 77, 62, 0.2);
}

.timeline-content {
    width: 45%;
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    margin-right: auto;
    margin-left: 56%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 56%;
    margin-left: auto;
}

.timeline-content:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-gray);
}

.timeline-item.highlighted .timeline-marker {
    width: 28px;
    height: 28px;
    background: var(--accent-color);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.3);
}

.timeline-item.highlighted .timeline-content {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(27, 77, 62, 0.08) 100%);
    border: 2px solid var(--accent-color);
}

/* ==========================================
   Registration Section
   ========================================== */
.registration {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--text-light);
}

.registration-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 64px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.registration-content h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

.registration-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.registration-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.method-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.method-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.method-card p {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-dark);
}

.method-account-label {
    font-weight: 600;
    margin-bottom: 12px;
}

.method-account {
    display: inline-block;
    font-weight: 700;
    color: var(--accent-color);
}

.method-note {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 10px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.benefits-list svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.registration-form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    color: var(--text-dark);
}

.registration-form h3 {
    font-size: 28px;
    margin-bottom: 32px;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(27, 77, 62, 0.12);
}

.checkbox-group {
    margin: 24px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    user-select: none;
}

/* ==========================================
   Hotel & Explore Sections
   ========================================== */
.hotel {
    padding: 100px 0;
    background: var(--bg-light);
}

.hotel-gallery-full {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hotel-gallery-full .gallery-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-white);
}

.hotel-gallery-full .gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hotel-gallery-full .gallery-card:hover img {
    transform: scale(1.05);
}

.hotel-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: stretch;
}

.hotel-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-white);
}

.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.hotel-info {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hotel-info-title {
    font-size: 22px;
}

.hotel-highlights {
    display: grid;
    gap: 12px;
}

.hotel-highlights li {
    position: relative;
    padding-right: 28px;
    color: var(--text-gray);
}

.hotel-highlights li::before {
    content: '✔';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: 700;
}

html[dir="ltr"] .hotel-highlights li {
    padding-right: 0;
    padding-left: 28px;
}

html[dir="ltr"] .hotel-highlights li::before {
    right: auto;
    left: 0;
}

.hotel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.hotel-services {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card h4 {
    font-size: 20px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    align-self: flex-start;
}


/* ==========================================
   Contact Section
   ========================================== */
.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.contact-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.1) 0%, rgba(212, 175, 55, 0.12) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.contact-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary-color);
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    position: relative;
    background: linear-gradient(180deg, var(--primary-dark) 0%, #08201A 100%);
    color: var(--text-light);
    padding: 0 0 24px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--accent-color) 50%, var(--primary-light) 100%);
}

/* Baghdad landmarks band */
.footer-landmarks {
    padding: 72px 0 56px;
    margin-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landmarks-header {
    text-align: center;
    margin-bottom: 36px;
}

.landmarks-title {
    font-size: 34px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.landmarks-desc {
    max-width: 640px;
    margin: 0 auto;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.landmarks-marquee {
    direction: ltr;
    overflow: hidden;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.landmarks-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: landmarksScroll 48s linear infinite;
}

html[dir="rtl"] .landmarks-track {
    animation-direction: reverse;
}

.landmarks-marquee:hover .landmarks-track {
    animation-play-state: paused;
}

/* Shift by exactly one set (6 cards + 6 gaps) for a seamless loop */
@keyframes landmarksScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 10px));
    }
}

.landmark-card {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.landmark-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.landmark-card:hover img {
    transform: scale(1.08);
}

.landmark-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 16px 14px;
    background: linear-gradient(to top, rgba(8, 32, 26, 0.92) 0%, rgba(8, 32, 26, 0) 100%);
    color: #FFFFFF;
    font-family: 'Amiri', serif;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
}

html[dir="rtl"] .landmark-card figcaption {
    direction: rtl;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-section ul li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-more-link {
    display: inline-block;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.footer-more-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 6px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-4px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-title {
        font-size: 44px;
    }

    .hero-overlay,
    html[dir="ltr"] .hero-overlay {
        background: linear-gradient(to bottom, rgba(15, 46, 37, 0.78) 0%, rgba(8, 32, 26, 0.93) 100%);
    }

    .hero-visual {
        order: -1;
        margin: 0 auto;
    }

    .visual-card {
        width: 200px;
    }

    .visual-card::before {
        inset: -12px;
    }

    .patronage {
        padding: 40px 0;
    }

    .patronage-header h2 {
        font-size: 24px;
    }

    .patronage-profiles {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .patron-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .patron-info {
        text-align: center !important;
    }

    .patron-image img {
        width: 140px;
        height: 140px;
    }

    .patron-card.featured .patron-image img {
        width: 160px;
        height: 160px;
    }

    .patron-info h3 {
        font-size: 18px;
    }

    .patron-card.featured .patron-info h3 {
        font-size: 20px;
    }
    
    .patronage-content p {
        font-size: 16px;
        padding: 20px 24px;
        line-height: 1.8;
    }

    .conference-title-box {
        padding: 24px 16px;
        gap: 16px;
    }

    .conference-title-decoration {
        width: 40px;
    }

    .conference-title {
        font-size: 22px;
    }

    .title-main {
        font-size: 26px;
    }

    .title-sub {
        font-size: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .registration-card {
        grid-template-columns: 1fr;
    }

    .hotel-grid {
        grid-template-columns: 1fr;
    }

    .hotel-gallery-full {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hotel-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .themes-axes {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        padding: 12px 16px;
        row-gap: 10px;
    }
    
    .header-logos {
        order: 1;
        width: 100%;
        justify-content: center;
        gap: 16px;
        margin-bottom: 12px;
    }
    
    .uni-logo,
    .hem-logo {
        height: 45px;
        max-width: 45px;
    }
    
    .logo {
        order: 2;
        gap: 8px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-title {
        font-size: 13px;
    }
    
    .logo-subtitle {
        font-size: 11px;
    }
    
    .nav-actions {
        order: 3;
        margin-right: auto;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 140px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 140px);
        background: var(--bg-white);
        flex-direction: column;
        padding: 32px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        text-decoration: underline;
        text-decoration-color: var(--primary-color);
        text-decoration-thickness: 2px;
        text-underline-offset: 10px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding: 190px 0 110px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-badge {
        font-size: 20px;
        gap: 12px;
    }

    .badge-ornament {
        width: 32px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-slogan {
        padding-inline-start: 0;
        border-inline-start: none;
        padding-top: 14px;
        border-top: 2px solid var(--accent-color);
        display: inline-block;
    }

    .slogan-text {
        font-size: 21px;
    }

    .hero-details {
        flex-direction: column;
        gap: 12px;
    }

    .detail-item {
        text-align: start;
    }

    .hero-cta {
        flex-direction: column;
    }

    .visual-card {
        width: 150px;
    }

    .hero-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-caption {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .landmarks-title {
        font-size: 26px;
    }

    .landmark-card {
        width: 240px;
        height: 160px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .themes-grid {
        grid-template-columns: 1fr;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .member-image img {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }
    
    .participation-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        right: 16px;
    }
    
    .timeline-marker {
        right: 16px;
        transform: none;
    }
    
    .timeline-content {
        width: 100%;
        margin-right: 0;
        margin-left: 48px;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
        margin-left: 48px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hotel-gallery {
        grid-template-columns: 1fr;
    }

    .hotel-gallery-full {
        grid-template-columns: 1fr;
    }

    .hotel-gallery-full .gallery-card img {
        height: 200px;
    }

    .gallery-card img {
        height: 220px;
    }

    .hotel-services {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ==========================================
   Scroll Animations
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Reduced Motion
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-slide.is-active img,
    .hero-slide.is-leaving img {
        animation: none;
    }

    .visual-card::before,
    .scroll-indicator {
        animation: none;
    }

    .landmarks-track {
        animation: none;
    }

    .landmarks-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .landmark-card[aria-hidden="true"] {
        display: none;
    }
}
