/* ==========================================================
   Canning-II Block Digital Portal — Public Site
   Design tokens: Govt of India / WB portal aesthetic
   ========================================================== */
:root {
    --navy: #0a2f5c;
    --navy-dark: #071f3d;
    --saffron: #ff9933;
    --green: #138808;
    --gold: #c9971e;
    --bg-light: #f5f7fa;
    --text-dark: #1b1f24;
    --border-grey: #dfe4ea;
    --font-display: 'Merriweather', Georgia, serif;
    --font-body: 'Noto Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    margin: 0;
}

h1, h2, h3, h4, .site-title h1 {
    font-family: var(--font-display);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #fff;
    color: var(--navy);
    padding: 10px 16px;
    z-index: 2000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Tricolor strip */
.tricolor-strip {
    height: 5px;
    background: linear-gradient(90deg, var(--saffron) 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%);
}

/* Top utility bar */
.top-bar {
    background: var(--navy-dark);
    color: #cfd8e3;
    font-size: 0.82rem;
    padding: 6px 0;
}
.top-bar a { color: #cfd8e3; text-decoration: none; margin: 0 4px; }
.top-bar a:hover { color: #fff; text-decoration: underline; }
.top-bar .divider { color: #52607a; }

/* Header */
.site-header {
    background: var(--navy);
    color: #fff;
}
.emblem-box {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.site-title h1 { font-size: 1.4rem; color: #fff; }
.site-title .tagline { font-size: 0.85rem; color: #b9c6da; font-family: var(--font-body); }
.header-actions .btn-outline-light { border-color: #b9c6da; }

/* Main nav */
.main-nav {
    background: var(--gold);
}
.main-nav .navbar-nav .nav-link {
    color: var(--navy-dark);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 14px;
}
.main-nav .navbar-nav .nav-link:hover {
    background: rgba(10, 47, 92, 0.08);
}

.nav-search { max-width: 220px; }

/* Hero slider */
.hero-slide {
    height: 380px;
    display: flex;
    align-items: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.hero-slide-1 { background: linear-gradient(135deg, var(--navy), #1a5a99); }
.hero-slide-2 { background: linear-gradient(135deg, var(--navy-dark), var(--green)); }
.hero-slide-3 { background: linear-gradient(135deg, #7a1f1f, var(--navy-dark)); }
.hero-slide h2 { font-size: 2.1rem; max-width: 650px; }
.hero-slide p { font-size: 1.05rem; max-width: 550px; opacity: 0.9; }

/* Emergency banner */
.emergency-banner {
    background: #b32424;
    color: #fff;
    font-size: 0.9rem;
}

/* Quick links */
.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    padding: 20px 10px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.88rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}
.quick-link-card i { font-size: 1.6rem; color: var(--saffron); }
.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(10,47,92,0.12);
    color: var(--navy);
}

/* Content cards */
.content-card {
    background: #fff;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    padding: 20px;
}
.section-title {
    font-size: 1.1rem;
    color: var(--navy);
    border-bottom: 2px solid var(--saffron);
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.section-title i { color: var(--saffron); margin-right: 6px; }
.news-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-grey);
}
.news-list li:last-child { border-bottom: none; }
.news-list a { color: var(--text-dark); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.news-list a:hover { color: var(--navy); text-decoration: underline; }

/* GP cards */
.gp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border-grey);
    border-left: 4px solid var(--green);
    border-radius: 6px;
    padding: 18px 8px;
    text-decoration: none;
    color: var(--navy-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}
.gp-card i { font-size: 1.4rem; color: var(--green); }
.gp-card:hover { background: #f0f7ee; color: var(--navy-dark); }

/* Auth card */
.auth-card {
    background: #fff;
    border: 1px solid var(--border-grey);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(10,47,92,0.08);
}
.auth-card h2 { color: var(--navy); font-size: 1.5rem; }
.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
}
.btn-primary:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
}

/* Floating SOS button */
.sos-float {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #c62828;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(198,40,40,0.5);
    z-index: 1500;
    animation: sos-pulse 1.8s infinite;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.sos-float i { font-size: 1.2rem; margin-bottom: 2px; }
.sos-float:hover { color: #fff; background: #a51f1f; }
@keyframes sos-pulse {
    0% { box-shadow: 0 0 0 0 rgba(198,40,40,0.55); }
    70% { box-shadow: 0 0 0 14px rgba(198,40,40,0); }
    100% { box-shadow: 0 0 0 0 rgba(198,40,40,0); }
}

/* Footer */
.site-footer {
    background: var(--navy-dark);
    color: #c9d4e3;
    padding: 40px 0 20px;
    margin-top: 40px;
    font-size: 0.88rem;
}
.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #c9d4e3; text-decoration: none; }
.footer-links a:hover { color: var(--saffron); }

/* Status badges (complaint / SOS tracking) */
.badge.status-pending { background: #ff9933 !important; }
.badge.status-accepted { background: #0a2f5c !important; }
.badge.status-in_progress { background: #6c757d !important; }
.badge.status-resolved { background: #138808 !important; }
.badge.status-rejected { background: #c62828 !important; }

@media (max-width: 767px) {
    .hero-slide { height: 300px; }
    .hero-slide h2 { font-size: 1.5rem; }
    .site-title h1 { font-size: 1.1rem; }
}
