:root { --green: #2ecc71; --dark: #2c3e50; }
body { font-family: sans-serif; margin: 0; padding-top: 70px; }

/* Header & Nav */
header { position: fixed; top: 0; width: 100%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 5%; }
.logo-area { display: flex; align-items: center; gap: 10px; }
.site-logo { height: 50px; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: #333; padding: 5px 10px; }
.nav-links a.active { border-bottom: 3px solid var(--green); color: var(--green); font-weight: bold; }

/* Home Section Background */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('SEED WATER.png'); 
    background-size: cover; height: 100vh; color: white; display: flex; align-items: center; justify-content: center; text-align: center;

/* Review Block Styling */
.review-highlight {
    background: rgba(255, 255, 255, 0.15); /* Glassmorphism effect */
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stars {
    color: #f1c40f; /* Gold color for stars */
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.review-highlight p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fff;
}

.google-review-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.google-review-link:hover {
    color: var(--green); /* Highlights green on hover */
}

.google-review-link i {
    font-size: 1.1rem;
}
}
/* Stats Block Styling */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 20px;
}

.stat-box {
    background: white;
    padding: 30px;
    flex: 1;
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--green); /* Highlights the top with your theme color */
}

.stat-box:hover {
    transform: translateY(-10px);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--green);
    margin-bottom: 15px;
}

.stat-box h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.stat-box p {
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About images layout refinement */
.about-images {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.img-placeholder {
    width: 90px;
    height: 90px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
}


/* Student Dashboard Block */
.student-dashboard-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.dash-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.dash-header {
    background: var(--dark);
    color: #fff;
    padding: 15px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-header i { color: var(--green); }

.dash-body { padding: 25px; }

/* Study Material List */
.material-list { list-style: none; padding: 0; }
.material-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.dl-btn {
    text-decoration: none;
    color: var(--green);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Table Enhancements */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th { background: #80ff9d; color: #555; text-align: left; padding: 12px; }
.data-table td { padding: 12px; border-bottom: 1px solid #eee; }
.status-active { color: #27ae60; font-weight: bold; }
.cert-link { color: #2980b9; text-decoration: underline; }

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-top: 3px solid var(--green);
    border-radius: 0 0 5px 5px;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 14px;
    transition: 0.3s;
    border-bottom: 1px solid #f1f1f1;
}

/* Change color on hover */
.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--green);
    padding-left: 20px; /* Slight slide effect */
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Caret Icon Spacing */
.fa-caret-down {
    font-size: 12px;
    margin-left: 5px;
}





/* Enquiry Form */
.fixed-enquiry { position: fixed; right: 20px; bottom: 20px; z-index: 2000; }
.fixed-enquiry button { background: var(--green); color: white; padding: 10px 20px; border: none; cursor: pointer; border-radius: 5px; }
#enquiryForm { background: white; padding: 20px; box-shadow: 0 0 10px rgba(0,0,0,0.2); border-radius: 5px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.hidden { display: none !important; }

/* Exam Portal Buttons */
.portal-center { text-align: center; }
.exam-links { display: flex; gap: 15px; justify-content: center; margin-top: 15px; flex-wrap: wrap; }
.portal-btn {
    background: var(--green);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}
.portal-btn.secondary { background: #34495e; }
.portal-btn:hover { opacity: 0.9; }

/* Tables & Grid */
.container { padding: 60px 10%; }
.bg-light { background: #f9f9f9; }
.data-table, .course-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.data-table th, .data-table td { border: 1px solid #ddd; padding: 12px; text-align: left; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.img-box { background: #ddd; height: 200px; display: flex; align-items: center; justify-content: center; }

.interest-btn {
    background-color: var(--green);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.interest-btn:hover {
    background-color: var(--dark);
    transform: scale(1.05);
}

/* Ensure the fixed form is visible over the table */
.fixed-enquiry {
    z-index: 2001;
}
/* Courses Table Heading Styling */
.course-table thead {
    background-color: var(--dark); /* Dark blue/grey background */
}

.course-table th {
    color: #ffffff; /* White text for contrast */
    padding: 15px;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--green); /* Seedling Green accent line */
}

/* Optional: Add a hover effect to rows for better readability */
.course-table tbody tr:hover {
    background-color: #f1f9f5;
    transition: 0.2s ease-in-out;
}

/* Search Box Styling */
.table-search-box {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #eee;
    padding: 10px 15px;
    border-radius: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    transition: 0.3s;
}

.table-search-box:focus-within {
    border-color: var(--green);
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.1);
}

.table-search-box i {
    color: #999;
    margin-right: 10px;
}

.table-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--dark);
}

/* Sticky Social Sidebar */
.sticky-social {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 2005;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: 0.3s;
    border-radius: 5px 0 0 5px;
    margin-bottom: 2px;
}

.social-icon:hover {
    width: 60px; /* Expands slightly on hover */
    padding-right: 10px;
}

/* Brand Colors */
.call { background-color: #3498db; }
.whatsapp { background-color: #25d366; }
.facebook { background-color: #3b5998; }
.google { background-color: #db4437; }

/* Footer Styling */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 10% 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: center;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

.cert-btn {
    background-color: #34495e; /* Elegant Navy Blue */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cert-btn:hover {
    background-color: var(--green);
    transform: translateY(-2px);
}

.cert-btn i {
    font-size: 0.75rem;
}

.login-box {
    display: flex;
    flex-direction: column;
    max-width: 300px;
    margin: 20px auto;
    gap: 10px;
}

.login-box input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.error-msg {
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: bold;
}

.success-box {
    padding: 20px;
    border: 2px solid var(--green);
    border-radius: 10px;
    background: #fafffb;
}

.success-box i {
    font-size: 3rem;
    color: var(--green);
    margin-bottom: 10px;
}

.active-exam {
    background: var(--green);
    display: inline-block;
    margin-top: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


.student-search-container {
    position: relative;
    margin-bottom: 20px;
    max-width: 100%;
}

.student-search-container input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.student-search-container input:focus {
    border-color: var(--green);
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

.student-search-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}


/* This applies only to screens smaller than 768px */
@media (max-width: 768px) {
  .container {
    flex-direction: column; /* Stacks items vertically */
    padding: 10px;         /* Adds breathing room */
  }
}

/* --- MOBILE RESPONSIVE OVERRIDES --- */

@media screen and (max-width: 768px) {
    /* 1. Transform Navigation to a Vertical Drawer */
    .nav-links {
        display: none; /* Hidden on mobile until toggled */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex; /* Triggered by JavaScript */
    }

    .menu-toggle {
        display: block; /* Hamburger icon becomes visible */
    }

    /* 2. Stack Side-by-Side Sections Vertically */
    .about-flex, .stats-container, .pay-flex, .footer-grid, .gallery-grid {
        flex-direction: column !important;
        display: flex;
        gap: 20px;
    }

    /* 3. Handle Wide Tables (Courses & Results) */
    /* This allows the user to swipe the table left/right without breaking the layout */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 4. Move Social Icons to Bottom for easy thumb-reach */
    .sticky-social {
        top: auto;
        bottom: 0;
        right: 0;
        width: 100%;
        flex-direction: row;
        transform: none;
        height: 60px;
    }

    .social-icon {
        flex: 1;
        border-radius: 0;
        height: 100%;
    }

    /* 5. Adjust Font Sizes for readability */
    .hero h1 { font-size: 1.8rem; }
    .container { padding: 40px 5%; }
}

/* Footer */
footer { background: var(--dark); color: white; padding: 40px 10%; text-align: center; }
.social-btns { font-size: 24px; margin-bottom: 20px; display: flex; justify-content: center; gap: 20px; }
.social-btns a { color: white; }

