/* ==========================================================================
   Connect Bengal Digital Media Association (CBDMA) - Design System & Styles
   Brand Identity based on Official Logo:
   - Deep Navy Blue (#163A4D)
   - Warm Energetic Orange (#F15A24)
   - Modern Digital Teal (#1BA49E)
   - Golden Amber (#F9A01B)
   ========================================================================== */

:root {
  --cbdma-navy-dark: #0d222e;
  --cbdma-navy: #163a4d;
  --cbdma-navy-light: #23516a;
  --cbdma-navy-subtle: #ebf3f7;

  --cbdma-orange: #f15a24;
  --cbdma-orange-hover: #d94814;
  --cbdma-orange-subtle: #fef0ea;

  --cbdma-teal: #1ba49e;
  --cbdma-teal-hover: #158b86;
  --cbdma-teal-subtle: #e6f6f5;

  --cbdma-amber: #f9a01b;
  --cbdma-amber-subtle: #fef7ec;

  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-dark: #091720;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px -2px rgba(22, 58, 77, 0.1);
  --shadow-lg: 0 12px 32px -4px rgba(22, 58, 77, 0.16);
  --shadow-glow: 0 8px 24px rgba(241, 90, 36, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1240px;
  --header-height: 92px;
}

/* Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: var(--cbdma-orange);
}

button, input, select, textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--cbdma-orange);
  outline-offset: 3px;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.text-center { text-align: center; }
.text-orange { color: var(--cbdma-orange); }
.text-teal { color: var(--cbdma-teal); }
.text-navy { color: var(--cbdma-navy); }

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--cbdma-navy) 0%, #1f506b 50%, var(--cbdma-teal) 100%);
  color: var(--text-white);
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 100;
}

.announcement-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.announcement-bar .badge {
  background: var(--cbdma-orange);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-link img {
  height: 68px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo-link:hover img {
  transform: scale(1.02);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.15;
  color: var(--cbdma-navy);
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cbdma-orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cbdma-navy);
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--cbdma-orange);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--cbdma-orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--cbdma-navy);
  cursor: pointer;
  padding: 0.4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--cbdma-orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(241, 90, 36, 0.3);
}

.btn-primary:hover {
  background: var(--cbdma-orange-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--cbdma-navy);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--cbdma-navy-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cbdma-navy);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--cbdma-navy-subtle);
  border-color: var(--cbdma-navy);
  color: var(--cbdma-navy);
}

.btn-outline-orange {
  background: transparent;
  color: var(--cbdma-orange);
  border-color: var(--cbdma-orange);
}

.btn-outline-orange:hover {
  background: var(--cbdma-orange);
  color: #fff;
}

.btn-teal {
  background: var(--cbdma-teal);
  color: #fff;
}

.btn-teal:hover {
  background: var(--cbdma-teal-hover);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f0f7fa 0%, #ffffff 50%, #fef4ee 100%);
  padding: 5rem 0 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(241, 90, 36, 0.12) 0%, rgba(241, 90, 36, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(27, 164, 158, 0.12) 0%, rgba(27, 164, 158, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cbdma-orange-subtle);
  color: var(--cbdma-orange);
  border: 1px solid rgba(241, 90, 36, 0.25);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.16;
  color: var(--cbdma-navy);
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: linear-gradient(90deg, var(--cbdma-orange) 0%, var(--cbdma-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  position: relative;
  text-align: center;
}

.hero-card-logo {
  max-width: 280px;
  margin: 0 auto 1.5rem;
  padding: 1rem;
  background: #fbfdfe;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(22, 58, 77, 0.2);
}

.hero-card-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--cbdma-teal-subtle);
  color: var(--cbdma-teal);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero-card h3 {
  color: var(--cbdma-navy);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Stats Ribbon */
.stats-ribbon {
  background: var(--cbdma-navy);
  color: #fff;
  padding: 3rem 0;
  position: relative;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--cbdma-amber);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.92rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* Section Common Styling */
.section-pad {
  padding: 5rem 0;
}

.section-pad-sm {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cbdma-orange);
  background: var(--cbdma-orange-subtle);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.section-tag.teal {
  color: var(--cbdma-teal);
  background: var(--cbdma-teal-subtle);
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--cbdma-navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Pillars / Features Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pillar-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cbdma-orange) 0%, var(--cbdma-teal) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 164, 158, 0.4);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
  background: var(--cbdma-navy-subtle);
  color: var(--cbdma-navy);
}

.pillar-card:nth-child(even) .pillar-icon-box {
  background: var(--cbdma-orange-subtle);
  color: var(--cbdma-orange);
}

.pillar-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--cbdma-navy);
  margin-bottom: 0.7rem;
}

.pillar-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Membership Tiers */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card.featured {
  border: 2px solid var(--cbdma-orange);
  box-shadow: 0 10px 30px rgba(241, 90, 36, 0.15);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cbdma-orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
}

.pricing-tier-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cbdma-navy);
  margin-bottom: 0.5rem;
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 48px;
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--cbdma-navy);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.pricing-billing {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-perks {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-perks li {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pricing-perks li::before {
  content: '✓';
  color: var(--cbdma-teal);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
}

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.news-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

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

.news-thumb {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.news-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.news-cat {
  background: var(--cbdma-teal-subtle);
  color: var(--cbdma-teal);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.news-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cbdma-navy);
  line-height: 1.35;
  margin-bottom: 0.8rem;
}

.news-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

/* Council / Leadership Grid */
.council-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.council-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.8rem 1.4rem;
  border: 1px solid var(--border-subtle);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

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

.council-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  object-fit: cover;
  border: 3px solid var(--cbdma-teal);
  padding: 2px;
}

.council-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cbdma-navy);
  margin-bottom: 0.3rem;
}

.council-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cbdma-orange);
  margin-bottom: 0.8rem;
}

.council-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Form Styles */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cbdma-navy);
}

.form-label .req {
  color: var(--cbdma-orange);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: #fff;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--cbdma-orange);
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.15);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Callout Box */
.callout-box {
  background: linear-gradient(135deg, var(--cbdma-navy) 0%, #1a4d6b 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.callout-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(241, 90, 36, 0.25);
  border-radius: 50%;
}

.callout-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}

.callout-box p {
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 650px;
  margin: 0 auto 2rem;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  border-top: 3px solid var(--cbdma-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand img {
  height: 54px;
  background: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2.5px;
  background: var(--cbdma-teal);
  border-radius: 2px;
}

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

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--cbdma-amber);
  padding-left: 4px;
}

.footer-contact-info {
  list-style: none;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-contact-info li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: var(--cbdma-orange);
  color: #fff;
  transform: translateY(-2px);
}

/* Alert Toast */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.6rem;
  background: var(--cbdma-navy);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 0.8rem;
  border-left: 5px solid var(--cbdma-teal);
  animation: slideIn 0.3s ease;
}

.toast-notice.success {
  border-left-color: #10b981;
}

.toast-notice.error {
  border-left-color: #ef4444;
}

@keyframes slideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-subtitle {
    margin-inline: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 78px;
  }
  .brand-logo-link img {
    height: 54px;
    max-width: 220px;
  }
  .brand-title {
    font-size: 1rem;
  }
  .brand-subtitle {
    font-size: 0.65rem;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 78px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    border-bottom: 2px solid var(--cbdma-orange);
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .stat-item::after {
    display: none !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   CBDMA Website Ad Display System (Standard Sizes & Formats)
   ========================================================================== */

.ad-slot-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.8rem auto;
  padding: 0 1rem;
}

.ad-slot-container.hidden {
  display: none !important;
}

.ad-slot-wrapper {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(22, 58, 77, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.ad-slot-wrapper:hover {
  box-shadow: 0 6px 20px rgba(22, 58, 77, 0.09);
}

/* Standard Ad Dimensions */
.ad-size-728x90 {
  max-width: 728px;
  min-height: 90px;
}

.ad-size-970x250 {
  max-width: 970px;
  min-height: 180px;
}

.ad-size-300x250 {
  max-width: 320px;
  min-height: 250px;
}

.ad-size-336x280 {
  max-width: 350px;
  min-height: 280px;
}

.ad-size-300x600 {
  max-width: 320px;
  min-height: 480px;
}

.ad-size-320x100 {
  max-width: 340px;
  min-height: 100px;
}

.ad-size-responsive {
  max-width: 1140px;
  width: 100%;
}

/* Ad Header Label Bar */
.ad-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 4px 10px;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.68rem;
}

.ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.ad-sponsor-label {
  font-weight: 600;
  color: #64748b;
  margin-left: 6px;
}

.ad-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 5px;
  border-radius: 3px;
  line-height: 1;
}

.ad-close-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* Ad Format 1: Text Ad */
.ad-text-format {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 1.6rem;
  background: linear-gradient(135deg, #ffffff 0%, #f9fcfe 100%);
}

.ad-text-content {
  flex: 1;
}

.ad-text-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cbdma-navy);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.ad-text-title a {
  color: inherit;
  text-decoration: none;
}

.ad-text-title a:hover {
  color: var(--cbdma-orange);
}

.ad-text-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 0;
}

.ad-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cbdma-orange);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(241, 90, 36, 0.25);
}

.ad-cta-btn:hover {
  background: var(--cbdma-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(241, 90, 36, 0.35);
}

/* Ad Format 2: Image Ad */
.ad-image-format {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  background: #0f172a;
}

.ad-image-format img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ad-image-format:hover img {
  transform: scale(1.02);
}

.ad-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem 1.6rem;
  color: #ffffff;
}

.ad-image-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.ad-image-desc {
  font-size: 0.84rem;
  color: #e2e8f0;
  margin-bottom: 0.6rem;
  max-width: 650px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.ad-image-cta {
  display: inline-flex;
  align-self: flex-start;
  background: var(--cbdma-orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
}

/* Ad Format 3: Video Ad */
.ad-video-format {
  display: flex;
  flex-direction: column;
  background: #091720;
  color: #ffffff;
}

.ad-video-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.ad-video-wrapper video {
  width: 100%;
  max-height: 340px;
  display: block;
  object-fit: cover;
}

.ad-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 1.4rem;
  background: #0d222e;
}

.ad-video-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.ad-video-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Responsive Ad Container rules */
@media (max-width: 768px) {
  .ad-text-format {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.8rem;
  }
  .ad-text-title {
    font-size: 1rem;
  }
  .ad-video-meta {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem;
  }
  .ad-size-728x90, .ad-size-970x250 {
    min-height: auto;
  }
}

/* Ad Scrolling Motion Effects: Marquee Ticker & Sticky Scroll */
.ad-slot-wrapper.ad-scroll-marquee {
  overflow: hidden;
  position: relative;
}

.ad-slot-wrapper.ad-scroll-marquee .ad-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: cbdma-ad-marquee-scroll 18s linear infinite;
}

.ad-slot-wrapper.ad-scroll-marquee.speed-slow .ad-marquee-track {
  animation-duration: 30s;
}

.ad-slot-wrapper.ad-scroll-marquee.speed-normal .ad-marquee-track {
  animation-duration: 18s;
}

.ad-slot-wrapper.ad-scroll-marquee.speed-fast .ad-marquee-track {
  animation-duration: 10s;
}

.ad-slot-wrapper.ad-scroll-marquee.pause-hover:hover .ad-marquee-track {
  animation-play-state: paused;
}

@keyframes cbdma-ad-marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Sticky In-View Placements */
.ad-slot-container.ad-sticky-top {
  position: sticky;
  top: 72px;
  z-index: 95;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.ad-slot-container.ad-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 995;
  margin: 0;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: center;
}
