:root {
    /* Brand Colors - Extracted from theqschool.com */
    --primary: #0F6E7A; /* Deep Teal */
    --primary-hover: #004D4D;
    --secondary: #00bfa5; /* Vibrant Teal Accent */
    --accent: #F25334; /* Coral/Orange for CTA */
    
    /* Neutral Colors */
    --bg-light: #ffffff;
    --bg-alt: #f4f7f8;
    --text-dark: #1a2a44; /* Dark slate */
    --text-muted: #4a5568;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    white-space: normal; /* Allow text wrapping */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary);
    border-radius: 50% 50% 0 0;
    transform: translateY(100%) scaleY(0.5);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-radius 0.5s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: white;
    box-shadow: 0 6px 15px rgba(0, 191, 165, 0.4);
}

.btn-primary:hover::before {
    transform: translateY(0) scaleY(1);
    border-radius: 0;
}

/* Header - Liquid Glass Pill */
.main-header {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 20px;
    z-index: 1000;
    border-radius: 40px;
    margin: 20px auto 0 auto;
    max-width: 1200px;
    width: 95%;
    transition: all 0.3s ease;
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-q {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .main-nav ul {
        gap: 1rem;
    }
    .main-nav a {
        font-size: 0.85rem;
    }
    .header-cta .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

.main-nav ul li a:hover {
    color: var(--primary);
}

.main-nav ul li a:active {
    transform: scale(0.95);
    color: var(--secondary);
}

/* Click Effect Class for Logo */
.click-effect {
    display: inline-block;
    transition: transform 0.15s ease;
}
.click-effect:active {
    transform: scale(0.95);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-cta {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        border: 1px solid rgba(255, 255, 255, 0.5);
        padding: 10px 0;
        border-radius: 20px;
        z-index: 1001;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid #eaeaea;
    }
}

/* Sections General */
section {
    padding: 5rem 0;
}
.bg-alt {
    background-color: var(--bg-alt);
}
.bg-primary {
    background-color: var(--primary);
    color: white;
}
.text-white {
    color: white;
}
.text-center {
    text-align: center;
}
.text-primary {
    color: var(--primary);
}
.text-accent {
    color: var(--accent);
}
.mt-4 {
    margin-top: 2rem;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    color: var(--secondary);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.section-header h3 {
    font-size: 2.5rem;
    color: var(--text-dark);
}
.bg-alt .section-header h3 {
    color: var(--text-dark);
}
.system-section .section-header h3,
.assessment-section .section-header h3 {
    color: white;
}

/* --- HERO BANNER --- */
.hero-banner-section {
    padding: 0;
    overflow: hidden;
    background-color: #fff;
}
.hero-banner-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 400px;
    gap: 2rem;
}
.hero-banner-text {
    flex: 1;
    padding: 3rem 0;
}
.hero-banner-text h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-banner-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}
.hero-banner-text .btn {
    font-size: 0.95rem;
}
.hero-banner-text .age-group {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.hero-banner-text .hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-banner-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.hero-banner-image img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: contain;
}

/* Hero Banner — Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-banner-text h1 {
        font-size: 2rem;
    }
    .hero-banner-text p {
        font-size: 1.05rem;
    }
    .hero-banner-image img {
        max-height: 380px;
    }
}

/* Hero Banner — Mobile */
@media (max-width: 768px) {
    .hero-banner-layout {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        gap: 1rem;
    }
    .hero-banner-text {
        padding: 2rem 15px 0 15px;
    }
    .hero-banner-text h1 {
        font-size: 1.6rem;
    }
    .hero-banner-text p {
        font-size: 1rem;
    }
    .hero-banner-image {
        justify-content: center;
    }
    .hero-banner-image img {
        max-height: 280px;
    }
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}
.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}
.btn-secondary {
    background-color: var(--accent);
    color: white;
}
.btn-secondary:hover {
    background-color: #d94326;
}
.btn-block {
    display: block;
    width: 100%;
}

/* Grid & Layouts */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
    }
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.card h4 {
    color: var(--primary);
}

/* Ability Architecture Grid */
.ability-architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.ability-category-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ability-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(15, 110, 122, 0.1);
}
.ability-category-card .category-icon {
    width: 70px;
    height: 70px;
    background: rgba(15, 110, 122, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease, color 0.3s ease;
}
.ability-category-card:hover .category-icon {
    background: var(--primary);
    color: white;
}
.ability-category-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}
.ability-category-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 5D System */
.system-section {
    background-color: var(--text-dark);
}
.dimensions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.dimension {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #ddd;
}
.timeline-item {
    padding: 2rem;
    position: relative;
    width: 50%;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    margin-bottom: 2rem;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.age-badge {
    position: absolute;
    top: -15px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}
.journey-box {
    padding: 3rem;
    border-radius: 12px;
}
.cycle-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

/* Forms */
.form-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    max-width: 600px;
    margin: 2rem auto 0 auto;
    color: var(--text-dark);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.assessment-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

/* FAQs */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}
.faq-item h4 {
    padding: 1.5rem;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}
.faq-item h4:hover {
    background: #f9f9f9;
}
.faq-content {
    display: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #eee;
}

/* Footer */
.main-footer {
    background-color: var(--bg-light);
    color: var(--text-muted);
    padding: 4rem 0 2rem 0;
    border-top: 1px solid #eaeaea;
    position: relative;
    /* Adding a subtle patterned background effect */
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.footer-col h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Brand Column */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    color: var(--primary);
}
.logo-icon i {
    font-size: 3rem;
}
.logo-text strong {
    font-size: 1.5rem;
    line-height: 1;
}
.logo-text span {
    font-size: 0.8rem;
    letter-spacing: 2px;
}
.footer-phone {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.footer-phone i {
    margin-right: 8px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #e0e0e0;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s;
}
.footer-socials a:hover {
    background-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
    font-size: 0.9rem;
}

/* Helpers */
.highlight-box {
    background-color: rgba(15, 110, 122, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    font-weight: bold;
    color: var(--primary);
}

/* Section Images */
.col-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.section-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.section-img.rounded {
    border-radius: 50%;
    max-width: 250px;
    aspect-ratio: 1;
}

/* System Section Thumbnails */
.system-images {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.system-thumb {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem;
}

/* Timeline Images */
.timeline-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem;
}

/* Experiential Practices Gallery */
.practices-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.practices-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.practices-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* CTA container */
.cta-container {
    margin-top: 2rem;
}

/* Not-list styling */
.not-list ul {
    list-style: none;
    padding: 0;
}
.not-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Two-column list */
.two-col-list {
    columns: 2;
    column-gap: 2rem;
}

/* About section two-col fix */
.about-content.two-col {
    align-items: start;
}

/* Responsive tweaks for images and CTA */
@media (max-width: 768px) {
    /* CTA Banner Mobile Fixes */
    .cta-banner {
        padding: 3rem 1rem !important;
    }
    .cta-banner h2 {
        font-size: 1.8rem !important;
    }
    .cta-banner p {
        font-size: 1rem !important;
    }
    .cta-banner div p:last-child {
        font-size: 1.4rem !important;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }
    .container {
        padding: 0 15px;
    }
    .section-header h2 {
        font-size: 0.85rem;
    }
    .section-header h3 {
        font-size: 1.4rem;
    }
    
    /* Two-col stacking */
    .two-col {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .col-text {
        text-align: left;
    }
    .col-image {
        order: -1;
    }
    .section-img {
        max-width: 100% !important;
    }
    
    /* Ability Architecture Grid */
    .ability-architecture-grid {
        grid-template-columns: 1fr;
    }
    
    /* Practices Gallery */
    .practices-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Timeline */
    .timeline::before {
        left: 0;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        margin-left: 1rem;
    }
    .section-img.rounded {
        max-width: 180px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
    }
    
    /* Not-list card */
    .not-list.card {
        text-align: left;
    }
    
    /* Two-col list */
    .two-col-list {
        columns: 1;
    }
    
    /* Highlight box */
    .highlight-box {
        font-size: 0.9rem;
    }
}

/* Tablet-specific tweaks */
@media (min-width: 769px) and (max-width: 1024px) {
    section {
        padding: 4rem 0;
    }
    .section-header h3 {
        font-size: 2rem;
    }
    .ability-architecture-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .practices-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Dynamic Assessment Form */
.form-container {
    max-width: 720px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: var(--text-dark);
    text-align: left;
}
.form-container h4 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 110, 122, 0.15);
}
.required {
    color: var(--accent);
}
.full-width {
    grid-column: span 2;
}
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .full-width {
        grid-column: span 1;
    }
    .form-container {
        padding: 20px;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    text-align: center;
}

.preloader-content img {
    height: 60px;
    margin-bottom: 20px;
    animation: pulseLogo 1.5s infinite ease-in-out alternate;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid rgba(15, 110, 122, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseLogo {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

/* --- Special Effects & Animations --- */

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveals for grid items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Floating Animation for Hero/Images */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.float-effect {
    animation: float 6s ease-in-out infinite;
}

/* Image Hover Zoom Effect */
.img-zoom-wrapper {
    overflow: hidden;
    border-radius: 8px;
}
.img-zoom-wrapper img {
    transition: transform 0.5s ease;
}
.img-zoom-wrapper:hover img {
    transform: scale(1.05);
}
