/* -------------------------------------------------------------
 * Main CSS Stylesheet - CEC Southern Technical University
 * Direction: RTL (Arabic First)
 * ------------------------------------------------------------- */

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

:root {
    --primary: #0f2b5c;
    --primary-dark: #0a1c3d;
    --primary-light: #1e40af;
    --gold: #d4af37;
    --gold-hover: #b89528;
    --teal: #0d9488;
    --accent: #2563eb;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 43, 92, 0.08);
    --shadow-lg: 0 10px 25px rgba(15, 43, 92, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-contacts {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-contacts span,
.top-contacts a {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-links a {
    color: #e2e8f0;
    font-weight: 500;
}

.top-links a:hover {
    color: var(--gold);
}

.top-social {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 12px;
}

.top-social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.top-social-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.top-social-icon:hover {
    background: var(--gold);
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

/* --- MAIN HEADER & NAVBAR --- */
.header-main {
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 3px solid var(--gold);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px 15px 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-badge {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-sm);
}

.brand-text h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 8px 12px;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    text-decoration: none;
    transition: color 0.25s ease, background 0.25s ease;
    overflow: hidden;
}

/* Animated underline indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 50%;
    left: 50%;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: right 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    right: 12px;
    left: 12px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(15, 43, 92, 0.05);
}

/* Icon container */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: transparent;
    transition: background 0.25s ease, transform 0.25s ease;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    background: rgba(15, 43, 92, 0.08);
}

.nav-link:hover .nav-icon svg,
.nav-link.active .nav-icon svg {
    transform: scale(1.2);
}

/* Label text */
.nav-label {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1;
}

/* ── Active state icon highlight ── */
.nav-link.active .nav-icon {
    background: rgba(15, 43, 92, 0.1);
}

.nav-link.active .nav-icon svg {
    stroke: var(--primary);
}

/* ── Verify / CTA button ── */
.nav-link.btn-verify {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    box-shadow: 0 4px 14px rgba(15, 43, 92, 0.35);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
}

.nav-link.btn-verify::after {
    display: none;
}

.nav-link.btn-verify .nav-icon {
    background: rgba(212, 175, 55, 0.2);
}

.nav-link.btn-verify .nav-icon svg {
    stroke: var(--gold);
}

.nav-link.btn-verify .nav-label {
    color: #ffffff;
    font-size: 0.75rem;
}

.nav-link.btn-verify:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
    transform: translateY(-2px);
}

.nav-link.btn-verify:hover .nav-icon {
    background: rgba(15, 43, 92, 0.15);
}

.nav-link.btn-verify:hover .nav-icon svg {
    stroke: var(--primary-dark);
}

.nav-link.btn-verify:hover .nav-label {
    color: var(--primary-dark);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* --- HERO SLIDER & SLIDESHOW CAROUSEL --- */
.hero-slider {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    overflow: hidden;
    min-height: calc(100vh - 110px);
}

.slides-wrapper {
    width: 100%;
    position: relative;
    min-height: calc(100vh - 110px);
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    padding: 60px 0 70px;
    will-change: transform, opacity;
    overflow: hidden;
}

.slide-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
    animation: kenBurnsZoom 8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.slide-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(10, 28, 61, 0.95) 0%, rgba(15, 43, 92, 0.85) 50%, rgba(15, 43, 92, 0.5) 100%);
    z-index: 1;
}

.slide-item .hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

/* Staggered entrance animations for active slide elements */
.slide-item.active .hero-badge {
    animation: heroBadgeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.slide-item.active .hero-title {
    animation: heroTitleIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.slide-item.active .hero-subtitle {
    animation: heroSubtitleIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.slide-item.active .hero-actions {
    animation: heroActionsIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.22);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 7px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 35px;
    line-height: 1.8;
    max-width: 680px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Keyframe Animations */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes heroBadgeIn {
    0% {
        opacity: 0;
        transform: translateY(-22px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroTitleIn {
    0% {
        opacity: 0;
        transform: translateY(35px);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroSubtitleIn {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroActionsIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.slider-arrow:hover {
    background: var(--gold);
    color: var(--primary-dark);
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow.prev {
    right: 28px;
}

.slider-arrow.next {
    left: 28px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    display: flex;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(10, 28, 61, 0.4);
    border-radius: 30px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--gold);
    width: 36px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

/* Image Thumbnails & Graphic Covers */
.course-banner img,
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold);
    color: var(--primary-dark);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background: #e2c044;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* --- QUICK HIGHLIGHTS GRID --- */
.highlights-section {
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

/* Base highlight card */
.highlight-card {
    position: relative;
    border-radius: 18px;
    padding: 28px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    color: white;
}

.highlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    color: white;
}

/* Shine overlay */
.hc-shine {
    position: absolute;
    top: -60%;
    right: -30%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.highlight-card:hover .hc-shine {
    transform: scale(1.4) translate(-10%, 10%);
}

/* Color variants */
.hc-blue {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.hc-gold {
    background: linear-gradient(135deg, #92680a 0%, #d4af37 60%, #b89528 100%);
}

.hc-teal {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.hc-purple {
    background: linear-gradient(135deg, #6d28d9 0%, #a855f7 100%);
}

/* Icon wrapper - large and prominent */
.hc-icon-wrap {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.highlight-card:hover .hc-icon-wrap {
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(-5deg) scale(1.08);
}

.hc-icon-wrap svg {
    width: 46px;
    height: 46px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Text content */
.hc-content {
    flex: 1;
}

.hc-content h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hc-content p {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

/* Arrow icon at bottom-right (RTL) */
.hc-arrow {
    position: absolute;
    bottom: 18px;
    left: 20px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: white;
}

.hc-arrow svg {
    width: 16px;
    height: 16px;
    transform: scaleX(-1);
}

.highlight-card:hover .hc-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- SECTION GENERAL --- */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 45px;
}

.section-subtitle {
    color: var(--gold-hover);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- COURSES CATALOG --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.course-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-banner {
    height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.course-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 43, 92, 0.85);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.course-status {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.course-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.course-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.course-desc {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.course-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.05rem;
}

/* --- VERIFICATION BANNER / CARD --- */
.verify-section {
    background: linear-gradient(135deg, #0f2b5c 0%, #1e3a8a 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.verify-box {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.verify-box h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.verify-box p {
    color: #cbd5e1;
    margin-bottom: 25px;
}

.verify-form {
    display: flex;
    gap: 10px;
    background: white;
    padding: 6px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.verify-form input {
    flex-grow: 1;
    border: none;
    padding: 12px 18px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    direction: ltr;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
}

.verify-form button {
    background: var(--gold);
    color: var(--primary-dark);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.verify-form button:hover {
    background: var(--gold-hover);
}

/* --- DIRECTOR MESSAGE SECTION --- */
.director-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 35px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: center;
    border: 1px solid var(--border-color);
}

.director-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    padding: 5px;
    margin: 0 auto;
}

.director-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
}

.director-info h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.director-info .title {
    color: var(--gold-hover);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.director-info p {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* --- NEWS GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-thumb {
    height: 190px;
    background: var(--primary-dark);
    position: relative;
}

.news-date {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 43, 92, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-body h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.news-link {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

/* --- FOOTER --- */
.footer {
    background: var(--primary-dark);
    color: #94a3b8;
    padding-top: 60px;
    margin-top: 60px;
    border-top: 5px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
    padding-right: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: white;
    width: 90%;
    max-width: 550px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    background: var(--primary);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 43, 92, 0.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background: rgba(15, 43, 92, 0.06);
        border: 1.5px solid rgba(15, 43, 92, 0.15);
        color: var(--primary);
        font-size: 1.4rem;
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .menu-toggle:hover {
        background: var(--primary);
        color: #ffffff;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 16px 20px 20px;
        box-shadow: 0 15px 35px rgba(15, 43, 92, 0.15);
        border-top: 1px solid var(--border-color);
        border-bottom: 3px solid var(--gold);
        display: none;
        gap: 6px;
        z-index: 999;
    }

    .nav-menu.show {
        display: flex;
        animation: navSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-link {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        width: 100%;
        text-align: right;
        border-radius: 8px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.btn-verify {
        margin-top: 6px;
        justify-content: center;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .director-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- FULL WIDTH MAP SECTION --- */
.map-section-full {
    width: 100%;
    margin-top: 60px;
    margin-bottom: -60px;
    line-height: 0;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--gold);
    overflow: hidden;
}

.map-full-container {
    width: 100%;
    height: 420px;
    position: relative;
}

.map-full-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .map-full-container {
        height: 320px;
    }
}

/* --- ABOUT PAGE COMPONENTS --- */
.about-overview-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 45px;
    position: relative;
    overflow: hidden;
}

.about-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--gold));
}

.about-overview-lead {
    font-size: 1.12rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-overview-text {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.9;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.service-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.4);
}

.service-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    flex-grow: 1;
}

.service-card-tag {
    display: inline-block;
    width: fit-content;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 15px;
}

/* Achievements Grid & Milestones */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 50px;
}

.achievement-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 28px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--gold);
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.achievement-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 8px;
    font-family: 'Cairo', sans-serif;
}

.achievement-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.achievement-desc {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Milestones List */
.milestones-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.milestone-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 22px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.milestone-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.milestone-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(15, 43, 92, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.milestone-item h4 {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.milestone-item p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

/* --- DIVISIONS & UNITS PRO STYLES --- */
.divisions-intro-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 35px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 30px;
}

.divisions-intro-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--gold));
}

.divisions-filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    align-items: center;
}

.div-filter-btn {
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1.5px solid var(--border-color);
    background: #ffffff;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.div-filter-btn:hover,
.div-filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 43, 92, 0.2);
}

.divisions-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.division-card-pro {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.division-card-pro::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.division-card-pro:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.4);
}

.division-card-pro:hover::before {
    opacity: 1;
}

.division-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.division-icon-badge {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(15, 43, 92, 0.08), rgba(212, 175, 55, 0.12));
    border: 1px solid rgba(15, 43, 92, 0.12);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.division-card-pro:hover .division-icon-badge {
    transform: scale(1.1) rotate(5deg);
}

.division-cat-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 14px;
    background: rgba(15, 43, 92, 0.08);
    color: var(--primary);
    border: 1px solid rgba(15, 43, 92, 0.15);
}

.division-card-pro h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.division-card-pro p {
    font-size: 0.93rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.division-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.division-features li {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.division-features li::before {
    content: '✓';
    color: var(--gold-hover);
    font-weight: 800;
    font-size: 0.95rem;
}

/* Division Head & Staff Team Section */
.division-team-section {
    margin: 0 0 20px;
    padding: 14px 0 0;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.division-head-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(15, 43, 92, 0.03), rgba(212, 175, 55, 0.08));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 10px 14px;
}

.division-head-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(15, 43, 92, 0.15);
}

.division-head-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.division-head-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.division-head-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

.division-staff-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
}

.division-staff-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.division-staff-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.division-staff-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    transition: var(--transition);
}

.division-staff-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0fdf4;
}

.division-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.division-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
    transition: var(--transition);
}

.division-link-btn:hover {
    color: var(--gold-hover);
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    .divisions-intro-box {
        flex-direction: column;
        padding: 25px;
        text-align: center;
    }

    .divisions-grid-pro {
        grid-template-columns: 1fr;
    }
}

/* --- CERTIFICATE VERIFICATION PRO STYLES --- */
.cert-doc-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(15, 43, 92, 0.12);
    border: 2px solid rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-bottom: 40px;
}

/* Certificate Header Ribbon / Security Band */
.cert-security-bar {
    background: linear-gradient(135deg, #065f46 0%, #059669 50%, #10b981 100%);
    color: #ffffff;
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--gold);
    flex-wrap: wrap;
    gap: 12px;
}

.cert-security-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.cert-security-meta {
    font-size: 0.82rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-family: monospace;
    letter-spacing: 1px;
}

/* Big Verified Badge Component */
.cert-verified-hero {
    padding: 35px 35px 25px;
    background: linear-gradient(180deg, rgba(209, 250, 229, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.cert-seal-badge {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cert-seal-icon-box {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
    border: 3px solid #ffffff;
    outline: 2px solid var(--gold);
    flex-shrink: 0;
    position: relative;
}

.cert-seal-icon-box svg {
    width: 42px;
    height: 42px;
    stroke: #ffffff;
}

.cert-seal-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #065f46;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-pulse-online {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
    animation: certPulse 2s infinite;
}

@keyframes certPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.cert-seal-sub {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.5;
}

/* Official Stamp Ring */
.cert-stamp-ring {
    border: 2.5px solid #059669;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #065f46;
    padding: 6px;
    text-align: center;
    background: rgba(16, 185, 129, 0.05);
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.1);
    transform: rotate(-10deg);
    flex-shrink: 0;
}

.stamp-text-top {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.stamp-text-center {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    border-top: 1px solid #059669;
    border-bottom: 1px solid #059669;
    padding: 1px 6px;
    margin: 2px 0;
}

.stamp-text-bot {
    font-size: 0.65rem;
    font-weight: 700;
}

/* Credential Details Grid */
.cert-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 35px;
    background: #ffffff;
}

.cert-field-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    transition: var(--transition);
}

.cert-field-card:hover {
    border-color: rgba(15, 43, 92, 0.2);
    box-shadow: var(--shadow-sm);
}

.cert-field-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cert-field-value {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.4;
}

.cert-field-code {
    font-family: monospace;
    direction: ltr;
    display: inline-block;
    color: #065f46;
    letter-spacing: 0.5px;
    font-size: 1.15rem;
}

.cert-field-grade {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.95rem;
}

/* Certificate Actions Bar */
.cert-doc-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    padding: 20px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 768px) {
    .cert-details-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .cert-verified-hero {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
    }

    .cert-seal-badge {
        flex-direction: column;
        text-align: center;
    }

    .cert-stamp-ring {
        display: none;
    }
}

/* --- PUBLICATIONS & 3D FLIPBOOK STYLES --- */
.publications-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 70px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 30px;
}

.pub-book-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pub-book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.4);
}

.pub-book-3d-wrap {
    perspective: 1000px;
    margin-bottom: 22px;
    cursor: pointer;
}

.pub-book-3d {
    width: 170px;
    height: 235px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-12deg) rotateX(4deg);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
    box-shadow: -12px 14px 28px rgba(15, 43, 92, 0.22);
    border-radius: 6px 12px 12px 6px;
}

.pub-book-card:hover .pub-book-3d {
    transform: rotateY(0deg) rotateX(0deg) scale(1.04);
    box-shadow: 0 18px 35px rgba(15, 43, 92, 0.3);
}

.pub-book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px 12px 12px 6px;
    display: block;
    position: relative;
    z-index: 2;
}

/* 3D Book Spine Effect */
.pub-book-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 6px 0 0 6px;
    z-index: 3;
    pointer-events: none;
}

/* 3D Book Page Edge */
.pub-book-3d::after {
    content: '';
    position: absolute;
    top: 3px;
    right: -8px;
    bottom: 3px;
    width: 10px;
    background: repeating-linear-gradient(0deg, #f1f5f9, #f1f5f9 2px, #cbd5e1 2px, #cbd5e1 4px);
    border-radius: 0 4px 4px 0;
    box-shadow: inset 1px 0 3px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.pub-cat-badge {
    display: inline-block;
    background: rgba(15, 43, 92, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 15px;
    margin-bottom: 12px;
}

.pub-book-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 22px;
    line-height: 1.4;
    flex-grow: 1;
}

.pub-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.btn-flipbook {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-flipbook:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.btn-pdf-dl {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-pdf-dl:hover {
    background: #dc2626;
    color: #ffffff;
}

/* --- FLIPBOOK MODAL VIEWER --- */
.flipbook-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 28, 61, 0.88);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flipbook-modal.active {
    display: flex;
    opacity: 1;
}

.flipbook-container {
    background: #1e293b;
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: flipbookPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes flipbookPop {
    0% {
        transform: scale(0.92);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.flipbook-header {
    background: #0f172a;
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.flipbook-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.flipbook-title-wrap h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 600px;
}

.flipbook-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flipbook-btn-tool {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-family: inherit;
}

.flipbook-btn-tool:hover {
    background: var(--gold);
    color: var(--primary-dark);
    border-color: var(--gold);
}

.flipbook-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.flipbook-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

.flipbook-body {
    flex: 1;
    background: #334155;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flipbook-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

.flipbook-footer {
    background: #0f172a;
    padding: 12px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .flipbook-container {
        height: 95vh;
        border-radius: 12px;
    }

    .flipbook-title-wrap h3 {
        max-width: 220px;
        font-size: 0.95rem;
    }

    .pub-book-3d {
        width: 140px;
        height: 195px;
    }
}

/* ===================================================
   Featured Upcoming Event & Countdown Banner Section
   =================================================== */
.featured-event-section {
    padding: 35px 0 20px;
    position: relative;
    z-index: 10;
}

.featured-event-banner {
    position: relative;
    background-color: #09172f;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 45px 50px;
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(10, 28, 61, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.fev-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 20, 44, 0.85) 0%, rgba(10, 24, 52, 0.60) 45%, rgba(8, 20, 44, 0.82) 100%);
    z-index: 1;
    pointer-events: none;
}

.fev-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 40px;
    align-items: center;
}

/* Left Column: Edition Badge & Countdown Card */
.fev-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fev-edition-circle {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.65);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease;
}

.fev-edition-circle:hover {
    transform: scale(1.06);
    border-color: var(--gold);
}

.fev-edition-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    font-family: 'Cairo', sans-serif;
}

.fev-edition-lbl {
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-top: 4px;
}

.fev-countdown-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    width: 100%;
    text-align: center;
}

.fev-countdown-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fev-timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    direction: rtl;
}

.fev-timer-unit {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fev-unit-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
}

.fev-unit-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Right Column: Titles, Badges, Description, Actions */
.fev-right-col {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.fev-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.fev-logo-wrap {
    order: 2;
}

.fev-stu-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fev-badges-wrap {
    order: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.fev-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    padding: 5px 15px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.fev-partner-pill {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    color: #fef08a;
}

.fev-subtitle {
    color: #f59e0b;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.fev-title {
    color: #ffffff;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 15px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.fev-description {
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 22px;
    max-width: 950px;
}

.fev-actions {
    display: flex;
    justify-content: flex-start;
}

.fev-btn-details {
    display: inline-block;
    padding: 9px 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.fev-btn-details:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .fev-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fev-left-col {
        order: 2;
    }

    .fev-right-col {
        order: 1;
        text-align: center;
    }

    .fev-top-header {
        justify-content: center;
    }

    .fev-badges-wrap {
        justify-content: center;
    }

    .fev-actions {
        justify-content: center;
    }

    .fev-title {
        font-size: 1.65rem;
    }

    .featured-event-banner {
        padding: 30px 22px;
    }
}

@media (max-width: 480px) {
    .fev-edition-circle {
        width: 105px;
        height: 105px;
    }

    .fev-edition-num {
        font-size: 2rem;
    }

    .fev-title {
        font-size: 1.35rem;
    }
}

/* ===================================================
   Event Detail Page Styles (صفحة تفاصيل الحدث والمؤتمر)
   =================================================== */
.event-page-hero {
    position: relative;
    background-color: #09172f;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 70px 0 85px;
    overflow: hidden;
}

.event-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 20, 44, 0.88) 0%, rgba(10, 24, 52, 0.68) 45%, rgba(8, 20, 44, 0.88) 100%);
    z-index: 1;
    pointer-events: none;
}

.fev-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-event-register {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #b89628 100%);
    color: #0a1c3d !important;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 13px 36px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    transition: all 0.3s ease;
}

.btn-event-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.55);
}

.btn-event-about {
    display: inline-block;
    background: rgba(15, 23, 42, 0.65);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 13px 32px;
    border-radius: 10px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-event-about:hover {
    background: #ffffff;
    color: var(--primary) !important;
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* Quick Info 4 Cards Bar */
.event-quick-info-section {
    padding: 0 0 50px;
    position: relative;
    z-index: 20;
}

.event-info-cards-bar {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 43, 92, 0.08);
    border: 1px solid #e2e8f0;
    margin-top: -50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.event-info-card {
    padding: 32px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: 1px solid #f1f5f9;
    transition: all 0.35s ease;
}

.event-info-card:last-child {
    border-left: none;
}

.event-info-card:hover {
    background: #f8fafc;
}

.eic-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: transform 0.3s ease;
}

.event-info-card:hover .eic-icon {
    transform: scale(1.15) rotate(6deg);
}

.eic-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.eic-icon-date {
    background: #fee2e2;
    color: #dc2626;
}

.eic-icon-loc {
    background: #fef3c7;
    color: #d97706;
}

.eic-icon-org {
    background: #e0f2fe;
    color: #0284c7;
}

.eic-icon-host {
    background: #ede9fe;
    color: #6366f1;
}

.eic-content h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.eic-content p {
    font-size: 0.88rem;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* About Conference Detailed Section */
.event-about-section {
    padding: 20px 0 80px;
    background: #ffffff;
}

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

.event-about-text {
    text-align: right;
}

.event-about-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.event-about-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.35;
    margin-bottom: 24px;
}

.event-about-body p {
    font-size: 1.02rem;
    color: #334155;
    line-height: 1.95;
    margin-bottom: 18px;
}

.event-poster-frame {
    background: #ffffff;
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 20px 45px rgba(15, 43, 92, 0.12);
    border: 1px solid #e2e8f0;
    transition: transform 0.4s ease;
}

.event-poster-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(15, 43, 92, 0.18);
}

.event-poster-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    object-fit: cover;
}

.event-poster-placeholder {
    width: 100%;
    min-height: 380px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

@media (max-width: 992px) {
    .event-info-cards-bar {
        grid-template-columns: 1fr 1fr;
        margin-top: -30px;
    }

    .event-info-card:nth-child(2) {
        border-left: none;
    }

    .event-info-card {
        border-bottom: 1px solid #f1f5f9;
    }

    .event-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .event-about-poster-wrap {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .event-info-cards-bar {
        grid-template-columns: 1fr;
    }

    .event-info-card {
        border-left: none;
    }

    .fev-hero-buttons {
        justify-content: center;
    }

    .btn-event-register,
    .btn-event-about {
        width: 100%;
        text-align: center;
    }

    .event-about-title {
        font-size: 1.6rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   PREMIUM GLASSMORPHIC LANGUAGE CAPSULE SWITCHER & HEADER CONTROLS
   ══════════════════════════════════════════════════════════════ */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-lang-wrapper {
    display: flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
}

.lang-capsule-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(15, 43, 92, 0.05), rgba(212, 175, 55, 0.12));
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    padding: 4px 10px 4px 6px;
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 43, 92, 0.08);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    user-select: none;
}

.lang-capsule-btn:hover {
    background: linear-gradient(135deg, rgba(15, 43, 92, 0.1), rgba(212, 175, 55, 0.22));
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.lang-globe-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-globe-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--gold);
}

.lang-capsule-btn:hover .lang-globe-icon {
    transform: rotate(35deg) scale(1.1);
    background: var(--gold);
    color: var(--primary-dark);
}

.lang-capsule-btn:hover .lang-globe-icon svg {
    stroke: var(--primary-dark);
}

.lang-chip {
    font-size: 0.88rem;
    font-weight: 700;
    padding: 2px 8px;
    color: var(--primary);
    transition: all 0.25s ease;
    line-height: 1.2;
}

.lang-chip.chip-ar {
    font-family: 'Cairo', system-ui, sans-serif;
}

.lang-chip.chip-en {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    letter-spacing: 0.4px;
}

.lang-capsule-btn:hover .lang-chip {
    color: var(--primary-dark);
}

/* Mobile & Tablet adaptation (keeps capsule beautiful without crowding) */
@media (max-width: 992px) {
    .header-controls {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .header-controls {
        gap: 6px;
    }

    .lang-capsule-btn {
        padding: 3px 7px 3px 5px;
        gap: 4px;
    }

    .lang-globe-icon {
        width: 22px;
        height: 22px;
    }

    .lang-globe-icon svg {
        width: 12px;
        height: 12px;
    }

    .lang-chip {
        font-size: 0.7rem;
        padding: 2px 5px;
    }

    .lang-divider {
        height: 10px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Partners Section & Moving Horizontal Marquee / Ticker
   Center of Continuing Education - Southern Technical University
   ========================================================================== */

.partners-section {
    padding: 60px 0 70px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.partners-section .section-header {
    margin-bottom: 35px;
    text-align: center;
}

.partners-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    direction: ltr !important;
    padding: 15px 0 25px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 8%, rgba(0, 0, 0, 1) 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 8%, rgba(0, 0, 0, 1) 92%, transparent 100%);
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 28px;
    animation: partnersScroll 40s linear infinite;
    will-change: transform;
}

/* Pause the scrolling animation when hovering over the marquee container or any logo */
.partners-marquee-container:hover .partners-track,
.partners-track:hover {
    animation-play-state: paused !important;
}

@keyframes partnersScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Individual Partner Item Card */
.partner-item {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 28px;
    min-width: 215px;
    height: 110px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

/* Default Logo State: Grayscale with subtle opacity */
.partner-logo-img {
    max-height: 72px;
    max-width: 175px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
    pointer-events: none;
}

/* Hover State: On hover, card elevates with gold border, and ONLY the hovered logo turns full color */
.partner-item:hover {
    border-color: #d4af37;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 43, 92, 0.14);
    transform: translateY(-6px);
}

.partner-item:hover .partner-logo-img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.1);
}

/* Partner Tooltip Label on Hover */
.partner-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #0f2b5c;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.partner-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #0f2b5c;
}

.partner-item:hover .partner-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partners-section {
        padding: 45px 0 55px;
    }

    .partners-track {
        gap: 20px;
        animation-duration: 30s;
    }

    .partner-item {
        min-width: 165px;
        height: 88px;
        padding: 10px 20px;
        border-radius: 12px;
    }

    .partner-logo-img {
        max-height: 56px;
        max-width: 135px;
    }
}

/* ==========================================================================
   Modern Responsive Pagination
/* ==========================================================================
   Modern Clean Pagination (Matching Design)
   ========================================================================== */
.pagination-container {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pagination-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
    /* Keeps < 1 2 3 ... > sequence */
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #ffffff;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1;
    transition: all 0.2s ease;
    user-select: none;
    box-sizing: border-box;
}

.pagination-item:hover:not(.disabled):not(.active) {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.pagination-item.active {
    background: #0a1c3d;
    color: #ffffff;
    border-color: #0a1c3d;
    font-weight: 600;
    cursor: default;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.25);
}

.pagination-item.disabled {
    color: #cbd5e1;
    background: #ffffff;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.85;
}

.pagination-item.prev,
.pagination-item.next {
    color: #374151;
}

.pagination-item.prev.disabled,
.pagination-item.next.disabled {
    color: #cbd5e1;
}

.pagination-item svg {
    display: block;
    width: 18px;
    height: 18px;
}

.pagination-item.ellipsis {
    border: none;
    background: transparent;
    cursor: default;
    min-width: 24px;
    width: auto;
    color: #9ca3af;
}