:root {
    /* Color Palette - Tanjore Fusion */
    --color-bg-deep: #2A0A10;
    /* Deep Maroon/Brown background */
    --color-bg-darker: #1a0508;
    --color-bg-light: #F9F5F0;
    /* Cream/Off-white for panels */
    --color-primary: #800020;
    /* Burgundy */
    --color-secondary: #0F172A;
    /* Deep Navy */
    --color-accent: #D4AF37;
    /* Gold */
    --color-accent-hover: #B59328;
    --color-text-main: #1F2937;
    --color-text-light: #F3F4F6;
    --color-text-muted: #9CA3AF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Effects */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);
    --border-gold: 1px solid var(--color-accent);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    background-color: var(--color-bg-deep);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-deep);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Utilities */
.text-center {
    text-align: center;
}

.full-width {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #B8860B);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
}

.btn-outline {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(42, 10, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    z-index: 1002;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}



.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
}

.nav-links a {
    color: #fff;
    font-size: 0.95rem;
    position: relative;
    font-weight: 400;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(-45deg, #1a0508, #3E2723, #B8860B, #5D4037, #1a0508);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    padding-top: 60px;
    /* offset nav */
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    /* Subtle effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 5, 8, 0.3), rgba(42, 10, 16, 0.4));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    /* Fallback color */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 20;
    /* Ensure clickable */
    opacity: 1;
    /* Ensure visible */
}

.hero-proposition {
    font-size: 0.95rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proof-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}

.proof-item i {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

.separator {
    color: #444;
}

.hero-border-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* Curriculums Band Premium Upgrade */
.curriculums-band {
    position: relative;
    background: radial-gradient(circle at 50% 50%, #2A0A10 0%, #150507 100%);
    padding: 80px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
    overflow: hidden;
}

/* Golden Ambient Glow */
.curriculums-band::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.curriculum-header {
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

.curriculum-header h3 {
    color: var(--color-accent);
    font-size: 2.5rem;
    /* Larger and grander */
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #D4AF37, #FFF, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.2));
}

.curriculum-header p {
    color: #d1d5db;
    font-size: 1.1rem;
    font-weight: 300;
}

.curriculum-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 2.5rem auto;
}

.curr-item {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    /* Pill Shape */
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Flex alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide old separators */
.curr-item::after {
    display: none !important;
}

/* Golden Hover Effect */
.curr-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.1);
    transform: translateY(-5px) scale(1.05);
    color: #fff;
    background: rgba(212, 175, 55, 0.15);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.curriculum-microcopy {
    position: relative;
    z-index: 2;
    color: #f3f4f6;
    /* Brighter white */
    font-size: 1.25rem;
    /* Increased from 0.9rem */
    font-weight: 300;
    line-height: 1.6;
    max-width: 800px;
    /* Wider to accommodate larger text */
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Sections General */
.section {
    padding: 80px 0;
    /* Standardized vertical padding */
    background-color: var(--color-bg-deep);
    /* Default dark */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* In dark sections, titles are lighter or gold */
.section.programs-section .section-title,
.section.learning-journey .section-title,
.section.testimonials .section-title,
.section.faq-section .section-title {
    color: #fff;
}

.section-subtitle {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.gold-divider {
    height: 2px;
    width: 60px;
    background: var(--color-accent);
    margin: 1rem 0;
}

.gold-divider.center {
    margin: 1rem auto;
}

/* Programs Overview (Cards) */
.programs-section {
    background: linear-gradient(to bottom, #22080C, #2A0A10);
    position: relative;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
    align-items: stretch;
    /* Cards stretch to match height */
}

.card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    transition: transform 0.3s, border-color 0.3s;
    text-align: center;
    color: #eee;
    width: 100%;
    height: 100%;
    /* Fill the grid cell */
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Content aligns to top */
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-accent), #9A7D0A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.card h3 {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}

/* Tutor Section */
.tutor-section {
    background: linear-gradient(to bottom, #2A0A10, #350D14);
    padding-top: 2rem;
}

.panel-frame {
    background: var(--color-bg-light);
    padding: 3rem;
    border: 4px solid double;
    border-color: #e5e7eb;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 1000px;
    /* Constrain width */
    margin: 0 auto;
    /* Center on screen */
}

.panel-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--color-accent);
    pointer-events: none;
}

.tutor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.image-placeholder-frame {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(to bottom, #d1d5db, #9ca3af);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #fff;
    border: 1px solid var(--color-accent);
    outline: 4px solid #fff;
    outline-offset: -12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pre-title {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tutor-content .pre-title {
    display: block;
    text-align: left;
}

.tutor-role {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.tutor-bio {
    color: #4b5563;
    margin-bottom: 1rem;
}

.credentials-box {
    background: #f3f4f6;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 3px solid var(--color-primary);
}

/* Tutor specific overrides */
.tutor-content {
    order: -1;
    /* Moves text to the left on desktop */
}

.tutor-content .section-title {
    text-align: left;
}

.tutor-content .section-title::after {
    left: 0;
    transform: none;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

.credentials-box h5 {
    color: var(--color-primary);
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
}

.credentials-box ul li {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.platform-proof {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Why Choose Us */
.why-us {
    background: linear-gradient(to bottom, #F9F5F0, #FDFBF7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
    align-items: stretch;
    justify-items: center;
}

.feature-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.f-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Learning Journey */
.journey-steps {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.journey-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(212, 175, 55, 0.4);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-marker {
    width: 50px;
    height: 50px;
    background: var(--color-bg-deep);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.active-step .step-marker {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.step-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #ccc;
    font-size: 0.9rem;
    padding: 0 1rem;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(to bottom, #1E0609, #120305);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
    align-items: stretch;
}

.testimonial-card {
    background: #111;
    border-top: 4px solid var(--color-accent);
    padding: 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Center align all content including images */
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.testimonial-image-container {
    width: 160px;
    height: 160px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-accent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-placeholder-icon {
    font-size: 40px;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tutor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.audio-box {
    margin: 1rem 0;
    width: 100%;
}

.audio-box audio {
    width: 100%;
    height: 36px;
    border-radius: 20px;
}

.quote-icon {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.quote-text {
    font-style: italic;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.student-info strong {
    display: block;
    font-size: 1rem;
    color: #fff;
}

.student-info span {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Pricing */
.pricing {
    background: linear-gradient(to bottom, #FFFFFF, #F8F8F8);
    color: var(--color-text-main);
}

.pricing .section-title {
    color: var(--color-primary);
}

.section-desc {
    color: #666;
    margin-bottom: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
    align-items: stretch;
}

.pricing-card {
    background: #fff;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

/* Pricing card featured styles removed */

.ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-header h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.price .per {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
}

.price-features {
    text-align: left;
    margin-bottom: 2rem;
}

.price-features li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-features li i {
    color: var(--color-accent);
    font-size: 0.8rem;
}

/* FAQ */
.faq-section {
    background: linear-gradient(to bottom, #1a0508, #25080C);
    color: #fff;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 3rem auto 0;
    gap: 1.5rem;
    align-items: start;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 2rem;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.faq-item h4 {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact */
.contact-section {
    background: linear-gradient(to bottom, #25080C, #180507);
}

.contact-panel {
    background: var(--color-bg-light);
}

.contact-panel .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.col-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.col-form {
    display: flex;
    flex-direction: column;
}

.contact-lead {
    color: #555;
    margin-bottom: 2rem;
}

/* Align contact headers left */
.contact-panel .section-title {
    text-align: left;
}

.contact-panel .section-title::after {
    left: 0;
    transform: none;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

.contact-panel .pre-title {
    display: block;
    text-align: left;
}

.contact-details .detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #374151;
}

.contact-details i {
    color: var(--color-primary);
    width: 20px;
    flex-shrink: 0;
}

.booking-form {
    background: #fff;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.booking-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--color-secondary);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(128, 0, 32, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, #0F0204, #000000);
    color: #fff;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.tagline {
    color: #6b7280;
    margin-bottom: 2rem;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: #d1d5db;
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.copyright {
    color: #4b5563;
    font-size: 0.8rem;
}

/* Animations */
.fade-in-up {
    /* animation: fadeInUp 1s ease forwards; Removed to stop animation */
    opacity: 1;
    transform: none;
}

.delay-1 {
    /* animation-delay: 0.2s; */
}

.delay-2 {
    /* animation-delay: 0.4s; */
}

.delay-3 {
    /* animation-delay: 0.6s; */
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none;
    }
}

.scroll-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section-Specific Animations */
.curriculum.scroll-hidden {
    transform: translateX(-50px);
}

.programs.scroll-hidden {
    transform: scale(0.95);
}

.tutor-section.scroll-hidden {
    transform: translateX(50px);
}

.pricing.scroll-hidden {
    transform: translateY(30px) scale(0.98);
}

.journey.scroll-hidden {
    transform: perspective(1000px) rotateX(10deg);
}

.contact-section.scroll-hidden {
    transform: translateY(30px);
}

/* Card Stagger Animations */
.card.scroll-hidden,
.pricing-card.scroll-hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card.visible,
.pricing-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Journey Step Animation */
.journey-step.scroll-hidden {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s ease;
}

.journey-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.hidden {
    display: none !important;
}

/* Enhanced Animations */

/* Card Hover Animations */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.frame-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

/* Icon Animations */
.icon-box {
    transition: all 0.4s ease;
}

.card:hover .icon-box {
    transform: rotateY(360deg) scale(1.1);
}

/* Gold Divider Animation */
.gold-divider {
    position: relative;
    animation: expandWidth 1s ease-out forwards;
    transform-origin: center;
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-content {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Animation for CTAs */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
}

.btn-primary {
    animation: pulse 2s infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Shimmer Effect - Available for future use */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Stagger Animation for Cards */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:nth-child(6) {
    animation-delay: 0.6s;
}

.card:nth-child(7) {
    animation-delay: 0.7s;
}

.card:nth-child(8) {
    animation-delay: 0.8s;
}

/* Pricing Card Special Animation */
/* Featured pulse animation removed */

@keyframes featuredPulse {

    0%,
    100% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1.08);
    }
}

/* Link Hover Animation */
.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Image Zoom on Hover */
.tutor-image {
    transition: transform 0.5s ease;
}

.tutor-image:hover {
    transform: scale(1.05);
}

/* Smooth Scroll Reveal - Disabled to prevent blank page */
/* .section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
} */

/* Loading Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: rotate 1s linear infinite;
}

/* Golden Highlights & Premium Effects */

/* Golden Glow on Hover */
.card:hover,
.pricing-card:hover {
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4),
        0 0 30px rgba(212, 175, 55, 0.2);
}

/* Animated Golden Border */
@keyframes goldenBorder {

    0%,
    100% {
        border-color: rgba(212, 175, 55, 0.3);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }

    50% {
        border-color: rgba(212, 175, 55, 0.8);
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
    }
}

.gold-border-thick {
    border: 4px solid double var(--color-accent);
}

/* Golden Accent Highlights */
.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        box-shadow: 0 0 5px var(--color-accent);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 20px var(--color-accent);
    }
}

/* Sparkle Effect */
@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.btn-primary::after {
    content: '✨';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    animation: sparkle 2s ease-in-out infinite;
}

/* Gold Divider Glow */
.gold-divider {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    animation: expandWidth 1s ease-out forwards, dividerGlow 2s ease-in-out infinite;
}

@keyframes dividerGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
    }
}

/* Icon Box Golden Glow */
.icon-box {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.card:hover .icon-box {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6),
        0 0 50px rgba(212, 175, 55, 0.3);
}

/* Pricing Card Golden Highlight */
/* Featured highlight removed */

/* Animated Golden Gradient Background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Text Golden Highlight on Hover */
.nav-links a:hover {
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Logo Glow */
/* Logo Styles & Animations */
.nav-logo-img,
.footer-logo-img {
    transition: all 0.3s ease;
}

.nav-logo-img {
    animation: textFloat 3s ease-in-out infinite;
}

.nav-logo-img:hover,
.footer-logo-img:hover {
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
    transform: scale(1.1) rotate(5deg);
}

.logo-text-shimmer {
    background: linear-gradient(to right, #bfa05b 0%, #ffffff 50%, #bfa05b 100%);
    background-size: 200% auto;
    color: #bfa05b;
    /* Fallback */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
    display: inline-block;
}

@keyframes textFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Bounce Animation REMOVED */
.btn-primary:hover {
    /* No animation loop */
    transform: translateY(-3px);
}

/* Golden Particle Effect */
@keyframes particles {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

.hero::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
    animation: particles 4s ease-in-out infinite;
    top: 50%;
    left: 20%;
}

.hero::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent);
    animation: particles 5s ease-in-out infinite 1s;
    top: 60%;
    right: 30%;
}

/* Form Input Golden Focus */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    outline: none;
}

/* Golden Shine Sweep */
@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(212, 175, 55, 0.3),
            transparent);
    animation: shine 3s ease-in-out infinite;
}

/* Journey Step Glow */
.journey-step:hover {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    border-color: var(--color-accent);
}


/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
        width: 100%;
    }

    .tutor-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .tutor-grid .tutor-content {
        order: 1;
        /* Bio after image */
    }

    .tutor-content .section-title,
    .tutor-content .pre-title {
        text-align: center;
    }

    .tutor-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    }

    .image-placeholder-frame {
        max-width: 450px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 3rem auto;
    }

    .contact-panel .row {
        gap: 2rem;
        grid-template-columns: 1fr;
        /* Stack visually */
    }

    /* Adjust Journey Path for Tablet */
    .journey-path {
        gap: 2rem;
        flex-wrap: wrap;
        /* Allow wrapping */
        justify-content: center;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 1rem;
        margin: 0 auto 3rem;
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
        white-space: normal;
        /* Allow text wrapping */
        word-wrap: break-word;
        /* Break long words if needed */
        max-width: 100%;
        padding: 14px 20px;
        /* Reduces side padding on mobile */
    }

    .proof-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .separator,
    .curr-item::after {
        display: none;
    }

    .tutor-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 2rem auto;
    }

    /* Reset journey steps for mobile */
    .journey-steps {
        display: none;
    }

    .journey-path {
        flex-direction: column;
        align-items: center;
    }

    .journey-line {
        display: none;
        /* Hide horizontal line */
    }

    /* Fix Layout Entry on Mobile */
    .panel-frame {
        padding: 1.5rem 1rem;
        /* Much smaller padding */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        /* Ensure padding doesn't add to width */
        overflow-x: hidden;
        /* contain any spills */
    }

    .panel-frame::before {
        display: none;
        /* Remove decorative border on mobile to save space */
    }

    .contact-panel .row {
        display: flex;
        flex-direction: column-reverse;
        /* Form FIRST on mobile */
        width: 100%;
        margin: 0;
        gap: 2rem;
    }

    /* Form Styles for Mobile */
    .col-form {
        width: 100%;
        padding: 0;
    }

    .booking-form {
        padding: 1.2rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid #eee;
        border-top: 4px solid var(--color-accent);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        overflow-x: hidden;
    }

    /* Info Styles for Mobile */
    .col-info {
        text-align: center;
        align-items: center;
        padding: 0;
        width: 100%;
    }

    .contact-panel .section-title {
        font-size: 1.6rem;
        text-align: center;
        word-wrap: break-word;
        /* Prevent text overflow */
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .contact-lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .contact-details {
        margin-top: 1rem;
        padding-top: 1.5rem;
        border-top: 1px solid #f3f4f6;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .detail-item {
        background: #f9fafb;
        padding: 0.8rem;
        border-radius: 8px;
        /* Softer rect */
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
        /* Align left for readability */
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .detail-item i {
        min-width: 20px;
        /* fixed width for icon alignment */
        text-align: center;
    }

    .detail-item span {
        flex: 1;
    }

    .email-stack {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow-wrap: break-word;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 1.5rem;
    }

    .grid-cards {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .footer {
        padding: 3rem 0;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .footer-links a {
        margin: 0;
        display: block;
        padding: 0.5rem;
        font-size: 1.1rem;
        /* Larger touch target */
    }

    .copyright {
        margin-top: 1.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    /* Improve Logo Size on Mobile */
    .brand-logo {
        font-size: 1.2rem;
    }

    .nav-logo-img {
        height: 30px;
    }
}

/* AI Tools */
.ai-section {
    background-color: var(--color-bg-light);
}

.ai-interface {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ai-controls {
    padding-right: 2rem;
    border-right: 1px solid #eee;
}

.ai-preview {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.empty-state {
    text-align: center;
    color: #9ca3af;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.loader {
    text-align: center;
    color: var(--color-primary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(128, 0, 32, 0.1);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-content {
    width: 100%;
}

.paper-header {
    border-bottom: 2px solid #000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paper-header h4 {
    font-family: serif;
    font-size: 1.2rem;
}

.question-list {
    list-style: none;
    margin-bottom: 2rem;
}

.question-list li {
    margin-bottom: 1rem;
    font-family: serif;
    font-size: 1.1rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #eee;
}

.blur-text {
    filter: blur(4px);
    user-select: none;
    opacity: 0.5;
}

.new-badge {
    background: var(--color-accent);
    color: #fff;
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    margin-left: 0.3rem;
    vertical-align: top;
    font-weight: 700;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#ai-topic {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
}

#ai-topic:focus {
    outline: none;
    border-color: var(--color-accent);
}