/* instagram widget styling */
.slider-wrapper {
    position: relative;
}

.custom-prev,
.custom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 8px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.custom-prev {
    left: -40px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.custom-next {
    right: -40px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.custom-prev:hover,
.custom-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.insta-image {
    width: 100%;
    height: 300px; /* Adjust based on your needs */
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.ig-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
    justify-content: center;
    align-items: center;
}

@media (max-width: 650px) {
    .custom-next {
        display: none;
    }
    .custom-prev {
        display: none;
    }
}

.question {
    color: red;
    font-size: 30px;
    text-decoration: bold;
}

/* CUSTOM TEXT/BG */
body,
p,
h4,
h5,
h6 {
    font-family: "Roboto Condensed" !important;
    letter-spacing: 1px;
    color: black;
}

a {
    color: var(--gold);
    transition: 0.3s;
}
a:hover {
    color: var(--gold-hover);
}

.text-primary {
    color: var(--primary) !important;
}
.bg-primary {
    background-color: var(--primary) !important;
}
.border-primary {
    border-color: var(--gold) !important;
}
.btn-white {
    background-color: white;
}
.bg-gold {
    background-color: var(--gold);
}
.text-gold {
    color: var(--gold);
}
.text-graphite {
    color: var(--graphite);
}
.text-steelgrey {
    color: var(--steelgrey);
}
/* program cardss */
.program-card {
    transition: all 0.4s ease;
    border-radius: 8px; /* Softens the sharp corners */
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

.bg-light-gray {
    background-color: #f8f9fa; /* Keeps the logo area distinct from the white text area */
}

.logo-hover {
    transition: transform 0.3s ease;
}

.program-card:hover .logo-hover {
    transform: scale(1.05); /* Subtle zoom on the logo */
}
/* END COREnCUSTOM */

/* golf-bg-light - Topographic Background */
.golf-bg-light {
    position: relative;
    overflow: hidden;
    color: #333; /* Dark text for readability against light background */

    /* The core styling for the scalable background */
    background-color: #f3f3f5; /* Match the light grey base color */
    background-image: url("../images/golfbglight.png") !important;
    background-blend-mode: overlay;

    /* Ensure the background scales smoothly to cover the whole section */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.light-dots {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url("../images/light-dots.png") !important;
    background-repeat: repeat;
}
.dark-dots {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
        url("../images/dark-dots.png") !important;
    background-repeat: repeat;
}

/* Video Hero styles */
@media (min-width: 1600px) {
    .video-hero,
    .video-hero-content .row {
        min-height: 800px;
    }
}

.video-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-hero__panel {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 43, 92, 0.88); /* use your blue */
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .video-hero__panel {
        padding: 2.5rem 1.5rem;
    }

    .video-hero__panel p {
        max-width: 600px;
        margin: 0 auto;
    }

    .video-hero-content {
        width: 100%;
        margin-top: 400px;
    }
}

/* Pillars Section */
.pillars-row {
    min-height: 600px;
}

.pillars-row img {
    object-fit: cover;
    min-height: 400px;
    width: 100%;
    height: 100%;
}

.pillars-row img:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), transparent);
}

@media (max-width: 768px) {
    .pillars-row img {
        min-height: 400px;
        height: 400px;
    }
}

/* About Float */
.about-float {
    position: absolute;
    top: 0;
    left: 0;
    padding-right: 1rem;
    padding-bottom: 1rem;
    width: 180px;
    height: 180px;
    background-color: #fff;
}

@media (max-width: 560px) {
    .about-float {
        bottom: 0;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .golf-bg-light > .position-relative {
        max-width: 696px;
        margin-right: auto;
        margin-left: auto;
        padding-left: 0 !important;
    }

    .about-img {
        display: block;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 500px) {
    .golf-bg-light > .position-relative {
        padding-top: 0 !important;
        overflow: visible !important;
    }

    .about-img {
        padding-top: 0 !important;
    }

    .about-float {
        position: static;
        width: 100%;
        height: auto;
        margin-top: 0.75rem;
        padding-right: 0;
        padding-bottom: 0;
    }

    .about-float .bg-gold {
        height: auto !important;
        min-height: 0;
        padding: 1rem !important;
    }

    .about-float h2,
    .about-float h4,
    .about-float h5 {
        display: inline;
        margin-bottom: 0;
    }

    .about-float h2::after,
    .about-float h4::after {
        content: " ";
    }
}

/* Donation callout styles */
.donation-callout {
    background-color: #f8f9fa;
}

.donation-image {
    position: relative;
    min-height: 550px;
    overflow: hidden;
}

.donation-image-inner {
    position: absolute;
    inset: 0;
    background: url("../images/donation.jpg") center center / cover no-repeat;
}

.donation-callout-body {
    padding: 3rem;
}

.donation-callout-content p {
    max-width: 500px;
}

.donation-image::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    width: 120px;
    height: 100%;
    background: #f8f9fa;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 2;
}

@media (max-width: 992px) {
    .donation-image {
        min-height: 380px;
    }

    .donation-image::after {
        top: auto;
        bottom: -1px;
        right: 0;
        width: 100%;
        height: 90px;
        clip-path: polygon(0 100%, 0 0, 100% 70%, 100% 100%);
    }

    .donation-callout-body {
        padding: 0 3rem 3rem;
    }

    .donation-callout h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .donation-callout .lead {
        font-size: 1.05rem;
    }

    .donation-callout-content p {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .donation-image {
        min-height: 260px;
    }

    .donation-image::after {
        height: 60px;
        clip-path: polygon(0 100%, 0 0, 100% 78%, 100% 100%);
    }

    .donation-callout-body {
        padding: 0 1.5rem 2rem;
    }

    .donation-callout .btn {
        width: 100%;
    }
}

/* Fellowship card styles */

.fellowship-image {
    aspect-ratio: 1 / 1;
    border-radius: 0.5rem;
}

@media screen and (max-width: 991px) {
    .fellowship-image {
        aspect-ratio: unset;
    }

    .fellowship-image img {
        max-width: 400px;
    }
}

/* Photo Carousel styles */

.photo-carousel-section {
    padding: 70px 0 0;
    background: #fff;
}

.photo-carousel-wrapper {
    position: relative;
}

.photo-carousel-item {
    position: relative;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}

.photo-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 42, 82, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.photo-carousel-item:hover::after {
    background: rgba(8, 42, 82, 0.45);
}

.photo-carousel-item:hover img {
    transform: scale(1.08);
}

.photo-carousel-item .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 2;
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    pointer-events: none;
}

.photo-carousel-item:hover .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.photo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.3s,
        border-color 0.3s;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
}

.photo-nav-btn:hover {
    opacity: 1;
}

.photo-nav-prev {
    left: 12px;
}

.photo-nav-next {
    right: 12px;
}

.photo-owl-carousel .owl-dots {
    display: none;
}

#photoOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

#photoOverlay.active {
    opacity: 1;
    visibility: visible;
}

#overlayImg {
    max-height: 88vh;
    max-width: 85vw;
    object-fit: contain;
    user-select: none;
    display: block;
}

.overlay-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.3s,
        border-color 0.3s;
    padding: 0;
    line-height: 1;
}

.overlay-btn:focus {
    outline: none;
}

#overlayClose {
    top: 1rem;
    right: 1rem;
    width: 46px;
    height: 46px;
    font-size: 1rem;
}

#overlayPrev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    font-size: 1.1rem;
}

#overlayNext {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    font-size: 1.1rem;
}

#overlayCounter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

#overlayImageStage {
    position: relative;
    width: 85vw;
    height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#overlayImageStage img,
#overlayImg {
    max-height: 88vh;
    max-width: 85vw;
    object-fit: contain;
    user-select: none;
    display: block;
}

.overlay-slide-img {
    position: absolute;
    max-height: 88vh;
    max-width: 85vw;
    object-fit: contain;
    user-select: none;
    display: block;
    transition: transform 0.35s ease;
    will-change: transform;
}

.overlay-slide-img.current {
    transform: translateX(0);
}

.overlay-slide-img.from-right {
    transform: translateX(100vw);
}

.overlay-slide-img.from-left {
    transform: translateX(-100vw);
}

.overlay-slide-img.to-center {
    transform: translateX(0);
}

.overlay-slide-img.to-left {
    transform: translateX(-100vw);
}

.overlay-slide-img.to-right {
    transform: translateX(100vw);
}

/* News styles */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1.25rem 2.5rem rgba(17, 24, 39, 0.08);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center center;
    position: relative;
}
.news-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 20%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.news-read-link {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.news-read-link .arrow {
    display: inline-block;
    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
    transform: translateX(0);
    opacity: 0.95;
    font-size: 1.05rem;
    line-height: 1;
}
.news-read-link:hover .arrow,
.news-read-link:focus .arrow {
    transform: translateX(6px);
    opacity: 1;
}
.news-read-link:focus {
    outline: 3px solid rgba(199, 161, 43, 0.18);
    outline-offset: 2px;
}

.news-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-title a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}
.news-title a:hover {
    color: var(--gold);
}

.news-date {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.news-excerpt {
    font-size: 0.95rem;
    line-height: 1.45;
    /* Clamp to 4 lines and hide overflow */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt p {
    margin-bottom: 0 !important;
}

/* Pagination styles */
#news-pagination button.active {
    background-color: var(--gold);
    font-weight: 700;
}
#news-prev,
#news-next {
    min-width: 44px;
}

#news-pagination .btn {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 6px 10px;
    border-radius: 6px;
    min-width: 36px;
}
#news-pagination .btn:hover {
    background: rgba(0, 0, 0, 0.03);
}
#news-pagination .btn.active,
#news-pagination .btn.active:hover {
    background: linear-gradient(90deg, var(--gold), #c7a12b);
    border-color: rgba(0, 0, 0, 0.06);
    color: #fff;
}
#news-prev,
#news-next {
    background: none;
    border: none;
}

/* News post styles */
.blog-single {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
}

@media (max-width: 768px) {
    .blog-hero-bg {
        height: 80%;
    }
}

@media (max-width: 576px) {
    .blog-hero-bg {
        height: 70%;
    }
}

.blog-single__img img {
    max-height: 420px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 1.25rem 2.5rem rgba(17, 24, 39, 0.08);
}

.blog-single__title {
    font-size: 1.75rem;
    margin-top: 0.5rem;
}

/* Meet the Team page styles */
.team-item {
    height: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

.team-item img {
    width: 100%;
    aspect-ratio: 25 / 27;
    object-fit: cover;
    object-position: top;
    display: block;
}

.team-item .team-text {
    padding: 1rem;
}

.team-item h5 {
    font-size: 1.05rem;
    line-height: 1.25;
}

.team-item span {
    font-size: 0.9rem;
    line-height: 1.35;
}

.team-item .small {
    font-size: 0.8rem;
}

.team-intro {
    max-width: 760px;
    line-height: 1.7;
}

/* Callout styles */
.callout-cta-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    flex-direction: column;
}

.callout-cta-btn {
    min-width: 11rem;
}

@media (max-width: 991.98px) {
    .callout-cta-group {
        width: 100%;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch !important;
    }

    .callout-cta-btn {
        flex: 1 1 11rem;
        width: auto;
        min-width: 0;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .callout-cta-btn {
        flex-basis: 100%;
    }
}

@media (min-width: 1200px) {
    .callout-cta-btn {
        flex: 0 0 auto !important;
    }
}

/* Login and account pages */
.account-page {
    background:
        linear-gradient(
            180deg,
            rgba(248, 250, 252, 0.96),
            rgba(255, 255, 255, 0.98)
        ),
        radial-gradient(
            circle at top right,
            rgba(197, 165, 97, 0.18),
            transparent 32%
        );
    margin-top: 96px;
    min-height: calc(100vh - 96px);
}

.account-card {
    border: 1px solid rgba(0, 32, 91, 0.08);
    border-radius: 8px;
    box-shadow: 0 1.25rem 3rem rgba(0, 32, 91, 0.12);
    padding: 2rem;
}

.account-card h1,
.account-card h2 {
    color: var(--primary);
    font-weight: 700;
}

.account-card .form-label {
    color: var(--dark);
    font-weight: 600;
}

.account-card .form-control {
    border-color: #d7deea;
    border-radius: 6px;
}

.account-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 32, 91, 0.12);
}

.account-card .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.account-card .btn-primary:hover,
.account-card .btn-primary:focus {
    background-color: #06357f;
    border-color: #06357f;
    color: #fff;
}

.account-helper-link {
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
}

.account-helper-link:hover,
.account-helper-link:focus {
    color: var(--gold);
}

@media (max-width: 575.98px) {
    .account-card {
        padding: 1.5rem;
    }
}

/* Misc styles */

@media (max-width: 1200px) {
    .stats-section .display-5 {
        font-size: 2.2rem;
    }
}

/* Events pages styles */

.pga-hope-gallery {
    overflow-x: clip;
}

.event-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1.25rem 2.5rem rgba(8, 42, 82, 0.15) !important;
}

.event-image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 3px solid var(--primary);
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.event-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(8, 42, 82, 0.08);
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.event-meta {
    color: var(--secondary);
    font-size: 0.95rem;
    min-height: 1.5rem;
}

.event-more-link {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition:
        gap 0.3s ease,
        color 0.3s ease;
}

.event-card:hover .event-more-link {
    gap: 0.7rem;
    color: var(--gold);
}

.event-title {
    font-weight: 700;
    color: var(--primary);
}

.markdown-content img {
    display: block;
    margin: auto;
    max-height: 260px;
}
