/* 
  Integrated Behavioral Technologies (IBT) Custom Stylesheet
  Color Palette:
    Primary Dark Blue: #14315C
    Secondary Slate Blue: #3E5B7C
    Accent Gold/Amber: #E5AB60
    Light Gray/Background: #EDF1EE
    Primary Text (Soft Black): #1F2421
*/

:root {
    /* Light Mode (Default) */
    --primary-color: #14315C;
    --primary-light: #1e457e;
    --secondary-color: #3E5B7C;
    --secondary-light: #4f739c;
    --accent-color: #E5AB60;
    --accent-hover: #f1b76a;
    --bg-color: #EDF1EE;
    --bg-white: #ffffff;
    --text-color: #1F2421;
    --text-muted: #536259;
    --border-color: #d1d9d4;
    --header-bg: rgba(255, 255, 255, 0.95);
    --success-color: #2b704c;
    --error-color: #c94a4a;

    /* CTA Banner Variables */
    --cta-bg: #14315C;
    --cta-heading: #ffffff;
    --cta-text: rgba(237, 241, 238, 0.95);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 2px 8px rgba(31, 36, 33, 0.05);
    --shadow-md: 0 8px 24px rgba(31, 36, 33, 0.08);
    --shadow-lg: 0 16px 40px rgba(31, 36, 33, 0.12);

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

[data-theme="dark"] {
    /* Dark Mode (based on soft dark slate #1F2421) */
    --primary-color: #EDF1EE;
    /* headings off-white */
    --primary-light: #ffffff;
    --secondary-color: #7da5d1;
    /* lighter blue for high contrast contrast */
    --secondary-light: #9bc0eb;
    --accent-color: #E5AB60;
    --accent-hover: #f1b76a;
    --bg-color: #121614;
    /* very dark slate */
    --bg-white: #1F2421;
    /* soft dark slate for cards & sections */
    --text-color: #EDF1EE;
    /* light text */
    --text-muted: #9ab0a2;
    /* muted light text */
    --border-color: #313a35;
    /* dark borders */
    --header-bg: rgba(18, 22, 20, 0.95);
    --success-color: #3eb574;
    --error-color: #f06e6e;

    /* CTA Banner Variables */
    --cta-bg: #1F2421;
    --cta-heading: #EDF1EE;
    --cta-text: #9ab0a2;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* Banner Tagline Dark Mode Contrast Override */
[data-theme="dark"] section[style*="linear-gradient"] .section-tagline,
[data-theme="dark"] .hero .section-tagline {
    color: #14315C !important;
}

/* CSS Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.25;
    font-weight: 700;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Announcement Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-phone a {
    color: var(--accent-color);
    font-weight: 600;
}

.top-bar-phone a:hover {
    color: var(--bg-white);
}

/* Sticky Header with Glassmorphism */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 90px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(62, 91, 124, 0.08);
}

#nav-anniversary {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
    white-space: normal;
}

#nav-anniversary span {
    display: block;
    text-align: center;
    width: 100%;
}

.nav-cta {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    border: 1px solid var(--accent-color);
    margin-left: 8px;
}

.nav-cta:hover {
    background-color: transparent;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

/* Mobile Hamburger Menu */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger-bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-white);
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tagline {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Typography & Layout Helpers */
.text-accent {
    color: var(--accent-color);
}

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

.bold {
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .btn-primary {
    background-color: #14315C;
    color: #ffffff;
    border-color: #3E5B7C;
}

[data-theme="dark"] .btn-primary:hover {
    background-color: #1e457e;
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2d62a3 0%, #4f7cae 100%);
    color: #ffffff;
    min-height: 193px;
    padding: 24px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.hero>.container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.page-hero,
.page-header-banner {
    background: linear-gradient(135deg, #2d62a3 0%, #4f7cae 100%);
    color: #ffffff;
    min-height: 193px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.page-hero>.container,
.page-header-banner>.container {
    width: 100%;
}

.page-header-banner.has-tabs,
.page-header-banner:has(+ .tab-nav) {
    padding-bottom: 38px;
}

.page-hero h1,
.page-header-banner h1 {
    color: #ffffff !important;
    font-size: clamp(1.85rem, 2.6vw, 2.35rem) !important;
    margin-bottom: 6px !important;
    line-height: 1.18 !important;
}

.page-hero .hero-subtitle,
.page-header-banner p {
    font-size: 0.96rem !important;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.92;
    line-height: 1.5 !important;
}

.page-header-banner .section-tagline {
    color: var(--accent-color) !important;
    font-size: 0.82rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(229, 171, 96, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 195px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(1.85rem, 2.6vw, 2.4rem);
    color: var(--bg-white);
    margin-bottom: 8px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 0.96rem;
    margin-bottom: 14px;
    opacity: 0.92;
    font-weight: 400;
    line-height: 1.5;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-buttons .btn {
    padding: 8px 18px;
    font-size: 0.92rem;
}

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 48px;
}

.hero-logo-frame {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    animation: pulse 4s infinite ease-in-out;
}

.hero-logo-img {
    height: auto;
    width: 100%;
    max-width: 220px;
    padding: 16px;
    border-radius: 6px;
    object-fit: contain;
    border: 5px solid var(--accent-color);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 16px 40px rgba(229, 171, 96, 0.1);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 16px 40px rgba(229, 171, 96, 0.25);
    }
}

/* Feature Grid / Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(209, 217, 212, 0.5);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(229, 171, 96, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.card-link:hover {
    color: var(--accent-color);
}

/* Split Showcase Section */
.split-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.split-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.split-image-container::before {
    content: '';
    display: block;
    padding-top: 66.66%;
    /* 3:2 Aspect Ratio */
}

.split-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.split-image-container:hover .split-image {
    transform: scale(1.03);
}

.split-content h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.split-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.98rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.1rem;
}

/* Stat Banner */
.stats {
    background: linear-gradient(135deg, #2d62a3 0%, #4f7cae 100%);
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.stat-item h2 {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-item p {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.85;
}

/* Timeline Layout (for About page) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--accent-color);
    border: 4px solid var(--bg-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition-smooth);
}

.timeline-item:hover::after {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -8px;
}

.timeline-content {
    padding: 24px;
    background-color: var(--bg-white);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(209, 217, 212, 0.5);
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    display: block;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Clinic Directory Layout (for Locations page) */
.clinic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 40px;
    align-items: start;
}

.clinic-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(209, 217, 212, 0.5);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.clinic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(62, 91, 124, 0.4);
}

.clinic-card-header {
    background-color: #2d62a3;
    color: #ffffff;
    padding: 24px;
}

.clinic-card-header.secondary-header {
    background-color: #4f7cae;
}

.clinic-card-header h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.clinic-type {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clinic-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clinic-info-item {
    display: flex;
    gap: 12px;
}

.clinic-info-icon {
    color: var(--secondary-color);
    font-weight: bold;
    flex-shrink: 0;
}

.clinic-info-text {
    font-size: 0.95rem;
    color: var(--text-color);
}

.clinic-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 192px;
}

@media (max-width: 768px) {
    .clinic-contact-info {
        min-height: 0;
    }
}

.clinic-services-tags {
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.clinic-services-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.clinic-services-toggle:hover,
.clinic-services-toggle:focus-visible {
    color: var(--secondary-color);
}

.clinic-services-chevron {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.clinic-services-toggle[aria-expanded="true"] .clinic-services-chevron {
    transform: rotate(180deg);
}

.clinic-services-panel {
    margin-top: 10px;
}

.clinic-services-panel[hidden] {
    display: none;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background-color: var(--bg-color);
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Contact Page Layout & Forms */
.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info-panel {
    background: linear-gradient(135deg, #2d62a3 0%, #4f7cae 100%);
    color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-info-panel h3 {
    color: var(--bg-white);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.contact-info-panel p {
    opacity: 0.9;
    margin-bottom: 32px;
    font-size: 0.98rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
}

.contact-detail-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-detail-content h4 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-detail-content p,
.contact-detail-content a {
    color: var(--bg-color);
    opacity: 0.9;
    font-size: 0.95rem;
}

.contact-detail-content a:hover {
    color: var(--accent-color);
}

.contact-form-panel {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(209, 217, 212, 0.5);
}

/* Form Styling */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(62, 91, 124, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-error-msg {
    color: var(--error-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 24px;
}

.flash-msg {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-success {
    background-color: rgba(43, 112, 76, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(43, 112, 76, 0.2);
}

.flash-error {
    background-color: rgba(201, 74, 74, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(201, 74, 74, 0.2);
}

/* Dark Mode overrides for inline-styled waitlist alerts */
[data-theme="dark"] .alert-success {
    background-color: rgba(62, 181, 116, 0.12) !important;
    color: #5af0a2 !important;
    border-left-color: var(--success-color) !important;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(240, 110, 110, 0.12) !important;
    color: #f06e6e !important;
    border-left-color: var(--error-color) !important;
}

/* Error Pages Layout */
.error-container {
    text-align: center;
    padding: 100px 0;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Footer Section styling */
.main-footer {
    background: linear-gradient(135deg, #2d62a3 0%, #4f7cae 100%);
    color: #EDF1EE;
    padding: 45px 0 20px;
    border-top: 4px solid var(--accent-color);
}

.footer-mission {
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 36px;
    border-bottom: 1px solid rgba(237, 241, 238, 0.15);
}

.footer-mission-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-mission-desc {
    color: #EDF1EE;
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 620px;
    margin: 0 auto 16px;
    opacity: 0.9;
}

.footer-mission-cta {
    display: inline-block;
    padding: 8px 22px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo-frame {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-sm);
    display: inline-block;
    max-width: fit-content;
    transition: var(--transition-smooth);
}

.footer-logo-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 171, 96, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.footer-logo {
    height: 48px;
    width: auto;
    padding: 4px;
    border-radius: 4px;
    object-fit: contain;
    border: 2px solid var(--accent-color);
    display: block;
    background-color: #ffffff;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.35rem;
}

.footer-desc {
    font-size: 0.92rem;
    opacity: 0.85;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    gap: 12px 24px;
}

.footer-links a {
    color: #EDF1EE;
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    opacity: 1;
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    opacity: 0.85;
}

.footer-contact-link {
    color: #EDF1EE;
    border-bottom: 1px dashed rgba(237, 241, 238, 0.4);
}

.footer-contact-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(237, 241, 238, 0.1);
    font-size: 0.85rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-nonprofit {
    font-style: italic;
    opacity: 0.8;
}

/* Responsive Media Queries */
@media (min-width: 769px) and (max-width: 1250px) {
    .nav-list {
        gap: 4px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.95rem;
    }

    .logo-img {
        max-width: 220px;
        height: 72px;
    }
}

@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 24px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        order: -1;
        padding-right: 0;
    }

    .split-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 22px;
        right: auto;
    }

    .left,
    .right {
        left: 0;
    }
}

@media (max-width: 768px) {

    /* Mobile Menu Drawer Toggle */
    .mobile-nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 76px;
        /* Below Top announcement bar + header height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background-color: var(--bg-white);
        box-shadow: var(--shadow-lg);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 40px 24px;
        align-items: flex-start;
        z-index: 999;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .nav-link {
        display: block;
        width: 100%;
        font-size: 1.2rem;
        padding: 12px 20px;
    }

    .nav-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 10px;
    }

    .mobile-menu-active #menu-toggle-btn .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-active #menu-toggle-btn .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-active #menu-toggle-btn .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-mission {
        padding-bottom: 22px;
        margin-bottom: 28px;
    }

    .footer-mission-title {
        font-size: 1.15rem;
    }

    .footer-mission-desc {
        font-size: 0.85rem;
        margin-bottom: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
    margin-left: 8px;
}

.theme-toggle-btn:hover {
    background-color: rgba(62, 91, 124, 0.08);
    color: var(--primary-color);
    transform: rotate(15deg);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: var(--transition-smooth);
}

/* Toggle Sun/Moon visibility depending on data-theme */
[data-theme="dark"] .theme-toggle-btn .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
    display: none;
}

.theme-toggle-btn .sun-icon {
    display: none;
}

.theme-toggle-btn .moon-icon {
    display: block;
}

/* Override sections background colors to adapt to dark/light theme */
.section-alt {
    background-color: var(--bg-white);
}

.card {
    background-color: var(--bg-white);
}

.timeline-content {
    background-color: var(--bg-white);
}

.clinic-card {
    background-color: var(--bg-white);
}

.contact-form-panel {
    background-color: var(--bg-white);
}

.form-control {
    background-color: var(--bg-color);
}

.form-control:focus {
    background-color: var(--bg-white);
}

#cta-contact-us {
    background-color: var(--bg-color);
}

#cta-contact-us h2 {
    color: var(--primary-color) !important;
}

#cta-contact-us p {
    color: var(--text-color) !important;
}

#bottom-cta-locations {
    border-color: var(--text-color);
    color: var(--text-color);
}

#bottom-cta-locations:hover {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    border-color: var(--primary-color);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Dropdown Navigation Menu
   ========================================================================== */

/* Submenu container */
.nav-dropdown {
    position: relative;
}

/* Caret indicator */
.nav-dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.8rem;
    vertical-align: middle;
    transition: var(--transition-smooth);
    display: inline-block;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 210px;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 1010;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
}

.nav-dropdown-item:hover {
    background-color: rgba(62, 91, 124, 0.08);
    color: var(--primary-color);
}

/* Dark mode overrides for dropdown */
[data-theme="dark"] .nav-dropdown-menu {
    background-color: var(--bg-white);
    border-color: var(--border-color);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .nav-dropdown-item {
    color: var(--text-muted);
}

[data-theme="dark"] .nav-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary-light);
}

/* ==========================================================================
   Tab Navigation & Switcher
   ========================================================================== */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: -30px auto 50px;
    position: relative;
    z-index: 10;
    width: fit-content;
    max-width: min(960px, calc(100% - 32px));
    flex-wrap: wrap;
    background-color: var(--bg-white);
    padding: 8px 12px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    flex: 0 1 auto;
    white-space: nowrap;
    text-align: center;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(62, 91, 124, 0.04);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .tab-nav {
    background-color: var(--bg-white);
    border-color: var(--border-color);
}

[data-theme="dark"] .tab-btn:not(.active):hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.04);
}

/* Tab Panels */
.tab-content {
    display: none;
    opacity: 0;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Team Directory Grid & Cards
   ========================================================================== */
.team-category-container {
    margin-bottom: 60px;
}

.team-category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 40px 0 24px;
    border-left: 5px solid var(--accent-color);
    padding-left: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.team-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid rgba(209, 217, 212, 0.5);
    box-shadow: var(--shadow-sm);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(62, 91, 124, 0.35);
}

/* Avatar Frame */
.team-avatar-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 24px;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    transition: var(--transition-smooth);
}

.team-card:hover .team-avatar-container {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.team-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%);
    transition: var(--transition-smooth);
}

.team-card:hover .team-avatar-img {
    filter: grayscale(0%);
}

.team-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.4rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Team Details */
.team-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    line-height: 1.2;
}

.team-credentials {
    font-size: 0.78rem;
    background-color: rgba(229, 171, 96, 0.15);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .team-credentials {
    background-color: rgba(229, 171, 96, 0.25);
    color: var(--accent-color);
}

.team-position {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 16px;
    flex-grow: 1;
}

.team-bio-divider {
    width: 40px;
    height: 2px;
    background-color: var(--border-color);
    margin: 8px auto 16px;
    opacity: 0.6;
}

.team-bio {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    font-style: italic;
}

.team-region-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    background-color: rgba(62, 91, 124, 0.1);
    border: 1px solid rgba(62, 91, 124, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 6px;
    letter-spacing: 0.4px;
}

[data-theme="dark"] .team-region-badge {
    color: var(--accent-color);
    background-color: rgba(229, 171, 96, 0.15);
    border-color: rgba(229, 171, 96, 0.3);
}

.region-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.region-filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.region-filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.region-filter-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

[data-theme="dark"] .region-filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #1a1a1a;
}

/* Responsive Styles for Dropdown on Mobile Drawer */
@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }

    .nav-dropdown-toggle {
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-dropdown-toggle::after {
        content: ' ▾';
    }

    .nav-dropdown-menu {
        position: static !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
        border: none !important;
        padding: 0 !important;
        display: none !important;
        width: 100%;
        text-align: center;
        transition: max-height 0.3s ease-out;
    }

    .nav-dropdown-menu.open {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 8px 0 !important;
    }

    .nav-dropdown.open .nav-dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .nav-dropdown-item {
        font-size: 1.05rem !important;
        padding: 8px 16px !important;
        border-radius: 6px;
        color: var(--text-color);
        text-align: center;
    }

    .tab-nav {
        margin: -10px 10px 40px;
        max-width: 100%;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Custom Donate Button Styling */
.btn-donate {
    background-color: var(--bg-white) !important;
    color: #14315C !important;
    border: 2px solid var(--bg-white) !important;
    box-shadow: var(--shadow-sm);
}

.btn-donate:hover {
    background-color: transparent !important;
    color: var(--bg-white) !important;
    border-color: var(--bg-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .btn-donate {
    color: #ffffff !important;
}

/* ==========================================================================
   Careers Page & Benefits Grid Styles
   ========================================================================== */
.benefit-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(209, 217, 212, 0.5);
    border-radius: var(--border-radius);
    padding: 35px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(62, 91, 124, 0.3);
}

.benefit-icon-wrapper {
    height: 52px;
    width: 52px;
    background-color: rgba(229, 171, 96, 0.15);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(229, 171, 96, 0.08);
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 0;
}

.job-board-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 50px 40px;
    box-shadow: var(--shadow-md);
}

.btn-careers-fallback {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-decoration: none;
    display: inline-block;
    border: 2px solid var(--primary-color);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.btn-careers-fallback:hover {
    background-color: transparent;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Dark mode overrides for careers page elements */
[data-theme="dark"] .benefit-card {
    border-color: rgba(49, 58, 53, 0.8);
}

[data-theme="dark"] .benefit-card:hover {
    border-color: rgba(229, 171, 96, 0.4);
}

[data-theme="dark"] .benefit-icon-wrapper {
    background-color: rgba(229, 171, 96, 0.22);
}

[data-theme="dark"] .btn-careers-fallback {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #121614 !important;
}

[data-theme="dark"] .btn-careers-fallback:hover {
    background-color: transparent;
    color: var(--accent-color) !important;
    border-color: var(--accent-color);
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Positioned on the bottom right for ideal UX */
    z-index: 1100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(20, 49, 92, 0.85);
    /* Premium transluscent Primary Color */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(15px) scale(0.9);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 24px rgba(20, 49, 92, 0.3);
}

.scroll-to-top-btn:active {
    transform: translateY(-1px) scale(0.96);
}

.scroll-to-top-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top-btn:hover svg {
    transform: translateY(-2px);
}

/* Dark Mode Adaptation */
[data-theme="dark"] .scroll-to-top-btn {
    background-color: rgba(229, 171, 96, 0.85);
    /* Accent gold/amber for high contrast */
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #121614;
    /* Dark slate text/icon color */
}

[data-theme="dark"] .scroll-to-top-btn:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 8px 24px rgba(229, 171, 96, 0.25);
}

/* Responsive adjustment for smaller viewports */
@media (max-width: 576px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .scroll-to-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   Detailed History Section & Founder Card
   ========================================================================== */
.section-history {
    padding: 80px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.history-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.founder-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.founder-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(229, 171, 96, 0.4);
}

.founder-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
}

.founder-avatar-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.founder-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.founder-card:hover .founder-avatar-img {
    transform: scale(1.08);
}

.founder-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.founder-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.founder-bio {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Theme styling adaptation for founder card elements */
[data-theme="dark"] .founder-card {
    background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .founder-avatar-container {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* Responsiveness for tablets and mobile devices */
@media (max-width: 992px) {
    .section-history {
        padding: 60px 0;
    }

    .history-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* ==========================================================================
   AHFF Autism Awareness Plate & Contact Promotion Card
   ========================================================================== */
.ahff-promo-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 35px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.ahff-promo-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
}

.ahff-promo-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: center;
}

.ahff-plate-preview {
    background-color: #f8faf9;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.ahff-plate-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
    transition: var(--transition-smooth);
}

.ahff-promo-card:hover .ahff-plate-img {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
}

.ahff-promo-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    margin-bottom: 8px;
    display: inline-block;
}

.ahff-promo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.ahff-promo-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.ahff-promo-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ahff-order-btn {
    padding: 10px 22px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth) !important;
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #ffffff !important;
    display: inline-block;
    border-radius: 50px;
}

.ahff-order-btn:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ahff-promo-contact-info {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.ahff-promo-email {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: var(--transition-smooth);
}

.ahff-promo-email:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Dark Mode adaptation for AHFF Card */
[data-theme="dark"] .ahff-promo-card {
    background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .ahff-plate-preview {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .ahff-promo-title {
    color: var(--primary-light);
}

[data-theme="dark"] .ahff-promo-email {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

[data-theme="dark"] .ahff-promo-email:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

[data-theme="dark"] .ahff-order-btn {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #121614 !important;
}

[data-theme="dark"] .ahff-order-btn:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    box-shadow: 0 4px 12px rgba(229, 171, 96, 0.3);
}

/* Responsive constraints */
@media (max-width: 768px) {
    .ahff-promo-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .ahff-plate-preview {
        max-width: 220px;
        margin: 0 auto;
    }

    .ahff-promo-actions {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }
}

/* ==========================================================================
   Donor Showcase Styling
   ========================================================================== */
.donors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 24px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.donor-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.donor-logo-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    height: 125px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.donor-logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

/* Grayscale effect for past donors to give them an elegant "historical" look */
#past-donors .donor-logo-img {
    filter: grayscale(85%);
    opacity: 0.85;
}

#past-donors .donor-logo-wrapper:hover .donor-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Hover Micro-animations */
.donor-logo-wrapper:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.donor-text-fallback {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    padding: 0 6px;
    display: block;
    width: 100%;
    word-wrap: break-word;
    overflow: visible;
    transition: var(--transition-smooth);
}

/* Grayscale/faded effect for past donor text fallback */
#past-donors .donor-text-fallback {
    color: var(--text-muted);
    opacity: 0.8;
}

#past-donors .donor-logo-wrapper:hover .donor-text-fallback {
    color: var(--primary-color);
    opacity: 1;
}

/* Ensure text-based donors remain readable in dark mode by keeping their light-mode text colors, as card backgrounds remain white */
[data-theme="dark"] .donor-text-fallback {
    color: #14315C;
}

[data-theme="dark"] #past-donors .donor-text-fallback {
    color: #536259;
}

[data-theme="dark"] #past-donors .donor-logo-wrapper:hover .donor-text-fallback {
    color: #14315C;
}

/* Responsive adjustment for mobile screen widths */
@media (max-width: 480px) {
    .donors-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 16px;
    }

    .donor-logo-wrapper {
        height: 80px;
        padding: 12px;
    }

    .donor-text-fallback {
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   The K.I.D.S. Place Curriculums & IBT-C Clinical Custom Styles
   ========================================================================== */

/* Curriculum Grid */
.tkp-curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* Curriculum Card */
.tkp-curriculum-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    padding: 30px 24px 24px 24px;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tkp-curriculum-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* Card Accent Bar */
.tkp-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

/* Icon / Emoji badge */
.tkp-card-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: inline-block;
}

.tkp-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.tkp-card-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* IBT-C Grid */
.ibtc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 30px;
}

/* IBT-C Card */
.ibtc-info-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ibtc-info-card:hover {
    box-shadow: var(--shadow-md);
}

.ibtc-card-header {
    margin-bottom: 18px;
}

/* Highlights & Badges */
.ibtc-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background-color: rgba(20, 49, 92, 0.1);
    color: var(--primary-color);
    margin-bottom: 12px;
}

.ibtc-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.ibtc-card-text {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.ibtc-highlights {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ibtc-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ibtc-highlight-check {
    color: #2b704c;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}

.ibtc-highlight-item p {
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .ibtc-info-grid {
        grid-template-columns: 1fr;
    }

    .ibtc-info-card {
        padding: 24px;
    }

    .tkp-curriculum-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
}

/* Responsive Dynamic Form CSS Grid */
.waitlist-form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px 24px;
    margin-bottom: 24px;
}

.waitlist-field {
    grid-column: span 12;
}

@media (min-width: 600px) {
    .waitlist-field.col-12 {
        grid-column: span 12;
    }

    .waitlist-field.col-6 {
        grid-column: span 6;
    }

    .waitlist-field.col-4 {
        grid-column: span 4;
    }

    .waitlist-field.col-3 {
        grid-column: span 3;
    }
}

/* Radio Group Enhancement */
.radio-group-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background-color: var(--bg-color);
    color: var(--primary-color);
    padding: 12px 18px;
    border-radius: var(--border-radius);
    border: 1.5px solid var(--border-color);
    transition: var(--transition-smooth);
    user-select: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.radio-option:hover {
    border-color: var(--secondary-color);
    background-color: var(--bg-white);
}

.radio-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.radio-option.selected {
    border-color: var(--accent-color);
    background-color: rgba(229, 171, 96, 0.08);
}

/* ==========================================================================
   Waitlist Interactive Wizard / Guided Intake Navigator Styles
   ========================================================================== */
.waitlist-wizard-container {
    margin-bottom: 30px;
}

.wizard-question-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 1.15rem;
    line-height: 1.4;
}

[data-theme="dark"] .wizard-question-label {
    color: var(--text-color);
}

.wizard-question-hint {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.wizard-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 680px) {
    .wizard-cards-grid {
        grid-template-columns: 1fr;
    }
}

.wizard-sub-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 12px;
    margin-bottom: 24px;
}

@media (max-width: 680px) {
    .wizard-sub-options-grid {
        grid-template-columns: 1fr;
    }
}

.wizard-card {
    background-color: var(--bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 22px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    user-select: none;
}

.wizard-card:hover {
    border-color: var(--secondary-color);
    background-color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.wizard-card:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.wizard-card.active {
    border-color: var(--secondary-color);
    background-color: rgba(43, 112, 76, 0.05);
    box-shadow: 0 0 0 1px var(--secondary-color);
}

[data-theme="dark"] .wizard-card.active {
    background-color: rgba(62, 181, 116, 0.12);
}

.wizard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.wizard-card-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.wizard-card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: rgba(229, 171, 96, 0.2);
    color: #9c6819;
}

[data-theme="dark"] .wizard-card-badge {
    color: var(--accent-color);
    background-color: rgba(229, 171, 96, 0.15);
}

.wizard-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    line-height: 1.35;
}

[data-theme="dark"] .wizard-card-title {
    color: var(--text-color);
}

.wizard-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0 0 14px 0;
    flex-grow: 1;
}

.wizard-card-indicator {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.wizard-card.active .wizard-card-indicator {
    color: #1b4931;
    font-weight: 700;
}

.wizard-step-sub {
    padding-top: 10px;
    animation: fadeInSub 0.3s ease forwards;
}

@keyframes fadeInSub {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Calendar & Events Styles
   ========================================================================== */

.calendar-section {
    padding: 60px 0 100px 0;
}

.calendar-container {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-top: 30px;
    transition: var(--transition-smooth);
}

.calendar-controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.calendar-nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-btn {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.calendar-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.calendar-month-select {
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-color);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.calendar-month-select:hover,
.calendar-month-select:focus {
    border-color: var(--accent-color);
}

.calendar-view-toggle {
    display: flex;
    background: var(--bg-color);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle-btn.active {
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Category Filters */
.calendar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-pill {
    border: 1px solid var(--border-color);
    background: transparent;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-pill.active {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.filter-pill[data-category="Autism Acceptance Events"].active {
    background: #2b60de;
    border-color: #2b60de;
    color: #fff;
}

.filter-pill[data-category="IBT Events"].active {
    background: #14315C;
    border-color: #14315C;
    color: #fff;
}

.filter-pill[data-category="Mobile Assessment Clinic"].active {
    background: #e91e63;
    border-color: #e91e63;
    color: #fff;
}

/* Calendar Month Grid View */
.calendar-grid-wrapper {
    overflow-x: auto;
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.calendar-day-name {
    padding: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    min-width: 700px;
}

.calendar-day-cell {
    min-height: 120px;
    background: var(--bg-color);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.calendar-day-cell:hover {
    background: var(--bg-white);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.calendar-day-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 6px;
    text-align: right;
}

.calendar-day-cell.empty-cell {
    opacity: 0.35;
    background: transparent;
    cursor: default;
    border: none;
    box-shadow: none;
}

.calendar-day-cell.today-cell {
    border: 2px solid var(--accent-color);
    background: rgba(229, 171, 96, 0.04);
}

.calendar-day-cell.today-cell .calendar-day-number {
    color: var(--accent-color);
}

.calendar-cell-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    flex-grow: 1;
}

.calendar-event-pill {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-left: 3px solid var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.calendar-event-pill:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    filter: brightness(0.95);
}

/* Category Accent Styles */
.event-autismacceptanceevents {
    border-left-color: #2b60de;
    background-color: rgba(43, 96, 222, 0.08);
    color: #2b60de;
}

.event-ibtevents {
    border-left-color: #14315C;
    background-color: rgba(20, 49, 92, 0.08);
    color: #14315C;
}

.event-mobileassessmentclinic {
    border-left-color: #e91e63;
    background-color: rgba(233, 30, 99, 0.08);
    color: #e91e63;
}

.event-general {
    border-left-color: var(--secondary-color);
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* List View */
.events-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.events-month-group {
    margin-bottom: 20px;
}

.events-month-group-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 6px;
    display: inline-block;
}

.events-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.event-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(62, 91, 124, 0.3);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.event-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.category-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-autismacceptanceevents {
    background-color: rgba(43, 96, 222, 0.1);
    color: #2b60de;
}

.badge-ibtevents {
    background-color: rgba(20, 49, 92, 0.1);
    color: #14315C;
}

.badge-mobileassessmentclinic {
    background-color: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

.badge-general {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-meta-icon {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.event-card-desc {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-actions {
    display: flex;
    gap: 12px;
}

/* Event Details Modal */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 22, 20, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.event-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.event-modal-content {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    position: relative;
    margin: 40px auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.event-modal.open .event-modal-content {
    transform: translateY(0);
}

.event-modal-header {
    background: linear-gradient(135deg, #2d62a3 0%, #4f7cae 100%);
    color: var(--bg-white);
    padding: 30px;
    position: relative;
}

.event-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.event-modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.event-modal-title {
    font-size: 1.5rem;
    color: var(--bg-white);
    margin-bottom: 12px;
    padding-right: 24px;
}

.event-modal-body {
    padding: 30px;
}

.event-modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
    background: var(--bg-color);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.event-modal-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 30px;
    white-space: pre-line;
}

.event-modal-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* No events state */
.no-events-message {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.no-events-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-month-select {
        width: 100%;
        text-align: center;
    }

    .calendar-nav-controls {
        justify-content: space-between;
    }

    .calendar-view-toggle {
        justify-content: center;
    }

    .calendar-grid-body {
        gap: 4px;
    }

    .calendar-day-cell {
        min-height: 80px;
        padding: 4px;
    }

    .calendar-day-number {
        font-size: 0.85rem;
    }

    .calendar-event-pill {
        padding: 2px 4px;
        font-size: 0.65rem;
    }
}

/* Print Button hover state */
.print-pill:hover {
    background: var(--bg-color) !important;
    border-color: var(--secondary-color) !important;
}

/* Print Styles */
@media print {

    /* Hide everything on page except the calendar container */
    body * {
        visibility: hidden;
    }

    #site-header,
    #site-footer,
    #scroll-to-top,
    .top-bar,
    .section-tagline,
    section:not(.calendar-section),
    .calendar-filters,
    .calendar-nav-controls,
    .calendar-view-toggle,
    .btn,
    .event-card-actions {
        display: none !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .calendar-section {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
    }

    .calendar-container,
    .calendar-container * {
        visibility: visible;
    }

    .calendar-container {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        background: #fff !important;
        color: #000 !important;
    }

    /* Optimize Month selection for printing */
    .calendar-month-select {
        border: none !important;
        font-size: 1.5rem !important;
        font-weight: 800 !important;
        color: #000 !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        padding: 0 !important;
        text-align: center !important;
    }

    /* Calendar Grid formatting for page printing */
    .calendar-day-cell {
        min-height: 95px !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
        color: #000 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .calendar-grid-header {
        border-bottom: 2px solid #333 !important;
    }

    .calendar-day-name {
        color: #333 !important;
        font-weight: bold !important;
    }

    .calendar-event-pill {
        border: 1px solid #ddd !important;
        border-left: 4px solid #333 !important;
        background: #fdfdfd !important;
        color: #000 !important;
        font-size: 0.7rem !important;
        padding: 2px 4px !important;
        box-shadow: none !important;
    }

    .event-autismacceptanceevents {
        border-left-color: #2b60de !important;
    }

    .event-ibtevents {
        border-left-color: #14315C !important;
    }

    .event-mobileassessmentclinic {
        border-left-color: #e91e63 !important;
    }
}

/* Cloudflare Turnstile Widget Container */
.cf-turnstile-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.7);
    transform-origin: right center;
    z-index: 10;
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .cf-turnstile-container {
        position: relative;
        right: auto;
        top: auto;
        transform: scale(0.7);
        transform-origin: center;
        margin: 0 auto 20px;
        display: flex;
        justify-content: center;
    }

    .form-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: auto !important;
    }
}

/* Hero and Footer Logo2 handling (Light vs Dark mode) */
.logo2-dark {
    display: none;
}

.hero-logo-img.logo2-light {
    background-color: var(--bg-white);
    /* Morning (light mode) white background */
}

[data-theme="dark"] .logo2-light {
    display: none;
}

[data-theme="dark"] .logo2-dark {
    display: block;
}

/* Night mode black background and border adjustments for Logo2 variants */
[data-theme="dark"] .hero-logo-img.logo2-dark {
    background-color: #000000;
    border-color: #4a4a4a;
    /* Dark grey border for the logo image */
}

[data-theme="dark"] .footer-logo.logo2-dark {
    background-color: #000000;
    border-color: #4a4a4a;
    /* Dark grey border for the logo image */
}

/* Adjust outer wrapper frames to have a matching dark grey border in dark mode */
[data-theme="dark"] .hero-logo-frame {
    border-color: #333333;
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .footer-logo-frame {
    border-color: #333333;
    background: rgba(0, 0, 0, 0.2);
}

/* Employee Modal */
.clickable-card {
    cursor: pointer;
}

.clickable-avatar {
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.avatar-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.clickable-avatar:hover .avatar-hover-overlay {
    opacity: 1;
}

.employee-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.employee-modal-content {
    background-color: var(--bg-white);
    margin: auto;
    padding: 40px;
    border: 1px solid #888;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.employee-modal-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.employee-modal-close:hover,
.employee-modal-close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

/* Qgiv Donation Widget Styling */
.qgiv-donation-card {
    transition: var(--transition-smooth);
    scroll-margin-top: 110px;
}

.qgiv-embed-container {
    margin: 0 auto;
    width: 100%;
    min-height: 520px;
}

.qgiv-embed-container iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    border-radius: var(--border-radius);
    background: transparent;
}

/* FAQ / Curriculum Grid (Used across Services & Resources) */
.cbi-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.cbi-faq-card {
    background-color: var(--bg-color);
    padding: 28px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cbi-faq-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent-color);
}

.cbi-faq-card h4 {
    font-size: 1.08rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.cbi-faq-card p {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .cbi-faq-grid {
        grid-template-columns: 1fr;
    }
}