/* 1. RESET & BASE STYLES */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body { 
    width: 100%; 
    overflow-x: hidden;
    scroll-behavior: smooth; /* Smooth scrolling for nav links */
}

body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    background-color: #f5f7fa; 
    color: #222; 
    line-height: 1.6; 
    margin-top: 110px; /* Space for fixed headers */
}

/* 2. FIXED HEADERS (Top Bar & Nav) */
.top-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px; 
    background-color: #0d47a1;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10000;
}

.top-info-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.top-left img { height: 35px; border-radius: 4px; }
.top-center a { 
    background: #ffd166; 
    color: #000; 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-size: 13px;
}

nav {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: #1565c0; /* Slightly lighter blue than top bar */
    padding: 10px 0;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul { 
    list-style: none; 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
}

nav ul li { margin: 5px 10px; }
nav ul li a { 
    text-decoration: none; 
    color: #ffffff; 
    font-weight: 600; 
    padding: 8px 12px;
    font-size: 14px;
}

.nav-apply { 
    background: #28a745; 
    border-radius: 6px; 
}

/* 3. HERO SECTION */
.hero { 
    width: 100%; 
    height: 450px; 
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url("images/w-kyrg.png") center/cover no-repeat; 
    display: flex; 
    align-items: center; 
    padding: 0 6%;
}

.hero-content { color: #fff; max-width: 700px; }
.hero-content h1 { font-size: 40px; line-height: 1.2; margin-bottom: 15px; }
.btn-primary { 
    display: inline-block; 
    background: #2563eb; 
    color: #fff; 
    padding: 14px 28px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: bold;
    margin-top: 20px;
}

/* 4. CONTENT SECTIONS */
section { 
    background: white; 
    margin: 30px auto; 
    padding: 40px; 
    max-width: 1000px; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

h2 { color: #0d47a1; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; }

.features { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px; 
}

.feature-box { 
    background: #f0f4ff; 
    padding: 20px; 
    border-radius: 8px; 
    font-weight: bold; 
    text-align: center; 
    border-bottom: 4px solid #0d47a1; 
}

.section-image { 
    width: 100%; 
    max-width: 800px; 
    height: auto; 
    display: block; 
    margin: 20px auto; 
    border-radius: 10px; 
}

/* 5. FORMS */
.apply-form { max-width: 500px; margin: auto; }
.apply-form input, .apply-form select { 
    width: 100%; 
    padding: 12px; 
    margin: 10px 0; 
    border: 1px solid #ccc; 
    border-radius: 6px; 
}

.apply-form button { 
    width: 100%; 
    padding: 14px; 
    background: #28a745; 
    color: #fff; 
    border: none; 
    border-radius: 6px; 
    font-size: 18px; 
    cursor: pointer; 
    font-weight: bold; 
}

/* 6. FLOATING ELEMENTS */
.floating-whatsapp { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    background-color: #25D366; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); 
    z-index: 10001; 
    transition: transform 0.2s;
}

.floating-whatsapp img { width: 35px; }

.sticky-apply { 
    display: none; 
    position: fixed; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: #ff5722; 
    color: #fff; 
    padding: 12px 30px; 
    border-radius: 30px; 
    font-weight: bold; 
    text-decoration: none; 
    z-index: 9998; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); 
}

/* 7. RESPONSIVE DESIGN - STICKY FIX ONLY */
@media (max-width: 768px) {
    /* Force bars to stay fixed at the top */
    .top-info-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 10000 !important;
        height: 50px !important; /* Keep it consistent */
    }

    nav {
        position: fixed !important;
        top: 50px !important; 
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
    }

    /* Pushes content down so it's not hidden behind bars on mobile */
    body {
        margin-top: 110px !important; 
    }

    /* Keeps sections clean on mobile */
    section {
        width: 95% !important;
        padding: 20px !important;
    }

    /* Ensures the eligibility popup stays on top */
    #xarvisPopup {
        z-index: 100001 !important;
    }
}
/* Table Styling */
.fees-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}
.fees-table th, .fees-table td {
    padding: 15px;
    border: 1px solid #eee;
    text-align: left;
}
.fees-table th {
    background-color: #0d47a1;
    color: white;
}
.fees-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.highlight-row {
    background-color: #e3f2fd !important;
    font-weight: bold;
    color: #0d47a1;
}
/* Why Kyrgyzstan Page - Special Layouts */
.intro-card {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.intro-image-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 35px;
}

.side-quote {
  font-size: 15px;
  color: #333;
  background: #f9fbff;
  padding: 18px 16px;
  border-left: 4px solid #0d47a1;
  border-radius: 8px;
}

/* Feature Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto;
}

.feature-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-bottom: 3px solid #0d47a1;
  font-weight: bold;
}

@media (max-width: 768px) {
  .intro-image-wrap { grid-template-columns: 1fr; }
}
/* University Page - Cards */
#universities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.university-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.university-card:hover {
    transform: translateY(-10px);
}

.university-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Ensures photos look good regardless of size */
}

.university-card h3 {
    padding: 20px 20px 10px;
    color: #0d47a1;
}

.university-card p {
    padding: 0 20px 20px;
    font-size: 15px;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.university-card .btn-primary {
    margin: 0 20px 20px;
    text-align: center;
}
/* Admission Process - Step Styling */
#processSteps {
    max-width: 800px;
    margin: 40px auto;
}

.process-step {
    position: relative;
    padding: 25px;
    margin-bottom: 25px;
    background: #fff;
    border-radius: 10px;
    border-left: 5px solid #0d47a1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.process-step:hover {
    transform: translateX(10px);
    background: #f0f4ff;
}

.process-step h3 {
    color: #0d47a1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.process-step h3::before {
    content: "✓";
    background: #0d47a1;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 14px;
}
.intro-card {
    background: #ffffff;
    padding: 30px;
    margin: 20px auto;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.intro-title {
    color: #0d47a1;
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.intro-divider {
    height: 3px;
    width: 50px;
    background: #ff9800;
    margin-bottom: 20px;
}
.intro-point {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #444;
}
/* Smart WhatsApp Button Styling */
.smart-cta-container {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa; /* Light grey to make the button pop */
    border-radius: 15px;
    margin: 20px auto;
    max-width: 600px;
}

.btn-smart-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 35px;
    background-color: #25D366; /* Official WhatsApp Green */
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* The "Smart" Animation - Gentle Pulse */
@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-smart-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.btn-smart-whatsapp i, .btn-smart-whatsapp img {
    margin-right: 12px;
    width: 25px;
}

/* Action Trigger Text below the button */
.cta-trigger-text {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}
.smart-cta-container {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border-top: 1px solid #eee;
}

.btn-smart-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background-color: #25D366;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    transition: 0.3s transform ease;
}

.btn-smart-whatsapp:hover {
    transform: scale(1.05);
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
/* This turns your bottom links into Highlighted Buttons */
#contact a, 
section > a.btn-primary,
.intro-card + section a {
    display: inline-block;
    background-color: #0d47a1; /* Professional Blue */
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none !important; /* Removes the underline */
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-top: 15px;
}

/* Hover effect for the button */
#contact a:hover, 
section > a.btn-primary:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
/* Highlight for the current page in the navbar */
nav ul li a.active {
    background-color: #0d47a1; /* Darker blue to show it's selected */
    color: #ffd166 !important; /* Yellow text to match your admission pill */
    border-radius: 4px;
    border-bottom: 2px solid #ffd166; /* Subtle underline highlight */
}
/* University Card Styling */
.uni-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    padding: 25px;
    border-left: 5px solid #007bff; /* Accent color */
}

.uni-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.badge {
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge.govt { background: #dc3545; }

.uni-fee-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.uni-fee-table th, .uni-fee-table td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: left;
}

.uni-fee-table th { background: #f8f9fa; }
/* --- THE FORCE FIX: NO OVERLAP --- */
.hero-slider {
    width: 100%;
    height: 450px; 
    overflow: hidden; 
    position: relative;
    background: #000;
}

.slider-track {
    display: flex;
    width: 100%; 
    height: 100%;
    transition: transform 0.5s ease-in-out;
    /* This ensures there is NO space between slides */
    gap: 0;
    margin: 0;
    padding: 0;
}

.slide {
    /* flex: 1 0 100% means: Stay at 100% width, don't shrink */
    flex: 1 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* This ensures padding doesn't push the image size out */
    box-sizing: border-box; 
    margin: 0;
}

@media (max-width: 768px) {
    .hero-slider { height: 350px !important; }
}
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
}
/* HAMBURGER STYLING */
.hamburger-btn {
    display: none; /* Hidden on Desktop */
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    margin-left: 15px;
}
/* HAMBURGER STYLING */
.hamburger-btn {
    display: none; /* Hidden on Desktop */
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    margin-left: 15px;
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 2px 0;
    transition: 0.4s;
}
/* Update this in your CSS */
@media (max-width: 768px) {
    /* 1. Make Hamburger Visible */
    .hamburger-btn {
        display: flex !important; /* Forces it to show on mobile */
        position: absolute;
        right: 15px;
        top: 10px;
        z-index: 10005 !important; 
    }

    /* 2. Fix the Nav Bar */
    nav {
        position: fixed !important;
        top: 50px !important; /* Stay below the info bar */
        left: 0;
        width: 100% !important;
        height: 55px !important;
        background: #1565c0 !important;
        z-index: 10000 !important;
        overflow: visible !important;
    }

    /* 3. The Dropdown Menu */
    nav ul {
        display: none !important; /* Start hidden */
        flex-direction: column !important;
        position: absolute;
        top: 55px;
        left: 0;
        width: 100%;
        background: #1565c0;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    /* 4. Triggered by JavaScript */
        nav ul.show {
        display: flex !important;
    }

    nav ul li { margin: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    nav ul li a { padding: 15px; display: block; color: white !important; }

    /* --- NEW HEADER SHRINK FIXES --- */
    .top-info-bar {
        height: 50px !important;
        padding: 0 10px !important;
    }
    .top-left img {
        height: 28px !important;
    }
    .top-center a {
        font-size: 10px !important;
        padding: 4px 8px !important;
        white-space: nowrap;
    }
    .top-right a {
        font-size: 11px !important;
    }
    /* ------------------------------ */

} /* This is the FINAL bracket that closes the entire @media section */
.apply-form input:disabled, 
.apply-form select:disabled, 
.apply-form button:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
    border: 1px dashed #ccc;
}
.accreditation-bar {
    background: #fff;
    padding: 20px 0;
    margin: 0 auto; /* Remove the standard section margin to stick it closer to hero */
    border-bottom: 1px solid #eee;
}

.accreditation-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    gap: 20px;
}

.acc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.acc-item img {
    height: 50px; /* Uniform height for logos */
    width: auto;
    filter: grayscale(100%); /* Keeps it professional */
    opacity: 0.7;
    transition: 0.3s;
    margin-bottom: 8px;
}

.acc-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.acc-item span {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .acc-item { flex: 0 0 45%; } /* 2 logos per row on mobile */
    .acc-item img { height: 40px; }
}
