/* ============================================================
   SAMAROHI FOUNDATION — Shared Design System
   Apply via: <link rel="stylesheet" href="src/css/design.css">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anek+Devanagari:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

* { box-sizing: border-box; }

/* Global typography configuration */
body, p, span, li, a, td, th, label, input, textarea, select, button {
  font-family: 'Inter', 'Poppins', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .section-title, .logo-text, .page-hero h1 {
  font-family: 'Anek Devanagari', 'Anek', sans-serif !important;
  font-weight: 600 !important; /* SemiBold weight */
}



/* ── Page header banner (breadcrumb area) ── */
.page-hero {
  background: linear-gradient(135deg, var(--color-secondary, #151D46) 0%, var(--color-accent, #2A3866) 100%);
  padding: 3.5rem 1rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.page-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 1.2rem;
}
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}
.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb span { opacity: 0.5; }

/* ── Typography / headings ── */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary, #C32B26), var(--color-accent, #2A3866));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-block;
  background: rgba(42, 56, 102, 0.1);
  color: var(--color-accent, #2A3866);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: none;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(42, 56, 102, 0.2);
  margin-bottom: 0.75rem;
}

.divider-fancy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem auto 0;
  width: fit-content;
}
.divider-fancy.left { margin-left: 0; }
.divider-fancy .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary, #C32B26);
  display: inline-block;
  flex-shrink: 0;
}
.divider-fancy .bar {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary, #C32B26), var(--color-accent, #2A3866));
  border-radius: 4px;
  display: inline-block;
}

/* ── Section layout ── */
.section-padding { padding: 4.25rem 1.5rem; position: relative; }

/* ── Soft Backgrounds ── */
.bg-soft-primary { background-color: rgba(195, 43, 38, 0.03); }
.bg-soft-accent { background-color: rgba(42, 56, 102, 0.03); }
.bg-soft-secondary { background-color: rgba(21, 29, 70, 0.03); }

.bg-dot-pattern {
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-grid-pattern {
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Glassmorphism ── */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-dark {
  background: rgba(21, 29, 70, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

/* ── Cards ── */
.card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: white;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary, #C32B26), var(--color-accent, #2A3866));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
  box-shadow: 0 20px 45px rgba(0,0,0,0.13);
  transform: translateY(-4px);
}
.campaign-image { height: 220px; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .campaign-image { transform: scale(1.06); }
.gradient-overlay { background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.15)); }

/* ── Cause / team cards ── */
.cause-card { transition: all 0.35s ease; position: relative; overflow: hidden; }
.cause-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.13); }

/* ── Activity icon cards ── */
.activity-icon-card {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid transparent;
}
.activity-icon-card:hover {
  border-color: rgba(42, 56, 102, 0.2);
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.activity-icon-card .icon-wrap { transition: transform 0.35s ease; }
.activity-icon-card:hover .icon-wrap { transform: scale(1.18) rotate(-6deg); }

/* ── Mission/Vision cards ── */
.mv-card {
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f1f5f9;
}
.mv-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

/* ── Stat cards ── */
.stat-card { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.stat-card:hover { transform: translateY(-10px); box-shadow: 0 24px 48px rgba(0,0,0,0.16); }

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary, #C32B26), var(--color-accent, #2A3866));
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.28); }

.btn-outline {
  border: 2px solid var(--color-accent, #2A3866);
  color: var(--color-accent, #2A3866);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.btn-outline:hover { background: var(--color-accent, #2A3866); color: white; transform: translateY(-3px); }

.btn-glow:hover { box-shadow: 0 0 20px rgba(246.140,18,0.5); }
.glass-effect { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }

/* ── Form inputs ── */
.form-input {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  background: white;
}
.form-input:focus {
  border-color: var(--color-accent, #2A3866);
  box-shadow: 0 0 0 4px rgba(42, 56, 102, 0.12);
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--color-secondary, #151D46) 0%, var(--color-accent, #2A3866) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 70%);
  pointer-events: none;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}
@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-float      { animation: float 6s ease-in-out infinite; }

/* Marquee */
.marquee-container { overflow: hidden; white-space: nowrap; position: relative; }
.marquee-content   { display: inline-block; animation: marquee 30s linear infinite; }

/* ── Blob Decorations ── */
.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary, #C32B26) 0%, transparent 70%);
  opacity: 0.05;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}
.blob-accent { background: radial-gradient(circle, var(--color-accent, #2A3866) 0%, transparent 70%); }
.blob-secondary { background: radial-gradient(circle, var(--color-secondary, #151D46) 0%, transparent 70%); }

/* Scroll reveal improvements */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.2, 0, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0, 0.2, 1); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Custom shadows */
.shadow-premium {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* Hover scales */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

/* ── Highlights / Activity News Layout ── */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 2rem;
}
@media (max-width: 1024px) { .highlights-grid { grid-template-columns: 1fr; } }

.news-box {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 4px solid var(--color-primary, #C32B26);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
  text-align: center;
}

.scrollable-list {
  max-height: 800px;
  overflow-y: auto;
  padding-right: 1.25rem;
}
.scrollable-list::-webkit-scrollbar { width: 6px; }
.scrollable-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 10px; }
.scrollable-list::-webkit-scrollbar-thumb { background: var(--color-accent, #2A3866); border-radius: 10px; }

.activity-item {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 15px rgba(0,0,0,0.03);
}
.activity-item:hover { transform: translateX(8px); border-color: var(--color-accent); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }

.member-card-mini {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  border: 4px solid var(--color-primary, #C32B26);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.action-btn-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1.25rem;
  border-radius: 1.25rem;
  margin-top: 1.25rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.02);
}
.action-btn-card:hover { transform: scale(1.04); border-color: var(--color-accent); box-shadow: 0 18px 45px rgba(0,0,0,0.12); }
.action-btn-card i {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--color-accent, #2A3866);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.action-btn-card h4 { font-weight: 700; color: var(--color-secondary); font-size: 1.1rem; }

/* ── Testimonials ── */
.testimonial-slider-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 2rem 0;
}
.testimonial-slider-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: testimonialScroll 60s linear infinite;
}
.testimonial-slider-track:hover {
  animation-play-state: paused;
}
@keyframes testimonialScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card-v2 {
  background: #fff;
  padding: 3rem;
  border-radius: 2.5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.02);
  transition: all 0.4s ease;
  width: 450px;
  flex-shrink: 0;
  white-space: normal;
}
@media (max-width: 768px) {
  .testimonial-card-v2 { width: 320px; padding: 2rem; }
}
.testimonial-card-v2:hover { transform: translateY(-10px); box-shadow: 0 40px 80px rgba(0,0,0,0.08); }

/* ── President Message ── */
.pres-msg-card {
  background: white;
  border-radius: 3rem;
  margin: 5rem 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.04);
}
@media (min-width: 768px) { .pres-msg-card { flex-direction: row; } }

/* ── Modern Premium Typography Overrides ── */
/* Prevents aggressive forced ALL CAPS styling from Tailwind classes, allowing the beautiful mixed/capitalized casing defined in source code to render correctly. */
.uppercase {
  text-transform: none !important;
}

/* ============================================================
   PORTAL LAYOUT OVERRIDES (FULL SCREEN & SQUARE CORNERS)
   ============================================================ */

/* 1. Square corners reset for all elements */
*, *::before, *::after {
  border-radius: 0px !important;
}

/* 2. Full screen width layout (fluid container) */
.container,
.max-w-8xl,
.max-w-7xl,
.max-w-6xl,
.max-w-5xl,
.max-w-4xl {
  max-width: 100% !important;
  width: 100% !important;
}

/* Ensure padding exists on containers so content doesn't hit edge */
.container {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* ============================================================
   BLUE & GREY TEXT COLOR OVERRIDES TO BLACK
   ============================================================ */

/* Brand & accent blue text colors (excluding inside footer) */
body :not(footer):not(footer *) .text-accent,
body :not(footer):not(footer *) .text-secondary,
body :not(footer):not(footer *) .text-blue-300,
body :not(footer):not(footer *) .text-blue-400,
body :not(footer):not(footer *) .text-blue-500,
body :not(footer):not(footer *) .text-blue-600,
body :not(footer):not(footer *) .text-blue-700,
body :not(footer):not(footer *) .text-blue-800,
body :not(footer):not(footer *) .text-blue-900,
body :not(footer):not(footer *) [class*="text-[#2252b9]"],

/* Grey / slate text colors (excluding inside footer) */
body :not(footer):not(footer *) .text-gray-300,
body :not(footer):not(footer *) .text-gray-400,
body :not(footer):not(footer *) .text-gray-500,
body :not(footer):not(footer *) .text-gray-600,
body :not(footer):not(footer *) .text-gray-700,
body :not(footer):not(footer *) .text-gray-800,
body :not(footer):not(footer *) .text-gray-900,
body :not(footer):not(footer *) .text-slate-300,
body :not(footer):not(footer *) .text-slate-400,
body :not(footer):not(footer *) .text-slate-550,
body :not(footer):not(footer *) .text-slate-500,
body :not(footer):not(footer *) .text-slate-600,
body :not(footer):not(footer *) .text-slate-655,
body :not(footer):not(footer *) .text-slate-650,
body :not(footer):not(footer *) .text-slate-700,
body :not(footer):not(footer *) .text-slate-800,
body :not(footer):not(footer *) .text-slate-850,
body :not(footer):not(footer *) .text-slate-900,
body :not(footer):not(footer *) .text-neutral-300,
body :not(footer):not(footer *) .text-neutral-400,
body :not(footer):not(footer *) .text-neutral-500,
body :not(footer):not(footer *) .text-neutral-600,
body :not(footer):not(footer *) .text-neutral-700,
body :not(footer):not(footer *) .text-neutral-800,
body :not(footer):not(footer *) .text-neutral-900,
body :not(footer):not(footer *) .text-zinc-300,
body :not(footer):not(footer *) .text-zinc-400,
body :not(footer):not(footer *) .text-zinc-500,
body :not(footer):not(footer *) .text-zinc-600,
body :not(footer):not(footer *) .text-zinc-700,
body :not(footer):not(footer *) .text-zinc-800,
body :not(footer):not(footer *) .text-zinc-900,

/* Specific design system selectors with blue/grey text */
body :not(footer):not(footer *) .section-badge,
body :not(footer):not(footer *) .action-btn-card h4,
body :not(footer):not(footer *) .btn-outline:not(:hover),
body :not(footer):not(footer *) .section-sub {
  color: #000000 !important;
}

/* Prevent hover transitions from overriding to black when they should be white */
[class*="hover:text-white"]:hover {
  color: #ffffff !important;
}

/* Revert text colors inside dark backgrounds to light/white shades */
.text-white [class*="text-slate-"],
.bg-secondary [class*="text-slate-"],
.bg-accent [class*="text-slate-"],
.bg-primary [class*="text-slate-"],
.page-hero [class*="text-slate-"],
.text-white [class*="text-gray-"],
.bg-secondary [class*="text-gray-"],
.bg-accent [class*="text-gray-"],
.bg-primary [class*="text-gray-"],
.page-hero [class*="text-gray-"],
.text-white .section-sub,
.bg-secondary .section-sub,
.bg-accent .section-sub,
.bg-primary .section-sub,
.page-hero .section-sub {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Specific light text shades on dark backgrounds */
.text-white .text-slate-100, .bg-secondary .text-slate-100, .bg-accent .text-slate-100, .bg-primary .text-slate-100, .page-hero .text-slate-100,
.text-white .text-gray-100, .bg-secondary .text-gray-100, .bg-accent .text-gray-100, .bg-primary .text-gray-100, .page-hero .text-gray-100 {
  color: #f1f5f9 !important;
}
.text-white .text-slate-200, .bg-secondary .text-slate-200, .bg-accent .text-slate-200, .bg-primary .text-slate-200, .page-hero .text-slate-200,
.text-white .text-gray-200, .bg-secondary .text-gray-200, .bg-accent .text-gray-200, .bg-primary .text-gray-200, .page-hero .text-gray-200 {
  color: #e2e8f0 !important;
}
.text-white .text-slate-300, .bg-secondary .text-slate-300, .bg-accent .text-slate-300, .bg-primary .text-slate-300, .page-hero .text-slate-300,
.text-white .text-gray-300, .bg-secondary .text-gray-300, .bg-accent .text-gray-300, .bg-primary .text-gray-300, .page-hero .text-gray-300 {
  color: #cbd5e1 !important;
}
.text-white .text-slate-400, .bg-secondary .text-slate-400, .bg-accent .text-slate-400, .bg-primary .text-slate-400, .page-hero .text-slate-400,
.text-white .text-gray-400, .bg-secondary .text-gray-400, .bg-accent .text-gray-400, .bg-primary .text-gray-400, .page-hero .text-gray-400 {
  color: #94a3b8 !important;
}

/* Force text and icons inside any active tab element to be white across all pages (with high specificity) */
body :not(footer):not(footer *) [class*="active-tab"],
body :not(footer):not(footer *) [class*="active-tab"] *,
body :not(footer):not(footer *) [class*="-active-tab"],
body :not(footer):not(footer *) [class*="-active-tab"] * {
  color: #ffffff !important;
}

/* Revert text color back to dark if nested inside a dropdown menu or marquee notice bar */
.dropdown-content,
.dropdown-content *,
[id*="menu"] *,
[id*="menu"],
marquee,
marquee * {
  color: #111827 !important;
}


