:root {
    --homepage-primary: var(--theme-accent-primary, #031a54);
    --homepage-secondary: var(--theme-accent-secondary, #145eff);
    --homepage-gold: var(--accent-gold, #f0b343);
    --homepage-light: var(--bs-body-bg, #f8f9fa);
    --homepage-dark: var(--bs-body-color, #0b1126);

    /* Theme-aware text colors (follow Bootstrap variables where possible) */
    --homepage-text: var(--bs-body-color, #0f172a);
    --homepage-text-muted: var(--bs-secondary-color, #334155);
}

.info-cards {
    margin-top: -70px;
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

.info-card {
    background: var(--bs-card-bg, #fff);
    border-radius: 24px;
    padding: 2.25rem;
    box-shadow: 0 20px 45px rgba(3, 26, 84, 0.12);
    border-top: 5px solid var(--homepage-secondary);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(240, 179, 67, 0.8), rgba(240, 179, 67, 0));
    transform: rotate(35deg);
    opacity: 0.25;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(3, 26, 84, 0.18);
}

.info-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--homepage-primary), var(--homepage-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 15px 30px rgba(3, 26, 84, 0.25);
    position: relative;
    z-index: 1;
}

.info-card h4 {
    font-weight: 700;
    color: var(--homepage-primary);
}

.info-card p {
    color: var(--homepage-text-muted);
    margin-bottom: 1.5rem;
}

/* Bootstrap's .text-muted uses !important; override it for homepage cards */
.info-card .text-muted {
    color: var(--homepage-text-muted) !important;
}

.club-banner {
    background: linear-gradient(135deg, var(--homepage-primary), var(--homepage-secondary));
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--homepage-gold);
}

.club-banner::before,
.club-banner::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 200%;
    top: -50%;
    background: rgba(255, 255, 255, 0.05);
}

.club-banner::before {
    right: -20%;
    transform: rotate(35deg);
}

.club-banner::after {
    left: -30%;
    transform: rotate(-35deg);
}

.club-logo {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
}

.club-banner .stat-block {
    text-align: center;
    margin-bottom: 1.5rem;
}

.event-flyer-wrapper {
    margin: 2.5rem auto;
    max-width: 980px;
    border-radius: 24px;
    background: var(--bs-card-bg, #fff);
    box-shadow: 0 24px 60px rgba(3, 26, 84, 0.12);
    border: 1px solid rgba(3, 26, 84, 0.08);
    overflow: hidden;
    padding: 1.25rem;
}

.event-flyer-pdf {
    display: block;
    width: 100%;
    height: min(1400px, 92vh);
    border: 0;
    border-radius: 16px;
    background: var(--bs-tertiary-bg, #f8fafc);
}

.event-flyer-img {
    display: block;
    width: 100%;
    border-radius: 16px;
    background: var(--bs-tertiary-bg, #f8fafc);
}

.event-flyer-img.event-flyer-loading {
    min-height: 520px;
    background: linear-gradient(90deg, var(--bs-tertiary-bg, #f1f5f9), var(--bs-secondary-bg, #e2e8f0), var(--bs-tertiary-bg, #f1f5f9));
    background-size: 300% 100%;
    animation: w5obmFlyerShimmer 1.2s ease-in-out infinite;
}

@keyframes w5obmFlyerShimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.club-banner .stat-block h3 {
    color: var(--homepage-gold);
    font-weight: 800;
}

.club-banner h2,
.club-banner p,
.club-banner h2 * {
    color: #fff;
}

.homepage-events-shell {
    padding-top: 2.5rem;
}

.feature-card {
    background: var(--bs-card-bg, #fff);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(3, 26, 84, 0.08);
    border: 1px solid rgba(3, 26, 84, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card .card-text {
    color: var(--homepage-text-muted);
}

.feature-card .text-muted {
    color: var(--homepage-text-muted) !important;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 32px 70px rgba(3, 26, 84, 0.15);
}

.feature-card .card-img-top {
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feature-card:hover .card-img-top {
    transform: scale(1.05);
}

.feature-card .badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, var(--homepage-gold), #ffd271);
    color: var(--homepage-primary);
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(240, 179, 67, 0.35);
}

.news-section {
    padding: 5rem 0;
    background: var(--bs-body-bg, #fff);
}

.news-card {
    background: var(--bs-card-bg, #fff);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 20px 45px rgba(11, 17, 38, 0.08);
    border-left: 4px solid var(--homepage-gold);
    margin-bottom: 1.5rem;
}

.news-card .news-date {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--homepage-primary);
    font-weight: 700;
}

.cta-section {
    background: linear-gradient(135deg, var(--homepage-primary), var(--homepage-secondary));
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 55%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.btn-hero-primary,
.btn-hero-secondary {
    border-radius: 999px;
    padding: 0.85rem 2.5rem;
    font-weight: 700;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--homepage-gold), #ffd271);
    color: var(--homepage-primary);
    border: none;
    box-shadow: 0 15px 35px rgba(240, 179, 67, 0.45);
}

.btn-hero-secondary {
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: #fff;
}

.btn-hero-secondary:hover,
.btn-hero-primary:hover {
    transform: translateY(-2px);
}

.donations-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 85% 15%, rgba(240, 179, 67, 0.25), transparent 45%),
        radial-gradient(circle at 20% 25%, rgba(20, 94, 255, 0.25), transparent 55%),
        #0b1126;
    color: #fff;
    padding: 5rem 0;
}

.donations-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3, 26, 84, 0.35), rgba(3, 26, 84, 0));
    opacity: 0.65;
}

.donation-card {
    position: relative;
    z-index: 1;
    background: rgba(5, 8, 24, 0.75);
    border-radius: 28px;
    padding: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 35px 65px rgba(3, 26, 84, 0.45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.donation-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .8rem;
    margin-bottom: 1.25rem;
}

.donation-card h3 {
    font-weight: 700;
    color: #fff;
}

.donation-card ul li {
    margin-bottom: .4rem;
}

.donation-apps {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.donation-apps span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    font-size: .85rem;
    color: rgba(255, 255, 255, 0.85);
}

.donation-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.donation-metric {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.donation-metric small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-top: .25rem;
}

.donation-qr-card {
    position: relative;
    z-index: 1;
    background: var(--bs-card-bg, #fff);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 70px rgba(11, 17, 38, 0.45);
    border: 1px solid rgba(3, 26, 84, 0.08);
}

.donation-qr {
    width: 100%;
    max-width: 260px;
}

.donation-qr-card small,
.donation-qr-card p {
    color: var(--bs-secondary-color, #4a4f60);
}

@media (max-width: 992px) {
    .info-cards {
        margin-top: 2rem;
    }

    .club-logo {
        margin-bottom: 1.5rem;
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .feature-card .card-img-top {
        height: 200px;
    }
}
