/* CSS Section for Vivaantra Website */

/* Define CSS Variables for Colors */
:root {
    --tekhelet: #3d348bff;           /* Dark Blue/Purple */
    --medium-slate-blue: #7678edff; /* Lighter Blue/Purple */
    --selective-yellow: #f7b801ff;   /* Bright Yellow */
    --tangerine: #f18701ff;          /* Orange */
    --persimmon: #f35b04ff;          /* Reddish-Orange */
    --light-grey: #f8f8f8;           /* Very light background */
    --white: #ffffff;
    --dark-text: #333;
    --medium-text: #555;
    --light-border: #eee;
    --shadow-light: rgba(0,0,0,0.08);
    --shadow-strong: rgba(0,0,0,0.15);
}

/* Base Styles & Typography */
body {
    font-family: 'Open Sans', 'Arial', sans-serif; /* Prefer a clean font if loaded */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--light-grey);
    scroll-behavior: smooth;
}

.website-container {
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Arial', sans-serif; /* Stronger font for headings */
    color: var(--tekhelet);
    line-height: 1.2;
    margin-top: 0;
}

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: var(--medium-slate-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--selective-yellow);
}

/* Buttons (CTAs) */
.cta-button {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: nowrap;
    font-size: 0.95em;
}

.primary-cta {
    background-color: var(--selective-yellow);
    color: var(--tekhelet); /* Changed to tekhelet for better contrast with yellow */
    border: 2px solid var(--selective-yellow);
}

.primary-cta:hover {
    background-color: var(--tangerine);
    border-color: var(--tangerine);
    color: var(--white);
    transform: translateY(-2px);
}

.secondary-cta {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.secondary-cta:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--selective-yellow);
    color: var(--selective-yellow);
    transform: translateY(-2px);
}

.nav-cta {
    background-color: var(--selective-yellow);
    color: var(--tekhelet); /* Changed to tekhelet for better contrast with yellow */
    border: none;
    padding: 8px 18px; /* Slightly smaller for nav */
    font-size: 0.9em;
}
.nav-cta:hover {
    background-color: var(--tangerine);
    color: var(--white);
}

.small-button {
    padding: 8px 20px;
    font-size: 0.9em;
}

/* Header & Navigation */
.header {
    background-color: var(--tekhelet);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}

.logo-img {
    height: 40px; /* Adjust logo size */
    width: auto;
    margin-right: 10px;
}

.site-title {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: var(--white);
}

.site-tagline {
    font-size: 0.8em;
    margin-left: 10px;
    color: rgba(255,255,255,0.8);
    align-self: flex-end;
    padding-bottom: 2px;
    display: block; /* Ensure it's on its own line if space is tight */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--white);
    font-weight: 500;
    font-size: 1.05em;
    padding: 5px 0;
    position: relative;
    white-space: nowrap; /* Prevent nav items from wrapping */
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--selective-yellow);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after { /* Active state for current page */
    width: 100%;
}
.main-nav ul li a:hover {
    color: var(--selective-yellow);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--white);
    font-size: 2em;
    cursor: pointer;
    order: 2; /* Ensure it appears after the logo on smaller screens */
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap; /* Prevent immediate wrapping of header items */
        justify-content: space-between;
    }
    .main-nav {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: var(--tekhelet); /* Same as header */
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        box-shadow: 0 5px 10px var(--shadow-strong);
        animation: slideDown 0.3s ease-out forwards;
        transform-origin: top;
        padding-bottom: 10px;
        z-index: 999; /* Below sticky header but above content */
    }

    .main-nav.active {
        display: flex; /* Show when active */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .main-nav ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Separator */
    }
    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1em;
        color: var(--white);
    }
    .main-nav ul li a::after {
        display: none; /* Hide underline on mobile */
    }
    .main-nav ul li a.active {
        background-color: var(--medium-slate-blue); /* Highlight active link on mobile */
    }

    .nav-cta {
        display: none; /* Hide nav CTA on mobile when menu is collapsed, could be shown inside active menu */
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    @keyframes slideDown {
        from { transform: scaleY(0); opacity: 0; }
        to { transform: scaleY(1); opacity: 1; }
    }
}


/* Hero Section */
.hero {
    background-color: var(--tekhelet); /* Fallback background */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    padding: 120px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    position: relative;
    overflow: hidden; /* For potential background effects */
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 52, 139, 0.9); /* Overlay using tekhelet with 90% opacity */
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    position: relative; /* Bring content above overlay */
    z-index: 2;
}

.hero .pre-headline {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--medium-slate-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--white); /* White for main headline */
}
.hero h2 .highlight {
    color: var(--selective-yellow); /* Yellow for 'AI' */
}

.hero h3 {
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--medium-slate-blue);
}

.hero p {
    font-size: 1.15em;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Page Hero for Sub-Pages */
.page-hero {
    background-color: var(--tekhelet);
    color: var(--white);
    padding: 80px 20px 60px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow-light);
}
.page-hero h2 {
    font-size: 3em;
    color: var(--white);
    margin-bottom: 15px;
}
.page-hero-subtitle {
    font-size: 1.2em;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin: 0 auto;
}


/* General Section Styling */
.content-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--white);
}

.bg-light {
    background-color: var(--light-grey);
}

.bg-medium-slate-blue {
    background-color: var(--medium-slate-blue);
    color: var(--white);
}

.section-intro {
    padding: 60px 0;
}
.section-intro h2 {
    margin-bottom: 20px;
}
.intro-text {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--medium-text);
}

.cta-strip {
    text-align: center;
    padding: 60px 20px;
}
.cta-strip h3 {
    color: var(--white);
    font-size: 2.5em;
    margin-bottom: 20px;
}
.cta-strip p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: rgba(255,255,255,0.9);
}


h2 {
    font-size: 2.8em;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--tangerine);
    border-radius: 2px;
}

h3 {
    font-size: 2.2em;
    color: var(--tekhelet);
    margin-top: 40px;
    margin-bottom: 20px;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 10px;
}

/* About Us Section */
.about-us p {
    max-width: 900px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
    text-align: justify; /* Justify text for a professional look */
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}
.about-card {
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    text-align: left;
    display: flex;
    flex-direction: column;
}
.about-card-img {
    max-width: 100%;
    height: 200px; /* Fixed height for image consistency */
    object-fit: cover; /* Crop image to fit */
    border-radius: 8px;
    margin-bottom: 20px;
}
.about-card h3 {
    font-size: 1.5em;
    color: var(--tangerine); /* Using tangerine for about card headings */
    margin-top: 0;
    margin-bottom: 15px;
}
.about-card p {
    font-size: 1em;
    text-align: left;
    flex-grow: 1;
}

.about-us ul {
    text-align: left;
    max-width: 900px;
    margin: 30px auto;
}
.about-us ul li {
    background: var(--white);
    padding: 18px;
    border-left: 6px solid var(--selective-yellow); /* Accent border */
    margin-bottom: 18px;
    box-shadow: 0 3px 8px var(--shadow-light);
    border-radius: 8px;
    font-size: 1.05em;
    color: var(--dark-text);
}
.about-us ul li strong {
    color: var(--tekhelet);
    font-size: 1.1em;
}
.about-cta-text {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--tekhelet);
    margin-top: 40px;
    margin-bottom: 30px;
}


/* Programs Section */
.programs .container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.program-category {
    text-align: center;
}

.program-category h3 {
    font-size: 2.2em;
    color: var(--tekhelet);
    border-bottom: 3px solid var(--medium-slate-blue); /* Border for category heading */
    padding-bottom: 15px;
    margin-bottom: 40px;
    display: inline-block; /* For the border to wrap text */
    text-align: center;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-light);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow-strong);
}

.course-card h4 {
    color: var(--tangerine); /* Using tangerine for course card headings */
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
}

.course-card p {
    font-size: 1em;
    color: var(--medium-text);
    margin-bottom: 20px;
    flex-grow: 1; /* Make paragraphs take up available space */
}

.course-card ul {
    margin-top: 15px;
    list-style: disc; /* Standard bullet points for lists */
    padding-left: 20px;
    font-size: 0.95em;
    color: var(--dark-text);
    margin-bottom: 20px;
}
.course-card ul li {
    margin-bottom: 8px;
}
.course-card ul li strong {
    color: var(--tekhelet); /* Emphasize key points in lists */
}

.section-ctas {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}


/* Testimonials Section (Add if not already present in HTML) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-card p {
    font-style: italic;
    font-size: 1em;
    color: var(--medium-text);
    margin-bottom: 15px;
    flex-grow: 1;
}
.testimonial-card .author {
    font-weight: bold;
    color: var(--tekhelet);
    margin-top: 10px;
    font-size: 1.05em;
}
.testimonial-card .rating {
    color: var(--selective-yellow); /* Stars color */
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Why Choose Us Section */
.why-choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.why-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.why-card .icon {
    font-size: 3em;
    color: var(--tangerine);
    margin-bottom: 20px;
}
.why-card h4 {
    font-size: 1.5em;
    color: var(--tekhelet);
    margin-top: 0;
    margin-bottom: 10px;
}
.why-card p {
    font-size: 0.95em;
    color: var(--medium-text);
}


/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.resource-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}
.resource-card:hover {
    transform: translateY(-5px);
}
.resource-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.resource-card-content {
    padding: 20px;
}
.resource-card h4 {
    font-size: 1.3em;
    color: var(--tangerine);
    margin-bottom: 10px;
    line-height: 1.3;
}
.resource-card p {
    font-size: 0.9em;
    color: var(--medium-text);
    margin-bottom: 15px;
}
.resource-card .cta-button {
    width: calc(100% - 40px); /* Adjust for padding */
    margin: 0 20px 20px;
    padding: 10px 0;
    font-size: 0.85em;
}

/* FAQ Section */
.faq-section {
    text-align: center;
}
.faq-grid {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}
.faq-item {
    background-color: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    overflow: hidden; /* For smooth transitions of content */
}
.faq-item h3 {
    background-color: var(--tekhelet);
    color: var(--white);
    padding: 18px 25px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}
.faq-item h3:hover {
    background-color: var(--medium-slate-blue);
}
.faq-item h3 .toggle-icon {
    margin-left: 15px;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0; /* Hidden by default */
    opacity: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, padding 0.4s ease-out;
    color: var(--dark-text);
    padding-bottom: 0; /* Reset bottom padding when collapsed */
}
.faq-item.active .faq-answer {
    max-height: 500px; /* Large enough to accommodate content, will adjust based on JS scrollHeight */
    opacity: 1;
    padding-top: 15px;
    padding-bottom: 25px; /* Apply desired padding when expanded */
}
.faq-item.active h3 {
    background-color: var(--medium-slate-blue); /* Slightly different background when open */
}
.faq-item.active h3 .toggle-icon {
    transform: rotate(180deg); /* Rotate icon when active */
}


/* Contact Section (Assuming a form or contact details) */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}
.contact-info, .contact-form-container {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.contact-info h4 {
    color: var(--tekhelet);
    font-size: 1.8em;
    margin-bottom: 20px;
}
.contact-info p {
    margin-bottom: 10px;
    color: var(--medium-text);
}
.contact-info p i {
    color: var(--tangerine);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}
.contact-info a {
    color: var(--tekhelet);
    font-weight: 500;
}
.contact-info .social-links a {
    font-size: 1.5em;
    margin-right: 15px;
    color: var(--medium-slate-blue);
}
.contact-info .social-links a:hover {
    color: var(--selective-yellow);
}

.contact-form-container h4 {
    color: var(--tekhelet);
    font-size: 1.8em;
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-text);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--light-border);
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form input[type="submit"] {
    background-color: var(--selective-yellow);
    color: var(--tekhelet);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.contact-form input[type="submit"]:hover {
    background-color: var(--tangerine);
    color: var(--white);
    transform: translateY(-2px);
}


/* Footer */
.footer {
    background-color: var(--tekhelet);
    color: var(--white);
    padding: 50px 0 20px;
    font-size: 0.95em;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col {
    text-align: left;
}

.footer-logo-link {
    margin-bottom: 15px;
}

.footer-title {
    font-size: 1.5em;
    color: var(--white);
    margin-bottom: 5px;
}

.footer-description {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--selective-yellow); /* Yellow for footer headings */
    font-size: 1.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.social-icon {
    color: var(--white);
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--medium-slate-blue);
}

.contact-email {
    color: rgba(255,255,255,0.7);
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85em;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 3em;
    }
    .hero h3 {
        font-size: 1.7em;
    }
    .main-nav ul li {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .hero {
        padding: 80px 15px;
        min-height: 500px;
    }
    .hero h2 {
        font-size: 2.5em;
    }
    .hero h3 {
        font-size: 1.5em;
    }
    .hero p {
        font-size: 1em;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 15px;
    }
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    .content-section {
        padding: 60px 0;
    }
    h2 {
        font-size: 2.2em;
    }
    h3 {
        font-size: 1.8em;
    }
    .course-grid, .about-grid, .testimonials-grid, .why-choose-us-grid, .resources-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
    .footer-col {
        text-align: center; /* Center footer columns on mobile */
    }
    .footer-col .social-links {
        justify-content: center;
    }
    .faq-item h3 {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5em;
    }
    .site-tagline {
        display: none; /* Hide tagline on very small screens */
    }
    .hero h2 {
        font-size: 2em;
    }
    .hero h3 {
        font-size: 1.3em;
    }
    h2 {
        font-size: 1.8em;
    }
    .nav-cta { /* If re-introducing nav cta on mobile, consider breakpoint */
        padding: 10px 15px;
        font-size: 0.8em;
    }
}
