/* ==========================================================================
   1. GLOBAL VARIABLES, RESET & BASE STYLES
   ========================================================================== */
:root {
    /* Brand Color Palette - Extracted precisely from the Mentis Logo */
    --primary: #0a3a40;           /* Deep Corporate Teal / Silhouette Blue */
    --primary-hover: #052125;     /* Ultra-deep teal for text contrast and hovers */
    --secondary: #529c38;         /* Vibrant Leaf Green from the growth tree icon */
    --secondary-hover: #417d2c;   /* Darker leaf green for active button states */
    --text-main: #3d4a4c;         /* Slate charcoal with a touch of teal warmth */
    --text-dark: #051618;         /* Deepest brand color for contrast headings */
    --bg-light: #f1f6f5;          /* Calming, ultra-light sage-teal background wash */
    --bg-white: #ffffff;
    --accent-tint: #e6eff2;       /* Light blue-teal overlay tint */
    --border-color: #d1dfdf;      /* Soft teal gray separation borders */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Micro-interactions & Structure */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(10,58,64,0.1);
    --shadow-md: 0 4px 12px -1px rgba(10,58,64,0.06), 0 2px 4px -1px rgba(10,58,64,0.03);
    --shadow-lg: 0 12px 20px -3px rgba(10,58,64,0.08), 0 4px 8px -2px rgba(10,58,64,0.06);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Structural Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.small-container {
    max-width: 800px;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.center-text { text-align: center; }
.margin-bottom { margin-bottom: 3.5rem; }

/* ==========================================================================
   2. TYPOGRAPHY & BUTTONS
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 3.25rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Button Component System */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   3. LAYOUT GRID ENGINES
   ========================================================================== */
.grid-2 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 3rem; 
}

.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
}

.grid-4 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 2rem; 
}

/* ==========================================================================
   4. MODULAR HEADER & STICKY NAVIGATION
   ========================================================================== */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    padding: 1.25rem 0;
    box-shadow: 0 4px 30px rgba(10, 58, 64, 0.02);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    color: var(--text-main);
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    
}

.nav-menu a:not(.btn-nav):hover {
    color: var(--primary);
}

.nav-menu a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-menu a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    background: var(--secondary);
    color: var(--bg-white) !important;
}

.btn-nav:hover {
    background: var(--secondary-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   5. HOVER SECTIONS & TICKERS
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    padding: 8rem 0;
}

.hero-content { max-width: 800px; }
.hero h1 { color: var(--primary); font-size: 3.5rem; }
.hero p { font-size: 1.2rem; color: var(--text-main); margin-bottom: 2.5rem; }

.ticker-strip {
    background: var(--primary);
    color: var(--bg-white);
    padding: 1.25rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-wrap {
    display: inline-block;
    animation: marquee 35s linear infinite;
}

.ticker-item {
    font-size: 1.15rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--bg-light);
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.section-header h2 { margin-bottom: 0; color: var(--primary); }

.card {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary);
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--secondary);
    padding-left: 5px;
}

/* Stats Block */
.stats-section {
    background: var(--primary-hover);
    color: var(--bg-white);
}

.stat-box { text-align: center; padding: 1.5rem; }
.stat-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: #a3c1c4;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* FAQs */
.faq-item {
    background: var(--bg-light);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.faq-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary);
}

/* ==========================================================================
   6. INNER COMPONENTS (Forms, Highlights, Sub-Banners)
   ========================================================================== */
.page-banner {
    background: linear-gradient(rgba(5, 33, 37, 0.9), rgba(10, 58, 64, 0.95));
    color: var(--bg-white);
    padding: 6rem 0;
    text-align: center;
}

.page-banner h1 { color: var(--bg-white); font-size: 3.5rem; }
.page-banner p { color: #b1cfd2; margin-bottom: 0; font-size: 1.2rem; }

.highlight-box {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.styled-list { list-style: none; }
.styled-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
}
.styled-list li::before {
    content: "✓";
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.team-card {
    text-align: center;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.designation { font-style: italic; color: var(--secondary); font-weight: 500; margin-bottom: 0.5rem; }
.reg-number { font-size: 0.85rem; color: #5a7173; display: block; letter-spacing: 0.5px; }

.program-detailed-card {
    background: var(--bg-light);
    padding: 3.5rem 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.focus-card {
    background: var(--accent-tint);
    border-left: 6px solid var(--primary);
}

.blog-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
}

/* Contact Inputs & Form Validation States */
.form-container {
    background: var(--bg-light);
    padding: 3.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group { margin-bottom: 1.75rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.95rem; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 58, 64, 0.1);
}

.contact-info-panel h2 { color: var(--primary); }
.contact-details-block { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.contact-details-block p { margin-bottom: 1rem; font-size: 1.1rem; }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
    background: #051a1c;
    color: #a1b5b7;
    padding: 5rem 0 0 0;
}

.site-footer h3, .site-footer h4 { color: var(--bg-white); }
.site-footer p, .site-footer a { color: #cbdcdb; font-size: 1rem; text-decoration: none; transition: var(--transition); }
.site-footer a:hover { color: var(--secondary); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-brand p { margin-top: 1rem; color: #7f999b; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-contact p { margin-bottom: 0.75rem; }

.footer-bottom {
    background: #020b0c;
    padding: 1.75rem 0;
    text-align: center;
    border-top: 1px solid #0d2d30;
    font-size: 0.95rem;
    color: #5a7173;
}

/* ==========================================================================
   8. MEDIA QUERIES
   ========================================================================== */
@media(max-width: 992px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
}

@media(max-width: 768px) {
    .section-padding { padding: 4rem 0; }
    .header-flex { flex-direction: column; gap: 1.5rem; text-align: center; }
    .nav-menu { flex-direction: column; gap: 1.25rem; width: 100%; }
    .btn-nav { width: 100%; max-width: 300px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
    .hero { padding: 5rem 0; }
    .hero h1 { font-size: 2.5rem; }
    .form-container { padding: 2rem; }
}


/* ==========================================================================
   9. BRANDED ACCORDION / TOGGLE DROPDOWN ENGINE
   ========================================================================== */
.wdt-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.wdt-accordion-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    overflow: hidden;
    transition: var(--transition);
}

/* Remove default browser arrow indicators */
.wdt-accordion-title::-webkit-details-marker {
    display: none;
}
.wdt-accordion-title {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.wdt-accordion-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary);
}

/* Custom CSS +/- Icon Toggle Component */
.wdt-accordion-icon {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Create the Horizontal bar of the plus sign */
.wdt-accordion-icon::before,
/* Create the Vertical bar of the plus sign */
.wdt-accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Horizontal Line dimensions */
.wdt-accordion-icon::before {
    width: 100%;
    height: 2px;
}

/* Vertical Line dimensions */
.wdt-accordion-icon::after {
    width: 2px;
    height: 100%;
}

/* Open State Micro-Interactions */
.wdt-accordion-item[open] {
    background: var(--bg-white);
    border-color: var(--border-color);
    border-left-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.wdt-accordion-item[open] .wdt-accordion-title {
    color: var(--secondary);
    border-bottom: 1px solid var(--border-color);
}

/* Rotate the vertical line away when opened to morph the "+" into a "-" smoothly */
.wdt-accordion-item[open] .wdt-accordion-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}
.wdt-accordion-item[open] .wdt-accordion-icon::before {
    background-color: var(--secondary);
}

/* Dropdown Expandable body panel content styling */
.wdt-accordion-description {
    padding: 2rem;
    color: var(--text-main);
    background-color: var(--bg-white);
    font-size: 1.05rem;
    animation: wdtFadeIn 0.4s ease-out;
}

.wdt-accordion-description p:last-child {
    margin-bottom: 0;
}

@keyframes wdtFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Profile Image Circle Scale Trigger */
.team-card:hover .profile-image-wrapper {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.team-card:hover .profile-image-wrapper img {
    transform: scale(1.05);
}


/* ==========================================================================
   2. ADVANCED RESPONSIVE SITE NAVIGATION HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-white, #ffffff);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 2px 10px rgba(10, 58, 64, 0.04);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.logo-brand img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Desktop Menu Layout Settings */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark, #2d3748);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:not(.btn):hover {
    color: var(--primary, #0a3a40);
}

/* Micro-Interaction Highlight Bar for Links */
.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary, #529c38);
    transition: width 0.3s ease;
}

.nav-menu a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Toggle Hamburger Icon Button Configurations */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1010;
    flex-direction: column;
    gap: 6px;
}

.burger-bar {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--primary, #0a3a40);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

/* ==========================================================================
   MOBILE BREAKPOINT TRIGGER LAYER (Beneath 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .header-flex {
        height: 75px;
    }
    
    .logo-brand img {
        height: 50px;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    /* Transform navigation into a secure top-down interactive mobile tray */
    .nav-menu {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: var(--bg-white, #ffffff);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 3rem 2.5rem;
        gap: 2rem;
        z-index: 1005;
        
        /* Slide & Animation Logic */
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s;
        border-top: 1px solid var(--border-color, #e2e8f0);
        overflow-y: auto;
    }

    .nav-menu.is-visible {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        font-size: 1.4rem;
        font-weight: 600;
        width: 100%;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(10, 58, 64, 0.05);
    }

    .nav-menu a:not(.btn)::after {
        display: none;
    }

    .nav-cta-wrapper {
        width: 100%;
        margin-top: 1.5rem;
    }

    .nav-menu .btn-nav {
        display: block;
        text-align: center;
        width: 100%;
        padding: 1.1rem 2rem;
        font-size: 1.2rem;
        background-color: var(--primary, #0a3a40);
        color: #ffffff;
        border-radius: var(--radius, 8px);
    }

    /* Morphing Hamburger Menu Animations to an 'X' */
    .mobile-nav-toggle.is-active .burger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--secondary, #529c38);
    }

    .mobile-nav-toggle.is-active .burger-bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.is-active .burger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--secondary, #529c38);
    }
}


/* ==========================================================================
   BUTTON & NAVIGATION COMPONENTS
   ========================================================================== */
/* The main menu button default design styling */
.btn-nav {
    display: inline-block;
    background-color: var(--secondary, #529c38); /* Elegant brand leaf green */
    color: #ffffff !important;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px; /* Rounded pill style shape */
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(82, 156, 56, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth micro-interactions on desktop hover */
.btn-nav:hover {
    background-color: var(--primary, #0a3a40); /* Turns into your deep corporate teal */
    box-shadow: 0 6px 16px rgba(10, 58, 64, 0.25);
    transform: translateY(-2px); /* Subtle premium upward lift */
}

/* Active pressing downward feedback layout */
.btn-nav:active {
    transform: translateY(0);
}

/* Prevent menu hover underline from appearing underneath the button link */
.nav-menu a.btn-nav::after {
    display: none !important;
}

/* ==========================================================================
   GLOBAL PAGE BANNER INTEGRATION SPACING
   ========================================================================== */
.page-banner {
    background: linear-gradient(135deg, var(--primary, #0a3a40) 0%, #12535b 100%);
    color: #ffffff;
    padding: 7rem 0 5rem 0; /* Clear top padding block ensures no overlap beneath the 85px fixed menu bar */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner h1 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.page-banner p {
    font-size: 1.15rem;
    color: #cbdcdb;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Media query adjustment step layer for mobile displays */
@media (max-width: 768px) {
    .page-banner {
        padding: 6.5rem 0 4rem 0;
    }
    .page-banner h1 {
        font-size: 2.2rem;
    }
    .page-banner p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}