/* ==========================================================================
   Public Portal Styles - Anti-Corruption Commission & IDMS Portal (v4.0 Supreme)
   ========================================================================== */

@import url('../../fonts/noto-sans-bengali.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Public+Sans:wght@300;400;500;600;700&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  --acc-green: #006a4e;
  --acc-green-dark: #004d38;
  --acc-green-light: #e6f4ea;
  --acc-red: #e11d48;
  --acc-amber: #d97706;
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 8px 25px rgba(0, 106, 78, 0.35);
}

* {
  box-sizing: border-box;
}

body, button, input, select, textarea {
  font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.75;
  font-size: 19.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
}

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

a:hover, a:focus {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Header & Hero Banner
   ========================================================================== */
#header {
  position: relative;
  background: linear-gradient(135deg, #090d16 0%, #004d38 50%, #006a4e 100%);
  color: #ffffff;
  padding-bottom: 0;
  overflow: hidden;
}

#header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 15% 25%, rgba(225, 29, 72, 0.18) 0%, transparent 55%),
              radial-gradient(circle at 85% 75%, rgba(217, 119, 6, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

#head {
  padding: 3.8rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

#logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

#logo img {
  width: auto;
  max-width: 140px;
  height: 105px;
  object-fit: contain;
  border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  margin-bottom: 1.3rem;
  transition: transform 0.3s ease;
}

#logo img:hover {
  transform: scale(1.08) rotate(3deg);
}

#logo .title {
  font-size: 2.85rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

#logo .tagline {
  font-size: 1.38rem;
  font-weight: 400;
  color: #e2e8f0;
  max-width: 860px;
  line-height: 1.7;
  display: block;
}

#logo .tagline a {
  display: inline-block;
  margin-top: 0.95rem;
  padding: 10px 26px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 30px;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

#logo .tagline a:hover {
  background: #ffffff;
  color: var(--acc-green);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar-sticky {
  background: #ffffff !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  z-index: 999;
}

.navbar-sticky .container-fluid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar-nav {
  display: flex !important;
  align-items: center;
  justify-content: center;
  float: none !important;
  margin: 0 auto !important;
  gap: 12px;
}

.navbar-default .navbar-nav > li > a {
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  padding: 1.05rem 1.75rem !important;
  border-radius: var(--radius-sm) !important;
  transition: all 0.2s ease !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a {
  color: #ffffff !important;
  background: linear-gradient(135deg, #006a4e 0%, #004d38 100%) !important;
  box-shadow: 0 4px 14px rgba(0, 106, 78, 0.3) !important;
}

.navbar-default .navbar-nav > li:last-child > a {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35) !important;
}

.navbar-default .navbar-nav > li:last-child > a:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%) !important;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Main Content Layout & Cards
   ========================================================================== */
#main {
  padding: 3rem 0 5rem;
}

.section.topspace {
  margin-top: 2rem;
  margin-bottom: 3.5rem;
}

.section-title {
  text-align: center;
  position: relative;
  margin-bottom: 3.2rem;
}

.section-title span {
  font-size: 2.45rem;
  font-weight: 800;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.section-title span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85px;
  height: 5px;
  background: linear-gradient(135deg, var(--acc-green) 0%, var(--acc-red) 100%);
  border-radius: 4px;
}

/* Statutory Milestones Grid */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin: 2rem 0 3.2rem;
}

.milestone-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.85rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.milestone-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.milestone-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
}

.milestone-box.blue::before { background: #3b82f6; }
.milestone-box.emerald::before { background: #10b981; }
.milestone-box.amber::before { background: #f59e0b; }
.milestone-box.purple::before { background: #8b5cf6; }

.milestone-days {
  font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 10px;
}

.milestone-label {
  font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700;
  color: #334155;
  font-size: 1.32rem;
  margin-bottom: 8px;
}

.milestone-desc {
  font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Feature Cards Grid */
.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.feature-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.feature-icon-badge.green { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.feature-icon-badge.indigo { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.feature-icon-badge.amber { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); }

.feature-card h4 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.95rem;
}

.feature-card p {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0;
}

/* Offices Grid */
.office-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.office-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.office-card h3 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--acc-green);
  margin-bottom: 1.25rem;
}

.office-card p {
  font-size: 1.2rem !important;
  line-height: 1.8 !important;
}

.btn-action {
  background: linear-gradient(135deg, #006a4e 0%, #004d38 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1.15rem !important;
  padding: 0.85rem 1.85rem !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.25) !important;
  border: none !important;
  transition: all 0.25s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-action:hover {
  background: linear-gradient(135deg, #00553e 0%, #003627 100%) !important;
  box-shadow: 0 6px 18px rgba(0, 106, 78, 0.35) !important;
  transform: translateY(-2px);
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ==========================================================================
   Articles & Legal Library Tables
   ========================================================================== */
.maincontent {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 2.8rem;
}

.maincontent table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 2rem 0;
  border: 1px solid var(--border-color) !important;
}

.maincontent table td, .maincontent table th {
  padding: 1.35rem 1.65rem;
  border: 1px solid var(--border-color) !important;
  font-size: 1.2rem;
  line-height: 1.75;
}

.maincontent table tr:first-child td {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
#footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4.2rem 0 2.5rem;
  border-top: 1px solid #1e293b;
}

#footer .widget-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
}

#footer .widget-body p {
  font-size: 1.18rem;
  line-height: 1.85;
}

#footer .widget-body a {
  font-size: 1.18rem;
}

#underfooter {
  background: #090d16;
  color: #64748b;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.1rem;
}
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 8px;
}

#footer .widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--acc-green);
  border-radius: 2px;
}

#footer p {
  color: #94a3b8;
  font-size: 0.94rem;
  line-height: 1.7;
}

.follow-me-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #1e293b;
  color: #ffffff;
  border-radius: 50%;
  margin-right: 8px;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}

.follow-me-icons a:hover {
  background: var(--acc-green);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.4);
}

#underfooter {
  background: #090d16;
  color: #64748b;
  padding: 1.5rem 0;
  border-top: 1px solid #1e293b;
  font-size: 0.88rem;
}

#underfooter p {
  margin-bottom: 0;
}

#underfooter a {
  color: #94a3b8;
}

#underfooter a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Mobile-First Responsive Adjustments (Phones & Tablets)
   ========================================================================== */
@media (max-width: 991px) {
  #head {
    padding: 2.5rem 1rem 2rem;
  }
  #logo .title {
    font-size: 1.75rem;
  }
  .statute-card {
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  #head {
    padding: 2rem 1rem 1.5rem;
  }
  #logo img {
    max-width: 100px;
    height: 80px;
    padding: 6px 12px;
    border-radius: 16px;
    margin-bottom: 12px;
  }
  #logo .title {
    font-size: 1.45rem;
    line-height: 1.35;
  }
  #logo .tagline {
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .navbar-default {
    border-radius: 0;
  }
  .navbar-nav {
    flex-direction: column;
    width: 100%;
    margin: 0;
  }
  .navbar-default .navbar-nav > li {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
  }
  .navbar-default .navbar-nav > li > a {
    padding: 12px 18px !important;
    display: block;
  }
  .maincontent {
    padding: 1.25rem !important;
    border-radius: 16px !important;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  #footer {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
  }
  #footer .widget-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .follow-me-icons {
    display: flex;
    justify-content: center;
    margin-top: 15px;
  }
  #underfooter {
    text-align: center;
  }
}

@media (max-width: 480px) {
  #logo .title {
    font-size: 1.25rem;
  }
  #logo .tagline {
    font-size: 0.82rem;
  }
  .btn, button {
    width: 100%;
    margin-bottom: 8px;
  }
}
