/* Scroll Progress Bar - European Flag Theme (EU Blue & Gold) */
#scrollProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: linear-gradient(90deg, #003399 0%, #0055CC 55%, #FFCC00 100%);
    z-index: 9999;
    transition: width 0.2s;
    border-radius: 0 4px 4px 0;
}

.expert-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    justify-items: center;
}

.expert {
    background-color: white;
    border: 1.5px solid #003399;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-align: center;
    color: #003399;
    overflow: hidden;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
    font-weight: 800;
}

.expert:hover {
    background-color: #FFCC00;
    color: #003399;
    border: 3px solid #003399;
}

@media (max-width: 768px) {
    .expert-section {
        grid-template-columns: repeat(3, 1fr);
    }

    .expert {
        width: 120px;
        height: 120px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .expert {
        width: 100px;
        height: 100px;
        font-size: 12px;
        padding: 4px;
    }
}

/* Destination & University Cards */
.europe-dest-card {
    background: #f8faff;
    border-left: 4px solid #0067ED;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 51, 153, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.europe-dest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 51, 153, 0.12);
    border-left-color: #FFCC00;
}

.europe-dest-card h5 {
    color: #003399;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 17px;
}

.europe-dest-card p {
    margin-bottom: 0;
    color: #444;
    font-size: 15px;
    line-height: 1.55;
}

.study-area-card {
    background: #ffffff;
    border: 1px solid #d9e6ff;
    border-top: 3px solid #0067ED;
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.study-area-card:hover {
    transform: translateY(-4px);
    border-top-color: #FFCC00;
    box-shadow: 0 8px 20px rgba(0, 51, 153, 0.12);
}

.study-area-card i {
    font-size: 24px;
    color: #0067ED;
    margin-bottom: 10px;
}

.study-area-card span {
    font-weight: 600;
    font-size: 15px;
    color: #1d2143;
}

.uni-country-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.uni-country-card h5 {
    color: #003399;
    font-weight: 700;
    border-bottom: 2px solid #FFCC00;
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uni-country-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.uni-country-card ul li {
    padding: 5px 0;
    font-size: 14.5px;
    color: #333;
    border-bottom: 1px dashed #edf2f7;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.uni-country-card ul li:last-child {
    border-bottom: none;
}

.uni-country-card ul li i {
    color: #0067ED;
    margin-top: 4px;
    font-size: 12px;
}

/* FAQs css */
.faq-section {
    max-width: 800px;
    padding: 0 20px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    cursor: pointer;
}

.faq-question {
    font-weight: bold;
    position: relative;
    padding-right: 30px;
}

.faq-question::after {
    content: "\25B6";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
}

.faq-item.active .faq-question::after {
    content: "\25BC";
}

.faq-answer {
    display: none;
    padding-top: 10px;
    color: #333;
}

.faq-item.active .faq-answer {
    display: block;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 180px;
}

/* Popup overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Popup box */
.popup-box {
    position: relative;
    background: #fff;
    max-height: 100vh;
    width: 90%;
    max-width: 600px;
    overflow-y: auto;
    padding: 0px;
    border-radius: 8px;
}

/* Close button */
.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.border-image {
    border: 2px solid #000;
    border-radius: 8px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-responsive td {
    vertical-align: middle !important;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.cost-table th,
.cost-table td {
    border: 1px solid #000;
    padding: 6px;
    text-align: left;
    vertical-align: top;
}

.cost-table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: scroll !important;
        -webkit-overflow-scrolling: touch;
        border: 1px solid #ccc;
        border-radius: 6px;
        scrollbar-width: thin;
        scrollbar-color: #0067ED #f0f0f0;
        min-height: 40px;
    }

    .table-responsive::-webkit-scrollbar {
        height: 20px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #0067ED;
        border-radius: 6px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 6px;
    }
}

/* Desktop: horizontal, equal width, centered */
.widget.widget-nav-menu ul.widget-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    margin: 0 4px 10px;
    padding-right: 10px;
    width: 100%;
    overflow: visible;
    border-radius: 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.widget.widget-nav-menu ul.widget-menu li {
    margin: 2px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #0067ED;
    overflow: hidden;
    box-shadow: 0 0 6px 0px rgba(29, 33, 67, 0.1);
    flex: 0 0 auto;
}

.widget.widget-nav-menu ul.widget-menu li a {
    display: block;
    padding: 16px 10px;
    white-space: nowrap;
    width: 100%;
}

/* MOBILE: horizontal scroll with drag/swipe for top nav, centered for CTA menus */
@media (max-width: 767px) {
    .widget.widget-nav-menu.mobile-only-nav ul.widget-menu {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .widget.widget-nav-menu.mobile-only-nav ul.widget-menu::-webkit-scrollbar {
        display: none;
    }

    .widget.widget-nav-menu:not(.mobile-only-nav) ul.widget-menu {
        justify-content: center;
    }

    .widget.widget-nav-menu ul.widget-menu li {
        flex: 0 0 auto;
        margin-right: 8px;
    }

    .widget.widget-nav-menu ul.widget-menu li a {
        padding: 14px 20px;
        white-space: nowrap;
    }
}

.checklist h4 {
    font-weight: bold;
    margin-bottom: 20px;
}

.checklist ul {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.6;
    color: #55586c;
    gap: 10px;
}

.checklist li .check-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 18px;
    height: 18px;
    background-color: #0067ED;
    border-radius: 50%;
    flex-shrink: 0;
}

.checklist li .check-badge i {
    color: #fff;
    font-size: 9px;
}

@media (max-width: 767px) {
    .checklist .col-md-6 {
        margin-bottom: 30px;
    }
}

/* Marquee / Info Boxes */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
}

.marquee-container {
    overflow-x: auto;
    cursor: grab;
    scrollbar-width: none;
    user-select: none;
    white-space: nowrap;
    position: relative;
}

.marquee-container:active {
    cursor: grabbing;
}

.marquee-container::-webkit-scrollbar {
    display: none;
}

.marquee-track {
    display: flex;
    gap: 1rem;
    padding: 10px 0;
}

.info-box {
    flex: 0 0 auto;
    min-width: 220px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.info-box:hover {
    transform: scale(1.04);
}

.info-box h5 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
}

.info-box p {
    font-size: 15px;
    margin: 0;
    color: #fff;
}

@media (max-width: 768px) {
    .info-box {
        min-width: 185px;
        padding: 15px;
    }
}
