/* ============================================================
   BIHAR LIVESTOCK DEVELOPMENT AGENCY (BLDA) — Master Stylesheet
   Government of Bihar
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gov-navy: #0b3d91;
    --gov-navy-dark: #07306f;
    --gov-saffron: #ff9933;
    --gov-green: #138808;
    --gov-gold: #d4a017;
    --gov-bg: #f7f8fb;
    --gov-text: #1f2937;
    --gov-muted: #4b5563;
    --gov-border: #e2e8f0;
    --gov-card: #ffffff;
    --gov-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--gov-text);
    background: var(--gov-bg);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--gov-navy); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================== TOP STRIP ====================== */
.top-strip {
    background: #0a2855;
    color: #fff;
    font-size: 0.82rem;
    padding: 6px 0;
}
.top-strip .top-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-strip a { color: #ffd569; }
.top-strip .gov-india {
    display: flex; align-items: center; gap: 10px;
}
.tri-bar {
    display: inline-block;
    width: 24px; height: 14px;
    background: linear-gradient(to bottom,
        var(--gov-saffron) 0 33.3%,
        #fff 33.3% 66.6%,
        var(--gov-green) 66.6% 100%);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 2px;
}
.lang-toggle a {
    margin-left: 12px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 2px 8px;
    border-radius: 3px;
}

/* ====================== MAIN HEADER ====================== */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--gov-saffron);
    box-shadow: var(--gov-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.emblem {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gov-saffron), var(--gov-gold));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.title-block { flex: 1; min-width: 0; }
.title-block .hindi {
    font-size: 1.05rem;
    color: var(--gov-navy-dark);
    font-weight: 600;
    line-height: 1.2;
}
.title-block .english {
    font-size: 1.45rem;
    color: var(--gov-navy);
    font-weight: 700;
    margin-top: 2px;
    line-height: 1.2;
}
.title-block .sub {
    font-size: 0.85rem;
    color: var(--gov-muted);
    margin-top: 2px;
}
.header-side {
    text-align: right;
    font-size: 0.8rem;
    color: var(--gov-muted);
}
.header-side strong { color: var(--gov-navy); display: block; font-size: 0.95rem; }

/* ====================== NAVIGATION ====================== */
.main-nav {
    background: var(--gov-navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 99;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.nav-list li a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}
.nav-list li a:hover,
.nav-list li a.active {
    background: var(--gov-navy-dark);
    border-bottom-color: var(--gov-saffron);
}
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    padding: 12px 16px;
    cursor: pointer;
}

/* ====================== HERO / CAROUSEL ====================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0b3d91 0%, #1a5cc8 100%);
    color: #fff;
    overflow: hidden;
    min-height: 380px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,153,51,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(19,136,8,0.15) 0%, transparent 40%);
}
.hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    line-height: 1.2;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}
.hero p { font-size: 1.05rem; margin-bottom: 22px; opacity: 0.95; }
.hero-cta {
    display: inline-block;
    background: var(--gov-saffron);
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
    background: #ff8800;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}
.hero-cta.secondary {
    background: transparent;
    border: 2px solid #fff;
}
.hero-cta.secondary:hover { background: rgba(255,255,255,0.15); }

.hero-image-frame {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 14px;
    backdrop-filter: blur(4px);
}
.hero-image-frame .badge {
    display: inline-block;
    background: var(--gov-saffron);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.hero-image-frame h3 { font-size: 1.1rem; margin-bottom: 4px; }
.hero-image-frame p { font-size: 0.9rem; margin-bottom: 0; opacity: 0.9; }

/* ====================== MARQUEE / NEWS TICKER ====================== */
.news-ticker {
    background: #fff;
    border-top: 1px solid var(--gov-border);
    border-bottom: 1px solid var(--gov-border);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.news-ticker .label {
    background: var(--gov-saffron);
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
    flex-shrink: 0;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.news-ticker marquee, .news-ticker .marquee-content {
    flex: 1;
    padding: 10px 16px;
    color: var(--gov-text);
    font-size: 0.92rem;
}
.news-ticker .marquee-content span { margin-right: 60px; }

/* ====================== SECTIONS ====================== */
section.page-section {
    padding: 56px 0;
}
section.page-section.alt { background: #fff; }

.section-title {
    text-align: center;
    margin-bottom: 36px;
}
.section-title h2 {
    font-size: 1.9rem;
    color: var(--gov-navy);
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--gov-saffron);
}
.section-title p {
    margin-top: 12px;
    color: var(--gov-muted);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ====================== CARD GRID ====================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: var(--gov-card);
    border: 1px solid var(--gov-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gov-shadow);
}
.card .card-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gov-navy), #1a5cc8);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 22px 22px 0;
}
.card-body { padding: 18px 22px 24px; flex: 1; }
.card-body h3 {
    color: var(--gov-navy);
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.card-body p { color: var(--gov-muted); font-size: 0.94rem; }

.card.with-image .card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #eee;
}
.card.with-image .card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card.with-image:hover .card-image img { transform: scale(1.05); }

/* ====================== STATS ====================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.stat-box {
    background: linear-gradient(135deg, var(--gov-navy) 0%, var(--gov-navy-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 28px 18px;
    border-radius: 8px;
    border-bottom: 4px solid var(--gov-saffron);
}
.stat-box .num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gov-saffron);
    display: block;
}
.stat-box .label {
    font-size: 0.95rem;
    margin-top: 6px;
}

/* ====================== MEMBER CARDS ====================== */
.member-card {
    background: #fff;
    border: 1px solid var(--gov-border);
    border-radius: 8px;
    text-align: center;
    padding: 26px 18px;
    transition: transform 0.2s;
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--gov-shadow); }
.member-card .avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gov-saffron), var(--gov-gold));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700;
    margin: 0 auto 14px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--gov-saffron);
}
.member-card h4 {
    color: var(--gov-navy);
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.member-card .role {
    color: var(--gov-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.member-card .designation {
    background: var(--gov-bg);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    color: var(--gov-navy);
    display: inline-block;
}

/* ====================== TABLES ====================== */
.gov-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: var(--gov-shadow);
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.93rem;
}
.gov-table th {
    background: var(--gov-navy);
    color: #fff;
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
}
.gov-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--gov-border);
    vertical-align: top;
}
.gov-table tr:nth-child(even) td { background: #f9fafc; }
.gov-table tr:hover td { background: #eef3fb; }

.table-wrap { overflow-x: auto; }

/* ====================== BREADCRUMB ====================== */
.breadcrumb {
    background: #eef2f8;
    padding: 12px 0;
    font-size: 0.88rem;
    color: var(--gov-muted);
    border-bottom: 1px solid var(--gov-border);
}
.breadcrumb a { color: var(--gov-navy); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.6; }

.page-banner {
    background: linear-gradient(135deg, var(--gov-navy) 0%, #1a5cc8 100%);
    color: #fff;
    padding: 48px 20px;
    text-align: center;
}
.page-banner h1 {
    font-size: 2.1rem;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.page-banner p { opacity: 0.93; }

/* ====================== INFO BOX ====================== */
.info-box {
    background: #fff;
    border: 1px solid var(--gov-border);
    border-left: 5px solid var(--gov-saffron);
    border-radius: 6px;
    padding: 22px 26px;
    margin-bottom: 22px;
}
.info-box h3 { color: var(--gov-navy); margin-bottom: 10px; }
.info-box ul { padding-left: 20px; margin-top: 10px; }
.info-box ul li { margin: 6px 0; color: var(--gov-text); }

.about-content p { margin-bottom: 14px; color: var(--gov-text); }
.about-content h3 { color: var(--gov-navy); margin: 22px 0 10px; }
.about-content ul { padding-left: 22px; margin: 10px 0; }
.about-content ul li { margin: 6px 0; }

.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
    align-items: start;
}
.two-col.reverse { grid-template-columns: 1fr 2fr; }

.side-block {
    background: var(--gov-navy);
    color: #fff;
    padding: 28px 24px;
    border-radius: 8px;
    border-bottom: 4px solid var(--gov-saffron);
}
.side-block h4 {
    margin-bottom: 14px;
    font-size: 1.05rem;
    color: var(--gov-saffron);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.side-block ul { list-style: none; }
.side-block ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 0.92rem;
}
.side-block ul li:last-child { border-bottom: 0; }

/* ====================== GALLERY ====================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.gallery-item {
    background: #fff;
    border: 1px solid var(--gov-border);
    border-radius: 6px;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.2s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img {
    width: 100%; height: 220px;
    object-fit: cover;
    background: #f1f1f1;
}
.gallery-item .caption {
    padding: 12px 14px;
    background: #fff;
    color: var(--gov-navy);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid var(--gov-border);
}

.lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox.show { display: flex; }
.lightbox img {
    max-width: 92%; max-height: 92%;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.lightbox .close {
    position: absolute;
    top: 18px; right: 24px;
    background: #fff;
    color: #000;
    border: 0;
    font-size: 1.4rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
}

/* ====================== CONTACT BLOCKS ====================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.contact-card {
    background: #fff;
    border: 1px solid var(--gov-border);
    border-radius: 8px;
    padding: 26px;
    border-top: 4px solid var(--gov-navy);
}
.contact-card .ico {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--gov-bg);
    color: var(--gov-navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 700;
    margin-bottom: 14px;
}
.contact-card h3 { color: var(--gov-navy); margin-bottom: 8px; font-size: 1.1rem; }
.contact-card p { color: var(--gov-muted); margin-bottom: 4px; font-size: 0.94rem; }
.contact-card a { color: var(--gov-navy); }

.map-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--gov-shadow);
    margin-top: 30px;
    border: 1px solid var(--gov-border);
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ====================== DOWNLOADS ====================== */
.download-card {
    background: #fff;
    border: 1px solid var(--gov-border);
    border-radius: 8px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.download-card:hover { box-shadow: var(--gov-shadow); transform: translateY(-2px); }
.download-card .pdf-ico {
    width: 56px; height: 70px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.download-card .info { flex: 1; }
.download-card .info h4 { color: var(--gov-navy); margin-bottom: 4px; }
.download-card .info p { color: var(--gov-muted); font-size: 0.9rem; }
.download-card .btn-dl {
    background: var(--gov-navy);
    color: #fff;
    padding: 9px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.download-card .btn-dl:hover { background: var(--gov-navy-dark); text-decoration: none; }

/* ====================== FOOTER ====================== */
.site-footer {
    background: #07306f;
    color: #d8e3f5;
    margin-top: 40px;
}
.footer-top {
    padding: 50px 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 32px;
}
.footer-top h4 {
    color: var(--gov-saffron);
    margin-bottom: 14px;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-top ul { list-style: none; }
.footer-top ul li { margin: 7px 0; }
.footer-top ul li a {
    color: #d8e3f5;
    font-size: 0.92rem;
}
.footer-top ul li a:hover { color: var(--gov-saffron); }
.footer-top p { font-size: 0.92rem; line-height: 1.7; }
.footer-bottom {
    background: #051f4d;
    color: #b6c5e0;
    padding: 14px 20px;
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom a { color: var(--gov-saffron); }
.footer-policies {
    background: #051f4d;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 10px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #b6c5e0;
}
.footer-policies a {
    color: #fff;
    margin: 0 12px;
    text-decoration: none;
}
.footer-policies a:hover { color: var(--gov-saffron); text-decoration: underline; }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; }
    .two-col, .two-col.reverse { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; text-align: center; }
    .header-side { text-align: center; }
    .title-block { text-align: center; }

    .nav-toggle { display: block; }
    .nav-list {
        flex-direction: column;
        width: 100%;
        display: none;
    }
    .nav-list.open { display: flex; }
    .nav-list li { width: 100%; }
    .nav-list li a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero h1 { font-size: 1.7rem; }
    .section-title h2 { font-size: 1.5rem; }
    .page-banner h1 { font-size: 1.6rem; }

    .download-card { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
    .top-strip .top-flex { justify-content: center; }
    .emblem { width: 56px; height: 56px; font-size: 1.3rem; }
    .title-block .english { font-size: 1.15rem; }
    .title-block .hindi { font-size: 0.95rem; }
}
