/* Custom CSS for carousel captions */
.carousel-caption {
    position: absolute;
    left: 40%; /* Shift from left */
    right: auto; /* Override bootstrap's right: 0 */
    top: 40%; /* Vertically center */
    transform: translateY(-50%); /* Fine-tune vertical centering */
    text-align: left; /* Left align text */
    width: 50%; /* Control width */
    padding: 20px;
    border-radius: 5px;
}

/* Stencil font effect for painted look */
.stencil-heading {
    font-family: 'Stardos Stencil', 'Arial Narrow', sans-serif;
    color: var(--theme-primary);
    text-shadow: var(--shadow-text);
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Stencil font effect for painted look */
.stencil-heading1 {
    font-family: 'Stardos Stencil', 'Arial Narrow', sans-serif;
    color: var(--theme-secondary);
    text-shadow: var(--shadow-text);
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Schedule items styling */
.schedule-item {
    margin-left: 15px;
    position: relative;
}

.schedule-item::before {
    content: "•";
    position: absolute;
    left: -15px;
    font-weight: bold;
}

.responsive-fs {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .responsive-fs {
        font-size: 1.25rem;
    }
}

/* Location Marker Colors */
.badge-location-a {
  background-color: rgb(1, 87, 155) !important;
  color: white;
}
.badge-location-b {
  background-color: rgb(230, 81, 0) !important;
  color: white;
}
.badge-location-c {
  background-color: rgb(249, 168, 31) !important;
  color: white;
}
.badge-location-d {
  background-color: rgb(156, 39, 176) !important;
  color: white;
}

/* Mobile Typography Adjustments for Training Facilities section */
@media (max-width: 768px) {
    /* 1. Header adjustment */
    .training-info-card h4 {
        font-size: 1.25rem;
    }

    /* 2. Content adjustments (Combined) */
    .facility-text-group h5 {
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .facility-text-group p {
        font-size: 0.9rem;
        margin-left: 0 !important; /* We use Flexbox now, so no margin needed */
    }

    .facility-text-group small {
        font-size: 0.8rem;
    }

    .facility-text-group .btn {
        font-size: 0.8rem;
    }

    /* 3. Badge & Card adjustments */
    .training-info-card .badge {
        font-size: 0.75rem;
        padding: 0.4em 0.6em;
    }

    .training-info-card {
        padding: 1.5rem !important;
    }
}

/* Schedule Card Styling */
.schedule-card {
    transition: transform 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-5px);
}

.summer-theme .card-header {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.winter-theme .card-header {
    background: linear-gradient(135deg, #6610f2, #6f42c1);
}

.day-badge {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 700;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .day-badge {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
}

/* Desktop / Base settings */
.training-intro {
    height: calc(100vh - 150px);

}

.training-hero-img-container {
    height: auto; /* Let desktop flex determine height */
}

@media (max-width: 994px) {
    .training-intro h2.display-6 {
        font-size: 1.7rem !important; /* Original display-6 is ~2.5rem */
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }

    /* 2. Reduce the 'lead' paragraph text */
    .training-intro p.lead {
        font-size: 1.2rem !important; /* Standard lead is 1.25rem */
        margin-bottom: 0.75rem !important;
    }

    /* 3. Adjust the cards text within this section */
    .training-intro .card-text {
        font-size: 1.0rem;
    }

    .training-intro .card-body small {
        font-size: 0.8rem;
    }

    /* 4. Optional: Tighten the padding of the text container */
    .training-intro .p-3 {
        padding: 1.5rem !important;
    }
}

@media (min-width: 576px) and (max-aspect-ratio: 1/1) {
    .training-intro {
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .training-intro h2.display-6 {
        font-size: 1.5rem !important; /* Original display-6 is ~2.5rem */
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }

    /* 2. Reduce the 'lead' paragraph text */
    .training-intro p.lead {
        font-size: 1rem !important; /* Standard lead is 1.25rem */
        margin-bottom: 0.75rem !important;
    }

    /* 3. Adjust the cards text within this section */
    .training-intro .card-text {
        font-size: 0.9rem;
    }

    .training-intro .card-body small {
        font-size: 0.75rem;
    }

    /* 4. Optional: Tighten the padding of the text container */
    .training-intro .p-3 {
        padding: 1.25rem !important;
    }
}

@media (min-width: 576px) {
    .row-text-content {
        height: 50%;
    }

    .row-cards-content {
        height: 50%;
    }

    .card-img-custom {
        height: 80%;
        object-fit: cover;
    }
}

@media (max-width: 575px) {
    .training-intro {
        height: auto !important; /* Allow section to grow vertically */
        min-height: calc(100vh - 130px);
    }

    .row-text-content,
    .row-cards-content {
        height: auto !important; /* Content defines height */
    }

    /* Keep the images in the cards from disappearing */
    .card-img-custom {
        max-height: 30vh;
        object-fit: cover;
    }

    /* THE FIX: Force the image container to 50% of the viewport height */
    .training-hero-img-container {
        height: 50vh !important;
        width: 100%;
        overflow: hidden;
    }

    /* Ensure the image covers the 50vh area and stays centered */
    .training-hero-img-container img {
        object-fit: cover;
        object-position: center; /* This crops the top/bottom to show the middle */
    }
}