﻿/* ================================================================
   GovSchool - Arunachal Pradesh Government School
   Light theme: exact match education.arunachal.gov.in
   Navbar #344aa0 | Footer #1c2331 | Saffron #ff671f
   ================================================================ */

:root {
  --blue:       #344aa0;
  --blue-hover: #2a3b85;
  --gov-blue:   #344aa0;
  --gov-green:  #0c7c3e;
  --saffron:    #ff671f;
  --text:       #212529;
  --text-muted: #6c757d;
  --border:     #dee2e6;
  --footer-bg:  #1c2331;
}

/* ---- Base ---- */
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: #fff;
  color: var(--text);
}
a { color: var(--blue); }
a:hover { color: var(--blue-hover); text-decoration: none; }

.gov-wide-container {
  max-width: 1680px;
  padding-left: 28px;
  padding-right: 28px;
}

/* ---- Government Top Bar ---- */
.gov-topbar {
  background: #f8f9fa;
  color: var(--text-muted);
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.gov-topbar .gov-tab {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  padding: 4px 14px;
  border-right: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.gov-topbar .gov-tab:hover { background: #e9ecef; color: var(--text); }
.gov-topbar .gov-tab:first-child { border-left: 1px solid var(--border); }
.gov-topbar .right-controls a,
.gov-topbar .right-controls span {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  margin-left: 10px;
}
.gov-topbar .right-controls a:hover { color: var(--blue); }

/* ---- Branded Header ---- */
.gov-header {
  background: #fff;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.gov-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.gov-school-name .name-long {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.2;
}
.gov-school-name .name-short {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.gov-school-name .name-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.state-emblem {
  height: 72px;
  width: auto;
  object-fit: contain;
}

/* ---- Navbar ---- */
.gov-navbar {
  background: var(--blue) !important;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 8px 20px rgba(23, 36, 80, .22);
}
.gov-navbar .navbar-toggler {
  border-color: rgba(255,255,255,.4);
  margin: 6px 0;
}
.gov-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.gov-navbar .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 14px 14px !important;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}
.gov-navbar .nav-link:hover,
.gov-navbar .nav-link.active-page {
  color: #fff !important;
  border-bottom-color: var(--saffron);
  background: rgba(255,255,255,.12);
}
.gov-navbar .nav-login {
  color: #fff !important;
  background: var(--saffron);
  border-radius: 3px;
  margin: 8px 0 8px 8px;
  padding: 6px 14px !important;
  border-bottom: none !important;
}
.gov-navbar .nav-login:hover { background: #d4550f !important; }

/* ---- News Ticker ---- */
.gov-ticker {
  background: var(--saffron);
  color: #fff;
  font-size: 13px;
  overflow: hidden;
}
.gov-ticker .ticker-label {
  background: #c85000;
  color: #fff;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.gov-ticker marquee { line-height: 2.2; }
.gov-ticker a { color: #fff; margin: 0 4px; }
.gov-ticker a:hover { color: #ffe; }

/* ---- Hero Carousel ---- */
.gov-carousel .carousel-item img { max-height: 460px; object-fit: cover; }
.gov-carousel .carousel-caption {
  background: rgba(0,0,0,.55);
  border-radius: 4px;
  padding: 14px 20px;
  bottom: 28px; left: 8%; right: 8%;
  text-align: left;
}
.gov-carousel .carousel-caption h3 { font-size: 1.4rem; font-weight: 700; }
.gov-carousel .carousel-control-prev,
.gov-carousel .carousel-control-next {
  width: 42px; height: 42px;
  top: 50%; transform: translateY(-50%);
  background: rgba(52,74,160,.7);
  border-radius: 50%;
}
.gov-carousel .carousel-control-prev:hover,
.gov-carousel .carousel-control-next:hover { background: var(--blue); }

/* ---- Content section ---- */
.gov-content-bg {
  background: #f8f9fa;
  padding: 42px 0;
  border-top: 1px solid var(--border);
}

/* ---- Panels ---- */
.gov-panel {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(33, 37, 41, .10);
}
.gov-panel-head {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 16px;
  flex-shrink: 0;
}
.gov-panel-body {
  flex: 1;
  overflow-y: auto;
  max-height: 340px;
}
.gov-panel-body::-webkit-scrollbar { width: 4px; }
.gov-panel-body::-webkit-scrollbar-thumb { background: #c5cfe8; border-radius: 2px; }

.gov-item {
  display: flex;
  align-items: flex-start;
  padding: 8px 14px;
  border-bottom: 1px solid #f1f3f5;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  gap: 8px;
  transition: background .1s;
}
.gov-item:hover { background: #eef2ff; color: var(--blue); text-decoration: none; }
.gov-item i { color: var(--saffron); margin-top: 2px; flex-shrink: 0; }
.gov-item-date { font-size: 10px; color: #999; white-space: nowrap; flex-shrink: 0; }
.gov-item-empty { color: #999; font-size: 13px; padding: 24px 14px; text-align: center; }

.gov-panel-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  text-align: center;
  flex-shrink: 0;
  background: #fafbfd;
}
.gov-panel-foot a { color: var(--blue); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.gov-panel-foot a:hover { color: var(--blue-hover); }

/* Fixed three-panel row: sized to cleanly fit up to 5 items */
@media (min-width: 992px) {
  .gov-panel-fixed {
    height: 410px;
  }

  .gov-panel-fixed .gov-panel-body,
  .gov-panel-fixed .gov-tab-content {
    height: 275px;
    min-height: 275px;
    max-height: 275px;
  }
}

/* Notice tabs inside panel */
.gov-tabs { border-bottom: 1px solid var(--border); padding: 0 8px; flex-shrink: 0; }
.gov-tabs .nav-link {
  color: var(--text-muted) !important;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  transition: all .15s;
  background: transparent !important;
}
.gov-tabs .nav-link.active { color: var(--blue) !important; border-bottom-color: var(--blue); }
.gov-tab-content { flex: 1; overflow-y: auto; max-height: 310px; }
.gov-tab-content::-webkit-scrollbar { width: 4px; }
.gov-tab-content::-webkit-scrollbar-thumb { background: #c5cfe8; border-radius: 2px; }

/* ---- About section ---- */
.gov-about {
  background: #f8f9fa;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.gov-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.gov-section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 50px; height: 3px;
  background: var(--saffron);
  border-radius: 2px;
}
.gov-section-title.center::after { left: 50%; transform: translateX(-50%); }
.gov-about p { color: #495057; font-size: 15px; line-height: 1.85; }

/* ---- Cards ---- */
.gov-cards-bg {
  background: #fff;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.gov-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  height: 100%;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  box-shadow: 0 10px 26px rgba(33, 37, 41, .10);
  transition: transform .2s, box-shadow .2s, border-top-color .2s;
}
.gov-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(33, 37, 41, .14); border-top-color: var(--saffron); }
.gov-card-icon { font-size: 2.4rem; margin-bottom: 14px; color: var(--blue); }
.gov-card h5 { font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.gov-card p { font-size: 13.5px; color: #555; margin: 0; text-align: justify; }

/* ---- Map section ---- */
.gov-map-section {
  background: #f8f9fa;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.gov-map-section iframe {
  width: 100%;
  height: 340px;
  border: none;
  border-radius: 5px;
}

/* ---- Auto-scrolling logo carousel ---- */
.gov-logo-strip {
  background: #fff;
  padding: 18px 0;
  overflow: hidden;
  border-top: 3px solid var(--blue);
  border-bottom: 1px solid var(--border);
}
.gov-logo-strip .strip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}
.logo-scroll-track {
  display: flex;
  align-items: center;
  gap: 50px;
  width: max-content;
  animation: logo-marquee 28s linear infinite;
}
.logo-scroll-track:hover { animation-play-state: paused; }
@keyframes logo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-scroll-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.logo-scroll-item img {
  height: 48px;
  max-width: 100px;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: .8;
  transition: all .2s;
}
.logo-scroll-item:hover img { filter: none; opacity: 1; }
.logo-scroll-item span { font-size: 9px; color: #666; white-space: nowrap; }

/* ---- Footer ---- */
.gov-footer {
  background: var(--footer-bg);
  color: #adb5bd;
  padding: 44px 0 16px;
  border-top: 3px solid var(--blue);
}
.gov-footer h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.gov-footer ul { list-style: none; padding: 0; margin: 0; }
.gov-footer ul li { padding: 4px 0; font-size: 13px; }
.gov-footer ul li::before { content: '>'; margin-right: 6px; color: #74a4f5; }
.gov-footer a { color: #adb5bd; text-decoration: none; }
.gov-footer a:hover { color: #fff; }
.gov-footer-brand { font-size: 13px; line-height: 1.8; }
.gov-footer-social { display: flex; gap: 8px; margin-top: 12px; }
.gov-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #adb5bd;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.gov-footer-social a:hover { background: var(--blue); color: #fff; }
.gov-footer-divider { border-color: rgba(255,255,255,.1); margin: 22px 0 12px; }
.gov-footer-bottom { font-size: 12px; color: #55647a; text-align: center; }
.gov-footer-bottom a { color: #55647a; }
.gov-footer-bottom a:hover { color: #fff; }

@media (max-width: 991.98px) {
  .gov-wide-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .gov-panel-body {
    max-height: 320px;
  }

  .gov-panel-fixed {
    height: auto;
  }

  .gov-panel-fixed .gov-panel-body,
  .gov-panel-fixed .gov-tab-content {
    height: auto;
    min-height: 0;
    max-height: 320px;
  }
}