/* Biography Section */
#biography {
    /* The Art of Dynamic Healing section background lighter opacity */
    background: rgba(178, 194, 149, 0.18); /* Sage (#B2C295) at lower opacity */
    margin: 2rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr; /* text left, image right */
    gap: 3rem;
    align-items: center;
    max-width: 85%;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 62ch; /* comfortable line length */
    color: var(--text-secondary);
    text-align: justify; /* justify paragraphs */
    hyphens: auto;
}
.bio-text p { margin: 0 0 1rem; }
.bio-text p:last-child { margin-bottom: 0; }
.bio-text .bio-highlight { color: var(--golden-warmth); font-weight: 600; }

.bio-media {
    width: 100%;
}
.bio-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(30, 42, 38, 0.25);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
}

/* Biography section follows standard min-height with slightly larger padding */
#biography.section { min-height: calc(92vh - 72px); padding: 3rem 1.5rem; }

/* Classes Section */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
}

/* Cards */
.class-card {
    background: transparent; /* fully transparent card */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 20px;
    padding: 0; /* we'll manage padding in body */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #FF8B59; /* Signature Practices border color */
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 560px; /* prevent overly wide cards */
}

.card-media {
    width: 100%;
    aspect-ratio: 3 / 2; /* slightly shorter media */
    overflow: hidden;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.class-card:hover .card-media img { transform: scale(1.05); }

.card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    color: #0f0f0f;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* Tighter, cleaner paragraph styling inside cards */
.class-card .section-content {
    padding-left: 0 !important;
    max-width: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.02rem;
    line-height: 1.75;
    letter-spacing: 0.005em;
    color: #0f0f0f;
    text-align: left;
    background: transparent !important; /* fully transparent content */
    border-radius: 0;
    padding: 0.85rem 1rem !important;
}

.class-card:hover {
    transform: translateY(-10px);
}

.class-title { 
    font-family: 'Manrope', Inter, system-ui, -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Enhanced Practices Section */
#enhancedPracticesPanel {
    /* Glossy layered background at ~85% opacity */
    background:
      radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.06) 38%, rgba(255,255,255,0) 62%),
      linear-gradient(135deg, rgba(15, 74, 81, 0.92) 0%, rgba(15, 74, 81, 0.85) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.25),             /* top sheen */
      inset 0 -14px 28px rgba(0,0,0,0.12);              /* bottom depth */
    color: var(--white);
    border-radius: 30px;
    margin: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Enhanced Practices: force white text for content and descriptions */
#enhancedPracticesPanel .section-content,
#enhancedPracticesPanel .class-card .section-content,
#enhancedPracticesPanel .flip-back p,
#enhancedPracticesPanel .flip-front .label {
    color: #ffffff !important;
}

/* Flip cards for Enhanced Practices */
.flip-card {
    perspective: 1000px;
    height: 300px; /* slightly taller to accommodate full images */
    min-height: 250px; /* ensure minimum height on mobile */
}
.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    border-radius: 16px;
    overflow: hidden;
}
/* Enlarge slightly on hover, no flip */
.flip-card.hovering .flip-inner { transform: scale(1.02); box-shadow: 0 18px 52px rgba(0,0,0,0.25); }
.flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: visible;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(20,24,22,0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.9s ease; /* slower, more delayed fade */
}
.flip-front { display: flex; flex-direction: column; }
.flip-front .thumb {
    width: 100%;
    flex: 1 1 auto; /* use available space */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
}
.flip-front .thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* show full image */
    object-position: center;
    filter: saturate(110%);
}
.flip-front .label { padding: 0.9rem 1rem 1.1rem; font-family: 'Manrope', Inter, system-ui, -apple-system, sans-serif; font-weight: 600; letter-spacing: 0.02em; color: var(--text-primary); }
.flip-back { padding: 1.1rem; align-items: flex-start; justify-content: flex-start; gap: 0.6rem; background: rgba(20,24,22,0.6); border-color: rgba(255,255,255,0.22); }
.flip-back h3 { margin: 0 0 0.25rem; font-family: 'Manrope', Inter, system-ui, -apple-system, sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--title-color); }
.flip-back p { margin: 0; color: var(--text-secondary); line-height: 1.65; }

/* Ensure front fades out and back fades in for clarity */
.flip-front { opacity: 1; }
.flip-back { opacity: 0; }
.flip-card.hovering .flip-front { opacity: 0; }
.flip-card.hovering .flip-back { opacity: 1; }
/* When leaving, just crossfade back (no flip) */
.flip-card.fade-back .flip-front { opacity: 1; }
.flip-card.fade-back .flip-back { opacity: 0; }

.enhanced-title {
    font-family: 'Great Vibes', cursive;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 400;
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
}

.tech-feature {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tech-feature:hover {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    transform: scale(1.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tech-feature h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Testimonials */
.slider-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.testimonial {
    padding: 2rem;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.2rem;
    font-style: normal;
    text-align: left;
    color: var(--text-secondary);
    max-width: 70ch;
}

.testimonial-author {
    font-weight: 600;
    color: var(--golden-warmth);
}

/* Footer */
footer {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #000000; /* Force black text in footer */
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(30, 42, 38, 0.08);
    box-shadow: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: #000000;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--earthy-olive);
    transform: translateY(-2px);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(187, 151, 67, 0.3), transparent);
    transform: scale(0);
    animation: ripple-animation 1s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

#enhancedPracticesPanel .mono,
#enhancedPracticesPanel code,
#enhancedPracticesPanel small {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.02em;
}
