/* ==========================================================
   Chandpur Diabetic Samity — Institutional Healthcare Theme
   ========================================================== */

:root {
  --cds-blue: #0b4f8a;
  --cds-blue-dark: #073863;
  --cds-blue-light: #e8f2fc;
  --cds-teal: #0d9488;
  --cds-teal-light: #e6f7f5;
  --cds-emerald: #10b981;
  --cds-ink: #0f172a;
  --cds-slate: #334155;
  --cds-muted: #64748b;
  --cds-bg: #ffffff;
  --cds-surface: #f8fafc;
  --cds-border: #e2e8f0;
  --cds-radius: 16px;
  --cds-radius-sm: 10px;
  --cds-shadow-sm: 0 4px 16px -4px rgba(11, 79, 138, 0.08);
  --cds-shadow-md: 0 14px 36px -12px rgba(11, 79, 138, 0.14);
  --cds-shadow-lg: 0 24px 54px -16px rgba(11, 79, 138, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hind Siliguri', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--cds-ink);
  background-color: var(--cds-bg);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  font-family: 'Inter', 'Hind Siliguri', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--cds-ink);
  letter-spacing: -0.01em;
}

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

a:hover {
  color: var(--cds-teal);
}

/* Top Institutional Bar */
.cds-topbar {
  background: var(--cds-blue-dark);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  padding: 0.45rem 0;
}

.cds-topbar a {
  color: rgba(255, 255, 255, 0.94);
}

.cds-topbar a:hover {
  color: #7dd3fc;
}

.cds-lang-pill {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.cds-lang-pill a {
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.cds-lang-pill a.active {
  background: #ffffff;
  color: var(--cds-blue-dark);
}

/* Sticky Navbar */
.cds-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cds-border);
  box-shadow: 0 4px 20px -10px rgba(15, 23, 42, 0.08);
  padding: 0.65rem 0;
  z-index: 1030;
}

.cds-brand-logo {
  height: 44px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

.cds-brand-text {
  line-height: 1.2;
  min-width: 0;
}

.cds-brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cds-blue);
  display: block;
}

.cds-brand-sub {
  font-size: 0.74rem;
  color: var(--cds-teal);
  font-weight: 600;
  display: block;
}

@media (max-width: 575.98px) {
  .cds-brand-logo {
    height: 36px;
    max-width: 72px;
  }
  .cds-brand-title {
    font-size: 0.94rem;
    line-height: 1.18;
  }
  .cds-brand-sub {
    font-size: 0.68rem;
  }
}

.cds-navbar .nav-link {
  color: var(--cds-slate);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
}

.cds-navbar .nav-link:hover,
.cds-navbar .nav-link.active {
  color: var(--cds-blue);
  background: var(--cds-blue-light);
}

.cds-navbar .dropdown-menu {
  border: 1px solid var(--cds-border);
  border-radius: 12px;
  box-shadow: var(--cds-shadow-md);
  padding: 0.5rem;
  min-width: 225px;
}

.cds-navbar .dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--cds-slate);
}

.cds-navbar .dropdown-item:hover,
.cds-navbar .dropdown-item.active {
  background: var(--cds-blue-light);
  color: var(--cds-blue);
}

/* Buttons */
.btn-cds-primary {
  background: linear-gradient(135deg, var(--cds-blue) 0%, #1565c0 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(11, 79, 138, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-cds-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(11, 79, 138, 0.52);
  filter: brightness(1.04);
}

.btn-cds-teal {
  background: linear-gradient(135deg, var(--cds-teal) 0%, var(--cds-emerald) 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cds-teal:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-cds-outline {
  background: #ffffff;
  border: 1.5px solid var(--cds-blue);
  color: var(--cds-blue);
  font-weight: 600;
  padding: 0.68rem 1.45rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.btn-cds-outline:hover {
  background: var(--cds-blue);
  color: #ffffff;
}

/* Hero Section */
.cds-hero {
  position: relative;
  background: radial-gradient(circle at 88% 15%, rgba(13, 148, 136, 0.1) 0%, transparent 45%),
              radial-gradient(circle at 8% 85%, rgba(11, 79, 138, 0.08) 0%, transparent 48%),
              linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 4rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--cds-border);
}

.cds-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--cds-teal-light);
  color: var(--cds-teal);
  border: 1px solid rgba(13, 148, 136, 0.22);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

.cds-hero-title {
  font-size: clamp(1.95rem, 3.4vw, 3rem);
  line-height: 1.25;
  color: var(--cds-ink);
}

.cds-hero-image-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--cds-shadow-lg);
  border: 6px solid #ffffff;
}

.cds-hero-image-wrap img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
}

.cds-hero-floating-card {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Section Utilities */
.cds-section {
  padding: 4.5rem 0;
}

.cds-section-surface {
  background: var(--cds-surface);
  border-top: 1px solid var(--cds-border);
  border-bottom: 1px solid var(--cds-border);
}

.cds-section-tag {
  display: inline-block;
  color: var(--cds-teal);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.cds-section-heading {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

/* Institutional Cards */
.cds-card {
  background: #ffffff;
  border: 1px solid var(--cds-border);
  border-radius: var(--cds-radius);
  box-shadow: var(--cds-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}

.cds-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cds-shadow-md);
  border-color: rgba(11, 79, 138, 0.28);
}

.cds-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cds-blue-light);
  color: var(--cds-blue);
  font-size: 1.5rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.cds-card:hover .cds-icon-box {
  background: var(--cds-blue);
  color: #ffffff;
}

.cds-icon-box-teal {
  background: var(--cds-teal-light);
  color: var(--cds-teal);
}

.cds-card:hover .cds-icon-box-teal {
  background: var(--cds-teal);
  color: #ffffff;
}

/* Profile Cards (Doctors & Executive Committee) */
.cds-profile-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eff6ff;
  border-top-left-radius: calc(var(--cds-radius) - 1px);
  border-top-right-radius: calc(var(--cds-radius) - 1px);
}

.cds-profile-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cds-avatar-circle {
  object-fit: cover;
  object-position: center 22%;
}

.cds-news-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 20%;
  border-top-left-radius: calc(var(--cds-radius) - 1px);
  border-top-right-radius: calc(var(--cds-radius) - 1px);
}

/* Page Banner Header */
.cds-page-header {
  background: linear-gradient(125deg, #073863 0%, #0b4f8a 55%, #0d9488 100%);
  color: #ffffff;
  padding: 3.25rem 0;
  position: relative;
}

.cds-page-header h1 {
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.cds-breadcrumb .breadcrumb-item,
.cds-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.cds-breadcrumb .breadcrumb-item.active {
  color: #ffffff;
  font-weight: 600;
}

.cds-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

/* Rich Content Prose */
.cds-prose h2, .cds-prose h3, .cds-prose h4 {
  color: var(--cds-blue-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

.cds-prose p, .cds-prose li {
  color: var(--cds-slate);
}

.cds-prose ul, .cds-prose ol {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.cds-prose blockquote {
  border-left: 4px solid var(--cds-teal);
  background: var(--cds-surface);
  padding: 0.9rem 1.2rem;
  border-radius: 0 12px 12px 0;
  color: var(--cds-slate);
}

/* Gallery */
.cds-gallery-item {
  position: relative;
  border-radius: var(--cds-radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--cds-border);
  box-shadow: var(--cds-shadow-sm);
}

.cds-gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.cds-gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.82), transparent);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Notice Row */
.cds-notice-row {
  border: 1px solid var(--cds-border);
  border-left: 4px solid var(--cds-blue);
  border-radius: 12px;
  background: #ffffff;
  padding: 1rem 1.2rem;
  transition: box-shadow 0.2s ease, border-left-color 0.2s ease;
}

.cds-notice-row:hover {
  border-left-color: var(--cds-teal);
  box-shadow: var(--cds-shadow-sm);
}

/* Footer */
.cds-footer {
  background: #071e34;
  color: rgba(255, 255, 255, 0.82);
  padding-top: 4rem;
}

.cds-footer h5 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.cds-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.cds-footer a:hover {
  color: #5eead4;
}

.cds-footer-bottom {
  background: #041526;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.15rem 0;
  font-size: 0.88rem;
}

/* Subtle Scroll Reveal */
.cds-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.cds-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .cds-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 991.98px) {
  .cds-hero {
    padding: 2.5rem 0 3rem;
  }
  .cds-hero-image-wrap img {
    height: 300px;
  }
  .cds-section {
    padding: 3.25rem 0;
  }
}
