:root {
    --union-yellow: #facc15;
    --union-red: #b91c1c;
    --union-green: #166534;
    --text-dark: #1f2937;
    --paper: #fffbeb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto Sans Kannada", "Noto Sans", "Segoe UI", sans-serif;
    color: var(--text-dark);
    background: linear-gradient(165deg, #fef9c3 0%, #dcfce7 45%, #fee2e2 100%);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.top-bar {
    background: linear-gradient(90deg, var(--union-yellow) 0%, var(--union-green) 50%, var(--union-red) 100%);
    color: #ffffff;
    padding: 0.7rem 0;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
}

header {
    padding: 1.5rem 0 2rem;
}

.nav {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ffffff;
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    box-shadow: 0 10px 25px rgba(22, 101, 52, 0.15);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.brand:hover {
    opacity: 0.9;
}

.lang-switch {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background: var(--union-red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.hero {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
    margin-top: 1.5rem;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #fff;
    border-radius: 1.2rem;
    padding: 1.4rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1.2;
    color: #14532d;
    margin-bottom: 0.7rem;
}

.pill {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #7f1d1d;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.cta {
    margin-top: 1rem;
    display: inline-block;
    background: var(--union-green);
    color: #fff;
    border-radius: 0.7rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    font-weight: 700;
}

section {
    margin: 1.2rem 0;
}

.section-title {
    margin-bottom: 0.8rem;
    color: #7f1d1d;
    font-size: 1.4rem;
}

.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.list li {
    padding: 0.7rem;
    border-left: 5px solid var(--union-yellow);
    background: var(--paper);
    border-radius: 0.5rem;
}

.leaders-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.leader-card {
    text-align: center;
}

.leader-photo {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 1rem;
    margin: 0 auto 0.9rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.leader-name {
    color: #14532d;
    margin-bottom: 0.3rem;
}

.leader-role {
    color: #7f1d1d;
    font-weight: 700;
}

/* ================= FOOTER PREMIUM ================= */

.site-footer {
    margin-top: 3rem;
    padding: 1.8rem 0 1.2rem;
    background: linear-gradient(
        90deg,
        rgba(250, 204, 21, 0.12) 0%,
        rgba(22, 101, 52, 0.12) 50%,
        rgba(185, 28, 28, 0.12) 100%
    );
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-inner {
    display: grid;
    gap: 1.2rem;
    align-items: center;
}

/* desktop layout */
@media (min-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr auto;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand:hover {
    opacity: 0.9;
}

.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.footer-text strong {
    display: block;
    color: var(--union-green);
    font-size: 1rem;
}

.footer-text p {
    font-size: 0.9rem;
    color: #4b5563;
}

.footer-contact {
    margin: 0;
    line-height: 1.4;
}

.footer-contact strong {
    display: block;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--union-green);
    font-weight: 700;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-credit {
    text-align: center;
    font-weight: 600;
    color: #374151;
}

@media (min-width: 640px) {
    .footer-credit {
        text-align: right;
    }
}

.footer-credit a {
    color: var(--union-green);
    font-weight: 700;
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#preloader img {
    width: 90px;
    height: auto;
    animation: pulseLogo 1.4s ease-in-out infinite;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* navbar logo */
.logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ===== NAV RIGHT ===== */

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== MENU ===== */

.menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.menu a {
    text-decoration: none;
    font-weight: 700;
    color: var(--union-green);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.menu a:hover {
    background: rgba(22, 101, 52, 0.08);
}

/* mobile */

@media (max-width: 640px) {
    .menu {
        display: none; /* later we can add hamburger */
    }
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* mobile */
@media (max-width: 640px) {
    .hamburger {
        display: block;
    }

    .menu {
        position: absolute;
        top: 70px;
        right: 10px;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        display: none;
    }

.menu.show {
        display: flex;
    }
}

/* ===== ERROR PAGE ===== */
.error-page {
    margin: 1.5rem 0 2.5rem;
}

.error-card {
    max-width: 760px;
    margin: 0 auto;
}

.error-pill {
    background: #fee2e2;
    color: #991b1b;
}

.error-message {
    margin-top: 0.4rem;
    font-size: 1.05rem;
}

.error-note {
    margin-top: 0.75rem;
    color: #4b5563;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.secondary-cta {
    margin-top: 1rem;
    display: inline-block;
    border: 1px solid var(--union-green);
    color: var(--union-green);
    background: #ffffff;
    border-radius: 0.7rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    font-weight: 700;
}

.secondary-cta:hover {
    background: rgba(22, 101, 52, 0.08);
}
