/* Community Trainings Page */
.ct-hero {
    position: relative;
    padding: 130px 0 110px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(31, 106, 58, 0.28) 0%, rgba(22, 82, 45, 0.42) 50%, rgba(22, 82, 45, 0.55) 100%),
        url("../images/homephotos/4.jpeg") center/cover no-repeat;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.ct-hero-tag {
    display: inline-block;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    margin-bottom: 1rem;
}

.ct-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    max-width: 920px;
    margin: 0 auto 1rem;
}

.ct-hero-lead {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.ct-intro .section-title {
    color: #16522d;
}

.ct-lead {
    font-size: 1.08rem;
    line-height: 1.72;
}

.ct-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.ct-chip {
    display: inline-block;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #16522d;
    background: #f4fbf4;
    border: 1px solid rgba(31, 106, 58, 0.14);
}

.ct-chip-accent {
    background: rgba(31, 106, 58, 0.1);
    border-color: rgba(201, 162, 39, 0.45);
}

.ct-feature-panel {
    background: linear-gradient(180deg, #fff 0%, #f7faf8 100%);
    border-radius: 20px;
    border: 1px solid rgba(31, 106, 58, 0.12);
    border-top: 5px solid #c9a227;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 12px 34px rgba(16, 24, 40, 0.08);
}

.ct-list-plain {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct-list-plain li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
    line-height: 1.6;
}

.ct-list-plain li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c9a227;
}

.ct-locations-heading {
    color: #16522d;
}

.ct-locations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.ct-location-badge {
    padding: 0.65rem 1.15rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #1f6a3a;
    background: #fff;
    border: 1px solid rgba(31, 106, 58, 0.18);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
}

.ct-preview-card {
    border-radius: 16px;
    overflow: hidden;
    border-top: 4px solid #c9a227;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.1);
    height: 200px;
}

.ct-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ct-preview-card:hover img {
    transform: scale(1.06);
}

.ct-gallery-section {
    background: linear-gradient(180deg, #f8fbf8 0%, #ffffff 65%);
}

.ct-masonry {
    column-count: 3;
    column-gap: 1rem;
}

@media (max-width: 991px) {
    .ct-masonry {
        column-count: 2;
    }
}

@media (max-width: 575px) {
    .ct-masonry {
        column-count: 1;
    }
}

.ct-masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.ct-media-card {
    border-radius: 14px;
    overflow: hidden;
    border-top: 4px solid #c9a227;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
    background: #111;
}

.ct-media-card img,
.ct-media-card video {
    width: 100%;
    display: block;
    vertical-align: middle;
}

.ct-media-card img {
    height: auto;
}

.ct-media-card video {
    max-height: 320px;
    object-fit: cover;
}

.ct-cta {
    background: linear-gradient(135deg, #1f6a3a, #16522d);
}

.ct-gallery-section code {
    font-size: 0.85rem;
}
