﻿.card {
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(16,24,40,.06);
    margin-bottom: 10px;
    margin-right: 20px;
}

.cms-edit {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 500;
    background-color: white;
    border-radius: 5px;
    height: 40px;
    width: 40px;
    padding: 4px;
}

.navbar-brand:focus,
.navbar-brand:focus-visible,
.navbar-brand:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.hero {
    position: relative;
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;
    min-height: 360px;
    overflow: hidden;
    background: var(--gg-heading-color);
}

.hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    filter: contrast(1.05) saturate(1.05);
    transform: scale(1.02);
}

.hero-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.date-chip {
    width: 3.2rem;
    flex: 0 0 3.2rem;
    border-radius: .75rem;
    background: var(--gg-brand-surface);
    border: 1px solid #e6ecf4;
    text-align: center;
    line-height: 1.1;
    padding: .4rem .2rem;
}

    .date-chip .day {
        font-weight: 800;
        font-size: 1.1rem;
    }

    .date-chip .mon {
        text-transform: uppercase;
        font-size: .75rem;
        color: #6b7280;
    }

.home-event-item {
    min-width: 0;
}

.home-event-details {
    min-width: 0;
}

.home-event-title {
    max-width: 100%;
}

.home-event-action {
    flex: 0 0 auto;
}

.badge-group {
    background-color: var(--gg-brand-surface);
    color: var(--gg-brand-strong);
    border: 1px solid #dbe7ff;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: .75rem;
    display: block;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .35s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.03);
    }

.gallery-caption {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%);
    opacity: 0;
    transition: .25s ease;
    color: #fff;
    display: flex;
    align-items: end;
    padding: .75rem;
    font-weight: 600;
    letter-spacing: .2px;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

h1 {
    color: white;
}
.text-primary{
    color:var(--gg-brand-strong) !important;
}
.article-img{
    max-width:350px;
}
/* Center the carousel and constrain width */
.gallery-holder {
    display: flex;
    justify-content: center;
    background-color: var(--gg-brand-primary-subtle);
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(16,24,40,.06);
}

    .gallery-holder .image-box {
        width: 100%;
        max-width: 900px; /* adjust as needed */
        margin: 0 auto;
    }

/* Enforce 4:3 (1.33) aspect ratio for the carousel box */
#image-carousel {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.carousel-inner {
    background-color: var(--gg-brand-primary-subtle);
}
/* Make slides fill the aspect-ratio box */
#image-carousel .carousel-inner,
#image-carousel .carousel-item {
    height: 100% !important;
}

    /* Show entire image without cropping; add letterbox background if needed */
    #image-carousel .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover !important; /* fill the box (no letterbox) */
        object-position: center center;
        display: block;
        background-color: var(--gg-brand-primary-subtle); /* visible bars for non-4:3 images */
        border-radius: 1rem;
    }

/* Override any fixed heights from earlier styles */
.carousel-item {
    height: auto !important;
}

.d-block {
    background-color: var(--gg-brand-primary-subtle);
}

.card-title {
    padding-left: 15px;
    border-bottom: 1px solid silver;
}

section {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 20px;
}

.head-line {
    line-height: 1.2;
    color: white;
    font-size: 3rem;
    background-color: transparent;
    font-weight: 700;
    border: 0;
    min-width: 800px;
}

.tag-line {
    line-height: 30px;
    color: white;
    font-size: 1.25rem;
    font-weight: 400;
    border: 0;
    background-color: transparent;
    min-width: 800px;
}

.image-box {
    position: relative;
    aspect-ratio: 4 / 3; /* keeps all images same shape (4:3) */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 900px; /* matches gallery-holder max width */
    margin: 0 auto;
    /* removed fixed height/width so aspect-ratio controls height */
}

.video-carousel {
    max-width: 720px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
}

.carousel-item video {
    width: 100%;
    height: 405px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    border-radius: .5rem;
    padding: .5rem 1rem;
}

.carousel-control-prev,
.carousel-control-next {
    pointer-events: none; /* disables global interception */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    pointer-events: auto; /* re-enable only icon buttons */
}

/* Allow the footer/terms card to span full width so its inner justify-content-center centers on the page */
.card.terms {
    max-width: none;
    width: 100%;
}

.article-content {
    overflow: hidden;
    max-height: 230px;
    transition: max-height 0.4s ease;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.article-content.article-preview-collapsed img:not(.feature-icon) {
    display: none;
}

.article-content img.cms-image-missing {
    display: none !important;
}

.article-content .feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .75rem;
    margin: 1rem 0 .5rem;
    text-align: center;
}

.article-content .feature-item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe4ea;
    border-radius: .5rem;
    color: #243746;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    font-weight: 600;
    justify-content: center;
    min-height: 3rem;
    padding: .65rem .75rem;
}

.article-content .feature-icon {
    display: block;
    height: 42px;
    object-fit: contain;
    width: 42px;
}

.article-content.expanded {
    max-height: 5000px;
}

.fade-overlay {
    position: absolute;
    bottom: 2.7rem;
    left: 0;
    right: 0;
    height: 96px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.95) 65%, #fff);
    transition: opacity 0.3s ease;
    pointer-events: none;
    opacity: 1;
}

.article-content.expanded + .fade-overlay {
    opacity: 0;
}

.read-more {
    display: none;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #c9d9d3;
    border-radius: 999px;
    gap: .35rem;
    font-weight: 600;
    line-height: 1.1;
    padding: .45rem .85rem;
    color: var(--bs-success);
    cursor: pointer;
    text-decoration: none;
}

.article-box.has-overflow .read-more {
    display: inline-flex !important;
}

.read-more:hover {
    background: #eef7f2;
    border-color: var(--bs-success);
    color: var(--bs-success);
    text-decoration: none;
}

.welcome-article .article-content {
    max-height: none;
    border-left: 4px solid var(--gg-brand-strong);
    padding-left: 1rem;
}

.welcome-article h2 {
    color: var(--gg-brand-strong);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.welcome-article p {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
}

.welcome-article p:last-child {
    margin-bottom: 0;
}

.article-content p {
    display: block;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    margin-bottom:0px;
}
@media only screen and (max-width: 500px) {



}
