/* --- Global Styles --- */
:root {
    --primary-blue: #0056b3;
    --secondary-teal: #00a88f;
    --dark-text: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    margin: 0;
}

main::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background-image: url('/assets/images/KL logo.png'); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.08; 
    z-index: 0; 
    pointer-events: none;
}

.home-page::before, 
.home-page main::before {
    display: none !important;
}

main {
    position: relative;
    min-height: 100vh;
    z-index: 1; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Nav --- */
.navbar {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    font-size: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo span {
    color: var(--secondary-teal);
}

.logo img {
    display: block;
    width: auto; 
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

.dropdown {
    position: relative;
    display: inline-block;
}

/* Style the actual sub-menu box */
.dropdown-content {
    display: none;          /* Hide by default */
    position: absolute;
    background-color: #ffffff;
    min-width: 250px;       /* Width of the dropdown box */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;              /* Positions it right below the nav link */
    left: 0;
}

/* Service Selection Boxes */
.services-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 100px;
}

.service-box {
    background: #f4fafa;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #5bc2c2;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.service-box:hover {
    transform: scale(1.05);
    background: #e0f2f2;
}
.seminar-icon,.screening-icon {
    width: 120px;      
    height: 120px;     
    object-fit: contain; 
    margin-bottom: 20px;
    display: block;   
    margin-left: auto;
    margin-right: auto;
}

/* Modal Overlay (The Background) */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #4bc3ca rgba(0, 128, 128, 0.8); /* Semi-transparent teal */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Modal Card (The Pop-up) */
.modal-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 30px #4bc3ca;
    cursor: default;
}
.modal-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

.modal-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Style the links inside the dropdown */
.dropdown-content li {
    width: 100%;
}

.dropdown-content li a {
    color: #333 !important;
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    text-align: left;
    margin: 0 !important;
}

/* Hover effect for the dropdown items */
.dropdown-content li a:hover {
    background-color: #f1f1f1;
    color: var(--primary-blue) !important;
}

/* THE MAGIC: Show the dropdown when hovering over the parent LI */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Small arrow styling */
.arrow {
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--secondary-teal);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary {
    background: #26B0D2;
    color: var(--primary-white);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 600;
}

.btn-phone {
    background: #26B0D2; 
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    transition: background 0.3s ease;
}

.btn-whatsapp:hover {
    background: #008f7a;
}

.wa-icon {
    width: 20px;
    height: 20px;
    /* This filter makes the black SVG logo white to match your text */
    filter: brightness(0) invert(1); 
}

.wa-icon-footer {
    width: 20px;
    height: 20px;
}


/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(13, 191, 197, 0.473), rgba(103, 178, 182, 0.5)), 
                url('https://images.unsplash.com/photo-1538108197017-c1a9c6b22ed3?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    text-align: center;
    font-size: 32px;
}

.hero h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-year {
    display: block;
    font-size: 0.6em; 
    margin-bottom: 10px; 
}

.hero-main-title {
    display: block;
    font-size: 1em;
    line-height: 1.2;
}

.hero p {
    font-size: 28px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Services --- */
.services {
    padding: 80px 0;
    background: #4bc3ca;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;

}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 5px solid var(--secondary-teal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.service-icon-school {
  width: 100px;             
  height: auto;
  display: block;
  margin: 0 auto;
}

.service-icon-community ,
.service-icon-seminar {
  width: 90px;             
  height: auto;
  display: block;
  margin: 0 auto;
}
.service-icon-info{
  width: 80px;             
  height: auto;
  display: block;
  margin: 0 auto;
  padding: auto;
}

.card h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 28px;
}

.title-wrapper {
  display: flex;          /* Puts items in a row */
  align-items: center;     /* Centers them vertically */
  justify-content: center; /* Centers the whole row in the card */
  gap: 10px;               /* Adds space between icon and text */
  margin-top: 10px;        /* Space below the School building */
  margin-bottom: 5px;      /* Space above the description text */
}

.inline-icon {
  width: 40px;             /* Smaller size so it fits the text height */
  height: auto;
}

.service-title {
  margin: 0;               /* Remove default heading margins to keep it level */
  font-size: 1.2rem;       /* Adjust size as needed */
}

.card:hover {
    transform: translateY(-10px);
}

.card-link {
    text-decoration: none;
    color: inherit; /* Keeps your existing text colors */
    display: block; /* Ensures the link covers the whole card area */
    height: 100%;
}

/* Add a subtle hover effect to show it is clickable */
.clickable-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-5px); /* Card lifts up slightly */
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.2); /* Teal-tinted shadow */
}

/* Ensure the syringe and title still look good inside the link */
.card-link .title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* --- English Specific Fixes --- */
.lang-en .nav-links a {
    font-size: 0.85rem;  /* Smaller font because English words are longer */
    letter-spacing: 0;   /* Remove extra spacing needed for Chinese */
}

.lang-en .service-title {
    writing-mode: horizontal-tb; /* MUST be horizontal for English [cite: 192] */
    line-height: 1.3;
    min-height: 3.6em;   /* Ensures cards stay aligned even with 3-line titles */
}

/* --- Chinese Specific Styles --- */
.lang-zh .nav-links a {
    font-size: 1rem;
    letter-spacing: 1px;
}
.about-intro-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #008080; /* Theme Teal */
    border-left: 5px solid #5bc2c2;
    padding-left: 30px;
    max-width: 900px;
    margin: 40px auto;
    font-style: italic;
}
.about-page .container {
    max-width: 1000px; /* Limits overall width so eyes don't travel too far */
    margin: 0 auto;
}

.section-white { background: #ffffff; padding: 60px 0; }
.section-accent { background: #f4fafa; padding: 60px 0; }

/* Grid layout for Vision and Mission */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-page ,.vss_school-page,.vss-page ,.services-page,.contact-page,.vaccine_intro-page{
    padding-top: 60px;
    padding-bottom: 120px; /* Gives room for the footer wave */
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #007c7c;
    margin-bottom: 20px;
}

/* Background sections for visual break */
.bg-light { background-color: #f8fcfc; padding: 80px 0; }
.bg-teal { background-color: #5bc2c2; padding: 80px 0 150px; } /* Space for footer wave */

/* Handle long English titles */
.lang-en .service-block h3 {
    font-size: 1.1rem;
    line-height: 1.3;
}

.lead-text, .mission-card p {
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
    text-align: justify;
}

.lang-zh .about-page {
    letter-spacing: 1px;
}

.lang-en .about-page {
    font-size: 0.95rem;
    letter-spacing: 0;
}
.lang-en .nav-links a {
    font-size: 0.8rem;
    padding: 5px 8px;
}

h1, h2 {
    color: #008080; 
    margin-bottom: 20px;
    text-align: center;
}

.eligibility-grid {
    text-align: left; /* Keep the actual list left-aligned for readability */
    max-width: 600px;
    margin: 0 auto;
}
.modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    margin-top: 40px;
    text-align: left;
    
}

.mode-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #008080; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 80px;
}

.mode-card h3 {
    color: #008080;
    margin-bottom: 10px;
}

.mode-card, .about-section {
    position: relative;
    z-index: 2;
}

.old-name {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

/* Vaccine Card Styling */
.vaccine_intro-page.modal-card {
    padding: 50px;
    border-radius: 30px;
    max-width: 700px;
    box-shadow: 0 25px 50px -12px rgba(0, 128, 128, 0.25); /* Teal-tinted shadow */
    border: 1px solid rgba(0, 128, 128, 0.1);
}

.vaccine_intro-page .modal-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    padding: 20px;
    background: #f0fafa; /* Very light teal background for intro */
    border-radius: 15px;
}

.vaccine_intro-page .mode-target-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for bullets if space allows */
    gap: 15px;
    margin-top: 20px;
}

.vaccine_intro-page .mode-target-list li {
    background: white;
    padding: 12px 15px;
    border-radius: 10px;
    border-left: 4px solid #008080;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 0.95rem;
    list-style: none; /* Remove standard bullets */
}

.vaccine_intro-page .modes-grid {
    grid-template-columns: 1fr 1fr 1fr;

}

.vaccine_intro-page .modal-overlay {
    display: none ;
    position: fixed;
    top: 5%; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    
    /* FIX: Allow scrolling within the overlay */
    overflow-y: auto; 
    padding: 60px 20px; /* Space at top and bottom */
    justify-content: center;
    align-items: flex-start; /* Start from top instead of middle */
}


.close-modal-btn {
    display: block;
    width: 200px;
    margin: 30px auto 0;
    padding: 12px;
    background: #eee;
    color: #666;
    border: none;
    border-radius: 50px; /* Rounded pill shape */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: #2a9dac; /* Soft red for close */
    color: white;
}

.vaccine-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 30px;
}

.vaccine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 128, 128, 0.15);
}


.learn-more-btn {
    margin-top: 15px;
    background: transparent;
    border: 1px solid #008080;
    color: #008080;
    padding: 8px;
    border-radius: 5px;
}
.vaccine-note {
    background: #f0fafa;
    padding: 15px;
    border-left: 4px solid #008080;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Custom Checkmark Style */
.check-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
    text-align: left; 
}

.check-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    border-bottom: 1px solid #eee;
    line-height: 1.6;
}

/* Create a CSS checkmark instead of an image */
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #008080;
    font-weight: bold;
}

/* Background for shipping info */
.bg-light {
    background-color: #f4fafa;
    padding: 40px 0;
    border-top: 2px dashed #5bc2c2;
}

/* --- Stats --- */
.stats {
    background: #4bc3ca;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.stat-item .number {
    font-size: 40px;
    font-weight: 700;
    display: block;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

.contact-details-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 40px;
    min-height: 500px;
}
.contact-details-card .mode-target-list {
    font-size: 1.15rem;
    line-height: 1.8;
    padding: 20px;
}
.contact-details-card .mode-target-list li {
    margin-bottom: 10px;
    padding-left: 20px;
}

.contact-details-card strong {
    font-size: 1.2rem;
    color: #333;
    display: inline-block;
    margin-bottom: 5px;
}

/* --- Footer Styling --- */
.main-footer {
    background-color: #e6f7f9; /* Very light blue matching your image */
    padding-top: 100px;
    padding-bottom: 40px;
    position: relative;
}

/* Optional: Wave effect CSS trick */
.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: #e6f7f9;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.footer-col h3 {
    color: #00a0e9; /* Light blue header */
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: #666;
    cursor: pointer;
}

.footer-col p, .hours {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #d1eef1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.8rem;
}

.footer-logo {
    height: 50px;         /* Standard height for footer logos */
    width: auto;           /* Maintains aspect ratio */
    margin-right: 15px;    /* Space between logo and copyright text */
    display: inline-block;
    vertical-align: middle; /* Ensures it aligns with the text line */
    opacity: 0.9;          /* Slightly muted so it doesn't distract from the content */
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;            /* Full color on hover */
}

/* --- Floating Elements --- */

/* Language Switcher (Bottom Left) */
.language-switch {
    position: fixed;
    bottom: 20px;
    left: 0;
    background: #26B0D2;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    z-index: 1000;
}

/* Floating Action Buttons (Bottom Right) */
.floating-btns {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 500;
}

.top-btn {
    background: white;
    color: #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 20px;
}

.wa-float img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

/* ============================================================
   DESKTOP VIEW (768px or wider)
   ============================================================ */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero h1 {
        font-size: 72px;
    }

    .logo {
        display: flex;
        align-items: center;
        text-decoration: none;
        flex-shrink: 0;
        order: 1;
    }

    .logo img {
        height: 60px !important; /* Adjust this to your preferred size */
        width: auto !important;
        max-width: 250px; /* Prevents it from filling the screen */
    }

    /* THE FIX: Explicitly ensuring display grid and 2 columns */
    .grid {
        display: grid !important; 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
        max-width: 1100px;
        margin: 0 auto;
    }
    
    .navbar .container {
        display: flex;
        flex-direction: row !important;
        justify-content: space-between; /* Spreads Logo and Nav Group */
        align-items: center;
        flex-wrap: nowrap;
    }

    nav {
        display: flex !important; /* Ensure it's not hidden by mobile 'display:none' */
        flex-grow: 1;
        justify-content: center;
        order: 2;
    }

    nav ul {
        display: flex;
        flex-direction: row !important; /* Horizontal for desktop */
        gap: 30px;
        list-style: none;
    }

    .btn-phone {
        margin-left: 0 !important; /* Reset the mobile margin-left: auto */
        height: 45px !important;
        font-size: 16px !important;
        max-width: none !important;
        padding: 10px 20px !important;
        order: 3;
    }

    .btn-whatsapp {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        padding: 10px 25px;
        background-color: #2383f0;
        border-radius: 50px;
        color: white;
        text-decoration: none;
        font-weight: 700;
        flex-shrink: 0;
    }

    .menu-toggle {
        display: none !important;
    }
}

/* ============================================================
   MOBILE VIEW (767px or narrower)
   ============================================================ */
@media (max-width: 767px) {
    .navbar {
        padding: 15px 0 !important;
        min-height: 70px;
    }

    .navbar .container {
        display: flex;
        flex-direction: row !important;
        justify-content: flex-start !important; /* Reset this to allow manual pushing */
        align-items: center;
        padding: 10px 15px;
        flex-wrap: nowrap;
    }
    .modes-grid {
        grid-template-columns: 1fr;
    }

    nav {
        display: none; 
        width: 100%;
    }

    .nav-links {
        display: none; 
        width: 100%;
        position: absolute;
        top: 100%; 
        left: 0;
        text-align: left;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align links to the left */
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 15px;
    }

    .nav-links.active {
        display: flex !important;
    }

    nav.active {
        display: block;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        order: 1;
    }

    .dropdown > a {
        font-weight: 700;
        font-size: 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #333;
    }

    .dropdown-content {
        display: block;
        position: static;
        box-shadow: none;
        padding-left: 15px;
        margin-top: 5px;
        border-left: 2px solid #eee;
    }

    .dropdown-content li {
        margin-bottom: 10px;
    }

    .dropdown-content li a {
        font-size: 15px;
        color: #666 !important;
        font-weight: 400;
    }

    .wave-container {
        padding: 40px 20px;
        min-height: auto;
        background-size: cover; /* Keeps your wave design visible */
    }

    /* Adjust the big text size so it doesn't wrap awkwardly */
    .wave-container h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .wave-container h2 {
        font-size: 32px;
        line-height: 1.2;
    }

    /* Hamburger Icon with Circle Background */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px; /* This creates the space between the 3 lines */
        background: #f5f5f5; /* Light grey circle background */
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        order: 3; /* Keeps it on the far right */
    }

    /* The three individual lines */
    .menu-toggle .bar {
        display: block;
        width: 20px;
        height: 2px; /* Keep this thin (2px) for a professional look */
        background: #333; /* Dark color for the lines */
        border-radius: 2px;
        transition: 0.3s; /* Smooth transition if you add animations later */
    }

    navbar .btn-whatsapp {
        display: none; /* Often hidden on mobile nav in favor of the floating WA button */
    }

    .hero {
        padding: 60px 0 !important; /* Smaller vertical padding */
        min-height: auto !important;
    }

    /* Shrink the main title */
    .hero h1 {
        font-weight: 700;
        line-height: 1.4 !important; /* Give characters room to breathe */
        letter-spacing: 1px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        font-size: 32px !important;

    }

    .hero-year {
        font-size: 18px !important; 
        color: rgba(255, 255, 255, 0.9); /* Slightly muted white */
        margin-bottom: 8px;
    }

    /* Shrink the sub-title/paragraph */
    .hero p {
        font-size: 15px !important; 
        margin-top: 15px;
        line-height: 1.5;
    }

    .hero-main-title {
        font-size: 26px !important;
        font-weight: 800;
    }

    .hero-btns {
        width: 100%;
        max-width: 280px; /* Slimmer look for buttons on mobile */
        margin: 25px auto 0;
    }

    .hero-btns .btn-primary, .hero-btns .btn-secondary {
        padding: 12px 20px !important;
        font-size: 18px !important;
        width: 90% !important;
    }

    .modes-grid {
        grid-template-columns: 1fr;
    }
    .map-container {
        height: 300px;
    }

    /* Ensure the WhatsApp pill and 'Learn More' buttons are consistent */
    .hero-btns .btn-whatsapp, 
    .hero-btns .btn-outline {
        width: 80%; /* Make buttons wider and easier to tap */
        max-width: 300px;
        justify-content: center;
        margin: 0; /* Remove side margins that cause offset */
    }

    .hero-btns a {
        width: 100% !important;
        height: 48px !important; /* Fixed height makes them look professional */
        font-size: 16px !important;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .btn-phone {
        order: 2;
        margin-left: auto !important; 
        margin-right: 10px !important; /* Space between button and hamburger */
        padding: 6px 12px !important;
        font-size: 12px !important;
        max-width: 110px;
    }

    .btn-phone img.wa-icon {
        width: 12px !important;
        height: 12px !important;
        filter: brightness(0) invert(1);
    }

    .logo img {
        height: 40px !important;
        width: auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .grid {
        grid-template-columns: 1fr !important; 
    }

    @media (max-width: 767px) {
    .floating-btns {
        bottom: 15px;
        right: 15px;
    }
    
    .wa-float img {
        width: 50px; /* Slightly smaller for mobile screens */
        height: 50px;
    }
}

@media (max-width: 992px) {
    .modes-grid {
        grid-template-columns: 1fr; /* Stacks to 1 column on mobile */
    }
}
}
