@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Caveat:wght@400;700&family=Lobster&family=Monoton&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display+SC:ital,wght@0,400;0,700;1,700&family=Playfair+Display:ital,wght@0,400;0,700;1,700&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+Pro:ital,wght@0,400;0,700;1,700&family=Work+Sans:ital,wght@0,400;0,700;1,700&display=swap');

:root {
    --primary-color: #32CD32;
    /* A vibrant green (LimeGreen) based on the provided image */
    --secondary-color: #1A1A1A;
    /* A dark charcoal/off-black for backgrounds */
    --text-color: #000000;
    /* Black for general text */
    --light-text-color: #FFFFFF;
    /* White for text on dark backgrounds */
    --border-radius: 5px;
    --padding-section: 60px 0;
    --container-width: 1200px;
    --dark-background-form-color: #1A1A1A;
    /* Specific dark background for forms (Off-black) */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #F0F0F0;
    /* Light grey background for the page, based on image */
    overflow-x: hidden;
    /* Prevent horizontal scroll on body */
}

/*
            Utility Class: Container
            - Centers content horizontally.
            - Applies max-width for readability.
            - Adds horizontal padding for spacing on smaller screens.
        */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/*
            Button Styling:
            - Consistent padding, border-radius, and font styles.
            - Transition for smooth hover effects.
            - Different variations for primary, secondary, and submit actions.
        */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    /* Ensure buttons don't have underline if used as links */
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    /* Ensuring button text uses Montserrat */
}

.btn:hover {
    transform: translateY(-2px);
    /* Slight lift effect on hover */
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 5px rgba(50, 205, 50, 0.2);
    /* Subtle shadow for primary buttons, updated rgba */
}

.btn-primary:hover {
    background-color: #28a745;
    /* Slightly darker green on hover */
}

.btn-secondary {
    background-color: #F0F0F0;
    /* Light grey for secondary button background */
    color: var(--text-color);
    border: 1px solid #CCCCCC;
    /* Light grey border */
}

.btn-secondary:hover {
    background-color: #ddd;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    /* Full width for form submit buttons */
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(50, 205, 50, 0.2);
    /* Reverted shadow, updated rgba */
}

.btn-submit:hover {
    background-color: #28a745;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: white;
}

.btn-small:hover {
    background-color: #28a745;
}

/*
            Header Section:
            - Sticky header for persistent navigation.
            - Flexbox for alignment of logo, navigation, and actions.
        */
.main-header {
    background-color: #FFFFFF;
    /* White header background */
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Ensure header stays on top */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Allow items to wrap on smaller screens */
}

.logo img {
    height: 60px;
    /* Fixed height for the logo */
    max-width: 100%;
    /* Ensure logo scales down if needed */
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    /* Vertically align menu items */
}

.main-nav ul li {
    margin: 0 15px;
    /* Adjust horizontal spacing between nav items */
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 5px 0;
    /* Padding for click area */
    font-family: 'Montserrat', sans-serif;
    /* Ensuring nav links use Montserrat */
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

/* Hamburger menu button for mobile */
.hamburger-menu {
    display: none;
    /* Hidden by default, shown on mobile */
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 5px;
}


/*
            Main Content Sections - general spacing
        */
main>section {
    margin-bottom: 20px;
    /* Reinstated margin for gaps between main sections */
}

main>section:last-child {
    margin-bottom: 0;
    /* No margin after the last section before footer */
}


/*
            New Hero Section (From Dreams to Doctor – Your Journey Begins Here)
        */
.new-hero-section {
    background-color: #FFFFFF;
    /* White background */
    padding: 80px 20px 40px 20px;
    /* Adjusted padding based on new image */
    text-align: center;
}

.new-hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    /* Reverted font size */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    /* Ensuring the color matches the screenshot */
}

.new-hero-content h1 span {
    color: var(--primary-color);
    /* Green highlight for "Doctor" */
}

.new-hero-content p.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    /* Reverted font size */
    margin-bottom: 40px;
    color: #555;
    font-weight: 600;
}

.initial-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.initial-buttons .btn {
    min-width: 220px;
}

.initial-buttons .btn-explore {
    background-color: var(--primary-color);
    color: white;
    font-family: Montserrat;
}

.initial-buttons .btn-explore:hover {
    background-color: #28a745;
}

.initial-buttons .btn-mentor {
    background-color: #F0F0F0;
    /* Light grey for mentor button background */
    color: var(--text-color);
    border: 1px solid #CCCCCC;
    /* Light grey border */
    font-family: Montserrat;
}

.initial-buttons .btn-mentor:hover {
    background-color: #e0e0e0;
}

.step-form-container {
    max-width: 800px;
    /* Max width for the form steps */
    margin: 0 auto;
    background-color: #FFFFFF;
    /* White background for the form area */
    padding: 30px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
}

.step-group {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.step-group label {
    font-family: 'Montserrat', sans-serif;
    display: block;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.custom-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #CCCCCC;
    /* Light grey border */
    border-radius: var(--border-radius);
    background-color: white;
    padding: 12px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.custom-select-wrapper i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    padding-right: 25px;
    font-family: 'Montserrat', sans-serif;
}

.custom-select:focus {
    outline: none;
}

.custom-select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    color: #666;
    pointer-events: none;
}

/* Range slider styling for Step 2 */
.range-slider-container {
    width: 100%;
    padding: 10px 0;
}

.range-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    transition: background 450ms ease-in;
    margin: 10px 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.4);
    margin-top: -6px;
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.4);
}

.range-slider::-webkit-slider-runnable-track {
    height: 8px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) var(--fill-percentage, 0%), #e0e0e0 var(--fill-percentage, 0%), #e0e0e0 100%);
    border-radius: 5px;
}

.range-slider::-moz-range-track {
    height: 8px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) var(--fill-percentage, 0%), #e0e0e0 var(--fill-percentage, 0%), #e0e0e0 100%);
    border-radius: 5px;
}

.budget-labels {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    font-weight: 600;
}

.step-form-container .btn-submit-form {
    background-color: #000000;
    /* Reverted to match image (now Black) */
    color: #FFFFFF;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: auto;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.step-form-container .btn-submit-form:hover {
    background-color: #000;
    /* Darker on hover */
}

/* Loading Spinner for AI button */
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*
            New Section: "Why RK Overseas is Trusted"
        */
.trusted-section {
    background-color: #FFFFFF;
    /* White background */
    padding: var(--padding-section);
    text-align: center;
    margin-bottom: 20px;
}

.trusted-section h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.trusted-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
    align-items: start;
}

.feature-item {
    background-color: #FFFFFF;
    /* White background */
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #F0F0F0;
    /* Light grey border */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-item span {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

/*
            Students Like You Section:
            - Showcases a grid of images, presumably of students or campus life.
            - Simple image gallery layout with responsive grid.
        */
.students-like-you {
    background-color: #F8F8F8;
    /* Light grey background */
    padding-top: var(--padding-section);
    padding-bottom: var(--padding-section);
    margin-bottom: 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-items: center;
    align-items: center;
}

.image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ddd;
}

.image-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/*
            New Section: "Are you looking for any other Universities?"
            It's a dark section with two dropdowns and a search button.
        */
.other-universities-search {
    background-color: var(--secondary-color);
    /* Dark background */
    padding: var(--padding-section);
    text-align: center;
    color: var(--light-text-color);
    margin-bottom: 20px;
}

.other-universities-search h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.other-universities-search .input-fields-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.other-universities-search .input-group {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    /* Constrain width for dropdowns */
    text-align: left;
}

.other-universities-search .input-group label {
    font-family: 'Montserrat', sans-serif;
    color: var(--light-text-color);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.other-universities-search .custom-select-wrapper {
    background-color: #1A1A1A;
    /* Darker background for dropdown (Off-black) */
    border: 1px solid #CCCCCC;
    /* Light grey border */
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.other-universities-search .custom-select-wrapper i {
    color: var(--light-text-color);
}

.other-universities-search .custom-select {
    color: var(--light-text-color);
    font-family: 'Montserrat', sans-serif;
}

.other-universities-search .custom-select option {
    background-color: #1A1A1A;
    /* Ensure options are readable on dark dropdown (Off-black) */
    color: var(--light-text-color);
    font-family: 'Montserrat', sans-serif;
}

.other-universities-search .btn-search {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(50, 205, 50, 0.3);
    font-family: 'Montserrat', sans-serif;
}

.other-universities-search .btn-search:hover {
    background-color: #28a745;
}


/*
            Enquiry Form Sections (Dark Background):
            - Common styles for sections with a dark background.
            - Styling for the form container and individual form elements.
        */
.dark-background {
    background-color: var(--secondary-color);
    /* Dark background */
    color: var(--light-text-color);
    padding: var(--padding-section);
    margin-bottom: 20px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #1A1A1A;
    /* Slightly lighter dark background for the form itself (Off-black) */
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.counselling-form .form-group {
    margin-bottom: 20px;
}

.counselling-form label {
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--light-text-color);
}

.counselling-form input[type="text"],
.counselling-form input[type="email"],
.counselling-form input[type="tel"],
.counselling-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #CCCCCC;
    /* Light grey border */
    border-radius: var(--border-radius);
    background-color: #FFFFFF;
    /* White background */
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.counselling-form input:focus,
.counselling-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.3);
    outline: none;
}

.counselling-form input::placeholder {
    color: #aaa;
    font-family: 'Montserrat', sans-serif;
}

/*
            Top Universities Section:
            - Displayed as a grid for side-by-side alignment.
        */
.top-universities {
    background-color: #FFFFFF;
    /* White background */
    text-align: center;
    padding: var(--padding-section);
    margin-bottom: 20px;
}

.universities-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Responsive grid */
    gap: 30px;
    /* Gap between grid items */
    justify-items: center;
    /* Center items horizontally within their grid cells */
    align-items: stretch;
    /* Make cards stretch to equal height */
    padding: 20px 0;
    /* Add vertical padding for content */
}

/* Hide carousel navigation buttons for grid layout */
.carousel-nav {
    display: none;
}

.university-card {
    width: 100%;
    /* Take full width of grid cell */
    background-color: #FFFFFF;
    /* White background */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F0F0F0;
    /* Light grey border */
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Styling for the most recommended university card */
.university-card.most-recommended {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.5);
    transform: scale(1.02);
}

.university-card.most-recommended:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.7);
}


.university-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.university-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 700;
}

.university-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.0rem;
    /* Adjusted to 1.0rem for consistency */
    color: #666;
}


/*
            Connect with Indian Students Section:
            - Still a carousel, but ensuring proper alignment and responsiveness.
        */
.indian-students-connect {
    background-color: #FFFFFF;
    /* White background */
    text-align: center;
    padding-bottom: var(--padding-section);
    margin-bottom: 20px;
}

.student-profiles-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Ensures content doesn't break out */
    padding: 0 50px;
    /* Space for arrows */
}

.student-profiles-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    /* Align items to start for scrolling */
    padding: 20px 0;
    /* Vertical padding for content */
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    scroll-padding-right: 20px;
    min-width: 0;
    margin: 0 auto;
    /* Center the flex container if there's extra space */
    width: fit-content;
    /* Allow content to define width for scrolling */
    max-width: 100%;
    /* Prevent it from overflowing its parent */
}

/* Custom scrollbar for WebKit browsers */
.student-profiles-carousel::-webkit-scrollbar {
    height: 10px;
}

.student-profiles-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.student-profiles-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.student-profiles-carousel::-webkit-scrollbar-thumb:hover {
    background: #28a745;
}

.student-profile-card {
    flex: 0 0 260px;
    /* Fixed width for each card, prevents shrinking */
    background-color: #FFFFFF;
    /* White background */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F0F0F0;
    /* Light grey border */
}

.student-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.student-profile-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(50, 205, 50, 0.2);
}

.student-profile-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 700;
}

.student-profile-card .university-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    min-height: 36px;
    /* Ensure consistent height for university name */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.student-profile-card .location-info {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
}

.student-profile-card .location-info .flag-icon {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.student-profile-card .card-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.student-profile-card .btn-message {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
}

.student-profile-card .btn-message:hover {
    background-color: #28a745;
}

.student-profile-card .btn-book-call {
    background-color: #F0F0F0;
    /* Light grey for 'Book a call' button */
    color: var(--text-color);
    padding: 10px 0;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #ddd;
}

.student-profile-card .btn-book-call:hover {
    background-color: #e0e0e0;
}

.student-carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.student-carousel-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.student-carousel-nav-btn.left {
    left: 0;
}

.student-carousel-nav-btn.right {
    right: 0;
}


/*
            Enquiry Form Sections (Dark Background):
            - Common styles for sections with a dark background.
            - Styling for the form container and individual form elements.
        */
.dark-background {
    background-color: var(--secondary-color);
    /* Dark background */
    color: var(--light-text-color);
    padding: var(--padding-section);
    margin-bottom: 20px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #1A1A1A;
    /* Slightly lighter dark background for the form itself (Off-black) */
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.counselling-form .form-group {
    margin-bottom: 20px;
}

.counselling-form label {
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--light-text-color);
}

.counselling-form input[type="text"],
.counselling-form input[type="email"],
.counselling-form input[type="tel"],
.counselling-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #CCCCCC;
    /* Light grey border */
    border-radius: var(--border-radius);
    background-color: #FFFFFF;
    /* White background */
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.counselling-form input:focus,
.counselling-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.3);
    outline: none;
}

.counselling-form input::placeholder {
    color: #aaa;
    font-family: 'Montserrat', sans-serif;
}

/*
            New Section: Founders Section
        */
.founders-section {
    background-color: #FFFFFF;
    /* White background */
    padding: var(--padding-section);
    text-align: center;
    margin-bottom: 20px;
}

.founders-section h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 50px;
}

.founder-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.founder-card {
    background-color: #FFFFFF;
    /* White background */
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 350px;
    width: 100%;
    border: 1px solid #F0F0F0;
    /* Light grey border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.founder-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 6px rgba(50, 205, 50, 0.3);
}

.founder-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.founder-card p.founder-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
}

.founder-card .founder-bio {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.founder-card .founder-social-links a {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.founder-card .founder-social-links a:hover {
    color: #28a745;
}

/*
            Learn More About MBBS Abroad Section:
            - Features video preview cards with titles, descriptions, and "Watch Now" buttons.
            - Simulates a video library or resource section.
        */
.mbbs-learn-more {
    background-color: #F0F0F0;
    /* Light grey background */
    padding: var(--padding-section);
    margin-bottom: 20px;
}

.video-previews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: start;
}

.video-card {
    background-color: #FFFFFF;
    /* White background */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F0F0F0;
    /* Light grey border */
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.video-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.video-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 700;
}

.video-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
}

/*
            Contact Page Section
        */
.contact-page-section {
    background-color: #FFFFFF;
    /* White background */
    padding: var(--padding-section);
    margin-bottom: 20px;
}

.contact-page-title {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.contact-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.contact-form-column,
.contact-info-column {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: #FFFFFF;
    /* White background */
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #F0F0F0;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-page-form .form-group {
    margin-bottom: 20px;
}

.contact-page-form label {
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-page-form input[type="text"],
.contact-page-form input[type="email"],
.contact-page-form input[type="tel"],
.contact-page-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #CCCCCC;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    resize: vertical;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.3);
}

.contact-page-form .btn-submit {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.contact-info-block .contact-item,
.location-info-block .address-item {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}

.contact-info-block .contact-item:last-child,
.location-info-block .address-item:last-child {
    margin-bottom: 0;
}

.contact-info-block i,
.location-info-block i {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.location-info-block h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: left;
}

.map-container {
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.map-container iframe {
    display: block;
}


/*
            Footer Section:
            - Dark background with light text.
            - Flexbox for copyright and social links.
        */
.main-footer {
    background-color: #000000;
    /* Black background for footer */
    color: var(--light-text-color);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.main-footer p {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0;
    flex-grow: 1;
}

.main-footer .social-links a {
    color: var(--light-text-color);
    font-size: 1.8rem;
    margin: 0 12px;
    transition: color 0.3s ease;
}

.main-footer .social-links a:hover {
    color: var(--primary-color);
}

/*
            Modal for AI Recommendations
        */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #FFFFFF;
    /* White background */
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 1px solid #F0F0F0;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #333;
}

.modal-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.recommendation-list,
.visa-tips-content {
    list-style: none;
    padding: 0;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #F8F8F8;
    /* Light grey background */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    border: 1px solid #F0F0F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recommendation-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.recommendation-item .text-content {
    flex-grow: 1;
}

.recommendation-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 700;
}

.recommendation-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
}

.recommendation-item p strong {
    color: var(--primary-color);
}

/* Styles for Visa Interview Modal */
#visaInterviewModal .modal-content {
    padding: 40px;
}

#visaInterviewModal textarea {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #CCCCCC;
    border-radius: var(--border-radius);
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
}

#visaInterviewModal textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.3);
}

#visaInterviewModal .visa-tips-output {
    font-family: 'Montserrat', sans-serif;
    background-color: #F0F0F0;
    /* Light grey for output background */
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    min-height: 100px;
    font-size: 0.95rem;
    color: #333;
    text-align: left;
    overflow-y: auto;
    max-height: 200px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Styles for Essay/SOP Assistant Modal */
#essaySOPModal .modal-content {
    padding: 40px;
}

#essaySOPModal .mode-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

#essaySOPModal .mode-selection button {
    background-color: #F0F0F0;
    color: var(--text-color);
    border: 1px solid #CCCCCC;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#essaySOPModal .mode-selection button.active {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

#essaySOPModal textarea {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #CCCCCC;
    border-radius: var(--border-radius);
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
}

#essaySOPModal textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.3);
}

#essaySOPModal .essay-sop-output {
    font-family: 'Montserrat', sans-serif;
    background-color: #F0F0F0;
    /* Light grey for output background */
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    min-height: 100px;
    font-size: 0.95rem;
    color: #333;
    text-align: left;
    overflow-y: auto;
    max-height: 250px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Styles for Pre-Departure Checklist Modal */
#preDepartureChecklistModal .modal-content {
    padding: 40px;
}

#preDepartureChecklistModal .input-group {
    margin-bottom: 20px;
    text-align: left;
}

#preDepartureChecklistModal label {
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

#preDepartureChecklistModal input[type="text"],
#preDepartureChecklistModal textarea {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    padding: 15px;
    border: 1px solid #CCCCCC;
    border-radius: var(--border-radius);
    font-size: 1rem;
    resize: vertical;
    min-height: 50px;
}

#preDepartureChecklistModal textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.3);
}

#preDepartureChecklistModal .checklist-output {
    font-family: 'Montserrat', sans-serif;
    background-color: #F0F0F0;
    /* Light grey for output background */
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    min-height: 100px;
    font-size: 0.95rem;
    color: #333;
    text-align: left;
    overflow-y: auto;
    max-height: 300px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: pre-wrap;
}

/* Calculator page styles */
.calculator-page {
    background-color: #FFFFFF;
    /* White background */
    padding: var(--padding-section);
    text-align: center;
}

.calculator-page h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 50px;
}

.calculator-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.calculator-form-grid .input-group {
    text-align: left;
    position: relative;
}

.calculator-form-grid label {
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.calculator-form-grid input[type="number"] {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #CCCCCC;
    border-radius: var(--border-radius);
    font-size: 1rem;
    padding-left: 30px;
}

.calculator-form-grid input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.3);
}

/* Rupee symbol styling */
.calculator-form-grid .input-group::before {
    content: '₹';
    position: absolute;
    left: 15px;
    top: 48px;
    color: #666;
    font-size: 1rem;
    pointer-events: none;
}

.calculator-form-grid span {
    font-family: 'Montserrat', sans-serif;
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* FMGE page styles */
.fmge-page {
    background-color: #FFFFFF;
    /* White background */
    padding: var(--padding-section);
    text-align: center;
}

.fmge-page h2 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 50px;
}

.fmge-search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.fmge-search-bar input[type="text"] {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #CCCCCC;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.fmge-search-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.3);
}

.fmge-search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.fmge-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.fmge-filters .input-group {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.fmge-filters label {
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.fmge-filters select {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #CCCCCC;
    border-radius: var(--border-radius);
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.9-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.8-9.3-5.4-12.9z%22%2F%3E%3C%2Fsvg%3E') no-repeat right 15px center;
    background-size: 10px;
}

.fmge-results {
    margin-top: 40px;
}

.fmge-results .results-legend {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #555;
}

.fmge-results .legend-item {
    display: flex;
    align-items: center;
}

.fmge-results .color-box {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-right: 8px;
}

.fmge-results .total-students {
    background-color: var(--primary-color);
}

.fmge-results .qualified-students {
    background-color: var(--secondary-color);
}

.fmge-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    text-align: left;
}

.fmge-card {
    background-color: #FFFFFF;
    /* White background */
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #F0F0F0;
}

.fmge-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.fmge-card .country-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.fmge-card .data-row {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.fmge-card .data-row span:first-child {
    font-weight: 600;
    color: #333;
}

.fmge-card .data-row span:last-child {
    color: #555;
}

.fmge-card .progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
}

.fmge-card .progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    width: var(--progress-percentage, 0%);
}

.fmge-card .pass-percentage {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
}

.fmge-card .year-data {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #777;
    margin-top: 10px;
    text-align: left;
}

.fmge-card .year-data .year-bar-container {
    width: 100%;
    height: 5px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.fmge-card .year-data .year-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: var(--year-pass-percentage, 0%);
    border-radius: 3px;
}

.fmge-card .year-data .year-bar.failed {
    background-color: #F0F0F0;
    /* Light grey for failed */
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    background-color: #ddd;
    color: #555;
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.pagination button.active,
.pagination button:hover {
    background-color: var(--primary-color);
    color: white;
}

.fmge-notes {
    font-family: 'Montserrat', sans-serif;
    margin-top: 50px;
    text-align: left;
    font-size: 0.85rem;
    color: #777;
    padding: 20px;
    background-color: #F8F8F8;
    border-radius: var(--border-radius);
    border: 1px solid #F0F0F0;
}

.fmge-notes p {
    margin-bottom: 10px;
}

.fmge-notes p:last-child {
    margin-bottom: 0;
}

.fmge-notes a {
    color: var(--primary-color);
    text-decoration: none;
}

.fmge-notes a:hover {
    text-decoration: underline;
}


/*
            Responsive Design (Media Queries):
            - Adjusts layout and font sizes for different screen widths.
            - Aims to provide a good experience on mobile, tablet, and desktop.
        */
@media (max-width: 992px) {
    .new-hero-section {
        margin-bottom: 20px;
    }

    .trusted-section {
        margin-bottom: 20px;
    }

    .students-like-you {
        margin-bottom: 20px;
    }

    .other-universities-search {
        margin-bottom: 20px;
    }

    .top-universities {
        margin-bottom: 20px;
    }

    .founders-section {
        margin-bottom: 20px;
    }

    .indian-students-connect {
        margin-bottom: 20px;
    }

    .dark-background {
        margin-bottom: 20px;
    }

    .mbbs-learn-more {
        margin-bottom: 20px;
    }

    .contact-page-section {
        margin-bottom: 20px;
    }

    .calculator-page {
        margin-bottom: 20px;
    }

    .fmge-page {
        margin-bottom: 20px;
    }


    .new-hero-content h1 {
        font-size: 3rem;
    }

    .new-hero-content p.subtitle {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    .feature-item span {
        font-size: 1.05rem;
    }

    .university-card,
    .student-profile-card,
    .video-card {
        padding: 20px;
    }

    .university-card h4,
    .video-card h4 {
        font-size: 1.3rem;
    }

    .founder-card h4 {
        font-size: 1.5rem;
    }

    .founder-card p.founder-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        overflow-y: auto;
        background-color: #FFFFFF;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        padding: 0;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
    }

    .main-nav.active {
        display: flex;
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
        align-items: flex-start;
        list-style: none;
    }

    .main-nav ul li {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        border-bottom: 1px solid #F0F0F0;
    }

    .main-nav ul li:first-child {
        padding-top: 20px;
    }


    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        padding: 0;
        display: block;
        font-size: 1.1rem;
    }

    .main-nav .contact-info,
    .main-nav .location-info {
        display: none;
    }


    .header-actions {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .new-hero-content h1 {
        font-size: 2.8rem;
    }

    .new-hero-content p.subtitle {
        font-size: 1rem;
    }

    .initial-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .step-form-container {
        padding: 25px;
    }

    .form-steps {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .step-group label {
        font-size: 0.9rem;
    }

    .custom-select-wrapper,
    #visaInterviewModal textarea,
    #essaySOPModal textarea,
    #preDepartureChecklistModal input[type="text"],
    #preDepartureChecklistModal textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    h3 {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }

    .feature-item {
        padding: 20px;
        gap: 10px;
    }

    .feature-item i {
        font-size: 1.8rem;
    }

    .feature-item span {
        font-size: 1rem;
    }

    .image-grid,
    .video-previews-grid {
        gap: 20px;
    }

    .image-grid img {
        height: 180px;
    }

    .other-universities-search .input-fields-row {
        gap: 20px;
        margin-bottom: 25px;
    }

    .other-universities-search .custom-select-wrapper {
        padding: 8px 10px;
        font-size: 0.95rem;
    }

    .other-universities-search .custom-select-wrapper i {
        font-size: 1rem;
    }

    .universities-carousel,
    .student-profiles-carousel {
        gap: 20px;
        padding: 15px 0;
    }

    .university-card {
        width: 280px;
        padding: 20px;
    }

    .student-profile-card {
        width: 220px;
        padding: 20px;
    }

    .student-profile-card img {
        width: 80px;
        height: 80px;
    }

    .student-profile-card h4 {
        font-size: 1.1rem;
    }

    .student-profile-card .university-name,
    .student-profile-card .location-info {
        font-size: 0.85rem;
    }

    .student-profile-card .card-buttons .btn-small {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .carousel-nav .nav-btn,
    .student-carousel-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .student-profiles-carousel-wrapper {
        padding: 0 30px;
    }


    .form-container {
        padding: 30px;
    }

    .counselling-form label {
        font-size: 1rem;
    }

    .counselling-form input[type="text"],
    .counselling-form input[type="email"],
    .counselling-form input[type="tel"],
    .counselling-form select {
        padding: 12px;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .modal-content {
        width: 90%;
        padding: 25px;
    }

    .modal-content h3 {
        font-size: 1.6rem;
    }

    .recommendation-item,
    .visa-tips-output,
    .essay-sop-output,
    .checklist-output {
        padding: 15px;
        font-size: 0.9rem;
    }

    #visaInterviewModal textarea,
    #essaySOPModal textarea {
        min-height: 120px;
    }

    .founder-card {
        padding: 25px;
        max-width: 300px;
    }

    .founder-card img {
        width: 120px;
        height: 120px;
    }

    .founder-card h4 {
        font-size: 1.4rem;
    }

    .founder-card p.founder-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .new-hero-content h1 {
        font-size: 2.2rem;
    }

    .new-hero-content p.subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .initial-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 40px;
    }

    .initial-buttons .btn {
        min-width: unset;
        width: 100%;
    }

    .step-form-container {
        padding: 20px;
    }

    .form-steps {
        gap: 15px;
        margin-bottom: 25px;
    }

    .step-group label {
        font-size: 0.85rem;
    }

    .custom-select-wrapper,
    #visaInterviewModal textarea,
    #essaySOPModal textarea,
    #preDepartureChecklistModal input[type="text"],
    #preDepartureChecklistModal textarea {
        padding: 10px;
        font-size: 0.85rem;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    h3 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .feature-item {
        padding: 15px;
    }

    .feature-item i {
        font-size: 1.6rem;
    }

    .feature-item span {
        font-size: 0.9rem;
    }

    .image-grid,
    .video-previews-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .image-grid img {
        height: 160px;
    }

    .other-universities-search .input-fields-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 25px;
    }

    .other-universities-search .input-group {
        width: 100%;
        max-width: 300px;
    }

    .other-universities-search .btn-search {
        width: 100%;
        max-width: 300px;
    }

    .universities-carousel,
    .student-profiles-carousel {
        gap: 15px;
        padding: 10px 0;
    }

    .university-card {
        width: 250px;
        padding: 15px;
    }

    .student-profile-card {
        width: 200px;
        padding: 15px;
    }

    .student-profile-card img {
        width: 70px;
        height: 70px;
    }

    .student-profile-card h4 {
        font-size: 1rem;
    }

    .student-profile-card .university-name,
    .student-profile-card .location-info {
        font-size: 0.8rem;
    }

    .student-profile-card .card-buttons .btn-small {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .carousel-nav .nav-btn,
    .student-carousel-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .student-profiles-carousel-wrapper {
        padding: 0 15px;
    }

    .form-container {
        padding: 25px;
    }

    .counselling-form label {
        font-size: 0.9rem;
    }

    .counselling-form input[type="text"],
    .counselling-form input[type="email"],
    .counselling-form input[type="tel"],
    .counselling-form select {
        padding: 10px;
        font-size: 0.85rem;
    }

    .btn-submit {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-content h3 {
        font-size: 1.4rem;
    }

    .recommendation-item,
    .visa-tips-output,
    .essay-sop-output,
    .checklist-output {
        padding: 10px;
        font-size: 0.85rem;
    }

    #visaInterviewModal textarea,
    #essaySOPModal textarea {
        min-height: 100px;
    }
}