/* ==========================================
   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
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
    gap: 4px;
}

.slogan-prefix {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
}

.conference-logo-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 54px;
    line-height: 1.2;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.title-line.slogan-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--secondary-color);
    margin-top: 16px;
    font-style: italic;
}
    color: var(--text-dark);
}

.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:nth-child(4) {
    animation-delay: 0.4s;
}

.title-line.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-details {
    display: flex;
    gap: 48px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-item .icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.detail-label {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.detail-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.hero-cta {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.visual-card {
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.1) 0%, rgba(197, 160, 40, 0.1) 100%);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.dna-helix {
    position: relative;
    width: 100%;
    height: 300px;
}

.helix-strand {
    position: absolute;
    width: 100%;
    height: 100%;
}

.helix-strand::before,
.helix-strand::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: helixMove 3s ease-in-out infinite;
}

.strand-1::before {
    left: 20%;
    animation-delay: 0s;
}

.strand-1::after {
    right: 20%;
    animation-delay: 1.5s;
}

.strand-2::before {
    left: 40%;
    animation-delay: 0.75s;
}

.strand-2::after {
    right: 40%;
    animation-delay: 2.25s;
}

@keyframes helixMove {
    0%, 100% {
        top: 10%;
        transform: scale(1);
    }
    50% {
        top: 80%;
        transform: scale(1.3);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
    font-size: 14px;
    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(196, 30, 58, 0.1);
    color: var(--primary-color);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.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;
}

/* ==========================================
   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);
}

/* ==========================================
   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(255, 184, 77, 0.3);
}

.timeline-item.highlighted .timeline-content {
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.15) 0%, rgba(196, 30, 58, 0.1) 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(196, 30, 58, 0.1);
}

.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(196, 30, 58, 0.1) 0%, rgba(44, 95, 124, 0.1) 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 {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 64px 0 24px;
}

.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(--primary-light);
}

.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(--primary-light);
    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(--primary-color);
    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: 42px;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .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 60px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-details {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .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);
}
