/* ==========================================================================
   STYLE.CSS – Cleaned & Professional Version (Final Optimized – 2026)
   ========================================================================== */

:root {
    --blue: #002D72;
    --gold: #FFC107;
    --darkblue: #001D4A;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --light-gray: #f8f9fa;
    --text: #222;
    --text-light: #555;
    --navbar-height: 78px;
    --navbar-height-scrolled: 58px;
}

/* ================== TYPOGRAPHY ================== */
body {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.01em;
    color: var(--text);
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.section-title, .big-title, .accordion-button,
.medal-big, .coach-stat-item h3, .modal-title {
    font-family: 'Roboto Serif', Georgia, serif;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

/* ================== BASE ================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1400px) { html { font-size: 15.5px; } }
@media (max-width: 1200px) { html { font-size: 15px; } }
@media (max-width: 992px)  { html { font-size: 14.5px; } }
@media (max-width: 768px)  { html { font-size: 14px; } }
@media (max-width: 576px)  { html { font-size: 13.5px; } }
@media (max-width: 400px)  { html { font-size: 13px; } }

/* ================== HERO ================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,45,114,.96), rgba(0,45,114,.80) 40%, rgba(0,45,114,.92));
    z-index: -1;
}

.big-title {
    font-size: clamp(4rem, 9vw, 8.5rem);
    letter-spacing: -2px;
    line-height: 1;
    color: var(--gold);
    text-shadow: none;
    -webkit-text-stroke: 3.5px var(--darkblue);
    paint-order: stroke fill;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 3;
}

/* Mobile Hero fallback */
@media (max-width: 768px) {
    .hero {
        margin-top: var(--navbar-height);
        background: url('images/hero_media.jpg') center 68%/cover no-repeat fixed;
    }
    .hero-image-wrapper, .hero-bg-img { display: none; }
    .big-title {
        font-size: clamp(3.2rem, 12vw, 6rem);
        letter-spacing: -1.5px;
        -webkit-text-stroke: 3px var(--darkblue);
        text-shadow: 0 0 15px rgba(255,193,7,.9), 5px 5px 0 var(--darkblue);
        top: 33%;
    }
}

/* ================== NAVBAR – Very Tight Version ================== */
.navbar {
    background: var(--darkblue);
    padding: 0;
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    transition: all .35s ease;
}

.navbar.scrolled {
    padding-block: 5px 0;
    background: rgba(0,29,74,.98);
    backdrop-filter: blur(12px);
}

/* Very tight container */
.navbar .container {
    max-width: 1260px;           /* Tighter container */
    padding-left: 18px;
    padding-right: 18px;
}

.navbar-brand img {
    height: 58px;                /* Smaller logo */
    transition: height .35s ease;
}

/* Tight desktop menu */
.navbar-nav .nav-link {
    color: #fff;
    font-weight: 600;
    font-size: clamp(0.82rem, 0.84vw, 0.89rem);   /* Smaller font */
    margin-inline: 2px 5px;
    padding: 10px 7px;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.2px;
    transition: color .3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

/* Subtle underline */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--gold);
    transition: width .3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 55%;
}

/* ================== MOBILE MENU ================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(0,29,74,.98);
        backdrop-filter: blur(15px);
        border-radius: 0 0 16px 16px;
        padding: 1.5rem 1.1rem;
        box-shadow: 0 15px 40px rgba(0,0,0,.5);
    }

    .navbar-nav .nav-link {
        font-size: 1.12rem;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255,193,7,.18);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Gold background burger */
    .navbar-toggler {
        border: 2px solid var(--gold) !important;
        background-color: rgba(255, 193, 7, 0.35) !important;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.3rem rgba(255, 193, 7, 0.5);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFC107' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 1.55em;
        height: 1.55em;
    }
}

/* ================== SECTIONS ================== */
.section, .section-alt {
    padding-block: 80px;
}

@media (max-width: 991px) {
    .section, .section-alt { padding-block: 60px; }
}

@media (max-width: 767px) {
    .section, .section-alt { padding-block: 50px; }
}

/* ================== PROGRAMMA SECTION ================== */

/* Filter select */
#tmima-filter {
    max-width: 420px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* Program table */
#programma-table {
    border-radius: 20px;
    overflow: hidden;
}

/* Table header gradient */
#programma-table thead {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: white;
}

/* Row background colors per tmima */
.tmima-o-mini     { --bs-table-bg: #e3f2fd; }
.tmima-o-kids     { --bs-table-bg: #bbdefb; }
.tmima-o-junior   { --bs-table-bg: #90caf9; }
.tmima-kickboxing-o { --bs-table-bg: #ffebee; }
.tmima-kickboxing-i { --bs-table-bg: #ffcdd2; }
.tmima-i-a        { --bs-table-bg: #e8f5e9; }

/* Hover effect on rows */
.tmima-row:hover {
    --bs-table-bg: #fffde7 !important;
}

/* ================== COACH SECTION ================== */
.coach-img {
    border: 18px solid var(--gold);
    border-radius: 50%;
    width: 420px;
    height: 420px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-shadow: 0 40px 100px rgba(0,0,0,.5);
    transition: transform 0.3s ease;
    will-change: transform;
}

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

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

h4 {
    font-size: 1.75rem;
}

p.fw-bold {
    font-size: 1.1rem;
}

.coach-qualifications p {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #555;
    font-weight: 500;
}

@media (max-width: 992px) {
    .coach-img {
        width: 250px;
        height: 250px;
        border-width: 12px;
    }
    .coach-qualifications p {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    h4 { font-size: 1.5rem; }
    p.fw-bold { font-size: 1rem; }
}

/* ================== SOCIAL BUTTONS ================== */
.social-btn {
    width: 72px;
    height: 72px;
    background: var(--gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 50%;
    box-shadow: 0 12px 35px rgba(255,193,7,.5);
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.social-btn:hover {
    background: var(--blue);
    color: var(--gold);
    transform: translateY(-10px) scale(1.15);
    box-shadow: 0 20px 45px rgba(0,45,114,.5);
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 0;
    height: 0;
    background: rgba(255,193,7,.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .4s, height .4s;
    z-index: 0;
}

.social-btn:hover::before { width: 300px; height: 300px; }

.social-btn i { position: relative; z-index: 1; }

/* ==========================================================================
   BELTS – Taekwondo & Kickboxing belt graphics
   ========================================================================== */

.belt {
    width: 110px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #777;
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Solid colors */
.belt.white  { background: #ffffff; }
.belt.yellow { background: #ffc107; }
.belt.green  { background: #198754; }
.belt.blue   { background: #0d6efd; }
.belt.red    { background: #dc3545; }
.belt.black  { background: #000000; }
.belt.orange { background: #fd7e14; }
.belt.brown  { background: #795548; }

/* Half-belt vertical stripes */
.belt.yellow-stripe::after,
.belt.green-stripe::after,
.belt.blue-stripe::after,
.belt.red-stripe::after,
.belt.black-stripe::after { 
    content: "";
    position: absolute;
    inset: 0 10% 0 auto;
    width: 22px;
}

.belt.yellow-stripe::after { background: #ffc107; }
.belt.green-stripe::after  { background: #198754; }
.belt.blue-stripe::after   { background: #0d6efd; }
.belt.red-stripe::after    { background: #dc3545; }
.belt.black-stripe::after  { background: #000000; }

/* Special: White + yellow stripe */
.belt.white.yellow-stripe {
    background: #ffffff;
}
.belt.white.yellow-stripe::after {
    background: #ffc107;
}

/* Elegant Roman numeral overlay on black belt */
.belt.black .roman-numeral {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 75%;
    transform: translate(-50%, -52%);
    color: #ffc107;
    font-weight: normal;
    font-size: 1.1rem;
    line-height: 1;
    font-family: 'Roboto Serif', serif;
    text-shadow: 0 0 4px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 1;
}

/* Force ALL belt names to use the same font as body text */
.accordion-button,
.list-group-item strong,
.accordion-button span:not(.belt) {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif !important;
    font-weight: 700;           /* consistent bold weight */
    letter-spacing: 0.01em;     /* optional – matches your body text feel */
}

/* Optional: make sure headings inside modal also match */
#tkdFullModal h3,
#tkdFullModal .accordion-button {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif !important;
}

/* ================== TKD MODAL – Fix black belt accordion buttons ================== */

/* Force ALL accordion buttons to have readable style */
#tkdFullModal .accordion-button {
    background-color: #f8f9fa !important;
    color: var(--blue) !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #ddd;
    transition: all 0.35s ease;
}

/* When expanded – dark blue background + white text */
#tkdFullModal .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #002D72, #001D4A) !important;
    color: white !important;
    border-color: #001D4A !important;
    box-shadow: none !important;
}

/* Make sure black belt items don't force white text on collapsed buttons */
#tkdFullModal .accordion-item.bg-dark .accordion-button {
    background-color: #f8f9fa !important;
    color: var(--blue) !important;
}

/* Arrow icon – dark on collapsed, white on expanded */
#tkdFullModal .accordion-button::after {
    filter: none;
}

#tkdFullModal .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* Optional: remove bg-dark from black belt items if you don't want dark background */
#tkdFullModal .accordion-item.bg-dark {
    background: transparent !important;
    box-shadow: none !important;
}
/* ==========================================================================
   ACCORDION – Uniform styling for Tul & Kickboxing
   ========================================================================== */

#tulAccordion .accordion-button,
#tulAccordion .accordion-body,
#kickBeltsAccordion .accordion-button,
#kickBeltsAccordion .accordion-body {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
}

#tulAccordion .accordion-button,
#kickBeltsAccordion .accordion-button {
    font-weight: 700;
}

#tulAccordion .accordion-body,
#kickBeltsAccordion .accordion-body {
    font-weight: 400;
    color: #333;
}

/* Active state – light grey for Kickboxing */
#kickBeltsAccordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    color: #333;
    border-color: #ddd;
    box-shadow: none;
}

#kickBeltsAccordion .accordion-collapse.show .accordion-body {
    background-color: #f9f9f9;
    border-block-start: 1px solid #ddd;
    color: #333;
}

/* ================== ACHIEVEMENTS SECTION & MEDAL CARDS ================== */

/* Card container */
.achievement-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 1.25rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Title – no overflow, fits perfectly */
.achievement-title {
    font-family: 'Roboto Serif', Georgia, serif;
    font-weight: 700;
    text-align: center;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    word-break: break-word;
    hyphens: auto;
    padding: 0 0.75rem;
    max-width: 100%;
    overflow-wrap: break-word;
}

.achievement-title .first-line {
    display: block;
    white-space: normal;
    font-size: clamp(1.25rem, 3.8vw, 1.9rem);
    font-weight: 700;
}

.achievement-title .sport-name {
    display: block;
    white-space: normal;
    font-size: clamp(1.4rem, 4.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-top: 0.15rem;
}

/* Medal numbers + label */
.medal-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
}

.medal-big {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.medal-big small {
    font-size: clamp(0.9rem, 2.8vw, 1.1rem);
    font-weight: 700;
    color: #555;
    display: block;
}

.medal-big.gold    { color: #FFC107; }
.medal-big.silver  { color: #C0C0C0; }
.medal-big.bronze  { color: #CD7F32; }

/* Responsive – titles fit on all screens */
@media (max-width: 992px) {
    .achievement-card {
        min-height: 320px;
        padding: 1.25rem 1rem;
    }
    .achievement-title {
        margin-bottom: 1rem;
    }
    .achievement-title .first-line {
        font-size: clamp(1.15rem, 3.5vw, 1.7rem);
    }
    .achievement-title .sport-name {
        font-size: clamp(1.3rem, 4.5vw, 2rem);
    }
    .medal-big {
        font-size: clamp(2.4rem, 6.5vw, 3.8rem);
    }
}

@media (max-width: 576px) {
    .achievement-card {
        min-height: auto;
        padding: 1rem 0.75rem;
    }
    .achievement-title {
        margin-bottom: 0.75rem;
    }
    .achievement-title .first-line {
        font-size: clamp(1.1rem, 5.5vw, 1.6rem);
    }
    .achievement-title .sport-name {
        font-size: clamp(1.25rem, 6.5vw, 1.9rem);
    }
    .medal-big {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
    }
    .medal-big small {
        font-size: clamp(0.85rem, 3vw, 1rem);
    }
}

/* ==========================================================================
   MEDAL MODALS – Wide, Clean & Fully Responsive (Final Fixed Version)
   ========================================================================== */

/* Critical override: Kill Bootstrap's default 500px narrow width */
.modal.medal-modal-xl {
    --bs-modal-width: 1080px !important;   /* This is the key – directly resets Bootstrap default */
}

/* Apply wide width to dialog */
.medal-modal-xl .modal-dialog {
    max-width: 1080px !important;          /* Main width on desktop */
    width: 92vw !important;                /* Responsive fallback */
    margin: 2rem auto !important;
}

/* Lock width on very large screens */
@media (min-width: 1200px) {
    .modal.medal-modal-xl {
        --bs-modal-width: 1080px !important;
    }
    .medal-modal-xl .modal-dialog {
        max-width: 1080px !important;
    }
}

/* Tablet – comfortable but not full-width */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .modal.medal-modal-xl {
        --bs-modal-width: 900px !important;
    }
    .medal-modal-xl .modal-dialog {
        max-width: 900px !important;
    }
}

/* Mobile – safe full width with margins */
@media (max-width: 767.98px) {
    .medal-modal-xl .modal-dialog {
        margin: 0.5rem !important;
        max-width: none !important;
        width: calc(100% - 1rem) !important;
    }
    .medal-modal-xl .modal-content {
        min-height: 80vh;
        border-radius: 1rem;
    }
}

/* Header title – readable & spaced */
.medal-modal-header .modal-title {
    word-break: break-word;
    hyphens: auto;
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    line-height: 1.3;
    padding-right: 60px;                   /* Space for close button */
}

/* Body – no overflow */
.medal-modal-xl .modal-body {
    padding: 0;
    overflow-x: hidden;
}

/* Filter bar – clean & sticky */
.medal-filter-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

/* Rows – spacious & hover effect */
.medal-row {
    padding: 1.4rem 1.8rem;
    border-bottom: 1px solid #eee;
    transition: background-color .25s ease;
}

.medal-row:hover {
    background-color: #fffde7;
}

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

/* No medals message */
.no-medals-message {
    padding: 6rem 2rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 1.7rem;
}

/* ================== TKD MODAL – Belt Section (Uniform font + no lines) ================== */

/* Belt section title – same font as accordion */
#tkdFullModal .belt-section-title {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif; /* Same as accordion */
    font-weight: 900;
    font-size: 1.75rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}

/* Accordion container – no extra spacing or lines */
#beltsAccordion {
    border: none !important;
}

/* Remove all borders/lines from accordion items */
#beltsAccordion .accordion-item {
    border: none !important;
    margin-bottom: 0.5rem;
    background: transparent;
    box-shadow: none;
}

/* Accordion button – clean, no border */
#tkdFullModal #beltsAccordion .accordion-button {
    background-color: #f8f9fa;
    color: var(--blue);
    font-family: 'Roboto', system-ui, -apple-system, sans-serif; /* Uniform font */
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    border: none !important;
    border-radius: 0.5rem;
    transition: background-color 0.35s ease;
}

/* Open button – blue background + white text */
#tkdFullModal #beltsAccordion .accordion-button:not(.collapsed) {
    background-color: var(--blue) !important;
    color: white !important;
    box-shadow: none !important;
}

/* Arrow – visible & white when open */
#tkdFullModal #beltsAccordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-size: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    opacity: 1;
    transition: transform .35s ease;
}

#tkdFullModal #beltsAccordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
    transform: rotate(-180deg);
}

/* Expanded body – no borders, clean */
#tkdFullModal #beltsAccordion .accordion-collapse.show .accordion-body {
    background-color: #f9f9f9;
    color: #333;
    padding: 1.25rem;
    border: none !important;
}

/* Static half belts – no borders */
#tkdFullModal .list-group-item {
    border: none !important;
    background: white;
    padding: 0.75rem 1.25rem;
}

/* ================== TKD MODAL – Clean, Readable & 100% Fixed ================== */

/* Modal header – blue gradient */
#tkdFullModal .modal-header {
    background: linear-gradient(135deg, #002D72, #001D4A);
    color: white;
    border: 0;
    padding: 1.5rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

/* Modal body text */
#tkdFullModal .modal-body {
    line-height: 1.9;
    padding: 1.5rem 1.25rem;
    font-size: 1.25rem;
    color: #333;
}

/* Roman numeral overlay on black belt */
#tkdFullModal .roman-numeral {
    position: absolute;
    top: 50%;
    left: 79%;
    transform: translateX(-50%) translateY(-30%);
    font-size: 1.1rem;
    line-height: 1;
    color: var(--gold);
    font-weight: normal;
    pointer-events: none;
    z-index: 1;
}

/* Modal footer */
#tkdFullModal .modal-footer {
    border: 0;
    background: #f8f9fa;
    justify-content: center;
    padding: 1.5rem;
}

/* Separator line */
.tkd-separator {
    margin: 3rem 0;
    border: 0;
    border-top: 3px solid var(--gold);
    opacity: 0.75;
}

/* Base accordion button (collapsed state) */
#tkdFullModal .accordion-button {
    background-color: #f8f9fa;
    color: var(--blue);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    transition: all 0.35s ease;
}

/* EXPANDED button – dark blue gradient + WHITE TEXT (this fixes blue-on-blue) */
#tkdFullModal .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #002D72, #001D4A) !important;
    color: white !important;
    border-color: #001D4A !important;
    box-shadow: none !important;
}

/* Arrow icon – white when expanded */
#tkdFullModal .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
    transform: rotate(-180deg);
}

/* Expanded body – light & readable */
#tkdFullModal .accordion-collapse.show .accordion-body {
    background-color: #f9f9f9;
    color: #333;
    padding: 1.25rem;
    border: none;
}

/* Force fix for black belt items (both collapsed & expanded) */
#tkdFullModal .accordion-item.bg-dark .accordion-button {
    background-color: #f8f9fa !important;
    color: var(--blue) !important;
}

#tkdFullModal .accordion-item.bg-dark .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #002D72, #001D4A) !important;
    color: white !important;
}

/* Optional: remove dark bg from black belt items completely (recommended) */
#tkdFullModal .accordion-item.bg-dark {
    background: transparent !important;
    box-shadow: none !important;
}

/* Responsive */
@media (max-width: 576px) {
    #tkdFullModal .accordion-button {
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }
    #tkdFullModal .accordion-body {
        font-size: 0.95rem;
        padding: 1rem;
    }
}

/* ================== KICKBOXING MODAL ================== */

/* Modal header – red gradient */
#kickFullModal .modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: 0;
    padding: 1.5rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

/* Modal body text */
#kickFullModal .modal-body {
    line-height: 1.9;
    padding: 1.5rem 1.25rem;
    font-size: 1.25rem;
}

/* Accordion buttons – collapsed state */
#kickBeltsAccordion .accordion-button {
    background-color: #fff;
    color: #333;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #ddd;
    transition: all 0.35s ease;
}

/* Open (expanded) accordion button – red gradient + white text */
#kickBeltsAccordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    border-color: #c82333 !important;
    box-shadow: none !important;
}

/* Arrow icon on button – white when open */
#kickBeltsAccordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* Expanded body – light & readable */
#kickBeltsAccordion .accordion-collapse.show .accordion-body {
    background-color: #f9f9f9;
    color: #333;
    padding: 1.25rem;
    border-top: 1px solid #ddd;
}




/* ================== MISC ================== */
.bg-bronze {
    background-color: #cd7f32;
    color: #fff;
}

.filter-btn {
    margin: 0 8px;
    padding: 14px 32px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all .3s;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    touch-action: manipulation;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,193,7,.4);
}

.section-title {
    font-size: 3rem;
    color: var(--blue);
    text-align: center;
    position: relative;
    padding-block-end: 25px;
    margin-block-end: 70px;
    font-weight: 900;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 7px;
    background: var(--gold);
    border-radius: 4px;
}

#back-to-top {
    position: fixed;
    inset-block-end: 90px;
    inset-inline-end: 20px;
    background: var(--gold);
    color: #000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(255,193,7,.6);
    font-size: 1.8rem;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

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

#back-to-top:hover {
    background: #ffda44;
    transform: translateY(-4px);
}

/* ================== TEXT JUSTIFY & ALIGNMENT ================== */
main p,
.accordion-body p,
.modal-body p,
.text-justify,
.fs-5 {
    text-align: justify;
    hyphens: auto;
}

footer p,
footer .text-gold,
.navbar *,
.hero *,
.section-title,
h1, h2, h3, h4, h5, h6,
.text-center,
.text-start,
.text-end {
    text-align: center;
}

/* ================== FOOTER ================== */
footer {
    background: var(--darkblue);
    color: #ccc;
    padding-block: 80px 40px;
    margin-block-start: 120px;
    font-size: 0.95rem;
}

footer a {
    color: var(--gold);
    text-decoration: none;
    transition: color .3s;
}

footer a:hover,
footer .text-gold:hover {
    color: #ffd04a;
}

/* Footer Contact Info – Consistent & Clean on Mobile (No Bold) */
@media (max-width: 767.98px) {
    /* Applies to both main footer and gallery footer */
    footer .contact-info span,
    .gallery-footer .gallery-contact span {
        font-size: 1.15rem !important;     /* Same readable size as main content */
        line-height: 1.8;
        font-weight: 400;                  /* Normal weight – no bold */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    footer .contact-info i,
    .gallery-footer .gallery-contact i {
        font-size: 1.4rem;
        margin-right: 0.75rem;
        min-width: 1.8rem;
    }

    footer .contact-info a,
    .gallery-footer .gallery-contact a {
        color: var(--gold) !important;
        text-decoration: none;
    }

    /* Copyright & Privacy link – clean and readable */
    footer p.text-white-50,
    .gallery-footer p.text-white-50 {
        font-size: 1rem !important;
        line-height: 1.6;
        font-weight: 400;                  /* No bold */
    }

    footer p.text-white-50 a,
    .gallery-footer p.text-white-50 a {
        font-size: 1.05rem !important;
        font-weight: 500;                  /* Light weight, not full bold */
        text-decoration: underline;
    }

    /* Social buttons – balanced size */
    .social-btn {
        width: 62px;
        height: 62px;
        font-size: 2.3rem;
    }

    /* Optional: better spacing between lines */
    footer .contact-info,
    .gallery-footer .gallery-contact {
        gap: 1.2rem;
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   FAQ / ΣΥΧΝΕΣ ΕΡΩΤΗΣΕΙΣ – Accordion Styling
   ========================================================================== */

/* FAQ section container */
#faq {
    padding-block: 5rem 6rem;
    background: var(--light-gray);
}

/* Title spacing */
#faq .section-title {
    margin-block-end: 3rem;
}

/* FAQ accordion item */
#faqAccordion .accordion-item {
    margin-block-end: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    border: none;
    background: white;
}

/* Accordion button (collapsed) */
#faqAccordion .accordion-button {
    font-weight: 800;
    font-size: 1.15rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #FFC107, #FFA000);
    color: #000;
    border: none;
    border-radius: 1rem 1rem 0 0;
    transition: all 0.35s ease;
}

/* Open (expanded) button */
#faqAccordion .accordion-button:not(.collapsed) {
    background: var(--blue);
    color: white;
    border-radius: 1rem 1rem 0 0;
    box-shadow: none;
}

/* Arrow icon – visible & white when open */
#faqAccordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-size: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    opacity: 1;
    transition: transform .35s ease;
}

#faqAccordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1); /* White arrow when open */
    transform: rotate(-180deg);
}

/* Expanded body */
#faqAccordion .accordion-body {
    background: #fff;
    font-size: 1.05rem;
    line-height: 1.8;
    padding: 1.5rem;
    color: #333;
    border-radius: 0 0 1rem 1rem;
}

/* Responsive: smaller text on mobile */
@media (max-width: 576px) {
    #faqAccordion .accordion-button {
        font-size: 1.05rem;
        padding: 1rem 1.25rem;
    }

    #faqAccordion .accordion-body {
        font-size: 1rem;
        padding: 1.25rem;
    }
}

/* ================== RESPONSIVE & MOBILE ENHANCEMENTS ================== */
@media (max-width: 576px) {
    #tmima-filter {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        max-width: 100%;
    }
    .coach-img {
        width: 200px;
        height: 200px;
    }
    .text-gold {
        font-size: 1rem;
    }
    #programma-table td:nth-child(1),
    #programma-table td:nth-child(2) {
        white-space: nowrap;
    }
    #programma-table td,
    #programma-table th {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Better touch targets */
.btn,
.nav-link,
.social-btn,
.accordion-button,
.list-group-item-action {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ================== BUTTONS ================== */
.read-more-btn {
    background-color: var(--blue);
    border-color: var(--blue);
    color: #fff;
    min-height: 48px;
}

.read-more-btn:hover {
    background-color: color-mix(in srgb, var(--blue) 85%, black);
    border-color: color-mix(in srgb, var(--blue) 85%, black);
}

.tkd-title {
    color: var(--blue);
    font-weight: 700;
}

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

.btn-blue:hover,
.btn-blue:focus {
    background-color: var(--darkblue);
    color: #fff;
}

/* Custom blue button for free trial section */
.btn-custom-blue {
    background: rgba(0,29,74,.98);
    border-color: rgba(0,29,74,.98);
    color: #fff;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* ================== GALLERY SECTION ================== */

/* Grid for both preview and full gallery */
#galleryGrid,
#fullGalleryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Gallery item */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

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

/* Hover overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

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

.gallery-overlay i {
    color: var(--gold);
    font-size: 4.5rem;
    text-shadow: 0 6px 30px rgba(0,0,0,0.9);
}

/* Gallery header spacer */
.gallery-header-spacer {
    height: 60px;
}

/* Gallery title */
.gallery-title {
    font-size: 3.4rem;
    font-weight: 900;
    color: var(--blue);
    text-align: center;
    margin: 3rem 0;
}

/* Footer */
.gallery-footer {
    background: var(--darkblue);
}

/* Contact spacing */
.gallery-contact {
    font-size: 1.1rem;
}

/* View All / Load More button (shown via JS) */
#viewAllBtn {
    min-height: 56px;
}

/* ================== GLightbox Arrows – Force visible on mobile ================== */

/* Highest specificity overrides */
.glightbox-open .gcontainer .gprev,
.glightbox-open .gcontainer .gnext,
.glightbox-open .gprev,
.glightbox-open .gnext {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: 90px !important;
    background: rgba(0,0,0,0.65) !important;
    color: #fff !important;
    font-size: 4rem !important;
    align-items: center;
    justify-content: center;
}

.glightbox-open .gprev:hover,
.glightbox-open .gnext:hover {
    background: rgba(0,0,0,0.9) !important;
}

/* Mobile – extra large touch zones */
@media (max-width: 768px) {
    .glightbox-open .gprev,
    .glightbox-open .gnext {
        width: 120px !important;
        font-size: 4.8rem !important;
    }
    .glightbox-open .gbtn-inner {
        padding: 60px 30px !important;
    }
}

/* Override any GLightbox hiding */
.glightbox-open [style*="display: none"],
.glightbox-open [style*="opacity: 0"] {
    display: flex !important;
    opacity: 1 !important;
}

/* Close button */
.gclose,
.gbtn-close {
    display: flex !important;
    opacity: 1 !important;
}

/* Force GLightbox counter visible + styled */
.glightbox-open .gcounter,
.glightbox-open .gslide-index {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: #fff !important;
    background: rgba(0,0,0,0.65) !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    z-index: 9999 !important;
}

/* Dots style fallback */
.glightbox-open .gprogress {
    display: flex !important;
    justify-content: center !important;
    bottom: 15px !important;
}

.glightbox-open .gprogress-bar {
    background: rgba(255,255,255,0.6) !important;
    height: 6px !important;
    border-radius: 3px !important;
}
/* ================== PRIVACY MODAL ================== */
#privacyModal .modal-header {
    background: rgba(0,29,74,.98);
    color: white;
    border: 0;
    padding: 1.5rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

#privacyModal .modal-body {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

#privacyModal h6 {
    font-weight: 700;
    margin-top: 1.5rem;
}

#privacyModal h6:first-of-type {
    margin-top: 1.75rem;
}

#privacyModal .privacy-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

#privacyModal .modal-footer {
    border: 0;
    justify-content: center;
    padding-bottom: 1.5rem;
}

.btn-custom-blue:hover {
    background: rgba(0,45,114,.98);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,29,74,.4);
}

/* Moved from inline styles */
.section-text {
    line-height: 1.9;
    color: #333;
}

.separator-line {
    height: 1px;
    background-color: #002D72;
}

.footer-bg {
    background: var(--darkblue);
}

.junior-cup-list {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.phone-link {
    font-size: 1rem;
    margin-top: 40px;
    opacity: .7;
}

.phone-link a {
    color: #FFC107;
    text-decoration: none;
}

/* Βελτιωμένο spacing όταν ξεκινάει νέα μέρα μετά από φίλτρο */
#programma-table .tmima-row.new-day-spacing {
    padding-top: 1.5rem !important;
}

/* Always show semi-transparent overlay on videos */
.gallery-item[data-type="videos"] .gallery-overlay {
    opacity: 0.6 !important;               /* Visible by default - adjust 0.4–0.7 for preference */
    background: rgba(0, 0, 0, 0.5);        /* Darker background so icon stands out */
    transition: opacity 0.3s ease;
}

/* Full opacity + nicer effect on hover */
.gallery-item[data-type="videos"]:hover .gallery-overlay {
    opacity: 0.85 !important;
}

/* Make sure icon is centered and larger */
.gallery-item[data-type="videos"] .gallery-overlay i {
    font-size: 4rem !important;            /* Bigger play icon for visibility */
    color: var(--gold) !important;
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
}

.gallery-item[data-type="videos"] img {
    aspect-ratio: 16 / 9 !important;      /* Better for videos */
    object-fit: cover;
}


/* Tighten spacing in news modal text */
.modal-news-content .news-full-text {
    line-height: 1.5 !important;
}

.modal-news-content .news-full-text p {
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
}

.modal-news-content .news-full-text p:last-child {
    margin-bottom: 0 !important;
}

/* Optional: also tighten lists if your content has <ul>/<ol> */
.modal-news-content .news-full-text ul,
.modal-news-content .news-full-text ol {
    margin-bottom: 0.75rem !important;
    padding-left: 1.5rem;
}

.modal-news-content .news-full-text li {
    margin-bottom: 0.35rem !important;
}
}

/* GALLERY GRID – ZERO GAPS & FULL BLEED */
#fullGalleryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0 !important; /* Remove all gaps */
    padding: 0;
    margin: 0 -0.5rem; /* Compensate for container padding */
}

.gallery-item {
    margin: 0 !important; /* Kill mb-4 */
    padding: 0.5rem; /* Small internal padding – creates "gap" visually without real gap */
    overflow: hidden;
}

/* Force container full fill – no letterbox background leak */
.gallery-item > div {
    height: 100% !important;
    min-height: 280px; /* Minimum height for consistency */
    background: #000 !important; /* Black fallback for videos */
}

/* Images & videos – absolute fill */
.gallery-item img,
.gallery-item video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Hide video controls until hover (reduces extra height) */
.gallery-item video {
    controlsList: "nodownload";
}

.gallery-item video:not(:hover)::-webkit-media-controls-panel {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item video:hover::-webkit-media-controls-panel {
    opacity: 1;
}

/* Overlay – always on top */
.gallery-overlay {
    z-index: 20;
}