@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* =========================================
   İTÜ Triatlon Kulübü Özel Stilleri 
   (Global Overrides & Components)
   ========================================= */

/* 1. Global Reset & Layout Locks */
html,
body {
    background-color: #f8f9fa;
    /* DELETED: overflow-x: clip !important; (This was blinding AOS) */
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* 2. Brand Color Override (The Official Red) */
:root {
    --bs-primary: #db092e;
    --bs-primary-rgb: 219, 9, 46;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #b30725;
    border-color: #b30725;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:focus-visible {
    background-color: #b30725 !important;
    border-color: #b30725 !important;
    box-shadow: 0 0 0 0.25rem rgba(219, 9, 46, 0.25) !important;
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:focus-visible {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(219, 9, 46, 0.25) !important;
}

/* 3. Typography Tweaks */
.display-4,
.display-5,
.display-6 {
    font-weight: 700;
    letter-spacing: -1px;
}

/* 4. Form UX Tweaks */
.form-control::placeholder {
    color: #adb5bd !important;
    opacity: 1;
}

/* =========================================
   MASONRY GALLERY (JS-Positioned, Pinterest-Style)
   ========================================= */
.masonry-grid {
    position: relative;
}

.masonry-item {
    position: absolute;
    top: -9999px;
    cursor: pointer;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.masonry-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.masonry-item:hover .masonry-img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(219, 9, 46, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item:hover .gallery-overlay {
    opacity: 1;
}

/* =========================================
   CLICKABLE COLUMN TITLES
   ========================================= */
.column-title-link {
    color: #212529;
    /* Bootstrap text-dark */
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.column-title-link:hover {
    color: var(--bs-primary);
    /* Turns your custom red on hover */
}

/* The subtle arrow that fades in and slides right */
.column-title-link i {
    font-size: 0.8em;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.column-title-link:hover i {
    opacity: 1;
    transform: translateX(5px);
}

/* =========================================
   MOBİL İÇİN ÖZEL TİPOGRAFİ (MOBILE TYPOGRAPHY)
   ========================================= */
@media (max-width: 768px) {

    /* Sütun başlıklarını mobilde ekstra kalın yapar */
    .column-title-link {
        font-weight: 900 !important;
    }

    /* Navbar'daki "İTÜ Triatlon Kulübü" yazısını mobilde kalınlaştırır */
    .navbar-brand span {
        font-weight: 800 !important;
    }
}

/* =========================================
   ELLIPSIS "MORE" INDICATOR
   ========================================= */
.ellipsis-link {
    color: #adb5bd;
    /* A subtle gray so it doesn't shout */
    text-decoration: none;
    font-size: 1.5rem;
    line-height: 1;
    display: block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.ellipsis-link:hover {
    color: var(--bs-primary);
    /* Turns red on hover */
    transform: translateY(2px);
    /* Slight bump down to invite a click */
}

/* =========================================
   BACKGROUND TRIATHLON JOURNEY (CUSTOM SVGS)
   ========================================= */
.journey-master-wrapper {
    position: relative;
    overflow-x: clip;
}

/* 1. The AOS Wrappers control positioning and the 0-to-1 fade */
.journey-wrapper {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

/* Using calc() subtracts exactly half of the 250px height/width (125px).
   This places the true physical center of the icon perfectly on the percentage line,
   entirely avoiding transform conflicts with the AOS library! */
.wrap-swim {
    top: calc(10% - 125px);
    left: 5%;
}

.wrap-cycle {
    top: calc(50% - 125px);
    left: calc(50% - 125px);
}

.wrap-run {
    bottom: calc(15% - 125px);
    right: 5%;
}

/* 2. The inner SVGs strictly control the watermark appearance */
.journey-svg {
    width: 250px;
    height: 250px;
    opacity: 0.12;
    /* Bumped to 12% visibility */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.svg-swim {
    background-image: url('../images/swim.svg');
}

.svg-cycle {
    background-image: url('../images/bike.svg');
}

.svg-run {
    background-image: url('../images/run.svg');
}

/* =========================================
   GLOBAL STATIC TEXTURE WRAPPER
   ========================================= */
.texture-wrapper {
    /* 1. We keep our premium off-white base */
    background-color: #fdfdfd;

    /* 2. We add a semi-transparent white gradient ON TOP of your SVG */
    background-image:
        linear-gradient(rgba(253, 253, 253, 0.7), rgba(253, 253, 253, 0.7)),
        /* Adjust 0.6 up or down to change opacity */
        url('../images/abstract-bg.svg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* =========================================
   LIGHTBOX MODAL TWEAKS
   ========================================= */
/* Removes the default white background and border from the pop-up */
.lightbox-modal .modal-content {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Makes the "X" close button white and positions it absolutely */
.lightbox-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    position: absolute;
    top: -40px;
    right: 0px;
    z-index: 1055;
}

.lightbox-img {
    max-height: 85vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

/* ==========================================
   NAVBAR SCROLL STYLE
   ========================================== */
.navbar {
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
}

.navbar-solid {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================
   HERO SECTION RESPONSIVE DESIGN (SLIDESHOW)
   ========================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100%;
    padding-top: 76px;
    background-color: #000032;
    /* Fallback dark slate color while images load */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    opacity: 0;
    animation: heroFade 12s infinite ease-in-out;
}

/* 3 slides × 4s each = 12s cycle */
.slide-1 { animation-delay: 0s; }
.slide-2 { animation-delay: 4s; }
.slide-3 { animation-delay: 8s; }

/* Crossfade keyframes: fade in 0.5s, hold 3.5s, fade out 0.5s, invisible the rest */
@keyframes heroFade {
    0%      { opacity: 0; }
    4.17%   { opacity: 1; }   /* Fade in complete  (0.5s / 12s) */
    33.33%  { opacity: 1; }   /* Hold until 4s mark (4s / 12s) */
    37.5%   { opacity: 0; }   /* Fade out complete  (4.5s / 12s) */
    100%    { opacity: 0; }
}

/* Mobile and Portrait Tablet background images */
@media (max-width: 991.98px) {
    .slide-1 {
        background-image: linear-gradient(rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.7)), url('../images/hero-2-mobile.jpg');
    }

    .slide-2 {
        background-image: linear-gradient(rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.7)), url('../images/hero-3-mobile.jpg');
    }

    .slide-3 {
        background-image: linear-gradient(rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.7)), url('../images/hero-4-mobile.jpg');
    }
}

/* Landscape Tablet and Desktop background images */
@media (min-width: 992px) {
    .slide-1 {
        background-image: linear-gradient(rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.7)), url('../images/hero-2-desktop.jpg');
    }

    .slide-2 {
        background-image: linear-gradient(rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.7)), url('../images/hero-3-desktop.jpg');
    }

    .slide-3 {
        background-image: linear-gradient(rgba(0, 0, 50, 0.7), rgba(0, 0, 50, 0.7)), url('../images/hero-4-desktop.jpg');
    }
}

.hero-section h1 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Semi-transparent Glassmorphic Hero Button */
.btn-hero {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transition: all 0.3s ease-in-out;
}

.btn-hero:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-hero:focus,
.btn-hero:active,
.btn-hero:focus-visible {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
}

/* ==========================================
   SOCIAL BRAND BUTTONS
   ========================================== */
.btn-social {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    color: white !important;
}

.btn-social:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2) !important;
    color: white !important;
}

.btn-whatsapp,
.btn-whatsapp:hover,
.btn-whatsapp:active {
    background-color: #25D366 !important;
    border: none !important;
}

.btn-instagram,
.btn-instagram:hover,
.btn-instagram:active {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border: none !important;
}

.btn-instagram:hover {
    filter: brightness(1.15);
}

/* =========================================
   ABOUT SECTION PARAGRAPH SIZE TWEAK
   ========================================= */
#about-section p.lead {
    font-size: 1.35rem;
}

/* =========================================
   GALLERY AND BLOCK DETAILS (NON-MASONRY)
   ========================================= */
.gallery-wrapper {
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-wrapper:hover .gallery-img {
    transform: scale(1.08);
}

/* =========================================
   REUSABLE SYSTEM COMPONENTS & UTILITIES
   ========================================= */
.lh-relaxed {
    line-height: 1.8;
}

.z-index-2 {
    z-index: 2 !important;
}

.admin-lock-icon {
    opacity: 0.15;
    transition: opacity 0.3s;
}

.admin-lock-icon:hover {
    opacity: 0.8;
}

.member-card-img,
.blog-card-img,
.blog-cover-img,
.gallery-img,
.masonry-img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.4s ease;
    will-change: opacity, transform;
}

.member-card-img.is-loaded,
.blog-card-img.is-loaded,
.blog-cover-img.is-loaded,
.gallery-img.is-loaded,
.masonry-img.is-loaded {
    opacity: 1;
}

/* Skeleton Placeholder Background for Image Containers */
.gallery-wrapper,
.masonry-item {
    background-color: #e9ecef;
}

.member-card-img {
    height: 300px;
    object-fit: cover;
}

.blog-card-img {
    height: 200px;
    object-fit: cover;
}

.blog-cover-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out, transform 0.4s ease;
}

.gallery-wrapper:hover .blog-cover-img {
    transform: scale(1.04);
}

.edit-galeri-img {
    height: 120px;
    width: 100%;
    object-fit: cover;
}

.scrollable-list {
    max-height: 300px;
    overflow-y: auto;
}

.w-max-70 {
    max-width: 70%;
}

/* =========================================
   STANDARDIZED EMPTY STATE CARDS
   ========================================= */
.empty-state-card {
    text-align: center;
    padding: 3.5rem 2rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(219, 9, 46, 0.15);
    border-radius: 1.25rem;
    margin: 2rem 0;
    transition: all 0.3s ease-in-out;
}

.empty-state-card:hover {
    border-color: rgba(219, 9, 46, 0.4);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    font-size: 3.5rem;
    color: var(--bs-primary);
    opacity: 0.8;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.empty-state-title {
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #6c757d;
    font-size: 0.95rem;
    max-width: 450px;
    margin: 0 auto;
}

/* =========================================
   BREADCRUMB LINK COLORS
   ========================================= */
.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.breadcrumb-item a:hover {
    color: #b30724;
    text-decoration: underline;
}

/* =========================================
   ELLIPSIS PILL (MORE ITEMS INDICATOR)
   ========================================= */
.ellipsis-pill {
    padding: 2px 14px;
    font-size: 1.15rem;
    color: #6c757d;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 50rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    display: inline-block;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.ellipsis-pill:hover {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.08);
}

/* =========================================
   HOVER LIFT EFFECT FOR CARDS
   ========================================= */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

/* =========================================
   EVENT & TRAINING SUBTYPE AESTHETICS
   ========================================= */
/* Main Cards (Top Border Accent) */
.card-yuzme.card {
    border-top: 4px solid #00b4d8 !important;
    /* Aqua/Blue for swimming */
}

.card-bisiklet.card {
    border-top: 4px solid #fd7e14 !important;
    /* Orange/Yellow for cycling */
}

.card-kosu.card {
    border-top: 4px solid #198754 !important;
    /* Green for running */
}

.card-triatlon.card,
.card-duatlon.card,
.card-aquatlon.card {
    border-top: 4px solid #db092e !important;
    /* Red for Triatlon, Duatlon & Aquatlon */
}

.card-kuvvet-mobilite.card {
    border-top: 4px solid #6f42c1 !important;
    /* Purple for Kuvvet & Mobilite */
}

/* Training List Group Items (Left Border Accent) */
.card-yuzme.list-group-item {
    border-left: 4px solid #00b4d8 !important;
}

.card-bisiklet.list-group-item {
    border-left: 4px solid #fd7e14 !important;
}

.card-kosu.list-group-item {
    border-left: 4px solid #198754 !important;
}

.card-kuvvet-mobilite.list-group-item {
    border-left: 4px solid #6f42c1 !important;
}

/* Soft-Tinted Premium Badges */
.badge-yaris {
    background-color: rgba(219, 9, 46, 0.1) !important;
    color: #db092e !important;
}

.badge-antrenman {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
}

.badge-sosyal {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
}

.badge-atolye {
    background-color: rgba(111, 66, 193, 0.1) !important;
    color: #6f42c1 !important;
}

.badge-yuzme {
    background-color: rgba(0, 180, 216, 0.1) !important;
    color: #0077b6 !important;
}

.badge-bisiklet {
    background-color: rgba(253, 126, 20, 0.1) !important;
    color: #d9480f !important;
}

.badge-kosu {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #0f5132 !important;
}

.badge-triatlon,
.badge-duatlon,
.badge-aquatlon {
    background-color: rgba(219, 9, 46, 0.1) !important;
    color: #db092e !important;
}

.badge-kuvvet-mobilite {
    background-color: rgba(111, 66, 193, 0.1) !important;
    color: #553c9a !important;
}

.card-triatlon.list-group-item,
.card-duatlon.list-group-item,
.card-aquatlon.list-group-item {
    border-left: 4px solid #db092e !important;
}

/* Event Type Card Borders */
.card-yaris.card {
    border-top: 4px solid #db092e !important;
    overflow: hidden;
}

.card-atolye.card {
    border-top: 4px solid #6f42c1 !important;
    overflow: hidden;
}

.card-sosyal.card {
    border-top: 4px solid #0d6efd !important;
    overflow: hidden;
}

/* Special Event Card Watermarks */
.card-watermark {
    position: absolute;
    right: 1.25rem;
    bottom: -1rem;
    font-size: 10rem;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    transition: transform 0.4s ease-in-out;
}

.card-yaris .card-watermark {
    color: #db092e;
}

.card-atolye .card-watermark {
    color: #6f42c1;
}

.card-sosyal .card-watermark {
    color: #0d6efd;
}

.card:hover .card-watermark {
    transform: scale(1.08) translateY(-5px);
}

/* SVG Watermark Masks */
.card-watermark.watermark-yuzme-svg {
    bottom: -1.5rem !important;
    right: -3rem !important;
    width: 25rem;
    height: 8.125rem;
}

.watermark-yuzme-svg {
    background-color: currentColor;
    -webkit-mask: url('../images/swim.svg') no-repeat bottom right / contain;
    mask: url('../images/swim.svg') no-repeat bottom right / contain;
    display: inline-block;
}

.watermark-bisiklet-svg {
    background-color: currentColor;
    -webkit-mask: url('../images/bike.svg') no-repeat center / contain;
    mask: url('../images/bike.svg') no-repeat center / contain;
    width: 21rem;
    height: 13rem;
    display: inline-block;
}

.watermark-kosu-svg {
    background-color: currentColor;
    -webkit-mask: url('../images/run.svg') no-repeat center / contain;
    mask: url('../images/run.svg') no-repeat center / contain;
    width: 20rem;
    height: 12rem;
    display: inline-block;
}

.card-watermark.watermark-bisiklet-svg {
    bottom: -2rem !important;
    right: -3.5rem !important;
}

.card-watermark.watermark-kosu-svg {
    bottom: -2rem !important;
    right: -1.5rem !important;
}

/* Triatlon Watermarks Row Layout */
.watermark-triatlon-container {
    position: absolute;
    bottom: -3rem !important;
    right: -2rem !important;
    display: flex;
    align-items: flex-end;
}

.watermark-triatlon-container .tri-icon {
    background-color: currentColor;
    display: inline-block;
}

.watermark-triatlon-container .tri-icon:not(:first-child) {
    margin-left: -2.5rem;
}

.watermark-triatlon-container .swim-tri {
    -webkit-mask: url('../images/swim.svg') no-repeat center / contain;
    mask: url('../images/swim.svg') no-repeat center / contain;
    width: 16rem;
    height: 8rem;
}

.watermark-triatlon-container .bike-tri {
    -webkit-mask: url('../images/bike.svg') no-repeat center / contain;
    mask: url('../images/bike.svg') no-repeat center / contain;
    width: 14rem;
    height: 11rem;
}

.watermark-triatlon-container .run-tri {
    -webkit-mask: url('../images/run.svg') no-repeat center / contain;
    mask: url('../images/run.svg') no-repeat center / contain;
    width: 14rem;
    height: 11rem;
    margin-left: -3.5rem !important;
}

/* Mobile responsive watermarks scaling */
@media (max-width: 767.98px) {
    .card-watermark {
        font-size: 6rem;
        right: 0.75rem;
        bottom: -0.5rem;
    }

    .card-watermark.watermark-yuzme-svg {
        width: 15rem;
        height: 4.875rem;
        bottom: -0.75rem !important;
        right: -1.5rem !important;
    }

    .watermark-bisiklet-svg {
        width: 12.6rem;
        height: 7.8rem;
    }

    .card-watermark.watermark-bisiklet-svg {
        bottom: -1rem !important;
        right: -2rem !important;
    }

    .watermark-kosu-svg {
        width: 12rem;
        height: 7.2rem;
    }

    .card-watermark.watermark-kosu-svg {
        bottom: -1rem !important;
        right: -0.75rem !important;
    }

    .watermark-triatlon-container {
        bottom: -1.5rem !important;
        right: -1rem !important;
    }

    .watermark-triatlon-container .tri-icon:not(:first-child) {
        margin-left: -1.5rem;
    }

    .watermark-triatlon-container .swim-tri {
        width: 9.6rem;
        height: 4.8rem;
    }

    .watermark-triatlon-container .bike-tri {
        width: 8.4rem;
        height: 6.6rem;
    }

    .watermark-triatlon-container .run-tri {
        width: 8.4rem;
        height: 6.6rem;
        margin-left: -2.1rem !important;
    }
}

/* Sub-discipline badge sizing */
.badge-subdiscipline {
    font-size: 0.7rem;
}

.badge-subdiscipline-sm {
    font-size: 0.65rem;
}

/* Blog Kapak Görseli */
.blog-card-img {
    height: 240px;
    object-fit: cover;
}

/* Homepage List Card Item Equalization */
.home-list-item {
    height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Centralized Gallery Zoom Overlay Icon */
.gallery-overlay i {
    font-size: 2rem;
    color: #fff;
}

/* =========================================
   FINISH WATERMARK AESTHETIC
   ========================================= */
.finish-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Anton', 'Impact', 'Arial Black', sans-serif;
    font-size: 15vw;
    font-weight: 900;
    font-style: italic;
    color: rgba(255, 168, 175, 0.12);
    /* Transparent pinkish white */
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    user-select: none;
}

@media (max-width: 767.98px) {
    .finish-watermark {
        font-size: 25vw;
        font-weight: 900;
    }
}

/* Finish Section Container */
.finish-section {
    position: relative;
    background-color: var(--bs-primary);
    color: white;
    overflow: hidden;
}

/* Custom SVG Background Layer with Adjustable Opacity */
.finish-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/finish-bg.svg');
    background-repeat: repeat;
    opacity: 0.6;
    /* Faint opacity for a subtle look */
    mix-blend-mode: overlay;
    z-index: 0;
    pointer-events: none;
}

/* Global Navbar Hover Highlight for Strava Link */
.navbar-nav .nav-link.nav-strava-link:hover,
.navbar-nav .nav-link.nav-strava-link.active {
    color: #FC4C02 !important;
    text-shadow: 0 0 10px rgba(252, 76, 2, 0.4);
}

/* Mobile Transparent Navbar Backdrop Fix */
@media (max-width: 991.98px) {

    /* Apply background and blur to the entire navbar wrapper when opening or opened */
    .navbar-transparent:has(.navbar-collapse.show),
    .navbar-transparent:has(.navbar-collapse.collapsing) {
        background-color: rgba(10, 10, 20, 0.95) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
    }

    /* Keep list in place, only add subtle spacing inside the normal flow */
    .navbar-transparent .navbar-collapse {
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }
}

/* =========================================
   LIGHTBOX TITLE LINK HOVER
   ========================================= */
.title-link-hover {
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.title-link-hover:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}