/* ==========================================================================
   EDUVISTA - DEDICATED COUNTRY PAGES STYLESHEET (DESKTOP & MOBILE OPTIMIZED)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL CONTAINER & LAYOUT RESETS
   -------------------------------------------------------------------------- */
.wsmenucontainer {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body, html {
    overflow-x: hidden !important;
}

.inner-page-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   2. FILTER SECTION (COURSE & UNIVERSITY SELECT)
   -------------------------------------------------------------------------- */
.filter-section-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.filter-label {
    font-size: 14.5px;
    font-weight: 700;
    color: #0b1f3a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label i {
    color: #007bff;
    font-size: 16px;
}

.filter-select {
    height: 48px !important;
    background: #ffffff !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    color: #0b1f3a !important;
    font-size: 14.5px !important;
    cursor: pointer !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.filter-select:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.2) !important;
}

/* --------------------------------------------------------------------------
   3. UNIVERSITY & COURSE CARDS
   -------------------------------------------------------------------------- */
.uni-card-exact {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 24px 20px 20px 20px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.uni-card-exact:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09) !important;
    border-color: #cbd5e1 !important;
}

.uni-card-logo-container {
    height: 90px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
}

.uni-card-logo-container img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.uni-name-exact {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0b1f3a !important;
    text-align: center !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.3 !important;
}

.uni-location-exact {
    font-size: 13.5px !important;
    color: #64748b !important;
    text-align: center !important;
    margin: 0 0 8px 0 !important;
}

.uni-stars-exact {
    text-align: center !important;
    color: #f59e0b !important;
    font-size: 17px !important;
    letter-spacing: 2px !important;
    margin-bottom: 12px !important;
}

.uni-divider-exact {
    height: 2px !important;
    background: #007bff !important;
    margin: 0 -4px 14px -4px !important;
    border-radius: 2px !important;
}

.course-name-exact {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: center !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.35 !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.course-meta-exact {
    font-size: 13.5px !important;
    color: #475569 !important;
    text-align: center !important;
    margin-bottom: 14px !important;
    line-height: 1.6 !important;
}

.course-meta-exact strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.card-buttons-exact {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
}

.btn-exact-view,
.btn-exact-apply {
    flex: 1 !important;
    background: #007bff !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 9px 8px !important;
    border-radius: 6px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    outline: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.btn-exact-view:hover,
.btn-exact-apply:hover {
    background: #0062cc !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.tag-badge-exact {
    align-self: flex-start !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

/* --------------------------------------------------------------------------
   4. BULLETPROOF MODALS
   -------------------------------------------------------------------------- */
.edu-custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(3px);
    z-index: 999999;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 15px;
}

.edu-custom-modal-overlay.is-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.edu-custom-modal-container {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 820px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: modalFadeIn 0.25s ease-out;
    margin: auto;
    border: 1px solid #e2e8f0;
}

@keyframes modalFadeIn {
    from {
        transform: scale(0.96) translateY(-15px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.edu-modal-header {
    background: #0b1f3a;
    color: #ffffff;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edu-modal-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.edu-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
    padding: 0;
}

.edu-modal-close:hover {
    opacity: 1;
    color: #ff4500;
}

.edu-modal-body {
    padding: 22px;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
}

.modal-course-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 16px 18px !important;
    margin-bottom: 16px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.modal-course-item:hover {
    border-color: #007bff !important;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.08) !important;
}

.modal-course-item h5 {
    font-size: 16.5px !important;
    font-weight: 700 !important;
    color: #0b1f3a !important;
    margin: 0 !important;
}

.modal-course-item .course-specs {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #475569 !important;
    margin: 10px 0 !important;
    background: #ffffff !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    border: 1px solid #edf2f7 !important;
}

.modal-course-item .course-specs strong {
    color: #1e293b !important;
}

.modal-course-item .eligibility-text {
    font-size: 13px !important;
    color: #334155 !important;
    background: #ffffff !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    border: 1px dashed #cbd5e1 !important;
    line-height: 1.6 !important;
}

.edu-modal-footer {
    background: #f8fafc;
    padding: 14px 22px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   5. COMPLETE STUDY GUIDE & COUNTRY OVERVIEW SECTION
   -------------------------------------------------------------------------- */
.country-guide-overview {
    margin-top: 45px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 38px 34px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.country-guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1) 0%, rgba(255, 120, 0, 0.14) 100%);
    color: #ff4500;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 69, 0, 0.25);
    margin-bottom: 16px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    max-width: 100%;
}

.country-guide-title {
    font-size: 25px;
    line-height: 1.4;
    font-weight: 800;
    color: #0b1f3a;
    margin-top: 4px;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    font-family: 'Muli', sans-serif;
    word-break: break-word;
}

.country-guide-lead {
    font-size: 15.5px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 32px;
    word-break: break-word;
}

.country-guide-lead strong {
    color: #0b1f3a;
    font-weight: 700;
}

/* 5.1 Key Metrics Grid */
.guide-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 34px;
    width: 100%;
}

.guide-metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    min-width: 0;
    box-sizing: border-box;
}

.guide-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
    border-color: #cbd5e1;
    background: #ffffff;
}

.guide-metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.guide-metric-icon.tuition {
    background: #ecfdf5;
    color: #059669;
}

.guide-metric-icon.duration {
    background: #eff6ff;
    color: #2563eb;
}

.guide-metric-icon.psw {
    background: #fef2f2;
    color: #dc2626;
}

.guide-metric-icon.work {
    background: #fff7ed;
    color: #ea580c;
}

.guide-metric-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-break: break-word;
}

.guide-metric-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.guide-metric-val {
    font-size: 16px;
    font-weight: 800;
    color: #0b1f3a;
    line-height: 1.35;
    margin-bottom: 3px;
    font-family: 'Muli', sans-serif;
    word-break: break-word;
}

.guide-metric-sub {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
    word-break: break-word;
}

/* 5.2 Narrative Sections */
.guide-narrative-section {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 26px 22px;
    margin-bottom: 34px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    width: 100%;
    box-sizing: border-box;
}

.guide-narrative-title {
    font-size: 18px;
    font-weight: 800;
    color: #0b1f3a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Muli', sans-serif;
    word-break: break-word;
}

.guide-narrative-title i {
    color: #ff4500;
    font-size: 18px;
    flex-shrink: 0;
}

.guide-narrative-text {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 22px;
    word-break: break-word;
}

.guide-narrative-text:last-child {
    margin-bottom: 0;
}

.guide-narrative-text strong {
    color: #0f172a;
    font-weight: 700;
}

/* 5.3 Indian Students Advisory */
.guide-indian-students-box {
    background: linear-gradient(135deg, #fffbf5 0%, #fff7ed 100%);
    border: 1.5px solid #fed7aa;
    border-radius: 16px;
    padding: 30px 26px;
    margin-bottom: 34px;
    position: relative;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.04);
    width: 100%;
    box-sizing: border-box;
}

.guide-indian-title {
    font-size: 19px;
    font-weight: 800;
    color: #9a3412;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Muli', sans-serif;
    word-break: break-word;
}

.guide-indian-title i {
    color: #ea580c;
    flex-shrink: 0;
}

.guide-indian-intro {
    font-size: 15px;
    line-height: 1.75;
    color: #7c2d12;
    margin-bottom: 22px;
    word-break: break-word;
}

.guide-indian-intro strong {
    color: #431407;
    font-weight: 700;
}

.guide-indian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    width: 100%;
}

.guide-indian-card {
    background: #ffffff;
    border: 1px solid #ffedd5;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
    box-sizing: border-box;
}

.guide-indian-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.08);
    border-color: #fdba74;
}

.guide-indian-card-head {
    font-size: 14.5px;
    font-weight: 700;
    color: #9a3412;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Muli', sans-serif;
    word-break: break-word;
}

.guide-indian-card-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: #475569;
    margin: 0;
    word-break: break-word;
}

.guide-indian-card-desc strong {
    color: #0f172a;
    font-weight: 700;
}

/* 5.4 Admissions Strip */
.guide-admissions-strip {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%) !important;
    border: 1px solid #bae6fd !important;
    border-radius: 14px !important;
    padding: 18px 22px !important;
    margin-bottom: 30px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 16px !important;
    align-items: center !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.05);
    width: 100% !important;
    box-sizing: border-box !important;
}

.guide-admissions-strip > div {
    font-size: 14.5px !important;
    color: #0b1f3a !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    word-break: break-word;
}

.guide-admissions-strip > div i {
    color: #0284c7 !important;
    font-size: 16px !important;
    flex-shrink: 0;
}

/* 5.5 Highlights Grid */
.guide-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    width: 100%;
}

.guide-highlight-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    padding: 18px;
    transition: all 0.25s ease;
    min-width: 0;
    box-sizing: border-box;
}

.guide-highlight-item:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.guide-highlight-item.accent-green {
    border-left-color: #10b981;
}

.guide-highlight-item.accent-orange {
    border-left-color: #f59e0b;
}

.guide-highlight-item.accent-purple {
    border-left-color: #8b5cf6;
}

.guide-highlight-head {
    font-size: 14.5px;
    font-weight: 700;
    color: #0b1f3a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Muli', sans-serif;
    word-break: break-word;
}

.guide-highlight-head i {
    flex-shrink: 0;
}

.guide-highlight-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
    word-break: break-word;
}

.guide-highlight-desc strong {
    color: #1e293b;
    font-weight: 700;
}


/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES (MOBILE, TABLET & SMALL DEVICES)
   ========================================================================== */

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
    .filter-section-box {
        padding: 20px 18px;
    }
    .guide-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .guide-indian-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .guide-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile & Small Devices (max-width: 767.98px) */
@media (max-width: 767.98px) {
    /* Page Layout & Spacing */
    section {
        padding-top: 25px !important;
        padding-bottom: 40px !important;
    }

    #pageMainHeading {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    /* Filter Box */
    .filter-section-box {
        padding: 16px 14px;
        margin-bottom: 24px;
        border-radius: 10px;
    }
    
    .filter-label {
        font-size: 13.5px;
        margin-bottom: 6px;
    }

    .filter-select {
        height: 44px !important;
        font-size: 13.5px !important;
    }

    /* Cards */
    .uni-card-exact {
        padding: 18px 14px 16px 14px !important;
        margin-bottom: 20px !important;
    }

    .uni-card-logo-container {
        height: 70px !important;
        margin-bottom: 10px !important;
    }

    .uni-card-logo-container img {
        max-height: 65px;
    }

    .uni-name-exact {
        font-size: 16.5px !important;
    }

    .uni-location-exact {
        font-size: 12.5px !important;
    }

    .course-name-exact {
        font-size: 14.5px !important;
        min-height: auto !important;
        margin-bottom: 8px !important;
    }

    .course-meta-exact {
        font-size: 12.5px !important;
        margin-bottom: 12px !important;
    }

    .card-buttons-exact {
        gap: 6px !important;
        margin-bottom: 10px !important;
    }

    .btn-exact-view,
    .btn-exact-apply {
        font-size: 12px !important;
        padding: 8px 6px !important;
    }

    /* Modals */
    .edu-custom-modal-overlay {
        padding: 10px 8px;
    }

    .edu-custom-modal-container {
        max-width: 100%;
        border-radius: 10px;
    }

    .edu-modal-header {
        padding: 12px 16px;
    }

    .edu-modal-title {
        font-size: 16px;
    }

    .edu-modal-body {
        padding: 14px 12px;
        max-height: 75vh;
    }

    .modal-course-item {
        padding: 12px 14px !important;
        margin-bottom: 12px !important;
    }

    .modal-course-item h5 {
        font-size: 15px !important;
    }

    .modal-course-item .course-specs {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding: 8px 10px !important;
        font-size: 12.5px !important;
    }

    .modal-course-item .eligibility-text {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    .edu-modal-footer {
        padding: 10px 16px;
    }

    /* Country Study Guide Overview */
    .country-guide-overview {
        padding: 20px 14px;
        margin-top: 30px;
        border-radius: 14px;
    }

    .country-guide-badge {
        font-size: 11.5px;
        padding: 5px 12px;
        line-height: 1.4;
        text-align: left;
    }

    .country-guide-title {
        font-size: 18.5px;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .country-guide-lead {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 20px;
    }

    /* Metric Cards on Mobile */
    .guide-metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .guide-metric-card {
        padding: 14px 12px;
        gap: 12px;
    }

    .guide-metric-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 10px;
    }

    .guide-metric-val {
        font-size: 14.5px;
    }

    .guide-metric-sub {
        font-size: 11.5px;
    }

    /* Narrative Sections on Mobile */
    .guide-narrative-section {
        padding: 18px 14px;
        margin-bottom: 24px;
        border-radius: 12px;
    }

    .guide-narrative-title {
        font-size: 16px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .guide-narrative-text {
        font-size: 13.5px;
        line-height: 1.65;
        margin-bottom: 16px;
    }

    /* Indian Students Box on Mobile */
    .guide-indian-students-box {
        padding: 18px 14px;
        margin-bottom: 24px;
        border-radius: 12px;
    }

    .guide-indian-title {
        font-size: 16.5px;
        line-height: 1.35;
    }

    .guide-indian-intro {
        font-size: 13.5px;
        line-height: 1.65;
        margin-bottom: 16px;
    }

    .guide-indian-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .guide-indian-card {
        padding: 14px 12px;
    }

    .guide-indian-card-head {
        font-size: 13.5px;
    }

    .guide-indian-card-desc {
        font-size: 12.5px;
        line-height: 1.6;
    }

    /* Admissions Strip on Mobile */
    .guide-admissions-strip {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 14px 12px !important;
        margin-bottom: 24px !important;
    }

    .guide-admissions-strip > div {
        font-size: 13px !important;
        width: 100% !important;
    }

    /* Highlights Grid on Mobile */
    .guide-highlights-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .guide-highlight-item {
        padding: 14px 12px;
    }

    .guide-highlight-head {
        font-size: 13.5px;
    }

    .guide-highlight-desc {
        font-size: 12.5px;
        line-height: 1.6;
    }
}
