/* MSBTE Official Theme Custom Extensions */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');

:root {
  --primary-navy: #003366;
  --secondary-navy: #002244;
  --msbte-blue: #5378a2;
  --msbte-orange: #ff8c00;
  --msbte-gold: #faaf3b;
  --msbte-dark-blue: #032d5e;
  --msbte-bg-light: #f4f7fa;
  --msbte-border: #d6e0ea;
}

body {
  font-family: 'Poppins', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #333333;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

/* Top Accessibility Bar */
.gov-top-bar {
  background: #222222;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid #444444;
}

.gov-top-bar a {
  color: #eeeeee;
  text-decoration: none;
  font-size: 12px;
  margin-right: 15px;
}

.gov-top-bar a:hover {
  color: var(--msbte-gold);
}

.gov-access-btn {
  background: transparent;
  border: 1px solid #777777;
  color: #ffffff;
  padding: 1px 6px;
  font-size: 11px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 3px;
}

.gov-access-btn:hover {
  background: #555555;
}

/* Fixed Header */
.msbte-header {
  background: #ffffff;
  border-bottom: 3px solid var(--primary-navy);
  padding: 10px 0;
}

.msbte-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 15px;
}

.msbte-logo-img {
  width: 85px;
  height: 85px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--primary-navy);
  background: #ffffff;
  padding: 2px;
}

.msbte-title-box h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
  line-height: 1.25;
}

.msbte-title-box h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--msbte-orange);
  margin: 3px 0 0 0;
}

.msbte-title-box p {
  font-size: 11px;
  color: #555555;
  margin: 2px 0 0 0;
  font-weight: 500;
}

.header-right-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  height: 100%;
}

.applesarkar-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.header-social-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
}

.header-social-links a.facebook { background: #3b5998; }
.header-social-links a.twitter { background: #1da1f2; }
.header-social-links a.instagram { background: #e1306c; }
.header-social-links a.youtube { background: #ff0000; }
.header-social-links a.whatsapp { background: #25d366; }

.admin-badge-btn {
  background: #003366;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid #002244;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-badge-btn:hover {
  background: #002244;
  color: #faaf3b !important;
}

/* Main Navigation Bar */
.msbte-navbar {
  background: var(--primary-navy);
  padding: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.msbte-navbar .nav-link {
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 14px !important;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.msbte-navbar .nav-link:hover,
.msbte-navbar .nav-item.active .nav-link {
  background: #002244;
  color: var(--msbte-gold) !important;
}

.msbte-navbar .dropdown-menu {
  border-radius: 0;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 0;
  min-width: 260px;
}

.msbte-navbar .dropdown-item {
  font-size: 13px;
  padding: 10px 16px;
  color: #333333;
  border-bottom: 1px solid #f0f0f0;
  white-space: normal;
  line-height: 1.4;
}

.msbte-navbar .dropdown-item:hover {
  background: #eef4fc;
  color: var(--primary-navy);
  padding-left: 20px;
  transition: all 0.2s ease;
}

/* Dignitaries Grid */
.dignitaries-bar {
  background: #ffffff;
  padding: 15px 0 5px 0;
  border-bottom: 1px solid #e0e0e0;
}

.dignitary-card {
  text-align: center;
  padding: 5px 8px;
}

.dignitary-photo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-navy);
  margin: 0 auto 6px auto;
  display: block;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dignitary-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 2px;
  line-height: 1.2;
}

.dignitary-title {
  font-size: 10px;
  color: #666666;
  line-height: 1.2;
}

/* Notification Ticker */
.ticker-strip {
  background: var(--msbte-orange);
  color: #ffffff;
  padding: 8px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: #d45d00;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-radius: 3px;
}

.ticker-content a {
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-right: 30px;
}

.ticker-content a:hover {
  text-decoration: underline;
}

/* Hero Carousel */
.hero-slider-container {
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.carousel-item img {
  height: 380px;
  object-fit: cover;
  width: 100%;
}

/* Director's Desk */
.director-desk-box {
  background: #ffffff;
  border: 1px solid var(--msbte-border);
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.director-header {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.director-body {
  padding: 15px;
}

.director-profile {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  align-items: center;
}

.director-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--msbte-orange);
}

.director-details h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
}

.director-details p {
  font-size: 12px;
  color: #666666;
  margin: 2px 0 0 0;
}

.director-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: #444444;
  text-align: justify;
}

/* Quick Action Portal Cards */
.quick-portal-card {
  background: #ffffff;
  border: 1px solid var(--msbte-border);
  border-radius: 6px;
  padding: 20px 15px;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  height: 100%;
}

.quick-portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  border-color: var(--primary-navy);
}

.quick-portal-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #eef4fc;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px auto;
  transition: all 0.3s ease;
}

.quick-portal-card:hover .quick-portal-icon {
  background: var(--primary-navy);
  color: #ffffff;
}

.quick-portal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0 0 6px 0;
}

.quick-portal-desc {
  font-size: 11.5px;
  color: #666666;
  margin: 0;
  line-height: 1.4;
}

/* Circulars & Notices Box */
.content-box-card {
  background: #ffffff;
  border: 1px solid var(--msbte-border);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}

.content-box-header {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-box-header a {
  color: var(--msbte-gold);
  font-size: 12px;
  text-decoration: none;
}

.circular-marquee-box {
  height: 280px;
  overflow: hidden;
  padding: 10px 15px;
}

.circular-item-row {
  padding: 8px 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 12.5px;
  line-height: 1.45;
}

.circular-item-row a {
  color: #222222;
  text-decoration: none;
}

.circular-item-row a:hover {
  color: var(--primary-navy);
  font-weight: 600;
}

.circular-badge-new {
  background: #dc3545;
  color: #ffffff;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 700;
  margin-right: 5px;
  display: inline-block;
}

/* Stats Counter */
.msbte-stats-bar {
  background: linear-gradient(135deg, #002244 0%, #003366 100%);
  color: #ffffff;
  padding: 40px 0;
}

.stat-box {
  text-align: center;
  padding: 10px;
}

.stat-number-val {
  font-size: 36px;
  font-weight: 700;
  color: var(--msbte-gold);
  margin-bottom: 4px;
}

.stat-label-text {
  font-size: 14px;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
.msbte-main-footer {
  background: var(--msbte-dark-blue);
  color: #cccccc;
  font-size: 13px;
  padding-top: 35px;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  gap: 15px;
}

.footer-nav-list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 12.5px;
}

.footer-nav-list a:hover {
  color: var(--msbte-gold);
}

.footer-bottom-bar {
  background: #011d3d;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
}

/* Multi-device responsiveness for PC, Mobile, Tablet */
@media (max-width: 991px) {
  .msbte-logo-img {
    width: 65px;
    height: 65px;
  }
  .msbte-title-box h1 {
    font-size: 17px;
  }
  .msbte-title-box h2 {
    font-size: 13px;
  }
  .header-right-tools {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  .msbte-logo-link {
    gap: 10px;
  }
  .msbte-logo-img {
    width: 55px;
    height: 55px;
  }
  .msbte-title-box h1 {
    font-size: 15px;
  }
  .msbte-title-box h2 {
    font-size: 12px;
  }
  .msbte-title-box p {
    font-size: 10px;
  }
  .header-right-tools {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .stat-number-val {
    font-size: 28px;
  }
  .stat-label-text {
    font-size: 12px;
  }
  .footer-nav-list {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .msbte-logo-img {
    width: 48px;
    height: 48px;
  }
  .msbte-title-box h1 {
    font-size: 13px;
  }
  .msbte-title-box h2 {
    font-size: 11px;
  }
  .header-social-links a {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
}
