/* Heritage Fest 2026 Results - landing page (saffron & gold theme) */
:root {
    --hf-saffron-dark: #8a2e00;
    --hf-saffron: #c24a00;
    --hf-orange: #e8650c;
    --hf-amber: #f59f00;
    --hf-gold: #ffd166;
    --hf-text: #2b1a10;
    --hf-muted: #6f5d50;
    --hf-line: #f1e3d0;
    --hf-bg: #fdf7ee;

    /* card colours = colours of each results page */
    --hf-main: #0d5c50;
    --hf-main-2: #2e8a6e;
    --hf-online: #0b1178;
    --hf-online-2: #2c3aa8;
    --hf-east: #5c1024;
    --hf-east-2: #8a2a3c;
    --hf-vatsalya: #6a1b4d;
    --hf-vatsalya-2: #a3407e;
}

body.hf-results {
    font-family: 'Open Sans', sans-serif;
    background: var(--hf-bg);
    color: var(--hf-text);
}

/* ---------- Hero / banner ---------- */
.hf-hero {
    position: relative;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 209, 102, .22) 0, transparent 55%),
        radial-gradient(circle at 92% 85%, rgba(245, 159, 0, .28) 0, transparent 40%),
        linear-gradient(125deg, #5a1a00 0%, var(--hf-saffron-dark) 35%, var(--hf-saffron) 70%, var(--hf-orange) 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* dotted texture on the sides */
.hf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 28%, transparent 72%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0, transparent 28%, transparent 72%, #000 100%);
    pointer-events: none;
}

.hf-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(30px, 3vw, 48px) 16px 4px;
}

.hf-logo-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(50, 12, 0, .28);
}

.hf-logo-pill img {
    display: block;
    height: clamp(34px, 3vw, 44px);
    width: auto;
}

.hf-title {
    margin: 22px 0 0;
    font-weight: 700;
    font-size: clamp(28px, 3vw, 50px);
    line-height: 1.15;
    letter-spacing: -.01em;
    color: #fff;
    text-shadow: 0 3px 14px rgba(50, 12, 0, .25);
}

.hf-title span {
    color: var(--hf-gold);
}

.hf-title-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px auto 0;
}

.hf-title-bar::before,
.hf-title-bar::after {
    content: "";
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: var(--hf-gold);
}

.hf-title-bar span {
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: var(--hf-gold);
}

.hf-subtitle {
    max-width: 640px;
    margin: 18px auto 0;
    font-size: 17px;
    opacity: .96;
}

.hf-wave {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: clamp(50px, 6vw, 100px);
    margin-top: 16px;
    margin-bottom: -1px;
}

/* ---------- Layout ---------- */
.hf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.hf-main {
    position: relative;
    z-index: 2;
    margin-top: 12px;
    padding-bottom: 72px;
}

.hf-section-head {
    text-align: center;
    margin-bottom: 28px;
}

.hf-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--hf-line);
    box-shadow: 0 6px 18px rgba(138, 46, 0, .08);
    color: var(--hf-saffron);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hf-section-kicker .fa {
    color: var(--hf-amber);
}

.hf-section-title {
    margin: 14px 0 0;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    color: var(--hf-text);
}

/* ---------- Tabs (cards) ---------- */
.hf-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.hf-tabs > .hf-tab {
    flex: 0 1 calc((100% - 66px) / 4);
    min-width: 250px;
}

.hf-tab {
    --c1: var(--hf-main);
    --c2: var(--hf-main-2);
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hf-line);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(90, 40, 0, .08);
    color: var(--hf-text);
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.hf-tab-online {
    --c1: var(--hf-online);
    --c2: var(--hf-online-2);
}

.hf-tab-east {
    --c1: var(--hf-east);
    --c2: var(--hf-east-2);
}

.hf-tab-vatsalya {
    --c1: var(--hf-vatsalya);
    --c2: var(--hf-vatsalya-2);
}

.hf-tab:hover,
.hf-tab:focus-visible {
    color: var(--hf-text);
    transform: translateY(-8px);
    box-shadow: 0 22px 46px rgba(90, 40, 0, .16);
    outline: none;
}

.hf-tab-head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 26px 24px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .18) 0, transparent 45%),
        linear-gradient(130deg, var(--c1) 0%, var(--c2) 100%);
    color: #fff;
    overflow: hidden;
}

.hf-tab-head::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.2px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(270deg, #000 0, transparent 60%);
    mask-image: linear-gradient(270deg, #000 0, transparent 60%);
    pointer-events: none;
}

.hf-tab-num {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, .16);
}

.hf-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    color: var(--hf-gold);
    font-size: 26px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.hf-tab:hover .hf-tab-icon,
.hf-tab:focus-visible .hf-tab-icon {
    background: var(--hf-gold);
    color: var(--c1);
    transform: rotate(-6deg) scale(1.05);
}

.hf-tab-title {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-size: 23px;
    font-weight: 700;
}

.hf-tab-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    padding: 20px 26px 26px;
    border-top: 3px solid var(--hf-gold);
}

.hf-tab-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--hf-muted);
    flex-grow: 1;
}

.hf-tab-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--c1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background .25s ease;
}

.hf-tab:hover .hf-tab-cta {
    background: var(--c2);
}

.hf-tab-cta .fa {
    transition: transform .25s ease;
}

.hf-tab:hover .hf-tab-cta .fa {
    transform: translateX(4px);
}

/* ---------- Footer (saffron theme) ---------- */
.footer-section {
    background: linear-gradient(105deg, #3d1400 5%, #8a2e00 60%, #c24a00 115%);
}

.footer-text a {
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .hf-tabs {
        max-width: 900px;
        margin: 0 auto;
    }

    .hf-tabs > .hf-tab {
        flex-basis: calc((100% - 22px) / 2);
    }
}

@media (max-width: 767px) {
    .hf-tabs {
        max-width: 560px;
        margin: 0 auto;
        gap: 20px;
    }

    .hf-tabs > .hf-tab {
        flex-basis: 100%;
        min-width: 0;
    }

}

@media (max-width: 575px) {
    .hf-subtitle {
        font-size: 15px;
    }

    .hf-logo-pill {
        padding: 6px 16px;
    }

    .hf-logo-pill img {
        height: 30px;
    }

    .hf-tab-head {
        padding: 22px 20px 20px;
    }

    .hf-tab-body {
        padding: 18px 20px 22px;
    }

    .hf-tab-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .hf-tab-title {
        font-size: 20px;
    }
}
