/* ==========================================
   LUNAR ECLIPSE EFL THERAPY HORSES
   Green / Organic / Modern Theme
   ========================================== */

:root {
    /* Primary greens */
    --bg-primary: #f8faf6;
    --bg-secondary: #eef4ea;
    --bg-card: #ffffff;
    --bg-dark: #1a2e1a;
    --bg-dark-secondary: #243824;

    /* Borders */
    --border-color: #d4e0cc;
    --border-accent: #7ab648;

    /* Text */
    --text-primary: #2d3a2d;
    --text-secondary: #5a6b5a;
    --text-light: #f0f5ed;
    --text-muted: #8a9a8a;

    /* Accent */
    --accent: #5a9e3e;
    --accent-hover: #4a8a30;
    --accent-light: #e8f5e0;

    /* Warm accent */
    --warm: #c4873b;
    --warm-hover: #b07530;
    --warm-light: #fdf3e7;

    /* Feedback */
    --success: #4caf50;
    --error: #d44444;
    --warning: #f0a030;
    --info: #4a90b8;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --header-height: 70px;

    /* Transitions */
    --transition: all 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.16);
}

/* ==========================================
   RESET & BASE
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.btn-warm {
    background-color: var(--warm);
    color: #fff;
    border-color: var(--warm);
}

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

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1em;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9em;
}

.btn-danger {
    background-color: var(--error);
    color: #fff;
    border-color: var(--error);
}

.btn-danger:hover {
    background-color: #b33;
    border-color: #b33;
    color: #fff;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.site-header {
    background-color: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 6px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    color: var(--text-light);
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    color: var(--text-muted);
    font-size: 0.8em;
    font-weight: 400;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: #c0d4b8;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95em;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #fff;
    background-color: rgba(90, 158, 62, 0.3);
}

.nav-logout {
    color: #d4a0a0;
}

.nav-logout:hover {
    color: #fff;
    background-color: rgba(212, 68, 68, 0.2);
}

.btn-nav-cta {
    background-color: var(--accent);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
    transition: var(--transition);
}

.btn-nav-cta:hover {
    background-color: var(--accent-hover);
    color: #fff;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-arrow {
    font-size: 0.7em;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-arrow,
.nav-dropdown.open .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 170px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    margin-top: 0;
    padding-top: 12px;
    background-clip: padding-box;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

.nav-dropdown-menu::-webkit-scrollbar { width: 4px; }
.nav-dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.nav-dropdown-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #c0d4b8;
    text-decoration: none;
    font-size: 0.92em;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-item.active {
    color: #fff;
    background-color: rgba(90, 158, 62, 0.3);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a4a2a 50%, #1a3a1a 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 46, 26, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 800px;
}

.hero-title {
    color: #fff;
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    color: #b8d4a8;
    font-size: 1.3em;
    font-weight: 400;
    margin-bottom: 35px;
    line-height: 1.5;
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
    padding: 70px 0;
}

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

.section-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Page Header (for inner pages) */
.page-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a4a2a 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 2.4em;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    color: #b8d4a8;
    font-size: 1.15em;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}
.page-header-brand {
    font-size: 1.4em;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.page-header-back {
    margin-bottom: 16px;
}

/* ==========================================
   ABOUT INTRO
   ========================================== */

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

.about-intro .container {
    max-width: 800px;
}

.lead-text {
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.licensing-badge {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: var(--accent-light);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 25px;
    text-align: left;
}

.badge-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    margin-top: 2px;
}

.licensing-badge p {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95em;
}

/* ==========================================
   SUPPORT SECTION
   ========================================== */

.support-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a4a2a 100%);
    text-align: center;
    padding: 50px 0;
}

.support-section .section-title {
    color: #fff;
}

.support-section .section-subtitle {
    color: #b8d4a8;
}

/* ==========================================
   SERVICES GRID
   ========================================== */

.services-section {
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.service-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--text-primary);
    font-size: 1.15em;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.5;
}

/* ==========================================
   HOOFGANG GRID
   ========================================== */

.hoofgang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.horse-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .hoofgang-grid {
        gap: 20px;
    }

    .horse-card {
        padding: 25px;
    }
}

.horse-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.horse-image-placeholder {
    font-size: 3em;
    margin-bottom: 12px;
    opacity: 0.8;
}

.horse-card h3 {
    color: var(--text-primary);
    font-size: 1.1em;
    font-weight: 600;
}

.horse-card-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .horse-card-image {
        height: 160px;
        margin-bottom: 12px;
    }
}

.horse-card-bio {
    color: var(--text-secondary);
    font-size: 0.85em;
    line-height: 1.5;
    margin-top: 8px;
    padding: 0 5px;
    display: none;
}

.horse-card-breed {
    color: var(--text-muted);
    font-size: 0.8em;
    font-weight: 500;
    margin-top: 4px;
}

.horse-card-roles {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    justify-content: center;
}

@media (min-width: 768px) {
    .horse-card-bio {
        display: block;
    }

    .horse-card-roles {
        display: flex;
    }
}

/* Therapy role pills */
.therapy-role {
    display: inline-block;
    padding: 3px 12px;
    background: var(--warm-light);
    color: var(--warm);
    border: 1px solid var(--warm);
    border-radius: 16px;
    font-size: 0.75em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.therapy-role:hover {
    background: var(--warm);
    color: #fff;
    transform: translateY(-1px);
}

/* Horse card links (home/about → horses page) */
a.horse-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.horse-card-tap-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.75em;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.horse-card-link:hover .horse-card-tap-hint {
    opacity: 1;
}

.horse-card-meet {
    display: block;
    color: var(--accent);
    font-size: 0.85em;
    font-weight: 600;
    margin-top: auto;
    padding-top: 10px;
    transition: var(--transition);
}

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

/* ==========================================
   HOOFGANG PAGE — ROSTER & PROFILES
   ========================================== */

.hoofgang-roster-section {
    padding: 10px 0;
    margin-top: 0;
    scroll-margin-top: var(--header-height);
    background: #0d1a0d;
}

.hoofgang-profile-section {
    padding-top: 40px;
}

.hoofgang-roster-wrap {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.hoofgang-roster-wrap::before,
.hoofgang-roster-wrap::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 40px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hoofgang-roster-wrap::before {
    left: 0;
    background: linear-gradient(to right, #0d1a0d, transparent);
}

.hoofgang-roster-wrap::after {
    right: 0;
    background: linear-gradient(to left, #0d1a0d, transparent);
}

.hoofgang-roster-wrap.at-start::before {
    opacity: 0;
}

.hoofgang-roster-wrap.at-end::after {
    opacity: 0;
}

.roster-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    padding: 0;
    line-height: 1;
}

.roster-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-md);
}

.roster-arrow-left {
    left: -24px;
}

.roster-arrow-right {
    right: -24px;
}

.roster-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.hoofgang-roster {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 16px 4px;
    scrollbar-width: none;
}

.hoofgang-roster::-webkit-scrollbar {
    display: none;
}

.roster-thumb {
    flex-shrink: 0;
    width: 110px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 6px;
    border-radius: 8px;
    border: 3px solid transparent;
    position: relative;
}

.roster-thumb:hover {
    border-color: var(--border-accent);
}

.roster-thumb.active {
    border-color: var(--accent);
    background: rgba(107, 142, 35, 0.2);
}

.roster-thumb img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    margin-bottom: 6px;
    transition: var(--transition);
}

.roster-thumb.active img {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.roster-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    background: var(--bg-secondary);
    margin-bottom: 6px;
    font-size: 2em;
}

.roster-thumb-name {
    display: block;
    font-size: 0.8em;
    font-weight: 600;
    color: #d4e8c8;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roster-thumb.active .roster-thumb-name {
    color: #fff;
}

/* Horse profile panels */
.horse-profile {
    display: none;
}

.horse-profile.active {
    display: block;
    animation: profileFadeIn 0.35s ease;
}

@keyframes profileFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.horse-profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.horse-profile-image-wrap {
    overflow: hidden;
    border-radius: 12px;
}

.horse-profile-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.horse-profile-placeholder {
    font-size: 4em;
    text-align: center;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.horse-profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.horse-profile-name {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
}

.horse-share-btn {
    position: relative;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1em;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.horse-share-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(var(--accent-rgb, 139, 92, 246), 0.08);
}

.share-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.78em;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.share-tooltip.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.horse-profile-breed {
    font-size: 0.9em;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 12px;
}

.horse-profile-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.horse-profile-bio {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05em;
}

.horse-profile-bio-empty {
    color: var(--text-muted);
    font-style: italic;
}

/* Horse profile — featured news */
.horse-profile-news {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.horse-profile-news h3 {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.horse-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.horse-news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.horse-news-item:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-sm);
}

.horse-news-thumb {
    width: 60px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.horse-news-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.horse-news-title {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.horse-news-date {
    font-size: 0.78em;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Horse profile — photo gallery */
.horse-profile-gallery {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.horse-profile-gallery h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.horse-profile-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.horse-profile-gallery-item {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.horse-profile-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.horse-profile-gallery-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .horse-profile-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .horse-profile-gallery-item img {
        height: 120px;
    }
}

/* ==========================================
   ABOUT PAGE
   ========================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.about-card-icon {
    font-size: 2.2em;
    margin-bottom: 15px;
}

.about-card h3 {
    color: var(--text-primary);
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
}

.benefit-item {
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 25px 30px;
    box-shadow: var(--shadow-sm);
}

.benefit-item h4 {
    color: var(--text-primary);
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Quote */
.quote-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a4a2a 100%);
    text-align: center;
}

.featured-quote {
    font-size: 1.4em;
    color: #b8d4a8;
    font-style: italic;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    border: none;
    padding: 0;
}

/* ==========================================
   FORMS
   ========================================== */

.form-page {
    padding: 60px 0;
}

.form-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-container h1, .form-container h2 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1em;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(90, 158, 62, 0.15);
}

.form-actions {
    margin-top: 25px;
}

.form-actions .btn {
    width: 100%;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.form-footer a {
    color: var(--accent);
    font-weight: 500;
}

/* Error/success messages */
.form-errors {
    background-color: #fef2f2;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.form-errors ul {
    list-style: none;
    padding: 0;
}

.form-errors li {
    color: var(--error);
    font-size: 0.9em;
    padding: 3px 0;
}

.form-errors li::before {
    content: "\2022";
    margin-right: 8px;
}

.form-success {
    background-color: #f0faf0;
    border: 1px solid #b8e0b8;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: var(--success);
    text-align: center;
    font-weight: 500;
}

/* ==========================================
   ACCOUNT PAGE
   ========================================== */

.account-page {
    padding: 60px 0;
}

.account-container {
    max-width: 700px;
    margin: 0 auto;
}

.account-header {
    text-align: center;
    margin-bottom: 40px;
}

.account-header h1 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.account-header p {
    color: var(--text-secondary);
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.account-card h2 {
    color: var(--text-primary);
    font-size: 1.25em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4ec;
}

.account-info-row:last-child {
    border-bottom: none;
}

.account-info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.account-info-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Account Tabs --- */
.account-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.account-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.account-tab:hover {
    color: var(--text-primary);
}

.account-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.account-tab-panel {
    display: none;
}

.account-tab-panel.active {
    display: block;
}

/* --- Working Pattern (team account page) --- */
.working-pattern-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.working-pattern-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg-secondary);
}

.working-pattern-row:nth-child(odd) {
    background: var(--bg-primary);
}

.wp-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}

.wp-day-name {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 100px;
}

.wp-times {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
}

.wp-time-input {
    width: 100px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9em;
    background: var(--bg-card);
    color: var(--text-primary);
}

.wp-times-separator {
    color: var(--text-muted);
    font-size: 0.85em;
}

/* --- Blocked Dates (team account page) --- */
.blocked-dates-add {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blocked-dates-add .form-group {
    margin-bottom: 0;
}

.blocked-dates-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blocked-date-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid #c0392b;
}

.blocked-date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blocked-date-date {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95em;
}

.blocked-date-note {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.blocked-date-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9em;
}

/* ==========================================
   ADMIN PANEL
   ========================================== */

.admin-panel {
    padding: 40px 0;
}

.admin-panel > .container > h1 {
    color: var(--text-primary);
    margin-bottom: 30px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: 5px;
}

.admin-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-nav a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.admin-nav a:hover, .admin-nav a.active {
    border-color: var(--accent);
    color: var(--accent);
}

.admin-sub-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.admin-sub-tab {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.95em;
    white-space: nowrap;
    transition: var(--transition);
}

.admin-sub-tab:hover {
    color: var(--text-primary);
}

.admin-sub-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.admin-table {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-collapse: collapse;
    margin-bottom: 30px;
}

.admin-table thead {
    background-color: var(--bg-secondary);
}

.admin-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9em;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #f0f4ec;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background-color: var(--bg-secondary);
}

/* Admin table inline inputs */
.admin-table input[type="text"],
.admin-table input[type="number"],
.admin-table textarea {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.9em;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
}

.admin-table input[type="text"]:focus,
.admin-table input[type="number"]:focus,
.admin-table textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(90, 158, 62, 0.15);
}

.admin-section-title {
    color: var(--text-primary);
    font-size: 1.4em;
    margin-bottom: 20px;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background-color: var(--bg-dark);
    color: #a0b8a0;
    padding: 50px 0 0 0;
    margin-top: 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
    color: var(--text-light);
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 5px;
}

.footer-section a {
    display: block;
    color: #a0b8a0;
    font-size: 0.9em;
    padding: 3px 0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: #fff;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-section a.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #a0b8a0;
    transition: var(--transition);
    padding: 0;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-icon:hover {
    background-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85em;
}

.footer-badge {
    max-width: 160px;
    height: auto;
    margin: 15px 0;
    display: block;
}

.footer-thanks {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 0;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.footer-thanks p {
    font-size: 0.88em;
    line-height: 1.7;
    color: #a0b8a0;
    margin-bottom: 8px;
}

.footer-supporters-link {
    color: var(--border-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-supporters-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-licensing {
    margin-top: 5px;
    font-size: 0.8em !important;
    opacity: 0.7;
}

.footer-credit {
    margin-top: 10px;
    font-size: 0.78em !important;
    opacity: 0.6;
}

.footer-credit a {
    color: var(--border-accent);
    text-decoration: none;
    transition: var(--transition);
}

.footer-credit a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Cookie Consent Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: cookieSlideUp 0.4s ease;
}

.cookie-banner.visible {
    display: block;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-banner p {
    color: #a0b8a0;
    font-size: 0.88em;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.cookie-banner a {
    color: var(--border-accent);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 16px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .cookie-banner p {
        font-size: 0.82em;
    }

    .cookie-banner-actions {
        display: flex;
        gap: 8px;
    }

    .cookie-banner-actions .btn {
        flex: 1;
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

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

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

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

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

    .hoofgang-roster-wrap {
        max-width: 750px;
    }

    .horse-profile-layout {
        grid-template-columns: 1fr 1.5fr;
        align-items: start;
    }
}

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

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

    .hero-title {
        font-size: 3.2em;
    }

    .hoofgang-roster-wrap {
        max-width: 800px;
    }

    .roster-thumb {
        width: 120px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link, .btn-nav-cta {
        display: block;
        padding: 12px 16px;
        width: 100%;
        text-align: left;
    }

    /* Flatten dropdown on mobile */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 16px;
    }

    .nav-dropdown-menu {
        display: none;
        position: static;
        transform: none;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        min-width: 0;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-item {
        padding: 10px 16px 10px 32px;
        font-size: 0.9em;
    }

    .hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .hero-tagline {
        font-size: 1.05em;
    }

    .section {
        padding: 45px 0;
    }

    .section-title {
        font-size: 1.6em;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 1.8em;
    }

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

    .form-container {
        padding: 25px;
        margin: 0 15px;
    }

    .account-tabs {
        gap: 2px;
    }

    .account-tab {
        padding: 8px 14px;
        font-size: 0.85em;
    }

    .admin-sub-tabs {
        gap: 2px;
    }

    .admin-sub-tab {
        padding: 8px 14px;
        font-size: 0.85em;
    }

    .account-info-row {
        flex-direction: column;
        gap: 4px;
    }

    .working-pattern-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .wp-day-name {
        min-width: 80px;
    }

    .wp-times {
        flex-basis: 100%;
        padding-left: 30px;
    }

    .blocked-dates-add {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-table {
        font-size: 0.85em;
    }

    .admin-table th, .admin-table td {
        padding: 10px 12px;
    }

}

@media (max-width: 480px) {
    .logo-subtitle {
        display: none;
    }

    .hero-title {
        font-size: 1.5em;
    }

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

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

/* ==========================================
   CONTACT PAGE
   ========================================== */

/* Contact tabs */
.contact-tabs-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-tabs {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.contact-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 16px 12px;
    border: none;
    border-right: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.contact-tab:last-child {
    border-right: none;
}

.contact-tab:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.contact-tab.active {
    background: var(--accent);
    color: #fff;
    border-right-color: var(--accent);
}

.contact-tab-icon {
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.contact-tab-panels {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 35px 30px;
}

.contact-tab-panel {
    display: none;
}

.contact-tab-panel.active {
    display: block;
}

/* Channel cards (Messenger / Live Chat) */
.contact-channel-card {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 0;
}

.contact-channel-card h3 {
    font-size: 1.4em;
    color: var(--text-primary);
    margin: 20px 0 12px;
}

.contact-channel-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.contact-channel-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.contact-channel-icon--messenger {
    background: #0084ff;
    color: #fff;
}

.contact-channel-icon--chat {
    background: var(--accent);
    color: #fff;
}

.contact-channel-btn {
    min-width: 200px;
}

.contact-channel-btn--messenger {
    background: #0084ff;
    border-color: #0084ff;
}

.contact-channel-btn--messenger:hover {
    background: #0070d8;
    border-color: #0070d8;
}

.contact-channel-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.contact-channel-note {
    font-size: 0.875em;
    color: var(--text-muted);
    margin-bottom: 0 !important;
}

.contact-channel-note a {
    color: var(--accent);
}

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

.contact-info {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 35px 30px;
}

.contact-info h3 {
    color: var(--text-primary);
    font-size: 1.25em;
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4ec;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    font-size: 1.3em;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-info-text a {
    color: var(--accent);
    word-break: break-all;
}

.contact-form-container {
    max-width: 100%;
}

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

/* ==========================================
   NEWS PAGE
   ========================================== */

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.news-card-image {
    width: 100px;
    min-height: 100px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.news-card-content {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

@media (min-width: 768px) {
    .news-grid {
        gap: 24px;
    }

    .news-card-image {
        width: 280px;
        min-height: 220px;
    }

    .news-card-content {
        padding: 25px 30px;
    }
}

.news-date {
    color: var(--text-muted);
    font-size: 0.85em;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.news-card-content h2 {
    color: var(--text-primary);
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.news-card-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
    display: none;
}

.news-card-content .btn {
    display: none;
}

@media (min-width: 768px) {
    .news-card-content h2 {
        font-size: 1.3em;
        margin-bottom: 12px;
    }

    .news-card-content p {
        display: block;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .news-card-content .btn {
        display: inline-block;
    }
}

.news-article {
    max-width: 1000px;
    margin: 0 auto;
}

.news-article-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .news-article-layout {
        flex-direction: row;
        gap: 32px;
    }
}

.news-article-sidebar {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .news-article-sidebar {
        width: 320px;
        position: sticky;
        top: calc(var(--header-height) + 20px);
        align-self: flex-start;
    }
}

.news-article-image {
    width: 100%;
    border-radius: 12px;
    display: block;
    cursor: pointer;
    transition: var(--transition);
}

.news-article-image:hover {
    opacity: 0.9;
}

.news-article-main {
    flex: 1;
    min-width: 0;
}

.news-article-meta {
    color: var(--text-muted);
    font-size: 0.9em;
}

.news-article-body {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05em;
}

.news-article-body p {
    margin-bottom: 16px;
}

/* Featured horses in article sidebar */
.news-article-horses {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.news-article-horses h3 {
    grid-column: 1 / -1;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.news-article-horse-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9em;
    transition: var(--transition);
}

.news-article-horse-link:hover {
    background: var(--accent-light);
}

.news-article-horse-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Additional images gallery */
.news-article-gallery {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.news-article-gallery h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.news-article-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .news-article-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

.news-article-gallery-item {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.news-article-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-article-gallery-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .news-article-gallery-item img {
        height: 120px;
    }
}

/* Admin extra images grid */
.admin-image-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.admin-image-section h3 {
    margin: 0 0 14px 0;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-extra-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-extra-image-item {
    text-align: center;
}

.admin-extra-image-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-bottom: 6px;
}

.admin-extra-image-item label {
    font-size: 0.8em;
    color: var(--text-muted);
}

.admin-dynamic-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.admin-dynamic-image-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-dynamic-image-row input[type="file"] {
    flex: 1;
}

.admin-remove-row {
    padding: 4px 10px !important;
    line-height: 1;
    flex-shrink: 0;
}

/* Horse tags on news articles (legacy/listing) */
.news-horse-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.news-horse-tags-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95em;
    margin-right: 4px;
}

.horse-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.horse-tag:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.news-horse-tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.horse-tag-sm {
    display: inline-block;
    padding: 2px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 16px;
    font-size: 0.75em;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.horse-tag-sm:hover {
    background: var(--accent);
    color: #fff;
}

/* ==========================================
   GALLERY PAGE
   ========================================== */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95em;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-primary);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background-color: var(--accent-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 20px 15px 12px;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5em;
    cursor: pointer;
    z-index: 100000;
    line-height: 1;
    padding: 5px 12px;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.lightbox-caption {
    color: #ccc;
    margin-top: 15px;
    font-size: 1em;
    text-align: center;
    max-width: 600px;
}

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

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

/* ==========================================
   PAGINATION
   ========================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: var(--transition);
}

a.pagination-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-secondary);
}

.pagination-current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ==========================================
   DONATE / SUPPORT PAGE
   ========================================== */

.donate-container {
    max-width: 900px;
    margin: 0 auto;
}

.donate-intro {
    text-align: center;
    margin-bottom: 50px;
}

.donate-intro h2 {
    color: var(--text-primary);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.donate-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05em;
    max-width: 700px;
    margin: 0 auto;
}

.donate-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.donate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.donate-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.donate-card h3 {
    color: var(--text-primary);
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.donate-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

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

/* ==========================================
   ADMIN ADDITIONS
   ========================================== */

.admin-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.admin-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.admin-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.admin-gallery-item-info {
    padding: 10px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.admin-gallery-item-actions {
    padding: 0 10px 10px;
    display: flex;
    gap: 8px;
}

/* Gallery multi-upload previews */
.gallery-upload-previews {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.gallery-preview-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
}
.gallery-preview-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
}
.gallery-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-preview-info {
    flex: 1;
    min-width: 0;
}
.gallery-preview-name {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gallery-preview-info input {
    width: 100%;
}
.gallery-preview-remove {
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.badge-unread {
    background-color: #fff3e0;
    color: var(--warm);
    border: 1px solid var(--warm);
}

.badge-read {
    background-color: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.badge-published {
    background-color: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.badge-draft {
    background-color: #f5f5f5;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Horse checkbox grid (admin news forms) */
.horse-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    max-height: 300px;
    overflow-y: auto;
}

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

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

.horse-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95em;
    color: var(--text-primary);
}

.horse-checkbox-label:hover {
    background: var(--accent-light);
}

.horse-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Select inputs */
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-card);
    transition: var(--transition);
    appearance: auto;
}

select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(90, 158, 62, 0.1);
}

/* File inputs */
input[type="file"] {
    padding: 10px 0;
    font-size: 0.95em;
    color: var(--text-secondary);
}

/* ==========================================
   PAGE HEADER BACKGROUNDS
   ========================================== */

.page-header-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 80px 0;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 46, 26, 0.65);
    z-index: 0;
}

.page-header-bg .container {
    position: relative;
    z-index: 1;
}

/* ==========================================
   HOME SECTION BACKGROUNDS
   ========================================== */

.section-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 30, 15, 0.75) 0%,
        rgba(15, 30, 15, 0.45) 18%,
        rgba(15, 30, 15, 0.45) 82%,
        rgba(15, 30, 15, 0.75) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.section-bg .container {
    position: relative;
    z-index: 1;
}

.section-bg .section-title,
.section-bg .section-subtitle {
    color: #fff;
}

.section-bg .horse-card h3,
.section-bg .horse-card-breed {
    color: #2d3a2d;
}

/* Glassy cards over section background */
.section-bg .horse-card {
    background: rgba(220, 240, 215, 0.55);
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.section-bg .horse-card:hover {
    background: rgba(240, 255, 235, 0.8);
    border-color: rgba(255, 255, 255, 0.7);
}

.section-bg .horse-card-meet {
    color: #3d5a2d;
}

/* Horse profile text on section background */
.section-bg .horse-profile-name,
.section-bg .horse-profile-bio,
.section-bg .horse-profile-bio-empty,
.section-bg .horse-profile-news h3,
.section-bg .horse-profile-gallery h3,
.section-bg .horse-profile-news .horse-news-list,
.section-bg .horse-profile-content p,
.section-bg .horse-profile-content h3 {
    color: #e8f0e0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.section-bg .horse-profile-breed {
    color: #b8d4a0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   ADMIN BACKGROUNDS
   ========================================== */

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

.admin-bg-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.admin-bg-card h3 {
    color: var(--text-primary);
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.admin-bg-preview {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: var(--bg-secondary);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-bg-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.admin-bg-empty {
    border: 2px dashed var(--border-color);
}

.admin-bg-empty span {
    color: var(--text-muted);
    font-size: 0.9em;
}

.admin-bg-actions {
    margin-top: 10px;
}

/* ==========================================
   TEAM PAGE
   ========================================== */

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.team-card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.team-card-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: var(--text-muted);
}

.team-card-body {
    padding: 20px;
}

.team-card-name {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-card-role {
    font-size: 0.88em;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 10px;
}

.team-card-bio {
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Team Compact Grid (Young Team / Contributors) */
.team-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.team-card-compact .team-card-placeholder-compact {
    aspect-ratio: 1;
    font-size: 2.5em;
}

.team-card-compact .team-card-image {
    aspect-ratio: 1;
}

.team-card-compact .team-card-body {
    padding: 14px;
}

.team-card-compact .team-card-name {
    font-size: 1em;
}

.team-card-compact .team-card-role {
    font-size: 0.82em;
    margin-bottom: 6px;
}

.team-card-compact .team-card-bio {
    font-size: 0.85em;
}

.team-card-clickable {
    cursor: pointer;
}

.team-bio-modal {
    text-align: center;
}
.team-bio-modal-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    border: 3px solid var(--border-color);
}
.team-bio-modal-role {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 14px;
}
.team-bio-modal-text {
    text-align: left;
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ==========================================
   TESTIMONIALS PAGE
   ========================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 50px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 28px 28px 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.testimonial-content {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
}

.testimonial-content::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 2.5em;
    color: var(--accent);
    font-style: normal;
    line-height: 1;
    opacity: 0.5;
}

.testimonial-author {
    font-size: 0.88em;
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-author-location {
    color: var(--text-muted);
    margin-left: 4px;
}

.testimonial-form-section {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.testimonial-form-section h2 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.testimonial-form-section > p {
    color: var(--text-secondary);
    font-size: 0.92em;
    margin-bottom: 24px;
}

/* Service card image (for dedicated services page) */
.service-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.services-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.services-cta p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05em;
}

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

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

/* ==========================================
   EDUCATION PAGE — COMPACT LAYOUT & ACCORDIONS
   ========================================== */

.section-compact {
    padding: 40px 0;
}

.section-compact .section-subtitle {
    margin-bottom: 24px;
}

/* ==========================================
   CRAFTS & ACTIVITIES PAGE
   ========================================== */

.crafts-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.crafts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.craft-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.craft-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.craft-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.craft-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.craft-difficulty {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.craft-difficulty-beginner { background: #d4edda; color: #155724; }
.craft-difficulty-intermediate { background: #fff3cd; color: #856404; }
.craft-difficulty-advanced { background: #f8d7da; color: #721c24; }

.craft-card-body {
    padding: 20px;
}

.craft-category {
    display: inline-block;
    font-size: 0.8em;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.craft-card-body h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.craft-card-body p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 16px;
}

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

/* ==========================================
   HOOFGANG GAMES PAGE
   ========================================== */

.game-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.game-tabs::-webkit-scrollbar {
    display: none;
}

.game-tab-btn {
    padding: 14px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: var(--font-primary);
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .game-tabs {
        overflow-x: visible;
        gap: 0;
        margin-left: -20px;
        margin-right: -20px;
    }
    .game-tab-btn {
        flex: 1 1 0 !important;
        padding: 12px 4px;
        font-size: 0.82em;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        min-width: 0;
    }
}

.game-tab-btn:hover {
    color: var(--text-primary);
}

.game-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.game-panel {
    display: none;
}

.game-panel.active {
    display: block;
}

/* Memory Game */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 640px;
    margin: 0 auto 24px auto;
}

@media (max-width: 500px) {
    .memory-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

.memory-card {
    aspect-ratio: 3 / 4;
    cursor: pointer;
    perspective: 800px;
    position: relative;
    transition: transform 0.15s ease;
}

.memory-card:hover:not(.flipped):not(.matched) {
    transform: translateY(-4px) scale(1.03);
}

.memory-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.45, 0.05, 0.15, 1);
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Card front — face-down design */
.memory-card-front {
    background: linear-gradient(145deg, #4a8a30 0%, #5a9e3e 50%, #3d7828 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    flex-direction: column;
    gap: 6px;
}

.memory-card-front::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 9px;
    pointer-events: none;
}

.memory-card-front::after {
    content: '🐴';
    font-size: 2.2em;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Card back — revealed face */
.memory-card-back {
    transform: rotateY(180deg);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    flex-direction: column;
    gap: 0;
    padding: 0;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.memory-card-back img {
    width: 100%;
    height: 72%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.memory-card-back span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    font-size: 0.82em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    width: 100%;
    background: var(--bg-card);
}


/* Matched state */
.memory-card.matched {
    cursor: default;
}

.memory-card.matched .memory-card-back {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent), 0 6px 18px rgba(90,158,62,0.25);
}

.memory-card.matched .memory-card-back span {
    background: var(--accent-light);
    color: var(--accent);
}

/* Memory HUD — fixed bottom bar */
.memory-hud {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    pointer-events: none;
}

.memory-hud.visible {
    transform: translateY(0);
    pointer-events: auto;
}

.memory-hud-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-dark, #1a2e1a);
    border-radius: 18px 18px 0 0;
    padding: 14px 28px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.22);
}

.memory-hud-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 60px;
}

.memory-hud-label {
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
}

.memory-hud-value {
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.memory-hud-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    flex: 1;
}

.memory-hud-dot {
    font-size: 1.1em;
    opacity: 0.3;
    transition: opacity 0.3s, transform 0.3s;
    line-height: 1;
}

.memory-hud-dot.found {
    opacity: 1;
    transform: scale(1.2);
}

@media (max-width: 500px) {
    .memory-hud-inner {
        padding: 12px 16px;
        gap: 10px;
    }
    .memory-hud-value {
        font-size: 1.3em;
    }
    .memory-hud-dot {
        font-size: 0.95em;
    }
}

.memory-win {
    text-align: center;
    padding: 30px 0;
}

.memory-win-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

/* Colouring Game */
.colouring-viewport {
    width: 100%;
    height: calc(100vh - var(--header-height) - 90px);
    min-height: 300px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    position: relative;
    cursor: crosshair;
    touch-action: none;
}

/* Fixed bottom toolbar */
.colour-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--bg-card);
    border-top: 2px solid var(--border-color);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    display: none; /* shown only when colouring tab is active */
}

.colour-bar.visible {
    display: block;
}

.colour-bar.collapsed .colour-bar-inner {
    display: none;
}

.colour-bar-toggle {
    display: block;
    width: 100%;
    padding: 4px 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1em;
    line-height: 1;
    transition: color 0.15s;
}

.colour-bar.collapsed .colour-bar-toggle {
    border-bottom: none;
    transform: rotate(180deg);
}

.colour-bar-toggle:hover {
    color: var(--accent);
}

.colour-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.colour-bar-swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    transition: border-color 0.15s, transform 0.15s;
}

.colour-bar-swatch:hover {
    border-color: var(--accent);
    transform: scale(1.1);
}

.colour-bar-swatch input[type="color"] {
    width: 150%;
    height: 150%;
    margin: -25%;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 1;
}

.colour-bar-tools {
    display: flex;
    gap: 6px;
}

.colour-bar-btn {
    padding: 6px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    font-family: var(--font-primary);
    font-size: 0.88em;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.colour-bar-btn:hover,
.colour-bar-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

.colour-bar-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.colour-bar-btn--primary {
    border-color: var(--accent);
    color: var(--accent);
}

.colour-bar-size {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.colour-bar-size input[type="range"] {
    width: 80px;
}

.colour-bar-zoom {
    display: flex;
    align-items: center;
    gap: 4px;
}

.colour-bar-zoom span {
    font-size: 0.82em;
    color: var(--text-muted);
    min-width: 38px;
    text-align: center;
}

.colour-bar-actions {
    display: flex;
    gap: 6px;
}

.colouring-canvas-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transform: translate(-50%, -50%) scale(1);
    will-change: transform;
}

.colouring-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
}

.colouring-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 1.05em;
}

/* Education Tabs */
.edu-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.edu-tabs::-webkit-scrollbar {
    display: none;
}

.edu-tab-btn {
    padding: 14px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: var(--font-primary);
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.edu-tab-btn:hover {
    color: var(--text-primary);
}

.edu-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.edu-tab-panel {
    display: none;
}

.edu-tab-panel.active {
    display: block;
}

/* Professional Cards */
.professional-icon {
    font-size: 2.2em;
    margin-bottom: 10px;
    line-height: 1;
}

.professional-role {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.professional-card h4 {
    margin-bottom: 4px;
}

.edu-subsection {
    margin-top: 40px;
}

.edu-subsection:first-child {
    margin-top: 0;
}

.edu-subsection-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.edu-subsection-subtitle {
    color: var(--text-secondary);
    font-size: 1em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.page-header .lead-text {
    color: #b8d4a8;
    font-size: 1.05em;
    max-width: 700px;
    margin: 16px auto 0 auto;
    line-height: 1.7;
    opacity: 0.9;
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: var(--border-accent);
}

.accordion-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    text-align: left;
    gap: 12px;
    transition: var(--transition);
    color: inherit;
}

.accordion-trigger:hover {
    background-color: var(--bg-secondary);
}

.accordion-trigger-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    line-height: 1;
}

.accordion-trigger-title {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.accordion-arrow {
    font-size: 0.8em;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-body-inner {
    padding: 0 20px 16px 52px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95em;
}

@media (max-width: 767px) {
    .section-compact {
        padding: 30px 0;
    }

    .edu-tabs {
        gap: 0;
        margin-bottom: 24px;
    }

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

    .accordion-trigger {
        padding: 14px 16px;
    }

    .accordion-body-inner {
        padding: 0 16px 14px 16px;
    }

    .edu-subsection {
        margin-top: 30px;
    }

    .professional-icon {
        font-size: 1.8em;
    }
}

/* Quiz */
.quiz-host {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.quiz-host-avatar {
    max-width: 120px;
    height: auto;
    flex-shrink: 0;
}

.quiz-host-intro {
    text-align: left;
}

.quiz-host-intro .section-title {
    text-align: left;
    font-size: 1.6em;
    margin-bottom: 6px;
}

.quiz-host-intro .section-subtitle {
    text-align: left;
    margin: 0;
    font-size: 1em;
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-question {
    display: none;
}

.quiz-question.active {
    display: block;
}

.quiz-progress {
    font-size: 0.85em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-question-text {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.95em;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.quiz-option:hover:not(.answered) {
    border-color: var(--accent);
    background: var(--accent-light);
}

.quiz-option.correct {
    border-color: #4caf50;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

.quiz-option.incorrect {
    border-color: #e57373;
    background: #ffebee;
    color: #c62828;
}

.quiz-option.answered {
    cursor: default;
    opacity: 0.7;
}

.quiz-option.correct.answered,
.quiz-option.incorrect.answered {
    opacity: 1;
}

.quiz-feedback {
    margin-top: 14px;
    font-size: 0.9em;
    line-height: 1.5;
    min-height: 24px;
}

.quiz-result {
    display: none;
    text-align: center;
    padding: 30px 0;
}

.quiz-result.active {
    display: block;
}

.quiz-result-icon {
    font-size: 3em;
    margin-bottom: 12px;
}

.quiz-result-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.quiz-result-score {
    font-size: 1.05em;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ==========================================
   SHOWS & EVENTS PAGE
   ========================================== */

.shows-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

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

.show-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.show-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.show-upcoming {
    border-color: var(--accent);
    border-width: 2px;
    position: relative;
}

.show-upcoming::before {
    content: 'Upcoming';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    z-index: 1;
}

.show-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.show-card-content {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.show-card-header h3 {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.show-year-badge {
    flex-shrink: 0;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8em;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.show-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.show-meta-item {
    color: var(--text-secondary);
    font-size: 0.85em;
    line-height: 1.4;
}

.show-horses-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
    padding-top: 8px;
}

/* Single show detail */
.show-detail {
    max-width: 900px;
    margin: 0 auto;
}

.show-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.show-detail-image:hover {
    opacity: 0.9;
}

.show-detail-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 30px;
}

.show-detail-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.show-detail-info strong {
    color: var(--text-primary);
}

.show-detail-body {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1em;
}
.show-detail-body .announcement,
.show-detail-body .announcement-warning,
.show-detail-body .announcement-alert {
    padding: 16px 20px;
    border-left: 4px solid;
    border-radius: 6px;
    margin: 16px 0;
}
.show-detail-body .announcement {
    background: #e3f2fd;
    border-color: #1e88e5;
}
.show-detail-body .announcement-warning {
    background: #fff8e1;
    border-color: #f9a825;
}
.show-detail-body .announcement-alert {
    background: #fce4ec;
    border-color: #e53935;
}

.show-detail-horses {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.show-detail-horses h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.show-detail-horse-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 6px 16px 6px 6px;
    margin: 0 8px 8px 0;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9em;
    font-weight: 500;
    transition: var(--transition);
}

.show-detail-horse-link:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

.show-detail-horse-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Show detail photo gallery */
.show-detail-gallery {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.show-detail-gallery h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.show-detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .show-detail-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

.show-detail-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.show-detail-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.show-detail-gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .show-detail-gallery-item img {
        height: 200px;
    }
}

.show-detail-gallery-caption {
    padding: 6px 10px;
    font-size: 0.85em;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

/* ==========================================
   PASSWORD STRENGTH INDICATOR
   ========================================== */

.pw-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pw-input-wrap input {
    flex: 1;
    padding-right: 60px;
}

.pw-toggle {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.pw-toggle:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
}

.pw-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.pw-strength-bar {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
}

.pw-strength-label {
    font-size: 0.8em;
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

.pw-requirements {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.pw-requirements li {
    font-size: 0.78em;
    color: var(--text-muted);
    position: relative;
    padding-left: 16px;
}

.pw-requirements li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.pw-requirements li.pw-req-pass {
    color: var(--success);
}

.pw-requirements li.pw-req-pass::before {
    content: '\2713';
    color: var(--success);
}

.pw-match-label {
    display: block;
    font-size: 0.8em;
    font-weight: 500;
    margin-top: 6px;
    min-height: 1.2em;
}

/* Helplines popup */
.helplines-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.helpline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.helpline-item:last-child {
    border-bottom: none;
}
.helpline-name {
    font-weight: 600;
    color: var(--text);
}
.helpline-contact {
    color: var(--accent);
    font-weight: 500;
    text-align: right;
}
@media (max-width: 500px) {
    .helpline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .helpline-contact {
        text-align: left;
    }
}

/* Announcement bar */
.announcement-bar {
    text-align: center;
    padding: 10px 20px;
    font-size: 0.95em;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
}
.announcement-bar.visible {
    max-height: 120px;
    opacity: 1;
    padding: 10px 20px;
}
.announcement-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}
.announcement-bar-text {
    flex: 1;
}
.announcement-bar-dismiss {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.4em;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}
.announcement-bar-dismiss:hover {
    opacity: 1;
}

/* Upcoming event notification bar */
.event-notify-bar {
    text-align: center;
    padding: 10px 20px;
    font-size: 0.95em;
    font-weight: 500;
    background-color: var(--accent);
    color: #fff;
}
.chat-notification-bar {
    background-color: var(--accent) !important;
    color: #fff !important;
}
.announcement-preview {
    max-height: none !important;
    opacity: 1 !important;
    padding: 10px 20px !important;
    border-radius: 8px;
    margin-bottom: 20px;
}
