/* Styles.css */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    /* Deeper, more serene background */
    background: linear-gradient(135deg, #1A5276, #2874A6, #1F618D); /* Shades of blue */
    color: #EBF5FB; /* Lighter text for contrast */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles (for the main site header, if used as a standalone block) */
header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle blue overlay */
    background: linear-gradient(135deg, rgba(40, 116, 166, 0.4), rgba(30, 90, 130, 0.4));
    z-index: -1;
}

header h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(40, 116, 166, 0.7); /* Blue glow */
    color: #EBF5FB;
}

/* Navbar Styles (from module-header scope, but globally applied here) */
.navbar {
    background-color: #FFFFFF !important; /* White background for navbar */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand img {
    /* Adjust logo size if needed */
    height: 40px; /* Example size */
}

.navbar-nav .nav-item {
    width: auto; /* Ensure desktop nav items are not full width */
}

.navbar-nav .nav-link {
    color: #212529; /* Dark text for contrast on light background */
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-align: left;
    border-radius: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-nav .nav-link i {
    margin-right: 10px;
    font-size: 1.1em;
    color: #2874A6; /* Accent color for icons */
}

.navbar-nav .nav-link:hover {
    background-color: #F0F8FF; /* Very light blue on hover */
    color: #1A5276; /* Darker blue on hover */
}

.navbar-nav .active .nav-link {
    background-color: #EBF5FB; /* Light blueish background for active */
    color: #1A5276; /* Darker blue for active link */
    font-weight: bold;
}

/* Main Content Styles */
.section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    flex-grow: 1;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #EBF5FB;
}

.section p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #B2D0E4; /* Lighter shade of blue for paragraphs */
    max-width: 800px;
}

/* Features Section (on Home Page) */
.features { /* This applies to the global .features if used, but the index.php uses .row directly */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.feature { /* This applies to the global .feature if used, but index.php uses .feature-card */
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.feature i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #8AEAFF; /* Lighter accent blue for icons */
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #EBF5FB;
}

.feature p {
    font-size: 1rem;
    line-height: 1.6;
    color: #B2D0E4;
}

/* Jumbotron and Feature Card Styles (from index.php style block) */
.jumbotron {
    background-color: #E6F0F6; /* Light blueish-gray for a calming effect */
    color: #333;
    padding: 3rem 2rem;
    border-radius: .5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.jumbotron h1 {
    color: #1A5276; /* Darker blue */
    margin-bottom: 1rem;
}

.jumbotron p.lead {
    color: #495057;
    margin-bottom: 1.5rem;
}

.jumbotron .btn-primary {
    background-color: #2874A6; /* Medium blue */
    border-color: #2874A6;
    font-weight: 500;
    padding: .75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 50px; /* Pill-shaped button */
}
.jumbotron .btn-primary:hover {
    background-color: #1F618D;
    border-color: #1F618D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.feature-card {
    border: 1px solid #E6F0F6; /* Light blue border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #FFFFFF; /* White card background */
    border-radius: .5rem;
}

.feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-card .card-body {
    padding: 2rem;
}

.feature-card .card-body i {
    font-size: 3.5rem; /* Larger icons */
    margin-bottom: 1.5rem;
    /* Use different accent colors for features */
    color: #2874A6; /* Primary blue for main features */
}
/* Specific icon colors */
.feature-card .card-body .text-primary { color: #2874A6 !important; } /* Holistic Growth */
.feature-card .card-body .text-success { color: #239B56 !important; } /* Universal Love (Green for growth/nature) */
.feature-card .card-body .text-info { color: #F39C12 !important; } /* Academic Excellence (Orange for vibrancy/wisdom) */
.feature-card .card-body .text-danger { color: #C0392B !important; } /* Selfless Service (Red for passion/service) */


.feature-card .card-title {
    color: #1A5276; /* Dark blue title */
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card .card-text {
    color: #555; /* Medium dark text */
    font-size: 0.95rem;
    line-height: 1.7;
}


/* Footer Styles (from module-footer scope, but globally applied here) */
footer {
    background-color: #283747; /* Darker blue-gray for footer */
    padding: 30px 20px;
    color: #EBF5FB; /* Lighter text */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: auto; /* Pushes footer to the bottom */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    padding: 10px;
}

.footer-section h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #8AEAFF; /* Accent color for footer headings */
    border-bottom: 1px solid rgba(138, 234, 255, 0.3);
    padding-bottom: 8px;
}

.footer-section p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #B2D0E4; /* Lighter text for paragraphs */
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #EBF5FB; /* White text for links */
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #8AEAFF; /* Accent color on hover */
    text-decoration: underline;
}

.footer-links i {
    margin-right: 10px;
    color: #8AEAFF; /* Accent color for icons */
}

.copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85em;
    color: #B2D0E4;
}

.version {
    text-align: center;
    margin-top: 10px;
    font-size: 0.8em;
    color: #92B0C4;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
    }
    .navbar-nav .nav-link {
        justify-content: center;
    }
    .jumbotron {
        padding: 2rem 1rem;
    }
    .jumbotron h1 {
        font-size: 2.5rem;
    }
    .jumbotron p.lead {
        font-size: 1rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
    .feature-card .card-body i {
        font-size: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr; /* Stack footer sections on smaller screens */
    }
}


/* ================================================ */
/* === Styles specific to Signup Page           === */
/* === (Scoped via #signup-page-content)        === */
/* ================================================ */

/* --- Loader --- */
#signup-page-content .spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #3399cc; /* Theme color from Razorpay data */
    margin: 20px auto;
    animation: spin 1s ease infinite;
}

/* Keyframes are global, no prefix needed */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Razorpay --- */
#signup-page-content .razorpay-payment-button {
    display: none;
}

/* --- Basic Form Layout (within signup) --- */
#signup-page-content .form-group {
    margin-bottom: 1rem;
    text-align: left; /* Ensure labels align left if needed */
}
#signup-page-content .form-group label {
     display: block; /* Ensure labels are on their own line */
     margin-bottom: .5rem;
     color: #ecf0f1; /* Match body text color or choose appropriate */
     /* Note: This might conflict with specific label colors elsewhere if not scoped correctly */
     /* Overridden by the .card specific styles below for better contrast */
}

#signup-page-content .alert p {
    margin-bottom: 0.5rem;
}
#signup-page-content .alert p:last-child {
    margin-bottom: 0;
}

/* --- Text Color & Contrast Fixes (within signup card) --- */
/* Make these specific to the card inside the signup wrapper */
#signup-page-content .card-header h1,
#signup-page-content .card-header p.lead,
#signup-page-content .card-body h1,
#signup-page-content .card-body h2,
#signup-page-content .card-body p,
#signup-page-content .card-body label, /* Overrides the general label color above */
#signup-page-content .card-body small.form-text,
#signup-page-content .card-body .alert,
#signup-page-content .card-body .alert p /* Ensure text inside alert is readable */
{
    color: #212529 !important; /* Standard Bootstrap dark text color for contrast on light card backgrounds */
    /* Use !important cautiously if needed to override global body color */
}

/* Links within the signup card */
#signup-page-content .card-body a,
#signup-page-content .card-header a {
    color: #007bff; /* Standard Bootstrap link color */
}
#signup-page-content .card-body a:hover,
#signup-page-content .card-header a:hover {
    color: #0056b3; /* Darker link color on hover */
}

/* Ensure the card background on signup page is light if needed */
#signup-page-content .card {
    background-color: #ffffff; /* Force white background */
    color: #212529; /* Ensure default text color has contrast */
    border: 1px solid #dee2e6; /* Add a standard border */
}
#signup-page-content .card-header {
    background-color: #f8f9fa; /* Light gray header */
    color: #212529; /* Ensure header text has contrast */
    border-bottom: 1px solid #dee2e6; /* Standard border */
}


/* --- Input Validation Styling (within signup) --- */
#signup-page-content .form-control.is-invalid {
    border-color: #dc3545; /* Bootstrap danger color */
    /* Keep the background SVG for the icon */
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

#signup-page-content .invalid-feedback {
    display: none; /* Hide by default */
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
    color: #dc3545; /* Bootstrap danger color */
     text-align: left; /* Align feedback with input */
}

/* Show feedback for invalid inputs/recaptcha within signup */
#signup-page-content .form-control.is-invalid ~ .invalid-feedback,
#signup-page-content .g-recaptcha.is-invalid ~ .invalid-feedback
{
    display: block;
}

/* Highlight invalid recaptcha container within signup */
#signup-page-content .g-recaptcha.is-invalid {
    border: 1px solid #dc3545 !important; /* Use !important if needed to override inline styles from Google */
    padding: 5px;
    border-radius: .25rem;
}

/* Ensure recaptcha feedback is block if using d-block class specifically */
#signup-page-content .invalid-feedback.d-block {
    display: block !important; /* Force display if needed */
}

/* --- Payment Result Card (if used within signup flow/wrapper) --- */
#signup-page-content .payment-result-card {
    background-color: #283747; /* Dark blueish-gray background */
    border: 1px solid #d1d1d1; /* Light gray border */
    color: #ecf0f1; /* Light text for readability */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    margin-top: 2rem; /* Add margin if needed */
    margin-bottom: 2rem;
}

#signup-page-content .payment-result-card .card-header {
    background-color: #34495e; /* Slightly lighter header */
    color: #fff;
    font-weight: bold;
    padding: 1rem;
    border-bottom: 1px solid #d1d1d1;
}

#signup-page-content .payment-result-card .card-body {
    padding: 1.5rem;
    color: #ecf0f1; /* Ensure body text is light */
}

#signup-page-content .payment-result-card .card-title {
    color: #fff; /* White title */
    font-weight: 600;
    margin-bottom: 1rem;
}

#signup-page-content .payment-result-card .card-text strong {
    color: #1e90ff; /* Bright blue for highlighted text */
}

#signup-page-content .payment-result-card .card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #bdc3c7; /* Light gray text */
}

#signup-page-content .payment-result-card .btn-secondary {
    background-color: #1e90ff; /* Bright blue button */
    border-color: #1e90ff;
    color: #fff;
    transition: background-color 0.3s ease;
}

#signup-page-content .payment-result-card .btn-secondary:hover {
    background-color: #187bcd; /* Slightly darker blue on hover */
    border-color: #187bcd;
}

#signup-page-content .payment-result-card .alert { /* Style the alert messages inside this card */
    background-color: #e74c3c; /* Red alert background */
    color: #fff;
    border: 1px solid #c0392b;
    margin-bottom: 1rem;
}
/* ================================================ */
/* === End of Signup Page Specific Styles       === */
/* ================================================ */

/* ================================================ */
/* === Styles specific to FAQ Page              === */
/* === (Scoped via #faq-page-content)           === */
/* ================================================ */

#faq-page-content .faq-header {
    margin-bottom: 2rem;
    text-align: center;
}

#faq-page-content .accordion .card {
    /* Define card styles specifically within the FAQ accordion if needed */
    /* Example: override global card background/color for FAQ */
     background-color: transparent; /* Make card background transparent */
     border: 1px solid rgba(255, 255, 255, 0.1); /* Match other darker theme cards */
     margin-bottom: 0.5rem; /* Add some space between FAQ items */
}

#faq-page-content .accordion .card-header {
    cursor: pointer;
    /* Use a darker background matching the theme, or keep light */
    background-color: rgba(0, 0, 0, 0.2); /* Example: Darker transparent */
    /* background-color: #f8f9fa; */ /* Original light background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Match dark theme border */
    /* border-bottom: 1px solid rgba(0,0,0,.125); */ /* Original light border */
    padding: 0; /* Remove padding, handled by button */
}

#faq-page-content .accordion .card-header h2 {
     margin-bottom: 0; /* Remove default margin from h2 inside header */
}


#faq-page-content .accordion .card-header button.btn-link { /* Target the button */
    width: 100%;
    text-align: left;
    text-decoration: none;
    /* Use a theme-appropriate color */
    color: #6dd5fa; /* Example: Match accent color from theme */
    /* color: #007bff; */ /* Original blue */
    font-weight: 500;
    border: none;
    background: none;
    padding: 1rem 1.25rem; /* Restore padding here */
    /* Add indicator styles */
    position: relative;
    padding-right: 2.5rem; /* Make space for indicator */
}

/* Style the collapse indicator (Bootstrap 4 example) */
#faq-page-content .accordion .card-header button.btn-link::after {
    content: '\f078'; /* FontAwesome chevron-down */
    font-family: 'Font Awesome 5 Free'; /* Ensure Font Awesome is loaded */
    font-weight: 900;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s ease-in-out;
    color: #6dd5fa; /* Match button text color */
}

#faq-page-content .accordion .card-header button.btn-link:not(.collapsed)::after {
    transform: translateY(-50%) rotate(-180deg); /* Point up when open */
}


#faq-page-content .accordion .card-header button.btn-link:hover,
#faq-page-content .accordion .card-header button.btn-link:focus {
    text-decoration: none;
    outline: none;
    box-shadow: none;
    /* Optionally add a hover background */
     background-color: rgba(255, 255, 255, 0.05);
}

#faq-page-content .accordion .card-body {
    line-height: 1.6;
    /* Match dark theme text/background */
    background-color: rgba(0, 0, 0, 0.1); /* Slightly lighter dark bg */
    /* background-color: #fff; */ /* Original white background */
    color: #bdc3c7; /* Match theme paragraph color */
    padding: 1rem 1.25rem; /* Add padding */
}
/* Ensure links inside the card body are visible */
#faq-page-content .accordion .card-body a {
     color: #6dd5fa; /* Use accent color for links */
     text-decoration: underline;
}
#faq-page-content .accordion .card-body a:hover {
    color: #8aeaff; /* Lighter accent on hover */
}


#faq-page-content .faq-category-title {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #6dd5fa; /* Use accent color */
    /* border-bottom: 2px solid #dee2e6; */ /* Original light border */
    padding-bottom: 0.5rem;
    color: #ecf0f1; /* Match theme heading color */
    font-weight: 500;
}
/* Make first category title have less top margin */
#faq-page-content .faq-category-title:first-of-type {
    margin-top: 1rem;
}


#faq-page-content .contact-prompt {
    margin-top: 3rem;
    padding: 1.5rem;
    /* background-color: #e9ecef; */ /* Original light background */
    background-color: rgba(0, 0, 0, 0.25); /* Darker theme background */
    border-radius: .3rem;
    text-align: center;
    color: #ecf0f1; /* Ensure text is light */
}

#faq-page-content .contact-prompt h2 {
    color: #fff; /* Brighter white for heading */
}

#faq-page-content .contact-prompt p {
    color: #bdc3c7; /* Match theme paragraph color */
}

#faq-page-content .contact-prompt .btn-primary {
    /* Style button if needed, or rely on global styles */
     background-color: #6dd5fa;
     border-color: #6dd5fa;
     color: #1a242f; /* Dark text on light button */
     font-weight: 500;
}
#faq-page-content .contact-prompt .btn-primary:hover {
    background-color: #8aeaff;
    border-color: #8aeaff;
}


/* ================================================ */
/* === End of FAQ Page Specific Styles          === */
/* ================================================ */

/* ================================================ */
/* === Styles specific to Contact Page          === */
/* === (Scoped via #contact-page-content)       === */
/* ================================================ */

/* Validation Styling */
#contact-page-content .is-invalid {
    border-color: #dc3545 !important; /* Ensure override if needed */
}
#contact-page-content .invalid-feedback {
    display: none; /* Hide by default */
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
    color: #dc3545; /* Bootstrap danger color */
}
/* Ensure feedback shows correctly for various input types */
#contact-page-content .is-invalid ~ .invalid-feedback,
#contact-page-content .is-invalid + .invalid-feedback,
#contact-page-content .is-invalid.form-control-file ~ .invalid-feedback,
#contact-page-content .g-recaptcha.is-invalid + .invalid-feedback { /* Target feedback *after* invalid recaptcha */
    display: block !important; /* Force display */
}

/* Form Layout */
#contact-page-content .form-group {
    margin-bottom: 1.5rem;
}
#contact-page-content .form-group label {
     /* Ensure labels are readable against the dark background */
     color: #ecf0f1;
     margin-bottom: .5rem; /* Standard spacing */
     font-weight: 500; /* Slightly bolder */
}

/* File Input Info Text */
#contact-page-content .file-input-info {
    font-size: 0.9em;
    color: #bdc3c7; /* Lighter grey, readable on dark bg */
    /* color: #6c757d; */ /* Original color */
    margin-top: .25rem;
    display: block;
}

/* Knowledge Base Suggestion Box */
#contact-page-content .kb-suggestion {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    /* background-color: #e9ecef; */ /* Original light bg */
    background-color: rgba(0, 0, 0, 0.2); /* Darker theme background */
    border-left: 4px solid #6dd5fa; /* Accent color border */
    /* border-left: 4px solid #fff; */ /* Original white border */
    font-size: 0.95em;
    color: #ecf0f1; /* Ensure text is light */
    border-radius: 4px; /* Add slight rounding */
}
#contact-page-content .kb-suggestion a {
    color: #8aeaff; /* Lighter accent color for link */
    text-decoration: underline;
}
#contact-page-content .kb-suggestion a:hover {
    color: #fff;
}


/* reCAPTCHA Specific Styles */
#contact-page-content .g-recaptcha-container {
    position: relative; /* Needed if absolute positioning children */
    margin-bottom: 1rem;
}
/* Highlight invalid recaptcha container */
#contact-page-content .g-recaptcha.is-invalid {
    border: 1px solid #dc3545;
    padding: 2px;
    border-radius: 4px;
    display: inline-block; /* Ensure border wraps correctly */
}
/* Optional: Scale recaptcha slightly if needed */
#contact-page-content .g-recaptcha {
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
}

/* Ensure standard form controls have readable text on dark bg */
#contact-page-content .form-control {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ecf0f1; /* Light text */
}
#contact-page-content .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #6dd5fa; /* Accent color on focus */
    color: #ecf0f1;
    box-shadow: 0 0 0 0.2rem rgba(109, 213, 250, 0.25); /* Focus glow */
}
/* Style placeholder text */
#contact-page-content .form-control::placeholder {
    color: #bdc3c7;
    opacity: 0.8;
}
/* Style select dropdowns */
#contact-page-content .form-control option {
     background-color: #2c3e50; /* Match dark background for dropdown */
     color: #ecf0f1;
}
/* Style file input button (browser specific, basic example) */
#contact-page-content .form-control-file {
    color: #ecf0f1;
}