@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: 'NotoSansBengali-Regular';
  src: local('NotoSansBengali-Regular'), local('Noto Sans Bengali Regular'), local('Noto Sans Bengali');
  font-weight: 400;
  font-style: normal;
}

:root {
  --primary-green: #045a27;
  --secondary-green: #0a7338;
  --light-green: #e9f7ee;
  --accent-green: #15803d;
  --gov-red: #c9151b;
  --border-color: #d1d5db;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --header-bg: linear-gradient(135deg, #075e2b 0%, #0d7b3d 60%, #bd1818 100%);
  --box-header-bg: #097237;
}

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

body {
  font-family: 'Noto Sans Bengali', 'NotoSansBengali-Regular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ebf0ec;
  background-image: radial-gradient(#d3dfd5 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14.5px;
}

input, button, select, textarea {
  font-family: 'Noto Sans Bengali', 'NotoSansBengali-Regular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #dbe2dc;
}

/* Top Banner Header */
.portal-header {
  position: relative;
  background: var(--header-bg);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 3px solid #03441d;
}

.portal-header::before {
  content: "";
  position: absolute;
  right: 15%;
  top: -40px;
  width: 140px;
  height: 140px;
  background-color: rgba(201, 21, 27, 0.85);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.brand-logo-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  border: 2px solid #ffffff;
  background: #fff;
}

.brand-titles h1 {
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-titles p {
  font-size: 0.95rem;
  color: #f0fdf4;
  opacity: 0.95;
  margin-top: 2px;
}

.header-right-tools {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-portal-btn {
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.admin-portal-btn:hover {
  background-color: #ffffff;
  color: var(--primary-green);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Main Navigation Bar */
.nav-bar {
  background-color: #0b6125;
  border-bottom: 2px solid #064018;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.nav-link:hover, .nav-item.active .nav-link {
  background-color: #07471b;
  color: #fef08a;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background-color: #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border: 1px solid #d1d5db;
  z-index: 100;
  list-style: none;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 8px 14px;
  color: #1f2937;
  font-size: 13px;
  border-bottom: 1px solid #f3f4f6;
}

.nav-dropdown li a:hover {
  background-color: var(--light-green);
  color: var(--primary-green);
  font-weight: 600;
}

/* Breaking Ticker Marquee */
.ticker-bar {
  display: flex;
  align-items: center;
  background-color: #f4fbf6;
  border-bottom: 1px solid #cce5d4;
  padding: 4px 12px;
  font-size: 13.5px;
}

.ticker-label {
  background-color: var(--gov-red);
  color: #ffffff;
  padding: 3px 10px;
  font-weight: 600;
  border-radius: 3px;
  margin-right: 12px;
  white-space: nowrap;
}

.ticker-marquee {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ticker-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 26s linear infinite;
  color: #064e21;
  font-weight: 500;
}

@keyframes marquee {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* Layout Grid (2 Columns: Main Left, Sidebar Right) */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 18px;
  padding: 16px;
  background-color: #ffffff;
}

@media (max-width: 960px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* Notice Board Pagination */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  gap: 10px;
}

.pagination-info {
  color: #64748b;
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 30px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.page-btn.active {
  background: #097237;
  color: #ffffff;
  border-color: #097237;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sidebar & Center Boxes */
.portal-card {
  border: 1px solid #cce0d2;
  border-radius: 4px;
  background: #ffffff;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-header-green {
  background-color: var(--box-header-bg);
  color: #ffffff;
  padding: 7px 12px;
  font-size: 15px;
  font-weight: 600;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-green i {
  margin-right: 6px;
}

.card-body {
  padding: 12px;
}

/* Mayor / Administrator Profile Card */
.admin-profile-card {
  text-align: center;
  padding: 12px 10px;
}

.admin-photo-wrapper {
  width: 140px;
  height: 155px;
  margin: 0 auto 10px;
  border: 3px solid #097237;
  padding: 2px;
  border-radius: 4px;
  background-color: #f9fafb;
}

.admin-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.admin-name {
  font-size: 16px;
  font-weight: 700;
  color: #0b6125;
  margin-bottom: 2px;
}

.admin-role {
  font-size: 13.5px;
  color: #374151;
  font-weight: 600;
}

.admin-org {
  font-size: 12.5px;
  color: #6b7280;
}

/* Important Forms List */
.forms-list {
  list-style: none;
}

.forms-list li {
  border-bottom: 1px dashed #d1d5db;
}

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

.forms-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: 13px;
  color: #1f2937;
}

.forms-list a:hover {
  color: var(--primary-green);
  background-color: #f0fdf4;
  padding-left: 8px;
  font-weight: 500;
}

.forms-list a i {
  color: #0b6125;
  font-size: 11px;
}

/* Hotlines */
.hotlines-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hotline-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 5px;
  border: 1px solid #e5e7eb;
  background: #fbfcfb;
  transition: transform 0.15s ease;
}

.hotline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hotline-img {
  width: 58px;
  height: auto;
  object-fit: contain;
}

.hotline-details h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.hotline-details p {
  font-size: 12px;
  color: #4b5563;
  margin-top: 2px;
}

/* Center Section: Welcome */
.welcome-box {
  border: 1px solid #cce0d2;
  border-radius: 4px;
  margin-bottom: 16px;
}

.welcome-content {
  padding: 16px;
}

.welcome-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: #07471b;
  margin-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 4px;
}

.welcome-text {
  font-size: 14px;
  color: #374151;
  text-align: justify;
  line-height: 1.65;
  margin-bottom: 16px;
}

.highlight-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 16px 0;
}

.action-pill-btn {
  background: linear-gradient(180deg, #097237 0%, #065327 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.action-pill-btn:hover {
  background: linear-gradient(180deg, #0b8a42 0%, #086932 100%);
  transform: translateY(-1px);
}

.dev-title-banner {
  background-color: #0b6125;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  border-radius: 3px;
  margin-bottom: 12px;
}

/* Notice & Job Tables */
.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.portal-table th {
  background-color: #e5ede7;
  color: #0f5127;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
}

.portal-table td {
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  color: #1f2937;
}

.portal-table tbody tr:nth-child(even) {
  background-color: #f9fbf9;
}

.portal-table tbody tr:hover {
  background-color: #f0fdf4;
}

.col-date {
  width: 105px;
  text-align: center;
  white-space: nowrap;
  font-family: 'Noto Sans Bengali', 'NotoSansBengali-Regular', monospace;
  font-size: 12.5px;
  color: #4b5563;
}

.col-action {
  width: 75px;
  text-align: center;
}

.download-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #e0f2fe;
  color: #0284c7;
  font-size: 13px;
}

.download-link-btn:hover {
  background-color: #0284c7;
  color: #ffffff;
}

/* Services 14-Card Grid */
.services-grid-14 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.service-card-item {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 8px;
  background: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card-item:hover {
  border-color: #097237;
  box-shadow: 0 4px 10px rgba(9, 114, 55, 0.15);
  transform: translateY(-2px);
}

.service-icon-img {
  width: 58px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 6px;
  border: 1px solid #e5e7eb;
  padding: 2px;
  border-radius: 3px;
  background: #ffffff;
}

.service-title-en {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
}

.service-title-bn {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

/* Councilors Grid: 3 columns x 4 rows */
.councilors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 6px;
}

.councilor-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
}

.councilor-card:hover {
  background: #ffffff;
  border-color: #097237;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(9, 114, 55, 0.12);
}

.councilor-photo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #097237;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  flex-shrink: 0;
}

.councilor-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.councilor-name {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 2px;
  word-break: break-word;
}

.councilor-ward {
  font-size: 9.5px;
  font-weight: 600;
  color: #047857;
  background: #e8f5ec;
  padding: 1px 4px;
  border-radius: 10px;
  line-height: 1.2;
}

.councilor-phone {
  font-size: 9px;
  color: #64748b;
  margin-top: 2px;
}

/* Right Column Widgets: Auto-scrolling Update Notices */
.notice-scroll-badge {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.update-notice-box {
  background-color: #f1f8f3;
  border: 1px solid #bfe0ca;
  padding: 0;
  position: relative;
  overflow: hidden;
  height: 380px;
}

.update-notice-marquee {
  height: 380px;
  width: 100%;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
}

.update-notice-list {
  display: flex;
  flex-direction: column;
}

.update-notice-item {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px dashed #bfe0ca;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.2s;
  cursor: pointer;
}

.update-notice-item:hover {
  background-color: #e3f3e8;
  text-decoration: none;
}

.update-notice-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #047857;
  line-height: 1.45;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.update-notice-item:hover .update-notice-title {
  color: #064e3b;
  text-decoration: underline;
}

.update-notice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #059669;
  margin-top: 2px;
}

.update-notice-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #059669;
  font-size: 11.5px;
}

.update-notice-dl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid #bbf7d0;
  transition: all 0.2s;
}

.update-notice-item:hover .update-notice-dl {
  background: #097237;
  color: #ffffff;
  border-color: #097237;
}

.gov-links-list {
  list-style: none;
}

.gov-links-list li {
  border-bottom: 1px dashed #e2e8f0;
}

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

.gov-links-list a {
  display: block;
  padding: 6px 6px;
  font-size: 13px;
  color: #374151;
}

.gov-links-list a:hover {
  background-color: #f0fdf4;
  color: var(--primary-green);
  padding-left: 10px;
  font-weight: 500;
}

/* Dengue Campaign */
.dengue-banner {
  text-align: center;
}

.dengue-poster-img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  margin: 6px auto 10px;
  display: block;
}

.dengue-advice-list {
  text-align: left;
  font-size: 12.5px;
  color: #7f1d1d;
  padding-left: 16px;
  line-height: 1.45;
}

.dengue-advice-list li {
  margin-bottom: 4px;
}

/* Footer & Artwork Banner */
.amar-ekushey-container {
  text-align: center;
  border-top: 1px solid #d1d5db;
  padding: 12px 16px 4px;
  background-color: #fafafa;
}

.amar-ekushey-img {
  max-width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
}

.site-footer {
  background-color: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  padding: 16px 20px;
  font-size: 13px;
  color: #4b5563;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-nav {
  display: flex;
  gap: 14px;
}

.footer-nav a {
  color: #0369a1;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 12px;
  text-align: right;
}

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.modal-content {
  background: #ffffff;
  border-radius: 6px;
  max-width: 580px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.2s ease-out;
}

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

.modal-header {
  background-color: #097237;
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

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

.modal-body {
  padding: 18px;
  font-size: 14px;
  color: #374151;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .portal-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .header-brand {
    flex-direction: column;
  }
  .services-grid-14 {
    grid-template-columns: repeat(2, 1fr);
  }
}
