/* ==========================================================================
   NOYA DIGONTO FOUNDATION (নয়া দিগন্ত ফাউন্ডেশন)
   Official Institutional Portal Stylesheet
   Color Palette:
     Navy Blue: #0B3C5D | Warm Golden/Amber: #D9822B | Light Gray: #F4F6F9
     Bangladesh Green: #006A4E | Breaking Red: #C0392B
   ========================================================================== */

:root {
  --primary-navy: #0B3C5D;
  --navy-dark: #07263c;
  --navy-light: #16527d;
  --accent-amber: #D9822B;
  --accent-amber-hover: #b86819;
  --amber-light: #fef5ea;
  --bd-green: #006A4E;
  --bd-red: #D32F2F;
  --bg-page: #eaeff5;
  --bg-boxed: #ffffff;
  --bg-section: #F4F6F9;
  --border-color: #cbd5e1;
  --border-dark: #94a3b8;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-box: 0 10px 25px -5px rgba(11, 60, 93, 0.15);
  --font-bn: 'Hind Siliguri', 'Noto Serif Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-base-size: 15px;
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-base-size);
}

body {
  font-family: var(--font-bn);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(#cbd5e1 0.75px, transparent 0.75px);
  background-size: 16px 16px;
}

body.lang-en {
  font-family: var(--font-en);
}

a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-amber);
}

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

/* Bangladesh National Top Colored Stripe */
.national-accent-bar {
  display: flex;
  height: 4px;
  width: 100%;
}

.national-accent-bar .stripe-green {
  background-color: var(--bd-green);
  flex: 7;
}

.national-accent-bar .stripe-red {
  background-color: var(--bd-red);
  flex: 3;
}

/* Boxed Layout Wrapper (Authentic BD Institutional Gov Grid) */
.portal-wrapper {
  max-width: 1220px;
  margin: 15px auto 40px auto;
  background-color: var(--bg-boxed);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.12);
  border: 1px solid #c8d3df;
  border-radius: 4px;
  overflow: hidden;
}

/* ================= TOP UTILITY STRIP ================= */
.top-utility-bar {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 6px 16px;
}

.utility-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.utility-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.utility-item a:hover {
  color: var(--accent-amber);
}

.utility-item i {
  color: var(--accent-amber);
  font-size: 0.95rem;
}

.utility-separator {
  color: #cbd5e1;
}

.estd-badge {
  background-color: #e2e8f0;
  color: var(--primary-navy);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.estd-badge i {
  color: var(--accent-amber);
}

/* Font Resizer Buttons */
.font-resizer {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.font-resizer button {
  border: none;
  background: transparent;
  padding: 2px 7px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--primary-navy);
  border-right: 1px solid #cbd5e1;
  font-weight: 600;
  transition: background 0.2s;
}

.font-resizer button:last-child {
  border-right: none;
}

.font-resizer button:hover {
  background: #e2e8f0;
}

/* Bilingual Toggle Switch */
.lang-toggle-box {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--primary-navy);
  border-radius: 4px;
  padding: 2px 4px;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--primary-navy);
  transition: all 0.2s;
}

.lang-btn.active {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.lang-divider {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* ================= MAIN INSTITUTIONAL HEADER ================= */
.main-header {
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  border-bottom: 3px solid var(--accent-amber);
  padding: 16px 20px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 18px;
}

.emblem-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #ffffff 60%, #f4f6f9 100%);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(11, 60, 93, 0.15), 0 0 0 1px rgba(217, 130, 43, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.emblem-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(11, 60, 93, 0.22), 0 0 0 2px var(--accent-amber);
}

.official-emblem {
  display: block;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.org-titles {
  display: flex;
  flex-direction: column;
}

.org-name-bn {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.org-name-en {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 0.8px;
  margin-top: 1px;
}

.org-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.org-sub-sub {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.info-pill {
  font-size: 0.78rem;
  background-color: #f1f5f9;
  border: 1px solid #d2d9e1;
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--primary-navy);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.info-pill i {
  color: var(--bd-green);
}

/* Header Gov Seal & Search Mini */
.header-gov-seal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.portal-badge-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--amber-light);
  border: 1px solid #f1c998;
  padding: 6px 12px;
  border-radius: 4px;
}

.portal-badge-box .badge-icon {
  font-size: 1.4rem;
  color: var(--accent-amber);
}

.portal-badge-box .badge-title {
  display: block;
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 0.88rem;
  line-height: 1.2;
}

.portal-badge-box .badge-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.portal-search-mini {
  display: flex;
  width: 220px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  overflow: hidden;
}

.portal-search-mini input {
  width: 100%;
  border: none;
  padding: 5px 8px;
  font-size: 0.82rem;
  outline: none;
  font-family: inherit;
}

.portal-search-mini button {
  background-color: var(--primary-navy);
  color: #fff;
  border: none;
  padding: 0 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.portal-search-mini button:hover {
  background-color: var(--accent-amber);
}

/* ================= SOLID DARK BLUE MAIN NAVIGATION ================= */
.main-navbar {
  background-color: var(--primary-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.nav-item a {
  display: block;
  color: #ffffff;
  padding: 11px 15px;
  font-size: 0.95rem;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-item:first-child a {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-item a:hover,
.nav-item.active a {
  background-color: var(--accent-amber);
  color: #ffffff;
}

.nav-emergency-btn a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #08815a;
  color: #fff;
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid #139f72;
}

.nav-emergency-btn a:hover {
  background-color: #0b9e6f;
  color: #fff;
}

/* ================= BREAKING NEWS / SCROLL TICKER ================= */
.ticker-wrapper {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: stretch;
  height: 38px;
  overflow: hidden;
}

.ticker-label {
  background-color: var(--bd-red);
  color: #ffffff;
  padding: 0 16px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-marquee-box {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  background-color: #fffaf5;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: tickerAnim 32s linear infinite;
  font-size: 0.9rem;
  color: #991b1b;
  font-weight: 500;
  cursor: pointer;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-content span {
  margin-right: 36px;
}

@keyframes tickerAnim {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.ticker-date-badge {
  background-color: #f1f5f9;
  border-left: 1px solid #cbd5e1;
  padding: 0 12px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ================= HERO SECTION (SLIDER + CHAIRMAN) ================= */
.hero-section {
  padding: 16px;
  background-color: #edf2f7;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

/* Boxed Carousel Banner */
.hero-carousel-container {
  position: relative;
  height: 360px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #c5d0dc;
  background-color: #0b3c5d;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: flex-end;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-caption {
  background: linear-gradient(to top, rgba(11, 60, 93, 0.95) 0%, rgba(11, 60, 93, 0.75) 60%, transparent 100%);
  color: #ffffff;
  padding: 30px 24px 20px 24px;
  width: 100%;
}

.badge-carousel {
  background-color: var(--accent-amber);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

.carousel-caption h2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.45;
  max-width: 90%;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(11, 60, 93, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  z-index: 10;
}

.carousel-control:hover {
  background-color: var(--accent-amber);
}

.carousel-control.prev {
  left: 12px;
}

.carousel-control.next {
  right: 12px;
}

.carousel-indicators {
  position: absolute;
  bottom: 12px;
  right: 18px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: 1px solid #fff;
  transition: all 0.2s;
}

.carousel-indicators .indicator.active {
  background: var(--accent-amber);
  width: 22px;
  border-radius: 6px;
}

/* Boxed Welcome Note (Chairman Greeting) */
.hero-welcome-box {
  background: #ffffff;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.box-ribbon {
  background-color: var(--primary-navy);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-bottom: 2px solid var(--accent-amber);
}

.welcome-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 10px 14px;
  background-color: #f8fafc;
  border-bottom: 1px dashed var(--border-color);
}

.leader-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--primary-navy);
  border: 2px solid var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.leader-meta h4 {
  font-size: 0.98rem;
  color: var(--primary-navy);
  line-height: 1.2;
}

.leader-designation {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.welcome-body {
  padding: 12px 14px;
  flex: 1;
}

.welcome-body p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-style: italic;
}

.welcome-footer {
  padding: 10px 14px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-full-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-full-btn:hover {
  color: var(--accent-amber);
}

.seal-text {
  font-size: 0.75rem;
  color: var(--bd-green);
  font-weight: 600;
}

/* ================= KEY STATS RIBBON ================= */
.stats-ribbon {
  background: linear-gradient(135deg, #0B3C5D 0%, #08283e 100%);
  color: #ffffff;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid var(--accent-amber);
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stats-item:last-child {
  border-right: none;
}

.stat-icon {
  font-size: 1.8rem;
  color: var(--accent-amber);
}

.stat-data {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 2px;
}

/* ================= MAIN TWO-COLUMN BODY LAYOUT ================= */
.main-body-container {
  padding: 20px 16px;
  background-color: var(--bg-section);
}

.two-column-layout {
  display: grid;
  grid-template-columns: 69% 31%;
  gap: 20px;
  align-items: start;
}

/* Content Blocks (Left Column) */
.content-block {
  background: #ffffff;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.block-header {
  background: #ffffff;
  border-bottom: 2px solid var(--primary-navy);
  border-left: 5px solid var(--accent-amber);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafbfd;
}

.block-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}

.block-title i {
  color: var(--accent-amber);
}

.block-subtitle-right {
  font-size: 0.8rem;
  color: var(--bd-green);
  font-weight: 600;
  background: #e6f4ea;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid #b7e1cd;
}

.block-header-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.block-header-link:hover {
  color: var(--accent-amber);
}

.badge-count {
  font-size: 0.78rem;
  background: #e2e8f0;
  color: var(--primary-navy);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.term-badge {
  font-size: 0.78rem;
  background: var(--amber-light);
  color: var(--accent-amber-hover);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid #f8d7b3;
  font-weight: 600;
}

.block-body {
  padding: 18px 16px;
}

/* About Section Tri-Box */
.about-lead p {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: justify;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.mv-card {
  background: #f8fafc;
  border: 1px solid #dbe2ea;
  border-top: 3px solid var(--primary-navy);
  padding: 14px 12px;
  border-radius: 3px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mv-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-top-color: var(--accent-amber);
}

.mv-icon {
  font-size: 1.3rem;
  color: var(--accent-amber);
  margin-bottom: 8px;
}

.mv-card h4 {
  font-size: 0.92rem;
  color: var(--primary-navy);
  font-weight: 700;
  margin-bottom: 6px;
}

.mv-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.highlights-box {
  background: #fffaf5;
  border: 1px solid #f9d8b2;
  border-radius: 4px;
  padding: 14px 16px;
  margin-top: 14px;
}

.highlights-box h5 {
  color: #92400e;
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.highlights-list {
  list-style: none;
}

.highlights-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 5px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px dashed #fed7aa;
}

.highlights-list li:last-child {
  border-bottom: none;
}

.highlights-list li i {
  color: var(--accent-amber);
  font-size: 0.75rem;
}

/* Core Welfare Schemes Grid */
.scheme-intro {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.schemes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.scheme-box {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 16px;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  position: relative;
}

.scheme-box:hover {
  border-color: var(--primary-navy);
  box-shadow: 0 4px 12px rgba(11, 60, 93, 0.12);
}

.scheme-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.scheme-tag {
  font-size: 0.75rem;
  background: #e2e8f0;
  color: var(--primary-navy);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
}

.scheme-symbol {
  font-size: 1.4rem;
  color: var(--accent-amber);
}

.scheme-box h4 {
  font-size: 1.02rem;
  color: var(--primary-navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.scheme-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.scheme-features {
  list-style: none;
  margin-bottom: 14px;
  background: #f1f5f9;
  padding: 8px 10px;
  border-radius: 3px;
}

.scheme-features li {
  font-size: 0.8rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.scheme-features li:last-child {
  margin-bottom: 0;
}

.scheme-features li i {
  color: var(--bd-green);
  font-size: 0.82rem;
}

.scheme-btn {
  background: var(--primary-navy);
  color: #fff;
  border: none;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}

.scheme-btn:hover {
  background: var(--accent-amber);
}

/* Recent Activities Grid (4 boxed cards) */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.activity-card {
  border: 1px solid #d2d9e1;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #b0bec5;
}

.activity-thumb {
  position: relative;
  height: 165px;
  overflow: hidden;
}

.activity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.activity-card:hover .activity-thumb img {
  transform: scale(1.05);
}

.card-date {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(11, 60, 93, 0.88);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.activity-content {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--accent-amber-hover);
  font-weight: 700;
  margin-bottom: 5px;
}

.card-title {
  font-size: 0.98rem;
  color: var(--primary-navy);
  line-height: 1.35;
  margin-bottom: 8px;
  font-weight: 700;
}

.card-summary {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.card-action {
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
}

.read-more-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more-link:hover {
  color: var(--accent-amber);
}

/* Executive Committee Table */
.gov-styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  border: 1px solid #cbd5e1;
}

.gov-styled-table th {
  background-color: #0b3c5d;
  color: #ffffff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #16527d;
  font-size: 0.88rem;
}

.gov-styled-table td {
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  color: var(--text-primary);
  vertical-align: middle;
}

.gov-styled-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.gov-styled-table tbody tr:hover {
  background-color: #f1f5f9;
}

.badge-post {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 3px;
}

.badge-post.president {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.badge-post.ed {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-post.vp {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-post.finance {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-post.member {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.table-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Photo Gallery Mini Grid */
.gallery-counter {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gallery-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  height: 120px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #cbd5e1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 60, 93, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 8px;
  text-align: center;
}

.gallery-overlay i {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.gallery-overlay span {
  font-size: 0.75rem;
  line-height: 1.2;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ================= RIGHT NARROW COLUMN (Sidebar Widgets) ================= */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.widget-header {
  background: #0B3C5D;
  color: #ffffff;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-amber);
}

.widget-title {
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.widget-title i {
  color: var(--accent-amber);
}

.widget-more-link {
  font-size: 0.78rem;
  color: #e2e8f0;
  font-weight: 600;
}

.widget-more-link:hover {
  color: var(--accent-amber);
}

.widget-body {
  padding: 12px;
}

/* Notice Board Widget */
.notice-list {
  list-style: none;
}

.notice-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #cbd5e1;
  cursor: pointer;
  transition: background 0.2s;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-item:hover {
  background-color: #f8fafc;
}

.notice-date-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nd-day {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1;
}

.nd-month {
  font-size: 0.68rem;
  color: var(--bd-red);
  font-weight: 600;
}

.notice-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.notice-link {
  font-size: 0.84rem;
  color: var(--primary-navy);
  font-weight: 600;
  line-height: 1.35;
}

.notice-item:hover .notice-link {
  color: var(--accent-amber);
}

.notice-meta {
  font-size: 0.72rem;
  color: var(--bd-red);
  margin-top: 3px;
}

.widget-footer-action {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 8px 12px;
  text-align: center;
}

.btn-block-widget {
  width: 100%;
  background: transparent;
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-navy);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}

.btn-block-widget:hover {
  background: var(--primary-navy);
  color: #fff;
  border-color: var(--primary-navy);
}

/* Management Profiles Widget */
.officer-card {
  display: flex;
  gap: 12px;
  align-items: center;
}

.officer-photo-box {
  width: 60px;
  height: 60px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.photo-placeholder-tie {
  font-size: 1.8rem;
  color: var(--primary-navy);
}

.officer-name {
  font-size: 0.92rem;
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.2;
}

.officer-role {
  font-size: 0.76rem;
  color: var(--accent-amber-hover);
  font-weight: 600;
  display: block;
  margin: 2px 0 4px 0;
}

.officer-contact span {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
}

.officer-contact i {
  color: var(--primary-navy);
  width: 14px;
}

.officer-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 12px 0;
}

/* Citizen Charter Widget */
.charter-brief {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.charter-quick-specs {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 6px 8px;
  margin-bottom: 12px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.78rem;
  border-bottom: 1px dashed #e2e8f0;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-service {
  color: var(--text-primary);
  font-weight: 500;
}

.spec-time {
  font-weight: 700;
  color: var(--bd-green);
}

.btn-charter-download {
  width: 100%;
  background: #006A4E;
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-charter-download:hover {
  background: #00523c;
}

/* Official Downloads Box */
.download-list {
  list-style: none;
}

.download-list li {
  margin-bottom: 8px;
}

.download-list li:last-child {
  margin-bottom: 0;
}

.download-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  transition: all 0.2s;
}

.download-list a:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.file-pdf-icon {
  font-size: 1.4rem;
  color: var(--bd-red);
}

.file-doc-icon {
  font-size: 1.4rem;
  color: var(--primary-navy);
}

.dl-text {
  flex: 1;
}

.dl-text strong {
  display: block;
  font-size: 0.82rem;
  color: var(--primary-navy);
  line-height: 1.3;
}

.dl-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dl-arrow {
  color: var(--accent-amber);
  font-size: 0.95rem;
}

/* Quick Gov Links */
.quick-link-list {
  list-style: none;
}

.quick-link-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.quick-link-list li:last-child {
  border-bottom: none;
}

.quick-link-list a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
}

.quick-link-list a:hover {
  color: var(--primary-navy);
  font-weight: 600;
}

.quick-link-list i {
  color: var(--accent-amber);
  font-size: 0.8rem;
}

/* Helplines Badges */
.helpline-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.help-box {
  background: #fffaf5;
  border: 1px solid #fbd38d;
  padding: 6px;
  border-radius: 3px;
  text-align: center;
}

.help-box .num {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bd-red);
}

.help-box .desc {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ================= CONTACT SECTION ================= */
.contact-section {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 24px 20px;
}

.contact-header {
  text-align: center;
  margin-bottom: 22px;
}

.contact-title {
  font-size: 1.35rem;
  color: var(--primary-navy);
  font-weight: 700;
}

.contact-title i {
  color: var(--accent-amber);
}

.contact-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
}

.contact-details-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 18px;
}

.c-info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.c-info-item:last-child {
  margin-bottom: 0;
}

.c-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--amber-light);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid #f9d8b2;
}

.c-text h5 {
  font-size: 0.9rem;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.c-text p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Form Styling */
.contact-form-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 7px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  background-color: #fbfcfe;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-navy);
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(11, 60, 93, 0.15);
}

.submit-btn {
  background-color: var(--primary-navy);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.submit-btn:hover {
  background-color: var(--accent-amber);
}

.form-feedback {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 0.82rem;
}

.form-feedback.success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-feedback.hidden {
  display: none;
}

/* ================= INSTITUTIONAL FOOTER ================= */
.institutional-footer {
  background-color: #07263c;
  color: #cbd5e1;
  border-top: 4px solid var(--accent-amber);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 24px;
  padding: 30px 20px 24px 20px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.98rem;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent-amber);
}

.footer-org-brand h4 {
  font-size: 1.2rem;
  color: #ffffff;
  border: none;
  padding-bottom: 0;
  margin-bottom: 2px;
}

.footer-org-brand h4::after {
  display: none;
}

.footer-reg-no {
  display: block;
  font-size: 0.78rem;
  color: var(--accent-amber);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 0.83rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 14px;
}

.social-links-gov {
  display: flex;
  gap: 8px;
}

.social-links-gov a {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.social-links-gov a:hover {
  background: var(--accent-amber);
  color: #ffffff;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 7px;
}

.footer-menu a {
  font-size: 0.83rem;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-menu a::before {
  content: '›';
  color: var(--accent-amber);
  font-size: 1rem;
}

.footer-menu a:hover {
  color: #ffffff;
  padding-left: 3px;
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  gap: 10px;
  font-size: 0.83rem;
  color: #cbd5e1;
  margin-bottom: 10px;
  line-height: 1.4;
}

.footer-contact-list a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-list a:hover {
  color: var(--accent-amber);
  text-decoration: underline;
}

.footer-contact-list i {
  color: var(--accent-amber);
  margin-top: 3px;
}

/* Audit Stamp & Visitor Counter */
.audit-badge-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.audit-check {
  font-size: 1.4rem;
  color: #22c55e;
}

.aud-year {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

.aud-firm {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Visitor Counter Odometer Style */
.visitor-counter-box {
  background: #041724;
  border: 1px solid #1e3a5f;
  border-radius: 4px;
  padding: 10px 12px;
}

.counter-header {
  font-size: 0.78rem;
  color: var(--accent-amber);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.counter-digits {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.counter-digits .digit {
  background: #111827;
  color: #22c55e;
  border: 1px solid #374151;
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.counter-meta {
  font-size: 0.74rem;
  color: #94a3b8;
}

.text-success {
  color: #22c55e;
  font-size: 0.6rem;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  background-color: #03141f;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #64748b;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.copyright-text {
  color: #94a3b8;
}

/* ================= MODALS & POPUPS ================= */
.portal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.portal-modal.show {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 4px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.25s ease-out;
}

.modal-dialog.modal-large {
  max-width: 850px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-amber);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.modal-footer {
  background: #f1f5f9;
  padding: 10px 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-gov-primary {
  background: var(--primary-navy);
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-gov-primary:hover {
  background: var(--accent-amber);
}

.btn-gov-secondary {
  background: #e2e8f0;
  color: var(--text-primary);
  border: 1px solid #cbd5e1;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
}

.btn-gov-secondary:hover {
  background: #cbd5e1;
}

/* Modal Notice Content styling */
.notice-modal-meta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
}

.reg-note {
  background: #fffaf5;
  border: 1px solid #fed7aa;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  color: #9a3412;
  margin-bottom: 14px;
}

.modal-action-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Leader Speech styling */
.leader-speech-text p {
  margin-bottom: 12px;
  text-align: justify;
}

.speech-avatar {
  background: #f1f5f9;
  border-left: 4px solid var(--accent-amber);
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 0 4px 4px 0;
}

.speech-avatar h4 {
  color: var(--primary-navy);
  font-size: 0.95rem;
}

.speech-avatar span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-content {
  position: relative;
  max-width: 800px;
  width: 90%;
  text-align: center;
}

.lightbox-content img {
  max-height: 75vh;
  margin: 0 auto;
  border: 2px solid #ffffff;
  border-radius: 3px;
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 10px;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* Toast Notification */
.toast-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 4px;
  border-left: 5px solid var(--accent-amber);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-size: 0.88rem;
  z-index: 2000;
  display: none;
  animation: toastIn 0.3s ease;
}

.toast-popup.show {
  display: block;
}

@keyframes toastIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .two-column-layout {
    grid-template-columns: 1fr;
  }

  .stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hide-tablet {
    display: none !important;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .portal-wrapper {
    margin: 0;
    border-radius: 0;
    border: none;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-container {
    overflow-x: auto;
    padding: 0;
  }

  .nav-links {
    flex-wrap: nowrap;
  }

  .nav-item a {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .nav-emergency-btn {
    display: none;
  }

  .schemes-grid,
  .activities-grid,
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .gallery-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hide-mobile {
    display: none !important;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}