/* ==========================================================================
   GLOBAL CONFIGURATIONS & VARIABLES
   ========================================================================== */
:root {
    --primary-color: #0056b3; 
    --secondary-color: #f2a900; 
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --nav-gradient: linear-gradient(135deg, #0056b3 0%, #002d62 100%);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Open Sans', sans-serif; 
    color: var(--text-dark); 
    line-height: 1.6; 
    padding-top: 75px; /* Perfect offset for the fixed colorful header */
}

h1, h2, h3 { 
    font-family: 'Merriweather', serif; 
    color: var(--primary-color); 
}

/* ==========================================================================
   VIBRANT & COLORFUL NAVIGATION BAR
   ========================================================================== */
header { 
    background: var(--nav-gradient); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem 5%; 
    max-width: 1200px; 
    margin: auto; 
}

/* Clear white contrast logo against the colorful background */
.logo { 
    font-size: 1.6rem; 
    font-weight: 700; 
    color: var(--text-light); 
    text-decoration: none; 
    letter-spacing: 0.5px;
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
    flex-wrap: wrap;
}

/* Links modified for a dark, rich backdrop layout */
.nav-links a { 
    text-decoration: none; 
    color: rgba(255, 255, 255, 0.85); 
    font-weight: 600; 
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease; 
}

/* Hover: Element snaps clean to beautiful saffron */
.nav-links a:hover { 
    color: var(--secondary-color); 
}

/* Sliding underline animation setup */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -1px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- THE DYNAMIC ACTIVE HIGHLIGHT STATE --- */
.nav-links a.active {
    color: var(--secondary-color) !important;
    font-weight: 700;
}

.nav-links a.active::after {
    width: 100%;
    background-color: var(--secondary-color);
}

/* --- ACTION TEXT BUTTON (EDUTECH) --- */
/* Solid white block button providing high conversion accent metrics */
.btn-highlight { 
    background-color: var(--text-light) !important; 
    color: var(--primary-color) !important; 
    padding: 0.5rem 1.2rem !important; 
    border-radius: 5px; 
    font-weight: 700 !important;
}

.btn-highlight:hover { 
    background-color: var(--secondary-color) !important; 
    color: var(--text-light) !important;
    box-shadow: 0 4px 12px rgba(242, 169, 0, 0.35);
}

.nav-links .btn-highlight::after {
    display: none !important;
}

.nav-links .btn-highlight.active {
    background-color: var(--secondary-color) !important;
    color: var(--text-light) !important;
}

/* ==========================================================================
   HERO & GENERAL MAIN PAGE LAYOUTS
   ========================================================================== */
.hero { 
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover; 
    height: calc(100vh - 75px); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: var(--text-light); 
    padding: 0 20px; 
}

.hero h1 { 
    color: var(--text-light); 
    font-size: 3rem; 
    margin-bottom: 1rem; 
    max-width: 800px; 
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
    max-width: 600px; 
}

.btn-primary { 
    background-color: var(--secondary-color); 
    color: #fff; 
    padding: 12px 24px; 
    font-size: 1rem; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-weight: bold; 
    text-decoration: none;
}

section { 
    padding: 4rem 5%; 
    max-width: 1200px; 
    margin: auto; 
    text-align: center; 
}

.page-header { 
    background-color: var(--bg-light); 
    padding: 3rem 5%; 
    text-align: center; 
    border-bottom: 1px solid #ddd; 
}

.page-header h1 { 
    font-size: 2.5rem; 
    margin-bottom: 0.5rem; 
}

.section-title { 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem; 
    position: relative; 
}

.section-title::after { 
    content: ''; 
    width: 60px; 
    height: 4px; 
    background-color: var(--secondary-color); 
    display: block; 
    margin: 10px auto 0; 
}

.section-subtitle { 
    max-width: 800px; 
    margin: 0 auto 3rem auto; 
    font-size: 1.1rem; 
    color: #555; 
}

/* ==========================================================================
   INTERACTIVE IMPACT SECTION
   ========================================================================== */
.impact-section { 
    background: var(--nav-gradient); 
    color: var(--text-light); 
    padding: 6rem 5%; 
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(242, 169, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.impact-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-around; 
    max-width: 1200px; 
    margin: auto; 
    gap: 2rem; 
    position: relative;
    z-index: 1;
}

.impact-stat { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px); 
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center; 
    flex: 1; 
    min-width: 250px; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.impact-stat:hover {
    transform: translateY(-15px) scale(1.05); 
    background: rgba(255, 255, 255, 0.15); 
    border-color: var(--secondary-color); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); 
}

.impact-stat h2 { 
    color: var(--secondary-color); 
    font-size: 4rem; 
    margin-bottom: 0.5rem; 
    font-family: 'Open Sans', sans-serif; 
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.impact-stat:hover h2 {
    color: #ffffff;
    text-shadow: 0 0 20px var(--secondary-color);
}

.impact-stat p { 
    font-size: 1.1rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: #e0e0e0; 
    transition: color 0.3s;
}

.impact-stat:hover p {
    color: #ffffff;
}

/* ==========================================================================
   GRID CARD INTERFACES (AREAS OF IMPACT)
   ========================================================================== */
.teaser-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem; 
    margin-top: 2rem; 
}

.teaser-card { 
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    padding: 1.5rem; 
    text-align: center; 
    transition: transform 0.3s, border-color 0.3s; 
}

.teaser-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--secondary-color); 
}

.teaser-icon { 
    font-size: 3rem; 
    margin-bottom: 1rem; 
}

.teaser-card h3 { 
    margin-bottom: 1rem; 
    font-size: 1.3rem; 
}

.teaser-card a { 
    color: var(--primary-color); 
    font-weight: bold; 
    text-decoration: none; 
    transition: color 0.3s;
}

.teaser-card a:hover { 
    color: var(--secondary-color); 
}

/* Alternate Dark Theme Card Wrapper */
.teaser-card.blue-theme {
    background: var(--nav-gradient);
    color: var(--text-light);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.teaser-card.blue-theme:hover {
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.5);
    border-color: transparent; 
}

.teaser-card.blue-theme h3 {
    color: var(--text-light); 
}

.teaser-card.blue-theme a {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
}

.teaser-card.blue-theme a:hover {
    background: var(--secondary-color); 
    color: var(--text-light);
}

/* Responsive Card Layout Framework adjustments */
@media (max-width: 992px) {
    .teaser-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .teaser-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TESTIMONIALS STRUCTURE
   ========================================================================== */
.testimonials-section { 
    background-color: var(--bg-light); 
    padding: 4rem 5%; 
}

.testimonials-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    max-width: 1200px; 
    margin: auto; 
}

.testimonial-card { 
    background: #fff; 
    padding: 2rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    position: relative; 
    text-align: left; 
    border-top: 4px solid var(--secondary-color); 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.quote-icon { 
    font-size: 3rem; 
    color: var(--primary-color); 
    opacity: 0.2; 
    position: absolute; 
    top: 10px; 
    left: 20px; 
    font-family: serif; 
    line-height: 1;
}

.testimonial-text { 
    font-style: italic; 
    color: #555; 
    margin-bottom: 1.5rem; 
    position: relative; 
    z-index: 1; 
    font-size: 1rem; 
}

.author-info { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-top: auto; 
    border-top: 1px solid #eee; 
    padding-top: 1rem;
}

.testimonial-img { 
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid var(--secondary-color); 
}

.author-details p { 
    margin: 0; 
    line-height: 1.4; 
}

.testimonial-author { 
    font-weight: bold; 
    color: var(--primary-color); 
    font-size: 1rem; 
}

.testimonial-role { 
    color: #777; 
    font-size: 0.85rem; 
}

/* ==========================================================================
   CONTACT FORM & ASYNC SUCCESS VIEWS
   ========================================================================== */
.btn-submit { 
    width: 100%; 
    font-size: 1.1rem; 
    padding: 12px; 
    background-color: var(--primary-color); 
    color: white; 
    border: none; 
    border-radius: 4px; 
    margin-top: 10px; 
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-submit:hover { 
    background-color: var(--secondary-color); 
}

.btn-submit:disabled {
    background-color: #cccccc !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-home {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
    transition: all 0.3s ease;
}

.btn-home:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 169, 0, 0.3);
}

/* ==========================================================================
   FOOTER STRUCTURE
   ========================================================================== */
footer { 
    background: var(--primary-color); 
    color: var(--text-light); 
    padding: 3rem 5% 1rem; 
}

.footer-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    max-width: 1200px; 
    margin: auto; 
    gap: 2rem; 
    text-align: left; 
}

.footer-col { 
    flex: 1; 
    min-width: 250px; 
}

.footer-col h3 { 
    color: var(--secondary-color); 
    margin-bottom: 1rem; 
}

.footer-col p { 
    margin-bottom: 0.5rem; 
    font-size: 0.95rem; 
}

.footer-col ul { 
    list-style: none; 
}

.footer-col ul li { 
    margin-bottom: 0.5rem; 
}

.footer-col ul a { 
    color: var(--text-light); 
    text-decoration: none; 
    font-size: 0.95rem; 
}

.footer-col ul a:hover { 
    color: var(--secondary-color); 
    text-decoration: underline; 
}

.footer-bottom { 
    text-align: center; 
    margin-top: 2rem; 
    padding-top: 1rem; 
    border-top: 1px solid rgba(255,255,255,0.2); 
    font-size: 0.8rem; 
}

/* --- THE DYNAMIC ACTIVE HIGHLIGHT STATE --- */
/* This now perfectly mirrors the hover state pattern when you are on the page */
.nav-links a.active {
    color: var(--secondary-color) !important;
}

.nav-links a.active::after {
    width: 100% !important;
    background-color: var(--secondary-color) !important;
}

/* ==========================================================================
   LOGO GRAPHIC & TYPOGRAPHY STYLING
   ========================================================================== */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.03); /* Subtle pop when hovered */
}

.logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.15));
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light, #ffffff);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.brand-subtext {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary-color, #f2a900); /* Stands out in brand saffron */
    text-transform: uppercase;
    letter-spacing: 1px;
}