/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors */
    --primary-color: #d68910;      /* Mustard/Dark Orange */
    --secondary-color: #2e86c1;    /* Blue */
    --accent-purple: #6c5ce7;      /* Purple */
    --accent-orange: #ff9f43;      /* Bright Orange */
    --accent-red: #ff6b6b;         /* Red/Pink */
    
    /* Backgrounds & Text */
    --light-bg: #fdf2e9;
    --body-bg: #f4f6f9;
    --text-dark: #333;
    --text-light: #636e72;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--body-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 20px;*/
}

a { text-decoration: none; }

/* =========================================
   2. HEADER & NAVIGATION (MEGA MENU)
   ========================================= */
.navbar-brand img {
    height: 50px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Mega Menu & Dropdown Base */
.mega-menu-item .dropdown-menu {
    border-radius: 0 0 10px 10px;
    padding: 30px 20px;
    border-top: 3px solid var(--accent-red);
}

.dropdown-item-wrapper {
    position: relative;
}

/* Country List Styling */
.country-list li { margin-bottom: 15px; }

.country-list li a {
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 5px;
    transition: 0.3s;
}

.country-list li a:hover {
    background-color: #f8f9fa;
    color: #ff7f50;
    transform: translateX(5px);
}

.country-list img {
    width: 28px;
    height: auto;
    margin-right: 12px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Search Buttons inside Menu */
.btn-search-uni, 
.btn-search-custom {
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.btn-search-uni {
    background: linear-gradient(90deg, #ff8a5c, #ff6b6b);
    padding: 10px 25px;
    display: inline-block;
}

.btn-search-custom {
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-red));
    padding: 12px 20px;
    display: block;
    width: 100%;
}

.btn-search-uni:hover,
.btn-search-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.5);
}

/* =========================================
   3. HERO SLIDER SECTION
   ========================================= */
.carousel-item {
    height: 100vh;
    min-height: 500px;
    background-color: #000;
    position: relative;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centered by default based on updated code */
    text-align: center;
    padding: 20px 8%;
    color: white;
}

.hero-overlay h1 {
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* =========================================
   4. CONTACT FORM & HERO
   ========================================= */
.contact-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    padding-top: 40px;
}

.form-wrapper {
    flex: 1;
    min-width: 350px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 20px;
}

.contact-form .input-group { margin-bottom: 15px; }

.contact-form .two-col {
    display: flex;
    gap: 20px;
    width: 100%;
}

.contact-form input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--accent-purple);
    border-radius: 50px;
    background-color: #f0f2f5;
    outline: none;
    font-size: 14px;
    color: var(--text-dark);
    transition: 0.3s;
}

.contact-form input:focus {
    background-color: var(--white);
    box-shadow: 0 0 5px rgba(108, 92, 231, 0.3);
}

.btn-send {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background-color: var(--accent-purple);
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-send:hover { background-color: #5a4ad1; }

/* Contact Image Blob */
.image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 350px;
    position: relative;
}

.image-wrapper img {
    max-width: 80%;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    border-bottom: 5px solid var(--accent-purple);
}

/* =========================================
   5. UNIVERSITY GRID CARDS (Modern)
   ========================================= */
.universities_univerResult__yEPDL {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    height: 100%; /* Ensure equal height in flex/grid */
}

.universities_univerResult__yEPDL:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-orange);
}

.universities_uniLogo__2eLJM {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.universities_uniLogo__2eLJM img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.universities_alignmentText__r8uCX {
    flex-grow: 1;
    text-align: center;
    margin-bottom: 20px;
}

.universities_alignmentText__r8uCX h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.universities_alignmentText__r8uCX h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
}

.universities_alignmentText__r8uCX .url-text {
    font-size: 0.85rem;
    color: #b2bec3;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.universities_footerButton__iW-lc {
    display: flex;
    gap: 10px;
}

.universities_knowMore__2Ttt8, 
.universities_applyNow__19RlI {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    border: none;
    transition: 0.3s;
    text-decoration: none;
    cursor: pointer;
}

.universities_knowMore__2Ttt8 {
    background-color: #f1f2f6;
    color: #2f3542;
}
.universities_knowMore__2Ttt8:hover {
    background-color: #e4e5e9;
    color: #000;
}

.universities_applyNow__19RlI {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-red));
    color: var(--white);
}
.universities_applyNow__19RlI:hover {
    background: linear-gradient(45deg, var(--accent-red), var(--accent-orange));
    transform: translateY(-2px);
}

/* Pagination */
.universities_pagination__22ZUQ {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 20px 0;
    gap: 10px;
    flex-wrap: wrap;
}

.universities_pagination__22ZUQ li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: 600;
    transition: 0.3s;
}

.universities_pagination__22ZUQ li.universities_active__2bJa9 a,
.universities_pagination__22ZUQ li a:hover {
    background: var(--accent-orange);
    color: white;
    transform: scale(1.1);
}

/* =========================================
   6. INFO CARDS (Floating Icons)
   ========================================= */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    position: relative;
    padding: 40px 20px 20px;
    border-radius: 20px;
    color: white;
    text-align: center;
    margin-top: 30px;
    border: none; /* remove bootstrap default */
}

.card-icon {
    position: absolute;
    top: -30px; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Card Variants */
.card-yellow { background-color: #ffc107; }
.card-yellow .card-icon { color: #ffc107; border: 2px solid #ffc107; }

.card-purple { background-color: var(--accent-purple); }
.card-purple .card-icon { color: var(--accent-purple); border: 2px solid var(--accent-purple); }

.card-orange { background-color: #fd7e14; }
.card-orange .card-icon { color: #fd7e14; border: 2px solid #fd7e14; }

.card-green { background-color: #198754; }
.card-green .card-icon { color: #198754; border: 2px solid #198754; }

.card h3 { font-size: 18px; margin-bottom: 15px; font-weight: 600; }
.card p { font-size: 13px; line-height: 1.5; margin-bottom: 5px; }
.card a { color: white; text-decoration: none; font-weight: bold; }

/* =========================================
   7. GENERAL SECTIONS (Mission, Stats, FAQ)
   ========================================= */
.mission-section {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
}
.mission-icon { font-size: 40px; margin-bottom: 20px; }

.featured-section { padding: 40px 0; text-align: center; background: #fff; }
.featured-logos h4 { font-size: 1.5rem; font-weight: 700; opacity: 0.6; }

.stats-section {
    background-color: #e0f7fa;
    padding: 60px 0;
    text-align: center;
}
.stat-box h3 { font-weight: 800; font-size: 2.5rem; color: #000; }
.stat-box i { color: var(--secondary-color); }

.form-faq-section {
    background-color: var(--primary-color);
    padding: 70px 0;
}
.custom-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #fff8e1;
    font-weight: 600;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background-color: #fff;
    padding-top: 60px;
    border-top: 5px solid var(--primary-color);
}
.social-icons a {
    margin-right: 10px;
    width: 35px; height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-bottom {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* =========================================
   9. MEDIA QUERIES (RESPONSIVE)
   ========================================= */

/* Desktop (min-width: 992px) */
@media (min-width: 992px) {
    .navbar .mega-menu-item { position: static; }
    
    .mega-menu-item .dropdown-menu {
        width: 100%;
        left: 0; right: 0;
        margin-top: 0;
    }
    
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }

    /* Submenu Positioning */
    .dropdown-item-wrapper .submenu {
        display: none;
        position: absolute;
        left: 100%; top: 0;
        margin-top: -5px;
        background: #fff;
        border: 1px solid rgba(0,0,0,.15);
        border-radius: .25rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        min-width: 200px;
        border-left: 3px solid #ff7f50;
    }
    .dropdown-item-wrapper:hover > .submenu { display: block; animation: fadeIn 0.3s ease; }
    
    .border-end-lg { border-right: 1px solid #eee; }
    .w-lg-auto { width: auto !important; }
}

/* Mobile/Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .dropdown-menu {
        border: none;
        background-color: #f9f9f9;
        padding: 0 15px;
    }

    .dropdown-item-wrapper .submenu {
        position: static;
        display: block; /* Always show or use JS to toggle */
        margin-left: 20px;
        width: 100%;
        box-shadow: none;
        border-left: 2px solid #ff7f50;
        background: transparent;
    }

    .country-list li a:hover { transform: none; }
    
    .contact-form .two-col { flex-direction: column; gap: 15px; }
}

/* Mobile Phones (max-width: 768px) */
@media (max-width: 768px) {
    .carousel-item { height: 60vh; }
    .hero-overlay h1 { font-size: 2rem; }
    .hero-overlay { padding: 20px; text-align: center; }
}

/* Small Mobile (max-width: 576px) */
@media (max-width: 576px) {
    .floating-cta { top: -147px; }
    
    .universities_univerResult__yEPDL { padding: 20px 15px; }
    .universities_footerButton__iW-lc { flex-direction: column; }
    .universities_alignmentText__r8uCX h4 { font-size: 1rem; min-height: auto; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}