﻿/* ==========================================================================
   BANA MADUWA (බණ මඩුව) - MODERN DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

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

:root {
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Cinzel', serif;
  --font-sinhala: 'Noto Sans Sinhala', 'Plus Jakarta Sans', sans-serif;

  --bg-deep: #050a14;
  --bg-dark: #091120;
  --bg-card: rgba(13, 22, 39, 0.78);
  --bg-card-hover: rgba(18, 30, 52, 0.9);
  
  --gold-300: #fde68a;
  --gold-400: #facc15;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;

  --lotus-pink: #f43f5e;
  --emerald-calm: #10b981;
  --yt-red: #ff0033;
  --yt-red-dark: #cc0000;

  --text-pure: #ffffff;
  --text-high: #f8fafc;
  --text-mid: #cbd5e1;
  --text-muted: #94a3b8;

  --border-subtle: rgba(148, 163, 184, 0.15);
  --border-gold: rgba(245, 158, 11, 0.3);
  --border-gold-glow: rgba(245, 158, 11, 0.6);
  --shadow-gold: 0 10px 30px -5px rgba(245, 158, 11, 0.25);
  --shadow-card: 0 16px 36px -8px rgba(0, 0, 0, 0.5);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-high);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.font-sinhala {
  font-family: var(--font-sinhala);
}

.font-heading {
  font-family: var(--font-heading);
}

/* Announcement Top Ribbon */
.bm-top-ribbon {
  background: linear-gradient(90deg, #78350f 0%, #b45309 40%, #d97706 70%, #92400e 100%);
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.bm-top-ribbon a {
  color: #fef08a;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* Session Sticky Banner */
.bm-session-banner {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 2px solid var(--gold-500);
  backdrop-filter: blur(12px);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  font-size: 14px;
}

/* Sticky Public Navbar */
.bm-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 13, 25, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  transition: all 0.3s ease;
}

.bm-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bm-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.bm-brand-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  padding: 4px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.bm-brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  display: flex;
  flex-direction: column;
}

.bm-brand-sub {
  font-size: 11px;
  color: var(--gold-400);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bm-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bm-nav-link {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.bm-nav-link:hover {
  color: var(--gold-400);
}

.bm-nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
}

.bm-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Custom Buttons */
.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #070c16 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-gold {
  background: rgba(245, 158, 11, 0.08);
  color: var(--gold-300) !important;
  border: 1px solid var(--border-gold);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-outline-gold:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--gold-400);
  color: #fff !important;
  transform: translateY(-2px);
}

.btn-yt {
  background: linear-gradient(135deg, #ff0033 0%, #c40026 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(255, 0, 51, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-yt:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 51, 0.5);
  background: linear-gradient(135deg, #ff2255 0%, #e6002e 100%);
}

/* Hero Section */
.bm-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.bm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(5, 10, 20, 0.65) 0%, 
    rgba(6, 12, 24, 0.82) 45%, 
    rgba(5, 10, 20, 0.98) 100%
  );
  z-index: 1;
}

.bm-hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.bm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid var(--border-gold);
  color: var(--gold-300);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.bm-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.bm-hero-title span {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bm-hero-sinhala {
  font-family: var(--font-sinhala);
  font-size: clamp(20px, 3.2vw, 32px);
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 20px;
  line-height: 1.4;
  text-shadow: 0 2px 20px rgba(245, 158, 11, 0.4);
}

.bm-hero-desc {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 820px;
  margin: 0 auto 36px;
}

.bm-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 48px;
}

.bm-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.bm-stat-card {
  background: rgba(13, 22, 40, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.bm-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-400);
}

.bm-stat-icon {
  font-size: 26px;
  margin-bottom: 6px;
}

.bm-stat-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.bm-stat-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* General Section */
.bm-section {
  padding: 90px 24px;
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.bm-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.bm-section-tag {
  color: var(--gold-400);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
}

.bm-section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.25;
}

.bm-section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Purpose Cards Grid */
.bm-purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.bm-purpose-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bm-purpose-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bm-purpose-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold-glow);
  box-shadow: var(--shadow-card), 0 0 25px rgba(245, 158, 11, 0.15);
  background: var(--bg-card-hover);
}

.bm-purpose-card:hover::before {
  opacity: 1;
}

.bm-card-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  color: var(--gold-400);
}

.bm-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.bm-card-sinhala {
  font-family: var(--font-sinhala);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: 14px;
  display: block;
}

.bm-card-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

/* About Us Split */
.bm-about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .bm-about-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.bm-about-img-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: 0 20px 45px rgba(0,0,0,0.6), 0 0 35px rgba(245, 158, 11, 0.15);
}

.bm-about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.bm-about-img-box:hover .bm-about-img {
  transform: scale(1.03);
}

.bm-about-floating-pill {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(8, 14, 28, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.bm-pill-icon {
  font-size: 32px;
  color: var(--gold-400);
}

.bm-pill-text strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.bm-pill-text span {
  font-size: 12px;
  color: var(--gold-300);
}

.bm-about-text h3 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.8vw, 34px);
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.3;
}

.bm-about-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.bm-values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.bm-val-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bm-val-item span {
  font-size: 18px;
}

.bm-val-item strong {
  font-size: 13px;
  color: #fff;
  display: block;
}

.bm-val-item em {
  font-size: 12px;
  color: var(--gold-400);
  font-style: normal;
}

/* YouTube Channel Showcase Banner */
.bm-yt-showcase {
  background: linear-gradient(135deg, rgba(25, 10, 20, 0.85) 0%, rgba(13, 22, 42, 0.9) 100%);
  border: 1px solid rgba(255, 0, 51, 0.35);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 35px rgba(255, 0, 51, 0.15);
  position: relative;
  overflow: hidden;
}

.bm-yt-showcase::after {
  content: '▶';
  position: absolute;
  right: -30px;
  bottom: -40px;
  font-size: 200px;
  color: rgba(255, 0, 51, 0.05);
  pointer-events: none;
  font-family: sans-serif;
}

.bm-yt-left {
  max-width: 680px;
}

.bm-yt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 0, 51, 0.15);
  border: 1px solid rgba(255, 0, 51, 0.4);
  color: #ff8099;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.bm-yt-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}

.bm-yt-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0 0 20px;
}

.bm-yt-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Technology / CMS Section */
.bm-tech-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  backdrop-filter: blur(16px);
  margin-top: 30px;
}

.bm-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.bm-tech-item {
  background: rgba(7, 13, 25, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  padding: 20px;
}

.bm-tech-item h4 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bm-tech-item p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

/* Modal Dialog */
.bm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bm-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.bm-modal-card {
  background: #0d1526;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  width: min(100%, 480px);
  padding: 32px 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7), 0 0 40px rgba(245, 158, 11, 0.2);
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bm-modal-backdrop.is-open .bm-modal-card {
  transform: scale(1) translateY(0);
}

.bm-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-mid);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bm-modal-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: rotate(90deg);
}

.bm-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.bm-modal-header img {
  height: 52px;
  width: 52px;
  margin: 0 auto 12px;
  display: block;
}

.bm-modal-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.bm-modal-header p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Footer */
.bm-footer {
  background: #030711;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 30px;
  margin-top: 60px;
}

.bm-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .bm-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .bm-footer-grid {
    grid-template-columns: 1fr;
  }
}

.bm-footer-col h5 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bm-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bm-footer-col li {
  margin-bottom: 10px;
}

.bm-footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.bm-footer-col a:hover {
  color: var(--gold-400);
}

.bm-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Logged-In Top Navigation Enhancements */
.bm-dash-header {
  background: rgba(13, 22, 40, 0.95);
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.bm-dash-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.bm-dash-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  color: var(--gold-300);
  font-weight: 600;
}

/* FirebaseUI Custom Overrides for Seamless Dark Integration */
.firebaseui-container {
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
}

.firebaseui-title {
  color: #fff !important;
}

.firebaseui-id-submit {
  border-radius: 12px !important;
  background: var(--gold-600) !important;
  color: #fff !important;
}

.firebaseui-id-submit:hover {
  background: var(--gold-500) !important;
}