@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #10B981;
    --secondary-color: #F59E0B;
    --bg-color: #ffffff;
    --text-color: #334155;
    --heading-color: #0f172a;
    --font-family-sans: 'Outfit', sans-serif;
    --site-body-font-size: 1.1rem;
}

html, body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, a, table, th, td, blockquote, span, div, li {
    font-family: var(--font-family-sans) !important;
}

body, body.theme-dark {
    font-family: var(--font-family-sans) !important;
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-size: var(--site-body-font-size) !important;
    line-height: 1.75 !important;
}

/* Unified body paragraph typography across all pages */
p {
    font-size: var(--site-body-font-size) !important;
    line-height: 1.75 !important;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color) !important;
    font-weight: 600;
    font-family: var(--font-family-sans) !important;
}

/* Remove Quark2 theme default horizontal accent bars from headings */
h1::before, h2::before, h3::before, h4::before, h5::before, h6::before,
:is(h1, h2, h3, h4, h5, h6)::before {
    display: none !important;
    content: none !important;
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

/* Hide theme toggle moon/sun icon */
.theme-toggle {
    display: none !important;
}

/* Logo styling */
#header, .navbar, .navbar-section {
    min-height: 68px !important;
    height: auto !important;
}
.logo img, .navbar-brand img, .mobile-logo img {
    max-height: none !important;
    height: 54px !important;
    width: auto !important;
    margin-top: 2px;
    margin-bottom: 2px;
    display: block;
}

/* Header & Body adjustments */
#header .container,
body.home-page #body-wrapper .container {
    max-width: 1100px !important;
    margin: 0 auto !important;
}
#header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
}
#header a {
    color: var(--text-color) !important;
    background-color: transparent !important;
}
#header a:hover, #header a.active {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}
/* Langswitcher styling */
.langswitcher-dropdown { position: relative; display: inline-block; padding: 10px; }
.langswitcher-dropdown .langswitcher-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 80px;
    border-radius: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.langswitcher-dropdown:hover .langswitcher-menu {
    display: block;
}
.langswitcher-menu li {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
}
.langswitcher-menu li a {
    color: var(--text-color) !important;
    padding: 10px 15px !important;
    text-decoration: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-weight: 600 !important;
}
.langswitcher-menu li a:hover, .langswitcher-menu li.active a {
    background-color: #f1f5f9;
    color: var(--primary-color) !important;
}

/* Menu adjustments */
.dropmenu > ul, .dropmenu ul.navigation {
    flex-wrap: nowrap !important;
    gap: 0.25rem !important;
}
.dropmenu ul li a {
    font-size: 0.88rem !important;
    padding: 0.4rem 0.6rem !important;
    white-space: nowrap !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Video container - Modern aspect-ratio based */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 280px;
    overflow: hidden;
    background-color: #000000;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.video-container iframe,
.video-container video,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
    display: block;
    object-fit: cover;
}

/* Hide footer */
#footer {
    display: none !important;
}

/* Interactive Schedule */
/* Interactive Schedule */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
}
@media (min-width: 769px) {
    .table-wrapper {
        overflow: visible !important;
    }
}
.table.interactive-schedule {
    width: 100%;
    border-collapse: separate; /* Required for sticky table headers in many modern browsers */
    border-spacing: 0;
    margin-top: 1.5rem;
    background-color: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.table.interactive-schedule th {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    position: sticky !important;
    top: 68px !important; /* Match navbar height exactly */
    z-index: 10;
    border-top: 1px solid #059669;
    border-bottom: 1px solid #059669;
    border-right: 1px solid #059669;
}
.table.interactive-schedule th:first-child {
    border-left: 1px solid #059669;
}

.table.interactive-schedule td {
    padding: 12px 15px;
    border: 1px solid #e2e8f0; /* Full border for cells */
}

.table.interactive-schedule tbody tr:hover {
    background-color: #f1f5f9;
}

#scheduleSearch {
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: var(--font-family-sans);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 300px;
}

#scheduleSearch:focus {
    outline: none;
    border-color: var(--primary-color);
}


/* Force light mode backgrounds */
html, body, #page-wrapper, #body-wrapper, .section, .wrapper, .default-page { background-color: #ffffff !important; color: #334155 !important; }
pre, code, .box, .card, .bg-dark, .bg-gray, .panel { background-color: #ffffff !important; color: #334155 !important; border: none !important; box-shadow: none !important; }

/* Kill Dark Mode completely */
html[data-theme="dark"], html[data-theme="dark"] body {
    --bg-color: #ffffff !important;
    --text-color: #334155 !important;
    --heading-color: #0f172a !important;
    --bg-dark: #ffffff !important;
    --card-bg: #ffffff !important;
    background-color: #ffffff !important;
}
html[data-theme="dark"] article, 
html[data-theme="dark"] .content-item,
html[data-theme="dark"] p,
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4,
html[data-theme="dark"] li,
html[data-theme="dark"] .video-container,
html[data-theme="dark"] table,
html[data-theme="dark"] td,
html[data-theme="dark"] th,
html[data-theme="dark"] tr,
html[data-theme="dark"] tbody {
    background-color: transparent !important;
    color: #334155 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .table.interactive-schedule {
    background-color: #ffffff !important;
}
html[data-theme="dark"] .table.interactive-schedule th {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .video-container iframe {
    background-color: #000 !important; /* Keep iframe background black for youtube */
}
html[data-theme="dark"] .camp-hero h2,
html[data-theme="dark"] .camp-hero,
.camp-hero h2,
.camp-hero {
    color: #ffffff !important;
}

/* Premium Hero Section */
.hero-section {
    padding: 24px 30px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    margin: 8px auto !important;
    max-width: 1100px;
    text-align: center;
    box-shadow: 0 10px 25px -10px rgba(0,0,0,0.06);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(8px);
    box-sizing: border-box;
}

.hero-title {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem) !important;
    font-weight: 800 !important;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px !important;
    line-height: 1.25 !important;
}

.hero-subtitle {
    font-size: 1.1rem !important;
    line-height: 1.75 !important;
    color: #475569 !important;
    max-width: 580px !important;
    margin: 0 auto 18px !important;
    font-weight: 400 !important;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 8px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px -8px rgba(0,0,0,0.2);
    border: 3px solid #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-video-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -8px rgba(16, 185, 129, 0.25);
}

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

.hero-actions .btn-premium,
.hero-actions a,
.hero-actions button {
    margin: 0 !important;
}

/* History Page Layout */
.history-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}
.lead-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2rem;
}
.premium-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #475569;
    padding: 2rem;
    border-left: 4px solid var(--secondary-color);
    background-color: #f8fafc;
    border-radius: 0 12px 12px 0;
    margin: 2.5rem 0;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
    margin: 3.5rem auto;
    max-width: 1100px;
    width: 100%;
}
@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}
.premium-shadow {
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.premium-shadow:hover {
    transform: translateY(-5px);
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px !important;
    font-size: 1rem !important;
    font-weight: 600;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    gap: 8px;
    margin: 0 !important;
    vertical-align: middle;
}

.btn-primary-premium {
    background: var(--primary-color);
    color: #ffffff !important;
    box-shadow: 0 4px 8px -2px rgba(16, 185, 129, 0.35);
}

.btn-primary-premium:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 8px 12px -2px rgba(16, 185, 129, 0.45);
    color: #ffffff !important;
}

.btn-secondary-premium {
    background: #ffffff;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.btn-secondary-premium:hover {
    background: var(--primary-color);
    color: #ffffff !important;
}

/* Hide default theme footer */
#footer {
    display: none !important;
}

/* Allow Home Page to take at least 100vh but scroll naturally */
body:has(.hero-section),
body.home-page {
    min-height: 100vh !important;
    overflow-y: auto !important;
}

body:has(.hero-section) #page-wrapper,
body.home-page #page-wrapper {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

body:has(.hero-section) #start,
body.home-page #start {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

body:has(.hero-section) #body-wrapper,
body.home-page #body-wrapper,
body:has(.hero-section) .section,
body.home-page .section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

body:has(.hero-section) .content-item,
body.home-page .content-item {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

@media (min-width: 860px) {
    .hero-section {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 16px 28px !important;
        gap: 20px;
        margin: 0 auto !important;
    }
    .hero-content {
        flex: 1 1 58%;
    }
    .hero-video-wrapper {
        flex: 0 0 42%;
        margin: 0;
    }
    .hero-subtitle {
        margin: 0 0 12px 0 !important;
    }
    .hero-actions {
        justify-content: flex-start !important;
    }
}



/* Medium screen menu adjustments */
@media (min-width: 861px) and (max-width: 1250px) {
    .dropmenu ul li a, .navbar-section a {
        padding: 0.25rem 0.35rem !important;
        font-size: 0.9rem !important;
    }
    .logo img, .navbar-brand img, .mobile-logo img {
        height: 50px !important;
    }
}

/* Home Page Features Section */
.features-section {
    padding: 16px 16px 24px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}
.features-grid {
    display: grid;
    gap: 20px;
    margin-top: 8px;
}
@media (min-width: 860px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 6px 18px -4px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px -4px rgba(16, 185, 129, 0.12);
}
.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.22) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--primary-color);
    font-size: 1.25rem;
}
.feature-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 10px;
    color: #0f172a !important;
    font-weight: 600;
}
.feature-card p {
    color: #475569 !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    margin: 0;
}

@media (max-height: 700px) {
    body:has(.hero-section),
    body.home-page {
        overflow-y: auto !important; /* Only scroll if screen is truly tiny */
    }
}

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

/* Trainers Page Layout */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 3rem auto;
}
.trainer-card {
    background-color: #ffffff;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.trainer-image-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    border: 4px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.trainer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.trainer-icon {
    font-size: 4rem;
    color: #94a3b8;
}
.trainer-info h3 {
    margin-top: 0;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.trainer-info p {
    font-size: 1.1rem !important;
    line-height: 1.75 !important;
    color: #334155;
    margin-bottom: 1rem;
}
.trainer-credentials {
    list-style: none;
    padding-left: 0;
}
.trainer-credentials li {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.trainer-credentials li i {
    color: var(--primary-color);
    margin-top: 0.25rem;
}
.trainer-list-title {
    margin-bottom: 0.5rem;
}

/* Camp Page Layout */
.camp-hero {
    background: linear-gradient(135deg, #00a651 0%, #f7931e 100%) !important;
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    color: #ffffff !important;
    margin: 2rem auto 3.5rem;
    max-width: 1000px;
    box-shadow: 0 12px 30px rgba(0, 166, 81, 0.2);
}
.camp-hero h2,
.camp-hero .camp-hero-content h2 {
    color: #ffffff !important;
    margin: 0;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.45;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.camp-hero h2::before,
.camp-hero .camp-hero-content h2::before {
    display: none !important;
    content: none !important;
}
.camp-cta-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: -1.5rem auto 3rem;
    max-width: 1000px;
}
.camp-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    padding: 0.85rem 1.65rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin: 0 !important;
}
.camp-photos-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    margin-left: 0.25rem;
}
.camp-photos-section {
    max-width: 1000px;
    margin: 2.5rem auto 3.5rem;
    padding-top: 2rem;
    border-top: 1px dashed #cbd5e1;
}
html[data-theme="dark"] .camp-photos-section {
    border-top-color: #334155;
}
.camp-photos-header {
    text-align: center;
    margin-bottom: 2rem;
}
.camp-photos-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.camp-photos-title i {
    color: #10B981;
}
html[data-theme="dark"] .camp-photos-title {
    color: #f1f5f9;
}
.camp-photos-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}
html[data-theme="dark"] .camp-photos-subtitle {
    color: #94a3b8;
}
.camp-gallery {
    margin: 1.5rem auto 0;
}
.camp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
}
@media (max-width: 600px) {
    .camp-hero {
        padding: 2.25rem 1.25rem;
        margin: 1.25rem auto 2rem;
        border-radius: 16px;
    }
    .camp-hero h2,
    .camp-hero .camp-hero-content h2 {
        font-size: 1.3rem !important;
        line-height: 1.45 !important;
    }
    .camp-cta-box {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        margin: -0.75rem auto 2.5rem;
        padding: 0 0.5rem;
    }
    .camp-action-btn {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        font-size: 1.05rem !important;
        padding: 0.95rem 1.25rem !important;
    }
    .camp-photos-section {
        margin: 2rem auto 2.5rem;
        padding: 1.5rem 0.5rem 0;
    }
    .camp-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin: 1.25rem auto 0;
    }
    .camp-features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
    .camp-features-grid .feature-card {
        padding: 1.75rem 1.25rem;
    }
}
.camp-features-grid .feature-card {
    background: #ffffff;
    padding: 2.25rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.camp-features-grid .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(0, 166, 81, 0.12);
}
.camp-features-grid .feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(0, 166, 81, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary-color);
    font-size: 1.6rem;
}
.camp-features-grid .feature-card p {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: #334155;
    margin: 0;
}

/* Contacts Page Layout */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 3rem auto;
}
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}
.contact-card {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-card h2 {
    margin-top: 0;
    color: var(--heading-color);
    margin-bottom: 2rem;
}
.contact-card h2::before {
    display: none !important;
    content: none !important;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.contact-list li i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}
.contact-list li a {
    color: var(--text-color);
    text-decoration: none;
}
.contact-list li a:hover {
    color: var(--secondary-color);
}
.contact-map {
    border-radius: 16px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    border: 0;
}

/* Photos Page Layout */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Forma & Belts Presentation
   ========================================================================== */
.forma-container {
    max-width: 960px;
    margin: 1.5rem auto 4.5rem;
}

.forma-section {
    margin-bottom: 4rem;
}

.forma-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.forma-title {
    font-size: 2.1rem !important;
    font-weight: 700 !important;
    color: var(--heading-color) !important;
    margin: 0 0 0.75rem 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.forma-title i {
    color: var(--primary-color);
    font-size: 1.85rem;
}

.forma-subtitle {
    max-width: 720px;
    margin: 0 auto !important;
    font-size: 1.1rem !important;
    line-height: 1.65 !important;
    color: #475569 !important;
}

/* Forma 2-column Grid */
.forma-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.forma-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.forma-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.11);
}

.forma-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
}

.forma-card-header h3 {
    margin: 0 !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: var(--heading-color) !important;
}

.forma-card-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 30px;
}

.forma-card-media {
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #edf2f7;
}

.forma-card-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.forma-img {
    max-height: 250px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.35s ease;
}

.forma-card:hover .forma-img {
    transform: scale(1.03);
}

.forma-img-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.85;
    pointer-events: none;
    transition: all 0.25s ease;
}

.forma-card:hover .forma-img-hint {
    opacity: 1;
    background: var(--primary-color);
}

.forma-card-desc {
    margin: 0 !important;
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
    color: #64748b !important;
}

/* Purchase Notice Banner */
.forma-notice-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    border-radius: 18px;
    padding: 1.75rem 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    margin-top: 2rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.08);
}

.forma-notice-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
    flex-shrink: 0;
}

.forma-notice-content {
    flex: 1;
    min-width: 250px;
}

.forma-notice-content h4 {
    margin: 0 0 0.35rem 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.forma-notice-text {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
}

.forma-notice-action {
    flex-shrink: 0;
}

.forma-coaches-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.25s ease !important;
}

.forma-coaches-btn:hover {
    background: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
    color: #ffffff !important;
}

/* Belts Section inside Forma Page */
.belts-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 3.5rem;
}

.belts-section .belt-image-box {
    position: relative;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 20px;
    display: block;
    max-width: 820px;
    margin: 0 auto;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.belts-section .belt-image-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.13);
}

.belts-section .belt-image-box a {
    display: block;
    position: relative;
}

.belts-section .belt-image-box .forma-img-hint {
    bottom: 16px;
    right: 16px;
}

.belts-section .belt-image-box:hover .forma-img-hint {
    background: var(--primary-color);
    opacity: 1;
}

.belt-main-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.belt-pdf-download .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transition: all 0.25s ease;
}

.belt-pdf-download .btn-primary:hover {
    background: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
    .forma-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .forma-notice-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .forma-notice-content {
        min-width: 100%;
    }
    .forma-title {
        font-size: 1.75rem !important;
    }
    .forma-subtitle {
        font-size: 1rem !important;
    }
}

/* Gallery Hover Overlay */
.gallery-item a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 185, 129, 0.45);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

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

.gallery-overlay i {
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ==========================================================================
   Berimba Lightbox Component
   ========================================================================== */
.berimba-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.berimba-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.bl-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bl-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.bl-image-wrap {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bl-image {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.28s ease, transform 0.28s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.bl-image.is-loaded {
    opacity: 1;
    transform: scale(1);
}

/* Lightbox Buttons */
.bl-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bl-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.08);
}

.bl-btn:active {
    transform: scale(0.96);
}

.bl-close {
    top: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.bl-prev, .bl-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.bl-prev:hover {
    transform: translateY(-50%) scale(1.08);
}
.bl-next:hover {
    transform: translateY(-50%) scale(1.08);
}
.bl-prev:active {
    transform: translateY(-50%) scale(0.96);
}
.bl-next:active {
    transform: translateY(-50%) scale(0.96);
}

.bl-prev {
    left: 24px;
}

.bl-next {
    right: 24px;
}

/* Counter */
.bl-counter {
    position: absolute;
    top: 24px;
    left: 24px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-family-sans);
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Spinner */
.bl-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.bl-loader {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: bl-spin 0.8s linear infinite;
}

@keyframes bl-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .bl-prev {
        left: 10px;
        width: 44px;
        height: 44px;
    }
    .bl-next {
        right: 10px;
        width: 44px;
        height: 44px;
    }
    .bl-close {
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }
    .bl-counter {
        top: 18px;
        left: 16px;
        font-size: 0.85rem;
        padding: 4px 12px;
    }
    .bl-image {
        max-width: 96vw;
        max-height: 84vh;
    }
}

/* =========================================================
   Mobile Navigation, Header & Responsiveness Overrides
   ========================================================= */

/* Mobile hamburger button */
button.button_container,
.button_container {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
button.button_container:hover {
    background-color: #f8fafc !important;
}
.button_container span {
    background-color: #0f172a !important;
    height: 2px !important;
}

/* Mobile full-screen overlay menu */
.overlay {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 14px 1.5rem 2rem !important;
}
.overlay .mobile-logo {
    height: 44px !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    padding-right: 54px !important; /* Avoid overlap with close button */
}
.overlay .mobile-logo a {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}
.overlay .mobile-logo img {
    height: 38px !important;
    width: auto !important;
    margin: 0 !important;
    display: block !important;
}

/* Close button inside mobile menu */
.button_container.active {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}
.button_container.active span {
    background-color: #0f172a !important;
}

/* Mobile menu items: UPPERCASE */
.overlay .overlay-menu a {
    color: #1e293b !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.75px !important;
    padding: 0.75rem 0.5rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.overlay .overlay-menu a:hover,
.overlay .overlay-menu a.active {
    color: var(--primary-color) !important;
    padding-left: 0.85rem !important;
}

/* Mobile Language Switcher */
.mobile-overlay-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}
.mobile-langswitcher {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.mobile-langswitcher-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mobile-langswitcher-title i {
    color: var(--primary-color);
}
.mobile-langswitcher-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
}
.mobile-langswitcher-list li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}
.mobile-langswitcher-list li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 38px;
    padding: 0 14px !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    color: #334155 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.mobile-langswitcher-list li a:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: var(--primary-color) !important;
}
.mobile-langswitcher-list li a.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3) !important;
}

/* =========================================================
   Mobile Viewport Fixes & Horizontal Scroll Prevention
   ========================================================= */
html, body {
    max-width: 100% !important;
    overflow-x: clip !important;
}

@media (max-width: 768px) {
    /* Prevent horizontal page overflow on containers */
    #page-wrapper,
    #body-wrapper,
    #body-wrapper .container,
    .content-item,
    article {
        max-width: 100% !important;
        overflow-x: clip !important;
        box-sizing: border-box !important;
    }

    #body-wrapper {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Trainers grid on mobile */
    .trainers-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin: 1.5rem auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .trainer-card {
        padding: 1.75rem 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .trainer-image-wrapper {
        width: 140px !important;
        height: 140px !important;
        margin-bottom: 1.5rem !important;
    }

    /* Tunniplaan (Schedule) Table on mobile */
    .table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 1rem -0.5rem 1.5rem -0.5rem !important;
        padding: 0 0.5rem !important;
        width: calc(100% + 1rem) !important;
        box-sizing: border-box !important;
    }

    .table.interactive-schedule {
        min-width: 650px !important;
        font-size: 0.88rem !important;
        margin-top: 0.5rem !important;
    }

    .table.interactive-schedule th {
        padding: 8px 10px !important;
        font-size: 0.85rem !important;
        top: 0 !important; /* In mobile overflow scroll, stick to table top */
        white-space: nowrap !important;
    }

    .table.interactive-schedule td {
        padding: 8px 10px !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    /* Helper hint above table on mobile */
    .table-wrapper::before {
        content: '↔ Kerige tabelit küljele / Листайте вправо / Scroll horizontally';
        display: block;
        font-size: 0.78rem;
        color: #94a3b8;
        margin-bottom: 6px;
        text-align: right;
        font-style: italic;
    }
}

/* ==========================================================================
   Schedule Enhancements (Time & Group separation)
   ========================================================================== */
.schedule-time {
    display: inline-block;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.95em;
    margin-bottom: 3px;
    border: 1px solid #a7f3d0;
}
.schedule-group {
    display: inline-block;
    color: #1e293b;
    font-size: 0.92em;
    line-height: 1.35;
}

/* ==========================================================================
   Gallery Tabs & Modern Layout
   ========================================================================== */
.gallery-nav-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0 2.5rem 0;
}
.gallery-tab-nav {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}
.gallery-tab-btn {
    padding: 10px 28px !important;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    border: none;
    border-radius: 40px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    vertical-align: middle;
}
.gallery-tab-btn:hover {
    color: #0f172a;
}
.gallery-tab-btn.active {
    background: #ffffff;
    color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15), 0 1px 3px rgba(0,0,0,0.08);
}
.gallery-tab-pane {
    display: none;
    animation: fadeIn 0.35s ease;
}
.gallery-tab-pane.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}
.video-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
}
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-info {
    padding: 1.25rem;
}
.video-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #0f172a;
}
.video-info p {
    margin: 0;
    font-size: 0.95rem !important;
    color: #64748b;
}


/* ==========================================================================
   History Archive Photos
   ========================================================================== */
.history-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.history-photo-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.history-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.history-photo-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
.history-photo-card .photo-caption {
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    color: #64748b;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    margin: 0;
}

/* ==========================================================================
   Modern Modals (Trial & Camp Participant Card)
   ========================================================================== */
.berimba-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}
.berimba-modal.is-open {
    display: flex !important;
}
.berimba-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease;
}
.berimba-modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    z-index: 2;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.8);
}
.berimba-modal-dialog-large {
    max-width: 780px;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.berimba-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 1rem 1.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.berimba-modal-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.berimba-modal-title i {
    color: #10B981;
}
.berimba-modal-close {
    background: #f1f5f9;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.berimba-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.berimba-modal-body {
    padding: 1.5rem 1.75rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
/* Badge Pill */
.modal-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.modal-badge-pill.camp-pill {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

/* Alert Boxes */
.trial-free-alert {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #86efac;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.1);
}
.trial-free-alert i {
    color: #10B981;
    font-size: 1.45rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.trial-free-alert strong {
    display: block;
    color: #065f46 !important;
    font-size: 1.05rem !important;
    font-weight: 700;
    margin-bottom: 4px;
}
.trial-free-alert p {
    color: #166534 !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

.camp-confidential-note {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 10px 0 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem !important;
    color: #475569 !important;
    line-height: 1.5 !important;
}
.camp-confidential-note i {
    color: #0ea5e9;
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Section Title */
.form-section-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 22px 0 14px 0 !important;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-section-title i {
    color: #10B981;
    font-size: 1rem;
}

/* Form Layout & Groups */
.berimba-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}
@media (min-width: 600px) {
    .form-row.form-row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin: 0 !important;
}
.form-group label,
.berimba-form label {
    display: block;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 4px !important;
    text-align: left !important;
    letter-spacing: -0.1px;
}
.form-group label .required,
.required {
    color: #ef4444 !important;
    font-weight: 700;
    margin-left: 2px;
}

/* Form Inputs & Textareas - Explicit light mode theme */
.berimba-form input[type="text"],
.berimba-form input[type="tel"],
.berimba-form input[type="email"],
.berimba-form input[type="date"],
.berimba-form textarea,
.berimba-modal input[type="text"],
.berimba-modal input[type="tel"],
.berimba-modal input[type="email"],
.berimba-modal input[type="date"],
.berimba-modal textarea {
    width: 100% !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    font-family: var(--font-family-sans) !important;
    line-height: 1.45 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    height: auto !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.berimba-form input:focus,
.berimba-form textarea:focus,
.berimba-modal input:focus,
.berimba-modal textarea:focus {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #10B981 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16) !important;
}

.berimba-form input::placeholder,
.berimba-form textarea::placeholder,
.berimba-modal input::placeholder,
.berimba-modal textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.berimba-form textarea,
.berimba-modal textarea {
    resize: vertical;
    min-height: 85px;
}

/* Camp Agreements Checkboxes */
.camp-agreements {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0 8px 0;
    background: #f8fafc;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
}
.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    cursor: pointer;
    margin: 0 !important;
}
.checkbox-label input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin-top: 3px !important;
    accent-color: #10B981 !important;
    cursor: pointer;
}
.checkbox-label span {
    font-size: 0.92rem !important;
    color: #334155 !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    text-align: left;
}

/* Turnstile Captcha */
.turnstile-wrapper {
    margin: 10px 0 6px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65px;
    width: 100%;
}

/* Submit Actions */
.form-actions {
    margin-top: 14px;
    display: flex;
    justify-content: stretch;
}
.form-actions .submit-btn {
    width: 100% !important;
    padding: 14px 28px !important;
    font-size: 1.05rem !important;
    border-radius: 14px !important;
    cursor: pointer;
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.35) !important;
}
.form-actions .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(16, 185, 129, 0.45) !important;
}
.form-actions .submit-btn:disabled {
    background: #94a3b8 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Alerts */
.modal-form-alert,
.form-feedback {
    padding: 14px 18px;
    border-radius: 10px;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    display: none;
    font-weight: 500;
}
.modal-form-alert.success,
.form-feedback.success {
    display: block;
    background: #ecfdf5;
    border: 1.5px solid #6ee7b7;
    color: #065f46;
}
.modal-form-alert.error,
.form-feedback.error {
    display: block;
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}

/* ==========================================================================
   News / Blog Page & Cards
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.12);
}
.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-card-date {
    font-size: 0.85rem;
    color: #10B981;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-card-title {
    font-size: 1.3rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.35;
    color: #0f172a;
}
.news-card-excerpt {
    font-size: 0.95rem !important;
    color: #64748b;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.news-card-link {
    font-weight: 600;
    color: #10B981;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}
.news-card-link:hover {
    gap: 10px;
    color: #059669;
}

/* ==========================================================================
   Back to News Button & Tag Hiding
   ========================================================================== */
.back-to-news-wrapper {
    margin: 3.5rem 0 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}
.back-to-news-wrapper .btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
}
.tags, .label.p-category, span.tags {
    display: none !important;
}



