:root {
    --gov-navy: #0b3a68;
    --gov-navy-dark: #06203a;
    --gov-saffron: #ff9933;
    --gov-green: #138808;
    --bg-light: #f4f7f6;
    --text-dark: #222222;
    --text-gray: #555555;
    --border: #dce1e5;
}

html { font-size: 16px; transition: font-size 0.3s ease; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Open Sans', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); overflow-x: hidden; line-height: 1.6; top: 0 !important; }
h1, h2, h3, h4 { font-family: 'Roboto', sans-serif; }
a { text-decoration: none; color: var(--gov-navy); transition: 0.2s; }
a:hover { color: var(--gov-saffron); }

.goi-topbar {
    background-color: #1a1a1a; color: #fff; padding: 6px 5%;
    display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem;
    flex-wrap: wrap; gap: 10px;
}
.accessibility span { margin: 0 2px; cursor: pointer; padding: 2px 8px; border: 1px solid #444; border-radius: 3px; font-weight: bold; background: #222;}
.accessibility span:hover { background: var(--gov-saffron); border-color: var(--gov-saffron); }
#lang-selector { background:#333; color:#fff; border:1px solid #555; padding: 4px 8px; border-radius: 3px; font-weight: bold; cursor: pointer; outline: none;}

.header-main {
    background-color: #ffffff; padding: 20px 5%; display: flex; justify-content: space-between;
    align-items: center; border-bottom: 4px solid var(--gov-saffron); flex-wrap: wrap; gap: 15px;
}
.header-left { display: flex; align-items: center; gap: 20px; width: 100%;}
.national-emblem { width: 65px; height: auto; object-fit: contain; flex-shrink: 0;} 
.titles h1 { font-size: 1.6rem; color: var(--gov-navy); font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.2;}
.titles h2 { font-size: 1rem; color: var(--text-gray); font-weight: 500; margin-bottom: 3px;}
.header-right { text-align: right; }
.header-right h3 { color: var(--gov-green); font-size: 1.5rem; }

.navbar { background-color: var(--gov-navy); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.15); display: flex; flex-direction: column; }
.menu-toggle { display: none; color: #ffffff; padding: 15px 5%; font-weight: 700; cursor: pointer; font-size: 1.1rem; background-color: var(--gov-navy-dark); }
.nav-links { display: flex; width: 100%; padding: 0 5%; }
.nav-item { color: #ffffff; padding: 15px 20px; font-weight: 600; cursor: pointer; font-size: 0.95rem; border-right: 1px solid rgba(255,255,255,0.1); transition: 0.3s; flex-shrink: 0; }
.nav-item:hover, .nav-item.active { background-color: var(--gov-saffron); }
.nav-emergency { background-color: #d32f2f; margin-left: auto; border: none; font-weight: 700;}
.nav-emergency:hover { background-color: #b71c1c; }

.ticker { background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; font-size: 0.9rem; }
.ticker-label { background: var(--gov-saffron); color: #fff; padding: 8px 20px; font-weight: 700; white-space: nowrap; z-index: 2;}
.ticker-wrap { overflow: hidden; width: 100%; white-space: nowrap; padding-left: 20px; color: #d32f2f; font-weight: 600;}
.ticker-text { display: inline-block; animation: scrollLeft 35s linear infinite; }
@keyframes scrollLeft { 100% { transform: translateX(-100%); } }

.page-view { display: none; padding-bottom: 60px; animation: fadeIn 0.4s ease; }
.page-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.hero-section { background: linear-gradient(rgba(11, 58, 104, 0.8), rgba(11, 58, 104, 0.8)), url('29.jpg') center/cover; padding: 80px 5%; color: white; margin-bottom: 40px; }

.breadcrumb { padding: 15px 5%; background: #e9ecef; font-size: 0.85rem; color: var(--text-gray); margin-bottom: 30px; border-bottom: 1px solid var(--border);}
.container { padding: 0 5%; max-width: 1500px; margin: 0 auto; }
.grid-row { display: grid; grid-template-columns: 3fr 1fr; gap: 30px; }
.grid-row > div { min-width: 0; }
.section-heading { font-size: 1.8rem; color: var(--gov-navy); border-bottom: 3px solid var(--gov-saffron); padding-bottom: 8px; margin-bottom: 25px; display: inline-block; font-weight: 700; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 25px; margin-bottom: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }

.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.pillar-card { background: #fff; border: 1px solid var(--border); padding: 25px; border-radius: 6px; text-align: center; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.03);}
.pillar-card:hover { transform: translateY(-5px); border-color: var(--gov-navy); box-shadow: 0 10px 20px rgba(0,0,0,0.08);}
.pillar-icon { font-size: 2.5rem; color: var(--gov-saffron); margin-bottom: 15px; }

.steps-container { display: flex; gap: 20px; background: #e3f2fd; padding: 30px; border-radius: 8px; border-left: 5px solid #1565c0; margin-bottom: 40px;}
.step-box { flex: 1; background: #fff; padding: 20px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: relative;}
.step-num { position: absolute; top: -15px; left: 20px; background: #1565c0; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold;}

.alert-list { list-style: none; }
.alert-list li { border-left: 3px solid #d32f2f; padding-left: 15px; margin-bottom: 15px; background: #ffebee; padding: 10px 15px;}
.alert-date { font-size: 0.8rem; color: #c62828; font-weight: 700; display: block; margin-bottom: 3px;}

.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-box { background: #fff; border-top: 4px solid var(--gov-navy); padding: 25px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.stat-num { font-size: 2.5rem; font-weight: 900; color: var(--gov-navy); font-family: 'Roboto'; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-bottom: 40px;}
.gallery-item { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column;}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--gov-saffron);}

.gallery-item img { width: 100%; height: 280px; object-fit: contain; background-color: #f8f9fa; padding: 10px; display: block; border-bottom: 1px solid #eee; cursor: zoom-in; }
.gallery-item.landscape img { height: 200px; }

.gallery-text { padding: 15px; flex-grow: 1;}
.gallery-text h4 { color: var(--gov-navy); margin-bottom: 8px; font-size: 1.1rem; }
.badge { display: inline-block; padding: 3px 10px; font-size: 0.75rem; border-radius: 12px; font-weight: 700; margin-bottom: 10px;}
.badge-red { background: #ffebee; color: #c62828; }
.badge-blue { background: #e3f2fd; color: #1565c0; }
.badge-green { background: #e8f5e9; color: #2e7d32; }

.hero-story { display: flex; gap: 30px; background: #fff; padding: 30px; border: 1px solid var(--border); box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 40px;}
.hero-story img { width: 40%; object-fit: contain; border-radius: 4px; cursor: zoom-in;}
.sidebar-img { width: 100%; border-radius: 4px; margin-bottom: 15px; cursor: zoom-in; object-fit: contain; background: #f8f9fa; max-height: 300px;}

footer { background: var(--gov-navy-dark); color: #fff; padding: 40px 5% 20px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; }
.footer-grid h4 { border-bottom: 2px solid var(--gov-saffron); padding-bottom: 8px; margin-bottom: 15px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul li a { color: #b0bec5; }

#lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); justify-content: center; align-items: center; }
#lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; box-shadow: 0 0 20px rgba(0,0,0,0.5); border: 2px solid #fff;}
.close-lightbox { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-lightbox:hover { color: var(--gov-saffron); }

.bb-chart-wrapper { background: #000; color: #fff; padding: 25px; border-radius: 6px; margin-bottom: 40px; font-family: 'Roboto', sans-serif; overflow-x: auto; box-shadow: 0 5px 15px rgba(0,0,0,0.2);}
.bb-chart-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; color: #fff; }
.bb-chart-header { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 20px; border-bottom: 2px solid #fff; padding-bottom: 10px; font-weight: 700; font-size: 0.95rem; margin-bottom: 15px; min-width: 600px;}
.bb-chart-row { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 20px; align-items: center; margin-bottom: 12px; font-size: 0.9rem; min-width: 600px;}
.bb-bar-container { display: flex; align-items: center; gap: 10px; width: 100%; }
.bb-bar-amount { background: #1a73e8; height: 16px; min-width: 2px; transition: width 1.5s ease-in-out; }
.bb-bar-count { background: #ff5722; height: 16px; min-width: 2px; transition: width 1.5s ease-in-out; }
.bb-source { font-size: 0.8rem; color: #aaa; margin-top: 20px; border-top: 1px solid #333; padding-top: 10px;}
.live-pulse { color: #ffeb3b; font-weight: bold; animation: pulse 1s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

@media (max-width: 1024px) {
    .grid-row { grid-template-columns: 1fr; }
    .hero-story { flex-direction: column; }
    .hero-story img { width: 100%; max-height: 300px;}
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-container { flex-direction: column; gap: 30px;}
    .hm-gallery-mini { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 768px) {
    .goi-topbar { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 10px 5%; }
    .hide-mobile { display: none; }
    .header-main { flex-direction: column; text-align: center; padding: 20px 5%; }
    .header-left { flex-direction: column; text-align: center; gap: 12px; }
    .national-emblem { width: 55px; }
    .titles h1 { font-size: 1.3rem; margin-top: 5px;}
    .titles h2 { font-size: 0.9rem; }
    .header-right { text-align: center; width: 100%; margin-top: 15px; border-top: 1px dashed var(--border); padding-top: 15px;}
    .menu-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; padding: 0; width: 100%; }
    .nav-links.show { display: flex; }
    .nav-item { width: 100%; text-align: left; padding: 12px 5%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-emergency { margin-left: 0; text-align: center; }
    .ticker { flex-direction: column; align-items: stretch;}
    .ticker-label { text-align: center; }
    .ticker-wrap { padding: 10px 0; }
    .hero-section { padding: 40px 5%; }
    .hero-section h1 { font-size: 1.8rem !important; }
    .dash-stats { grid-template-columns: 1fr; gap: 15px;}
    .footer-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr; }
    .hm-gallery-mini { grid-template-columns: 1fr !important; }
    .bb-chart-wrapper { padding: 15px; -webkit-overflow-scrolling: touch; }
    .bb-chart-title { font-size: 1.1rem; }
}