:root {
    --wa-green: #25D366;
    --wa-dark-green: #075E54;
}


.nav-links li:last-child:hover a {
    color: white;
}
.error-text {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    height: 1rem; /* Prevents layout jumping */
}

input.invalid, select.invalid {
    border: 2px solid #ff4d4d !important;
}
/* Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--wa-green);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
}

.whatsapp-btn img { width: 35px; }

/* Chat Window Hidden by Default */
.chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: none; /* Toggle this with JS */
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    font-family: Arial, sans-serif;
}

/* Header Styling */
.chat-header {
    background: var(--wa-dark-green);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info { display: flex; align-items: center; gap: 10px; }
.user-info img { border-radius: 50%; }
.name { font-weight: bold; margin: 0; }
.status { font-size: 12px; margin: 0; opacity: 0.8; }

/* Body & Input */
.chat-body {
    height: 300px;
    padding: 15px;
    background: #e5ddd5; /* Classic WA background color */
    overflow-y: auto;
}

.message.incoming {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
    font-size: 14px;
}

.chat-footer {
    padding: 10px;
    display: flex;
    gap: 5px;
}

.chat-footer input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

/* Your Existing Styles */
nav ul { 
    display: flex; 
    gap: 35px; 
    list-style: none;
    justify-content: space-between;
    align-items: center;
}

nav a { 
    text-decoration: none; 
    color: var(--blue); 
    font-weight: 600; 
    transition: 0.3s; 
    font-size: 1.05rem; 
}

nav a:hover, nav a.active { 
    color: var(--orange); 
}

/* New Responsive Styles */
.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blue);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show button on mobile */
    }

    .nav-links {
        display: none; /* Hide links by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background-color: white; /* Or your background color */
        padding: 20px;
        gap: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 100;
    }

    /* This class will be added via JavaScript */
    .nav-links.active {
        display: flex;
    }
    
    /* About page s-card */
    .s-card:nth-child(2) {
        transform: translateX(0) !important;
    }
}


@media (max-width: 600px) {
    .hero {
        /* Stack text and image vertically */
        flex-direction: column;
        padding: 60px 20px;
        text-align: center;
        gap: 30px;
        min-height: auto; /* Allow section to grow with content */
    }

    .hero-text h1 {
        /* Scale down the massive 4.5rem font for mobile */
        font-size: 2.5rem; 
        line-height: 1.2;
    }

    .hero-btns {
        /* Allow buttons to stack vertically on very small screens */
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-btns a {
        /* Make buttons full width for better UX on mobile */
        width: 100%;
        max-width: 300px;
        box-sizing: border-box; /* Ensures padding doesn't add to width */
    }

    .hero-img {
        /* Ensure the image is visible and scaled */
        display: block;
        width: 100%;
        order: 2; /* Keeps image below text */
    }

    .hero-img img {
        max-width: 100%;
        height: auto;
    }
}

/* Specific fix for ultra-narrow screens (below 350px) */
@media (max-width: 350px) {
    .hero-text h1 {
        font-size: 2rem !important;
    }
    
    .hero-text p {
        font-size: 1rem;
        line-height: 1.5;
    }
    .t-row {
        grid-template-columns: none !important;
    }
    .heading{
        font-size: 3.5rem !important;
    }
    .info-card{
        gap: 10px!important;
    }
}

/* This covers iPhone (375px), small Androids (320px), and tablets up to 600px */
@media screen and (max-width: 600px) {
    .table-3d {
        padding: 30px 15px !important;
        margin: 20px 10px !important;
        max-width: 100% !important;
    }

    /* Hide the header row completely - it causes the text overlap */
    .t-header {
        display: none !important;
    }

    .t-row {
        /* This is the key fix: switch from 4 columns to 1 column */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 30px 0 !important;
        gap: 15px !important;
    }

    /* Style the labels (Medium, Focus, Technology) */
    .t-row div:first-child {
        color: #94A3B8 !important;
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 5px;
    }

    /* Make the orange box look like a proper button/badge on mobile */
    .t-highlight {
        width: 100% !important;
        max-width: 260px;
        margin: 10px auto 0 !important;
        padding: 15px !important;
        box-sizing: border-box;
    }

    /* Fix the title font size */
    .table-3d h2 {
        font-size: 1.6rem !important;
        line-height: 1.2;
    }
}

/* Extra tight fix for 320px */

@media screen and (max-width: 320px) {
    
    .table-3d h2 {
        font-size: 1.4rem !important;
    }
    .t-row {
        font-size: 0.9rem !important;
    }
    
    .info-panel {
        /* This overrides the min-width and forces the box to stay inside the screen */
        min-width: 100% !important;
        width: 100% !important;
        
        /* This ensures padding is calculated INSIDE the width, not added to it */
        box-sizing: border-box !important;
        
        /* Prevents any parent flex containers from squeezing or stretching it weirdly */
        flex: none !important;
        margin: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Keeps the cards from overflowing their parent container */
    .info-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .info-card h1 {
        font-size: 4.0rem;
        
    }
    
    /* For privacy policy and terms and conditions*/
    .policy-card h1 {
        font-size: 2.3rem !important;
    }
}

@media (max-width: 480px) {
    .story-cards {
        padding: 0 15px;
    }

    .s-card {
        padding: 25px;
    }

    .s-card:nth-child(2) {
        transform: translateX(0) !important;
    }

    .s-card:hover, 
    .s-card:nth-child(2):hover {
        transform: translateY(-5px) scale(1.01);
    }
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left; /* Aligns text to the left */
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    color: white;
}

/* Responsive fix for mobile */
@media (max-width: 600px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}