:root {
    --primary-blue: #273474;
    --accent-blue: #14396C;
    --accent-orange: #32C035; /* This will be used for 'primary-orange' and similar */
    --bg-white: #FFFFFF;
    --bg-light-grey: #F8F9FA;
    --section-blue-bg: #dcedff; /* Keeping for possible future use, but aiming for light */
    --section-green-bg: #ebf9eb; /* Keeping for possible future use, but aiming for light */
    --footer-bg: #F0F2F5; /* Lighter footer background */
    --text-primary: #273474; /* Dark text for main content */
    --text-secondary: #273474; /* Slightly lighter dark text for secondary content */
    --border-color: #DEE2E6;
    --header-height: 75px;
    --font-family-poppins: 'Poppins', sans-serif;

    /* Mappings to original variables - adjusted for light theme */
    --primary-black: var(--text-primary); /* Dark text for primary black roles */
    --secondary-black: var(--footer-bg); /* Lighter footer background for secondary black roles */
    --primary-orange: var(--accent-orange); /* Green for primary orange roles */
    --secondary-orange: #28A745; /* Slightly darker green for secondary orange roles (like hover) */
    --text-light: var(--text-primary); /* Dark text on light backgrounds */
    --text-dark: var(--text-secondary); /* Secondary text color on light backgrounds */
    --card-background: var(--bg-white); /* White for card backgrounds */

    /* Additional variables from new root to prevent breaking if used elsewhere */
    --secondary-blue: var(--accent-blue);
    --primary-green: var(--accent-orange);
    --accent-green: var(--accent-orange);
    --background-light: var(--bg-light-grey); /* Overall light background */
    --background-dark: var(--footer-bg); /* Footer and similar sections */
    
    --section-padding: 80px 0; /* Keep original section padding */
} 

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light); /* Overall light background */
    color: var(--primary-blue); /* Dark text for the body */
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-orange);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-orange);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--bg-white); /* White text on primary buttons */
}

.btn-primary:hover {
    background-color: var(--secondary-orange);
    color: var(--bg-white); /* White text on primary buttons hover */
}

/* Header */
.main-header {
    background-color: var(--bg-white); /* White background for the header */
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for a light header */
    border-bottom: 1px solid #e0e0e0; /* Subtle bottom border */
    height: var(--header-height); /* Fixed header height */
    display: flex;
    align-items: center;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Ensure container takes full width of header */
}

.main-header .logo {
    display: flex;
    align-items: center;
}

.main-header .logo img {
    height: 40px; /* Adjust as needed for your logo */
    margin-right: 10px;
}

.main-header .logo .logo-text {
    color: var(--primary-black); /* Darker text for logo on light background */
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-black); /* Dark color for toggle on light header */
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Nav - active state (light background overlay) */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: var(--primary-black); /* Dark color for active toggle on light overlay */
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: var(--primary-black); /* Dark color for active toggle on light overlay */
}

/* Main Navigation (Desktop Styles by default) */
.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    position: relative;
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--primary-black); /* Dark text for navigation links */
    font-weight: 600;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
    text-decoration: none;
}

.main-nav ul li a:hover {
    color: var(--primary-orange); /* Orange hover effect */
}

.main-nav ul li a i {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

/* Register Button (Desktop) */
.main-header .register-btn {
    background-color: var(--primary-orange); /* Green button color */
    color: var(--bg-white); /* White text for the button */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-left: 30px; /* Space from last nav item */
}

.main-header .register-btn:hover {
    background-color: var(--secondary-orange); /* Slightly darker green on hover */
}

/* Dropdown Menu (Desktop) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white); /* White background for dropdown */
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Lighter shadow for dropdown */
    border-top: 3px solid var(--primary-orange); /* Orange accent border */
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a,
.dropdown-menu li span {
    padding: 12px 20px;
    color: var(--primary-black); /* Dark text for dropdown items */
    display: block;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.dropdown-menu li a:hover,
.dropdown-menu li span:hover {
    background-color: var(--bg-light-grey); /* Light grey hover background for dropdown items */
    color: var(--primary-orange); /* Orange text on hover */
}

.dropdown-menu li span i {
    margin-right: 10px;
    color: var(--primary-orange); /* Orange icon in dropdown */
}

.main-nav ul li .dropdown-menu {
    /* For desktop, ensure dropdown items stack */
    display: block;
}
.dropdown-menu li {
    display: block;
}


/* Hero Section Styling */
.hero-section {
    width: 100%;
    background-color: var(--background-light); /* Light background for carousel container */
    padding: 10px 0; /* Add some padding to the hero section */
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align items vertically in the middle */
    gap: 30px; /* Space between carousel and search */
    min-height: 550px; /* Set a minimum height for the hero container */
}

.carousel-wrapper {
    position: relative;
    width: 50%; /* Allocate more space to the carousel */
    height: 550px; /* Fixed height for the carousel */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--bg-white);
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(80%);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary-blue); /* White text on carousel captions */
    max-width: 90%; /* Adjust max-width as needed */
    padding: 20px;
}

.carousel-caption h2 {
    font-size: 2em; /* Slightly smaller for better fit */
    margin-bottom: 15px;
   
}

.carousel-caption p {
    font-size: 1.1em; /* Slightly smaller */
    margin-bottom: 25px;
    color: var(--primary-blue);
    
}

/* Hero Search Section Styling */
.hero-search-section {
    width: 50%; /* Remaining space for search */
    height: 550px; /* Match height of carousel */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-white); /* White background for search section */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hero-search-section h3 {
    font-size: 2em;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.search-toggle-buttons {
    display: flex;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.search-toggle-btn {
    padding: 12px 25px;
    border: none;
    background-color: var(--bg-light-grey);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.search-toggle-btn.active {
    background-color: var(--primary-orange);
    color: var(--bg-white);
}

.search-input-group {
    display: flex;
    width: 100%; /* Full width within its container */
    max-width: 400px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.search-input {
    flex-grow: 1;
    padding: 14px 15px;
    border: none;
    outline: none;
    font-size: 0.8em;
    color: var(--text-primary);
}

.search-btn {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: var(--secondary-orange);
}

/* Carousel Navigation */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: var(--bg-white);
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.6);
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5); /* Lighter dots for carousel on image */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--primary-orange);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* About GeM Portal Section */
.about-gem {
    background-color: var(--bg-white); /* White background for about section */
    padding: var(--section-padding);
}

.about-gem-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.about-gem-image {
    flex: 1;
    min-width: 300px; /* Minimum width before stacking */
}

.about-gem-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Lighter shadow */
}

.about-gem-text {
    flex: 2;
    min-width: 350px; /* Minimum width before stacking */
}

.about-gem-text h2 {
    font-size: 2.5em;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-gem-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-secondary); /* Dark text */
}

/* GeM Registration Section */
.gem-registration {
    background-color: var(--background-light); /* Light background for registration section */
    padding: var(--section-padding);
    text-align: center;
}

.gem-registration h2 {
    font-size: 2.8em;
    color: var(--text-primary); /* Dark text */
    margin-bottom: 50px;
}

.registration-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.benefit-card {
    background-color: var(--bg-white); /* White background for benefit cards */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Lighter shadow */
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.benefit-card:hover {
    transform: translateY(-10px);
    background-color: var(--bg-white); /* Keep white on hover or slightly off-white */
    border-color: var(--primary-orange);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.benefit-card i {
    font-size: 3em;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.5em;
    color: var(--text-primary); /* Dark text */
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-secondary); /* Dark text */
    font-size: 0.95em;
}

/* Process Steps Section */
.process-steps {
    background-color: var(--bg-white); /* White background for process steps */
    padding: var(--section-padding);
    text-align: center;
}

.process-steps h2 {
    font-size: 2.8em;
    color: var(--text-primary);
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background-color: var(--bg-light-grey); /* Light grey background for step cards */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Very light shadow */
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--bg-white);
    background-color: var(--primary-orange);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    transition: background-color 0.3s ease;
}

.step-card:hover .step-icon {
    background-color: var(--secondary-orange);
}

.step-card h3 {
    font-size: 1.5em;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95em;
}


/* FAQ Section */
.faq-section {
    background-color: var(--background-light); /* Light background for FAQ */
    padding: var(--section-padding);
}

.faq-section h2 {
    font-size: 2.8em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 50px;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    background-color: var(--bg-white);
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover, .faq-question.active {
    background-color: var(--bg-light-grey);
    color: var(--primary-orange);
}

.faq-question::after {
    content: '\25BC'; /* Unicode for down arrow */
    font-size: 0.8em;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(-180deg); /* Up arrow when active */
}

.faq-answer {
    padding: 0 25px;
    background-color: var(--bg-light-grey);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding: 15px 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer.active {
    max-height: 200px; /* Adjust based on expected content */
    padding-bottom: 20px;
}

.cta-section {
    padding: var(--section-padding);
    background-color: var(--section-green-bg); /* Green background for CTA */
    text-align: center;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 30px 30px 30px 30px;
    margin: 30px auto;
    width: 1000px;
}

.cta-title {
    font-size: 2.8em;
    color: var(--primary-blue); /* Primary blue for CTA title */
    margin-bottom: 25px;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.1em;
    color: var(--text-primary); /* Dark text for subtitle */
    max-width: 900px;
    margin: 0 auto 40px;
}


/* Footer */
.main-footer {
    background-color: var(--footer-bg); /* Lighter footer background */
    color: var(--text-dark); /* Dark text for footer */
    padding: 60px 0 20px;
    font-size: 0.9em;
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    /* border-bottom: 1px solid var(--border-color); */
    padding-bottom: 0px;
}

.footer-col h3 {
    color: var(--text-primary); /* Dark text for footer headings */
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-orange);
    margin-top: 10px;
}

.footer-col ul {
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary); /* Secondary dark text for footer links */
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-orange);
}

.footer-col p {
    margin-bottom: 10px;
    color: var(--text-secondary); /* Secondary dark text for footer paragraphs */
}

.footer-col p i {
    margin-right: 10px;
    color: var(--primary-orange);
}

.footer-about .social-links {
    margin-top: 20px;
}

.footer-about .social-links a {
    display: inline-block;
    color: var(--text-secondary); /* Secondary dark text for social links */
    font-size: 1.2em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-about .social-links a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary); /* Secondary dark text for copyright */
}

/* Modal Styling */
.form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly lighter overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.form-modal {
    background-color: var(--card-background); /* White modal background */
    padding: 40px;
    border-radius: 10px;
    position: relative;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Lighter shadow */
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.form-modal-overlay.active .form-modal {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal-btn:hover {
    color: var(--primary-orange);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 2.2em;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-dark);
    font-size: 1em;
}

.inquiry-form .form-group {
    margin-bottom: 20px;
}

.inquiry-form label {
    display: block;
    font-size: 1em;
    color: var(--text-primary); /* Dark text for labels */
    margin-bottom: 8px;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-light-grey); /* Light background for inputs */
    color: var(--text-primary); /* Dark text for input values */
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.inquiry-form input[type="text"]:focus,
.inquiry-form input[type="email"]:focus,
.inquiry-form input[type="tel"]:focus {
    border-color: var(--primary-orange);
    outline: none;
    box-shadow: 0 0 0 2px rgba(50, 192, 53, 0.3); /* Green shadow for focus */
}

.inquiry-form .submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    margin-top: 20px;
}

/* Larger devices (Desktops and large laptops, >= 1200px) */
@media (min-width: 1200px) {
    .container {
        padding: 0; /* Remove horizontal padding on very large screens if content allows */
    }
}


/* Medium to Large devices (Laptops, 992px to 1199px) */
@media (max-width: 1199px) {
    .main-nav ul li {
        margin-left: 20px; /* Slightly reduce spacing */
    }

    .main-header .register-btn {
        margin-left: 20px;
    }

    .carousel-caption h2 {
        font-size: 2.5em;
    }

    .carousel-caption p {
        font-size: 1em;
    }
}


/* Tablet and Smaller Laptop devices (768px to 991px) */
@media (max-width: 991px) {
    /* Header & Navigation */
    .main-header .container {
        flex-wrap: nowrap; /* Prevent logo and toggle from wrapping */
        justify-content: space-between; /* Space out logo and toggle */
    }

    .main-header .logo {
        margin-bottom: 0; /* Remove margin-bottom */
        width: auto; /* Allow logo to take natural width */
    }

    .nav-toggle {
        display: block; /* Show hamburger icon */
        order: 2; /* Position after logo in flex order */
    }

    .main-nav {
        /* Mobile menu specific styles */
        position: fixed;
        top: var(--header-height);
            left: 0;
    width: 100%;
    height: calc(100% - var(--header-height)); /* Full height below header */
    background-color: var(--bg-white); /* White background for mobile nav */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align items to the top */
    padding-top: 20px;
    transform: translateX(100%); /* Start off-screen to the right */
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto; /* Allow scrolling for long menus */
    display: flex; /* Keep flex for column arrangement */
    }

    .main-nav.active {
        transform: translateX(0); /* Slide in from the right */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0; /* Remove horizontal padding */
        margin-top: 20px; /* Space from top of nav */
    }

    .main-nav ul li {
        margin: 0; /* Remove horizontal margins */
        width: 100%; /* Full width for each list item */
        border-bottom: 1px solid var(--border-color); /* Separator */
        text-align: center; /* Center text */
    }

    .main-nav ul li:last-child {
        border-bottom: none; /* No border for the last item */
    }

    .main-nav ul li a {
        padding: 15px 20px; /* More vertical padding */
        font-size: 1.1em;
        color: var(--primary-black); /* Dark text for mobile links */
    }

    .main-nav ul li a:hover {
        background-color: var(--bg-light-grey); /* Light hover background */
        color: var(--primary-orange);
    }

    /* Dropdown for mobile (full width, no hover) */
    .dropdown-menu {
        position: static; /* Remove absolute positioning */
        box-shadow: none; /* No shadow */
        border-top: none; /* No accent border */
        border-radius: 0; /* No border radius */
        background-color: var(--bg-light-grey); /* Lighter background for sub-items */
        opacity: 1; /* Always visible when parent is clicked */
        visibility: visible;
        transform: none; /* No transform */
        max-height: 0; /* Initially hidden */
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        width: 100%; /* Full width */
    }

    .main-nav ul li.dropdown-active > .dropdown-menu {
        max-height: 500px; /* Arbitrary large height to show content */
    }

    .dropdown-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Lighter separator for sub-items */
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .dropdown-menu li a,
    .dropdown-menu li span {
        padding: 12px 30px; /* Indent sub-items */
        font-size: 1em;
        color: var(--text-secondary); /* Slightly lighter text for sub-items */
        text-align: center;
    }

    .dropdown-menu li a:hover,
    .dropdown-menu li span:hover {
        background-color: var(--border-color); /* Even lighter hover for sub-items */
        color: var(--primary-orange);
    }

    .main-nav .register-btn {
        margin: 20px auto; /* Center button and add space */
        width: calc(100% - 40px); /* Adjust width */
        max-width: 300px;
        padding: 12px 20px;
    }


    /* Hero Section */
    .hero-container {
        flex-direction: column;
        min-height: auto; /* Allow height to adjust */
    }

    .carousel-wrapper,
    .hero-search-section {
        width: 100%; /* Full width for both */
        height: auto; /* Auto height */
        margin-bottom: 20px; /* Space between them */
    }

    .carousel-caption h2 {
        font-size: 2em;
    }

    .carousel-caption p {
        font-size: 0.9em;
    }

    .hero-search-section {
        padding: 25px;
    }

    .hero-search-section h3 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    /* About Section */
    .about-gem-content {
        flex-direction: column;
        text-align: center;
    }

    .about-gem-text h2 {
        font-size: 2em;
    }

    .about-gem-image {
        order: -1; /* Image appears above text on mobile */
    }

    /* General Sections */
    .gem-registration h2,
    .process-steps h2,
    .faq-section h2 {
        font-size: 2.2em;
    }

    .registration-benefits,
    .steps-grid {
        grid-template-columns: 1fr; /* Single column */
    }

    .benefit-card,
    .step-card {
        padding: 25px;
    }

     .cta-section {
        width: auto; /* Remove fixed width */
        margin: 30px 20px; /* Add horizontal margin */
        padding: 40px 20px; /* Adjust padding */
    }
    .cta-title {
        font-size: 2.2em;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr; /* Single column */
        text-align: center;
    }

    .footer-col h3::after {
        margin: 10px auto 0 auto; /* Center the underline */
    }

    .footer-about .social-links a {
        margin: 0 10px; /* Adjust spacing */
    }
}


/* Small devices (Phones, less than 768px) */
@media (max-width: 767px) {
    body {
        font-size: 15px; /* Slightly smaller base font */
    }

    .container {
        padding: 0 15px; /* Reduce padding for smaller screens */
    }

    .main-header .logo .logo-text {
        font-size: 24px; /* Smaller logo text */
    }

    .main-header .logo img {
        height: 35px; /* Smaller logo image */
    }

    .main-nav ul li a {
        font-size: 1em;
    }

    .main-nav .register-btn {
        font-size: 0.95em;
        padding: 10px 15px;
    }
     .cta-buttons .btn {
        margin: 5px; /* Adjust spacing for buttons */
        padding: 10px 20px; /* Adjust padding for buttons */
    }

    /* Hero Section */
    .carousel-caption h2 {
        font-size: 1.6em;
    }

    .carousel-caption p {
        font-size: 0.85em;
    }

    .hero-search-section h3 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .search-toggle-buttons {
        flex-direction: column; /* Stack toggle buttons */
        width: 100%;
        border: none; /* Remove border for individual buttons */
        border-radius: 0;
    }

    .search-toggle-btn {
        border: 1px solid var(--border-color); /* Add border to each button */
        margin-bottom: 5px; /* Space between stacked buttons */
        border-radius: 5px;
    }

    .search-input-group {
        flex-direction: column; /* Stack search input and button */
        border: none;
        border-radius: 0;
    }

    .search-input {
        border: 1px solid var(--border-color);
        margin-bottom: 10px;
        border-radius: 5px;
    }

    .search-btn {
        width: 100%;
        border-radius: 5px;
    }

    /* Sections */
    .about-gem-text h2,
    .gem-registration h2,
    .process-steps h2,
    .faq-section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .about-gem-text p,
    .benefit-card p,
    .step-card p {
        font-size: 0.9em;
    }

    .benefit-card h3,
    .step-card h3 {
        font-size: 1.3em;
    }

    .faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    /* CTA Section */
    .cta-title {
        font-size: 1.8em;
    }
    .cta-subtitle {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    /* Footer */
    .main-footer {
        padding: 40px 0 15px;
    }

    .footer-col h3 {
        font-size: 1.1em;
    }

    .footer-col p,
    .footer-col ul li a {
        font-size: 0.85em;
    }

    .footer-bottom {
        font-size: 0.8em;
    }

    /* Modal */
    .form-modal {
        padding: 30px 20px;
    }

    .modal-header h2 {
        font-size: 1.8em;
    }

    .modal-header p {
        font-size: 0.9em;
    }

    .inquiry-form label {
        font-size: 0.95em;
    }

    .inquiry-form input {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .inquiry-form .submit-btn {
        padding: 12px;
        font-size: 1em;
    }
}

/* Popup Specific Styles */
.popup-form-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); 
}

.popup-form-content {
    background: var(--bg-white);
    color: var(--text-primary);
    padding: 30px;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: var(--font-family-poppins);
}

.popup-form-content h2 {
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 700;
}

.close-popup-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5em;
    color: var(--primary-blue);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease-in-out;
}

.close-popup-btn:hover {
    color: var(--accent-orange);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Space between form groups */
}

.form-group {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    color: var(--text-primary);
    background-color: var(--bg-white);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 52, 116, 0.2); 
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1); 
    accent-color: var(--accent-orange); }

.form-group input[type="checkbox"] + label {
    display: inline-block;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

.submit-button {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(39, 52, 116, 0.2);
}

.submit-button:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}


.form-group.checkbox-group {
    flex-direction: row;
    align-items: center;
    margin-top: 10px;
}

.form-group.checkbox-group label {
    margin-bottom: 0; 
    margin-left: 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .popup-form-content {
        width: 95%;
        padding: 25px 20px;
    }

    .popup-form-content h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .close-popup-btn {
        font-size: 2em;
        top: 10px;
        right: 10px;
    }

    .submit-button {
        padding: 12px 20px;
        font-size: 1em;
    }
}
