/* ==========================================================================
   STAR OVERSEAS — DESTINATION PAGES COMMON ENHANCED STYLING
   ========================================================================== */

/* Universal Typography & Box Sizing */
html, body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #1f2937;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Thumb category placeholder gradients */
.thumb-science { background: linear-gradient(135deg, #e0f2fe, #bae6fd) !important; color: #0284c7 !important; }
.thumb-creative { background: linear-gradient(135deg, #fef3c7, #fde68a) !important; color: #d97706 !important; }
.thumb-law { background: linear-gradient(135deg, #f3e8ff, #e9d5ff) !important; color: #7c3aed !important; }
.thumb-health { background: linear-gradient(135deg, #e0e7ff, #c7d2fe) !important; color: #4338ca !important; }
.thumb-business { background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important; color: #16a34a !important; }
.thumb-tech { background: linear-gradient(135deg, #ffedd5, #fed7aa) !important; color: #ea580c !important; }

/* ==========================================
   1. WHY STUDY IN DESTINATION (WHY-CARDS-GRID)
   ========================================== */
.why-uae-section {
    padding: 72px 5%;
    background-color: #ffffff;
    width: 100%;
}

.why-uae-container {
    max-width: 1240px;
    margin: 0 auto;
}

.why-uae-header {
    text-align: center;
    margin-bottom: 48px;
}

.why-uae-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.25;
}

.why-uae-header h2 span {
    color: #0046ad;
}

.why-uae-header p {
    font-size: 15px;
    color: #64748b;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.65;
}

.why-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: #0046ad;
    box-shadow: 0 14px 35px rgba(0, 70, 173, 0.08);
}

.card-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eef4ff;
    color: #0046ad;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 4px;
}

.why-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
}

.why-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ==========================================
   2. ELIGIBILITY CRITERIA CARDS (COST-CARDS-GRID)
   ========================================== */
.living-costs-section {
    padding: 72px 5%;
    background-color: #f8fafc;
    width: 100%;
}

.living-costs-container {
    max-width: 1240px;
    margin: 0 auto;
}

.living-costs-header {
    text-align: center;
    margin-bottom: 48px;
}

.living-costs-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.25;
}

.living-costs-header h2 span {
    color: #0046ad;
}

.living-costs-header p {
    font-size: 15px;
    color: #64748b;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.65;
}

.cost-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.cost-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s ease;
}

.cost-card:hover {
    transform: translateY(-4px);
    border-color: #0046ad;
    box-shadow: 0 12px 30px rgba(0, 70, 173, 0.07);
}

.cost-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #eef4ff;
    color: #0046ad;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.cost-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.cost-card p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   3. ACADEMIC INTAKES SECTION (INTAKES-GRID)
   ========================================== */
.intakes-section {
    padding: 72px 5%;
    background-color: #ffffff;
    width: 100%;
}

.intakes-container {
    max-width: 1240px;
    margin: 0 auto;
}

.intakes-header {
    text-align: center;
    margin-bottom: 48px;
}

.intakes-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.25;
}

.intakes-header h2 span {
    color: #0046ad;
}

.intakes-header p {
    font-size: 15px;
    color: #64748b;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.65;
}

.intakes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.intake-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    transition: all 0.25s ease;
}

.intake-card:hover {
    border-color: #0046ad;
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 70, 173, 0.08);
}

.intake-card-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.intake-tag {
    align-self: flex-start;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    background: #eef4ff;
    color: #0046ad;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.intake-card-top h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.intake-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: #0046ad;
}

.intake-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.intake-period {
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.intake-period label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.intake-period strong {
    font-size: 14.5px;
    color: #0f172a;
    font-weight: 800;
}

/* ==========================================
   4. COST OF STUDY TABLE & CURRENCY SWITCHER
   ========================================== */
.cost-study-section {
    padding: 72px 5%;
    background-color: #f8fafc;
    width: 100%;
}

.cost-study-container {
    max-width: 1240px;
    margin: 0 auto;
}

.cost-study-header {
    text-align: center;
    margin-bottom: 32px;
}

.cost-study-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.25;
}

.cost-study-header h2 span {
    color: #0046ad;
}

.cost-study-header p {
    font-size: 15px;
    color: #64748b;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.65;
}

.cost-currency-toggle {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.currency-toggle-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.currency-toggle-btn.active,
.currency-toggle-btn:hover {
    background: #0046ad;
    color: #ffffff;
    border-color: #0046ad;
}

.cost-table-wrapper {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    text-align: left;
}

.cost-table thead tr {
    background: #f1f5f9;
    border-bottom: 1.5px solid #e2e8f0;
}

.cost-table th {
    padding: 18px 24px;
    font-weight: 800;
    color: #0f172a;
    font-size: 14px;
}

.cost-table td {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 14.5px;
}

.cost-table tbody tr:last-child td {
    border-bottom: none;
}

.cost-table tbody tr:hover {
    background: #f8fafc;
}

/* ==========================================
   5. COUNSELLING BANNER SECTION
   ========================================== */
.counsel-banner-section {
    padding: 72px 5%;
    background-color: #f0f7ff;
    width: 100%;
}

.counsel-banner-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 56px 40px;
    box-shadow: 0 12px 40px rgba(0, 70, 173, 0.08);
    border: 1px solid #dbeafe;
    text-align: center;
}

.counsel-banner-content {
    max-width: 720px;
    margin: 0 auto;
}

.counsel-banner-content h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

.counsel-banner-content h2 span {
    color: #0046ad;
}

.counsel-banner-content p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 auto 24px;
}

/* ==========================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 992px) {
    .why-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .cost-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .why-cards-grid,
    .cost-cards-grid,
    .intakes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .why-uae-section,
    .living-costs-section,
    .intakes-section,
    .counsel-banner-section,
    .cost-study-section {
        padding: 48px 16px;
    }
    .counsel-banner-container {
        padding: 36px 20px;
    }
    .why-uae-header h2,
    .living-costs-header h2,
    .intakes-header h2,
    .cost-study-header h2,
    .counsel-banner-content h2 {
        font-size: 26px;
    }
    .cost-table th,
    .cost-table td {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* ==========================================
   7. TABLE CURRENCY COLUMNS & UTILITIES
   ========================================== */
.col-cost-egp-head, .col-cost-gel-head, .col-cost-kzt-head, .col-cost-npr-head, .col-cost-rub-head,
.col-cost-inr-head {
    font-weight: 800;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.col-cost-egp, .col-cost-gel, .col-cost-kzt, .col-cost-npr, .col-cost-rub,
.col-cost-inr {
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.col-cost-active {
    background-color: #eef4ff !important;
    color: #0046ad !important;
    font-weight: 700 !important;
}

.search-trigger-btn {
    cursor: pointer;
}

.popup-section {
    margin-bottom: 24px;
}

.acc-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ==========================================
   UNIVERSITY CARD THUMBNAIL REAL IMAGES
   ========================================== */
.course-card-thumb {
    width: 100% !important;
    height: 170px !important;
    overflow: hidden !important;
    background: #e2e8f0 !important;
    position: relative !important;
}

.course-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}

.pop-course-card:hover .course-card-thumb img {
    transform: scale(1.08) !important;
}


/* ==========================================================================
   VIDEO REELS & VIDEO MODAL STYLING
   ========================================================================== */
.reel-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 155%; /* 9:16 portrait */
    background: #0f172a;
    overflow: hidden;
    border-radius: 20px;
}

.reel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.reel-card:hover .reel-video {
    transform: scale(1.05);
}

.reel-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 18px 18px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.9) 100%);
    color: #ffffff;
    z-index: 2;
    pointer-events: none;
}

.reel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(0, 70, 173, 0.85);
    color: #ffffff;
    margin-bottom: 6px;
    backdrop-filter: blur(4px);
}

.reel-overlay-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Play button overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #0046ad;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.reel-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    background: #0046ad;
    color: #ffffff;
}

/* Video Player Modal */
.video-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-player-modal.active {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.88);
    backdrop-filter: blur(8px);
}

.video-modal-dialog {
    position: relative;
    z-index: 2;
    max-width: 480px;
    width: 90%;
    background: #0f172a;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.video-modal-close-btn:hover {
    background: #ef4444;
}

.video-modal-body {
    display: flex;
    flex-direction: column;
}

.video-modal-body video {
    width: 100%;
    max-height: 75vh;
    background: #000000;
    display: block;
}

.video-modal-caption {
    padding: 16px 20px;
    background: #0f172a;
    color: #ffffff;
}

.video-modal-caption h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

/* ==========================================================================
   GALLERY SECTION OVERLAY & FULL-VIEW LIGHTBOX MODAL
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

.gallery-card {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 70, 173, 0.12);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-card .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    color: #ffffff;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(0, 70, 173, 0.85);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.gallery-overlay h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
}

.gallery-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #93c5fd;
    margin-top: 2px;
    transition: color 0.2s ease;
}

.gallery-card:hover .gallery-view-btn {
    color: #ffffff;
}

/* Gallery Lightbox Modal */
.gallery-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-modal.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.92);
    backdrop-filter: blur(10px);
}

.lightbox-dialog {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 92vh;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 90vw;
    max-height: 88vh;
}

.lightbox-content img {
    max-width: 85vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
    text-align: center;
    color: #ffffff;
    max-width: 600px;
}

.lightbox-caption span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #93c5fd;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.lightbox-caption h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #f8fafc;
}

.lightbox-close-btn {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.lightbox-close-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.lightbox-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.lightbox-nav-btn:hover {
    background: #0046ad;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev-btn {
    left: 28px;
}

.lightbox-next-btn {
    right: 28px;
}

@media (max-width: 768px) {
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .lightbox-prev-btn {
        left: 10px;
    }
    .lightbox-next-btn {
        right: 10px;
    }
    .lightbox-close-btn {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }
    .lightbox-caption h4 {
        font-size: 14.5px;
    }
}
