/* Slideshow styles for Youth & Family page */
.slideshow {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.slideshow .slide {
    display: none;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.slideshow .slide.active {
    display: block;
}

:root {
    --cream: #f6f1e8;
    --ink: #1a1a1a;
    --muted: #5a5a5a;
    --sage: #2f4a3d;
    --sage-2: #3d5f4e;
    --paper: #ffffff;
    --line: rgba(26, 26, 26, .12);
    --sage-light: #4a6b5a;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --cream: #1a1a1a;
        --ink: #f6f1e8;
        --muted: #b0b0b0;
        --paper: #2a2a2a;
        --line: rgba(246, 241, 232, .18);
    }
}

/* ===== UTILITY CLASSES ===== */

/* Layout */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.self-center {
    align-self: center;
}

/* Grid */
.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-5-3-2 {
    grid-template-columns: 3fr 2fr;
}

@media (max-width: 767px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-5-3-2 {
        grid-template-columns: 1fr;
    }

    .hero-info-container {
        padding: 1rem !important;
        text-align: left;
    }

    .hero-contact-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .logo-img {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        align-self: flex-start;
    }
}

@media (min-width: 768px) {
    .md-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md-flex {
        display: flex;
    }

    .md-flex-row {
        flex-direction: row;
    }

    .md-items-center {
        align-items: center;
    }

    .md-hidden {
        display: none;
    }

    .md-p-7 {
        padding: 42px;
    }

    .md-p-8 {
        padding: 48px;
    }

    .md-text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .md-text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

@media (min-width: 1024px) {
    .lg-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .md-hidden {
        display: block;
    }

    .hidden.md-hidden {
        display: none;
    }
}

/* Spacing */
.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.mt-0\.5 {
    margin-top: 0.125rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 1.25rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-5>*+* {
    margin-top: 1.25rem;
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.left-6 {
    left: 1.5rem;
}

.right-6 {
    right: 1.5rem;
}

.bottom-6 {
    bottom: 1.5rem;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-50 {
    z-index: 50;
}

/* Display */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.overflow-hidden {
    overflow: hidden;
}

/* Responsive Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.mobile-nav {
    display: none;
}

@media (max-width: 767px) {
    .mobile-nav:not(.hidden) {
        display: block;
    }
}

/* Width/Height */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-10 {
    height: 2.5rem;
}

.w-10 {
    width: 2.5rem;
}

.max-w-xl {
    max-width: 36rem;
}

/* Text */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

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

/* Colors */
.text-ink {
    color: var(--ink);
}

.text-muted {
    color: var(--muted);
}

.text-sage {
    color: var(--sage);
}

.text-white {
    color: white;
}

.text-white-90 {
    color: rgba(255, 255, 255, 0.9);
}

.bg-white {
    background-color: white;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.border-slate-200 {
    border-color: #e2e8f0;
}

.border-line {
    border-color: var(--line);
}

.heading-green {
    color: #15803d;
}

/* Borders */
.border {
    border-width: 1px;
    border-style: solid;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.object-contain {
    object-fit: contain;
}

.object-cover {
    object-fit: cover;
}

/* Links */
.link {
    color: var(--sage);
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
}

.link:hover {
    text-decoration: underline;
}

.underline {
    text-decoration: underline;
}

.hover-underline:hover {
    text-decoration: underline;
}

.hover-white:hover {
    color: white;
}

/* Lists */
.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

* {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: linear-gradient(to bottom, var(--cream), rgba(246, 241, 232, 0.95));
    background-attachment: fixed;
    color: var(--ink);
    transition: background 0.3s var(--transition-smooth), color 0.3s var(--transition-smooth);
}

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(to bottom, #1a1a1a, #0f0f0f);
    }
}

h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    letter-spacing: .2px;
    text-wrap: balance;
}

.cc-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

.cc-topbar {
    background: rgba(246, 241, 232, .86);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--line);
    transition: all 0.3s var(--transition-smooth);
}

@media (prefers-color-scheme: dark) {
    .cc-topbar {
        background: rgba(26, 26, 26, .86);
    }
}

.cc-topbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cc-nav a {
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    text-decoration: none !important;
    border: 2px solid var(--sage);
    box-shadow: 0 1px 4px rgba(47, 74, 61, 0.10);
}

.cc-nav a:hover {
    background: rgba(47, 74, 61, 0.08);
    transform: translateY(-2px) scale(1.03);
    border-color: var(--sage-2);
}

.cc-nav a:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 2px;
}

.cc-nav a.is-active {
    background: var(--sage);
    color: #fff;
    border-color: var(--sage-2);
    box-shadow: 0 4px 16px rgba(47, 74, 61, 0.18);
}

.cc-btn {
    display: inline-block;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    background: transparent;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
}

.cc-btn:hover {
    background: rgba(26, 26, 26, .06);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cc-btn:active {
    transform: translateY(0);
}

.cc-btn:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 2px;
}

.cc-btn.primary {
    background: var(--sage);
    color: #fff;
    border-color: transparent;
}

.cc-btn.primary:hover {
    background: var(--sage-2);
    box-shadow: 0 6px 16px rgba(47, 74, 61, 0.3);
}

.cc-kicker {
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}

.cc-sub {
    max-width: 820px;
    color: var(--muted);
    line-height: 1.75;
    margin-top: 14px;
    font-size: 16px;
}

.cc-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(26, 26, 26, .06);
    transition: all 0.4s var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
}

.cc-panel.revealed {
    opacity: 1;
    transform: translateY(0);
}

.cc-content {
    padding: 28px 28px;
}

@media (min-width: 768px) {
    .cc-content {
        padding: 42px 46px;
    }
}

.cc-footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .55);
}

.cc-card {
    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--line);
    border-radius: 26px;
    transition: all 0.4s var(--transition-smooth);
    cursor: pointer;
}

.cc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--sage);
}

.cc-callout {
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--line);
    border-radius: 26px;
    transition: all 0.3s var(--transition-smooth);
}

@media (prefers-color-scheme: dark) {
    .cc-card {
        background: rgba(42, 42, 42, .85);
    }

    .cc-callout {
        background: rgba(42, 42, 42, .65);
    }
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card hover effect */
.hover-lift {
    transition: all 0.4s var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.hover-lift:hover img {
    transform: scale(1.05);
}

.hover-lift img {
    transition: transform 0.4s var(--transition-smooth);
}

/* Parallax hero */
.parallax-hero {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    height: auto;
}

@media (min-width: 768px) {
    .parallax-hero {
        height: 480px;
    }
}

.parallax-hero img {
    transition: transform 0.5s ease-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--sage);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-smooth);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(47, 74, 61, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--sage-2);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(47, 74, 61, 0.5);
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--sage), var(--sage-light));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Loading optimization */
img {
    content-visibility: auto;
}

/* Animated list items */
.animated-list li {
    transition: all 0.5s var(--transition-smooth);
    font-weight: 400;
}

.animated-list li.active {
    font-weight: 700;
    color: var(--sage);
    transform: translateX(4px);
}

/* Social media icon links */
.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.3s var(--transition-smooth);
}

.social-icon-link:hover {
    color: var(--sage);
    transform: translateY(-2px);
}

.social-icon-link svg {
    transition: all 0.3s var(--transition-smooth);
}

/* ===== HERO SECTION SPECIFIC ===== */
.hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25), transparent);
}

.hero-overlay-dark {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2));
}

.hero-image-container {
    position: relative;
}

.hero-info-container {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .hero-info-container {
        padding: 2rem;
    }

    .grid-5-3-2 {
        grid-template-columns: 3fr 2fr;
    }
}

.hero-contact-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    max-width: 100%;
}

.hero-link-btn {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s var(--transition-smooth);
    text-decoration: none;
    color: var(--ink);
}

.hero-link-btn:hover {
    background-color: #f1f5f9;
}

.logo-img {
    width: auto;
    height: 60px;
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* ===== PHOTO HIGHLIGHTS ===== */
.photo-card {
    display: block;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--line);
    background-color: white;
    transition: all 0.4s var(--transition-smooth);
    text-decoration: none;
}

.photo-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px) scale(1.02);
}

.photo-card-img {
    height: 12rem;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--transition-smooth);
}

.photo-card:hover .photo-card-img {
    transform: scale(1.05);
}

/* ===== CONTENT SPECIFIC ===== */
.callout-box {
    background-color: #dcfce7;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
}

.subheading {
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    border-radius: 1rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
}

.stat-label {
    font-weight: 600;
    color: var(--ink);
}

.stat-value {
    color: var(--muted);
    margin-top: 0.25rem;
}

.image-container {
    margin-top: 1.5rem;
}

.image-container img {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.img-cover-medium {
    height: 240px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .img-cover-medium {
        height: 320px;
    }
}

.flex-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .flex-content {
        flex-direction: row;
    }
}

.video-container {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    width: 100%;
}

@media (min-width: 768px) {
    .video-container {
        width: 20rem;
        flex-shrink: 0;
    }
}

.video-container video {
    width: 100%;
}

.video-caption {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted);
    font-style: italic;
}

.info-box {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.info-box p {
    font-size: 0.875rem;
    color: var(--muted);
}