/* ==========================================================================
   BENA (Bankura Exploration Nature Academy) - Modern Design System
   Inspired by American Alpine Institute & GGIM
   ========================================================================== */

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

:root {
  /* Brand Colors */
  --color-primary: #0F172A;        /* Deep Alpine Navy */
  --color-primary-light: #1E293B;  /* Slate Navy */
  --color-primary-dark: #070D18;   /* Night Summit */
  --color-accent: #E65100;         /* Mountaineering Terra-cotta / Safety Orange */
  --color-accent-hover: #C64300;
  --color-accent-light: #FFF3E0;
  --color-secondary: #0284C7;      /* Glacial Blue */
  --color-gold: #F59E0B;           /* Summit Dawn Amber / BENA Yellow */
  --color-gold-light: #FEF3C7;
  --color-forest: #15803D;         /* Susunia Pine Green */
  --color-forest-light: #DCFCE7;

  /* Neutrals */
  --color-bg: #F8FAFC;             /* Alpine Snow Base */
  --color-surface: #FFFFFF;        /* Pure White Card */
  --color-surface-alt: #F1F5F9;    /* Light Slate */
  --color-border: #E2E8F0;
  --color-border-hover: #CBD5E1;
  --color-text: #0F172A;           /* Deep Charcoal */
  --color-text-muted: #64748B;     /* Slate */
  --color-text-light: #94A3B8;
  --color-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(230, 81, 0, 0.35);

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
  --topbar-height: 40px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

input, textarea, select {
  font-size: 16px; /* Prevents auto-zoom on iOS Safari */
}

button, .btn {
  min-height: 44px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.85rem, 5.5vw + 0.3rem, 3.25rem);
  line-height: 1.18;
}

h2 {
  font-size: clamp(1.4rem, 3.8vw + 0.25rem, 2.45rem);
  line-height: 1.22;
}

h3 {
  font-size: clamp(1.18rem, 2.5vw + 0.2rem, 1.65rem);
  line-height: 1.3;
}

h4 {
  font-size: clamp(1.02rem, 1.8vw + 0.15rem, 1.3rem);
  line-height: 1.35;
}

h5 {
  font-size: clamp(0.92rem, 1.4vw + 0.12rem, 1.15rem);
}

h6 {
  font-size: clamp(0.82rem, 1.2vw + 0.1rem, 1rem);
}

p {
  font-size: clamp(0.92rem, 0.4vw + 0.82rem, 1.05rem);
  line-height: 1.65;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.section {
  padding: clamp(2.75rem, 6vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}

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

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-surface {
  background-color: var(--color-surface);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-accent { color: var(--color-accent); }
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-text-muted); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Mobile-First Responsive Grids & Layout Utilities */
.responsive-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
@media (min-width: 900px) {
  .responsive-split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4.5rem;
  }
}

.responsive-split-reverse {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
@media (min-width: 900px) {
  .responsive-split-reverse {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4.5rem;
  }
  .responsive-split-reverse > :first-child {
    order: 2;
  }
  .responsive-split-reverse > :last-child {
    order: 1;
  }
}

.responsive-split-main-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 992px) {
  .responsive-split-main-sidebar {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    margin-bottom: 4.5rem;
  }
}

.responsive-split-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 992px) {
  .responsive-split-map {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }
}

/* Even-Card Collections (2, 4, 6, 8...): 2-Column Balanced Grid on Mobile */
.grid-even-2col,
.responsive-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 359px) {
  .grid-even-2col,
  .responsive-2col {
    gap: 0.65rem;
  }
}

@media (min-width: 768px) {
  .grid-even-2col,
  .responsive-2col {
    gap: 1.75rem;
  }
  .grid-even-2col.desktop-3col {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-even-2col.desktop-4col {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card inner adjustments for 2-column mobile grids */
@media (max-width: 767px) {
  .grid-even-2col > *,
  .responsive-2col > * {
    padding: 1rem 0.85rem !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .grid-even-2col h3,
  .grid-even-2col h4,
  .responsive-2col h3,
  .responsive-2col h4 {
    font-size: 0.98rem !important;
    margin-bottom: 0.35rem !important;
  }
  .grid-even-2col p,
  .responsive-2col p {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.5rem !important;
  }
}

.responsive-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .responsive-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .responsive-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.responsive-4col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 359px) {
  .responsive-4col {
    gap: 0.65rem;
  }
}
@media (min-width: 992px) {
  .responsive-4col {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Odd-Card Collections (3, 5, 7...): Smooth Touch Swipe/Loop Carousel on Mobile */
.mobile-card-carousel,
.touch-scroll-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1.15rem;
  padding: 0.5rem 0.25rem 1.25rem;
  margin: 0 -0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-card-carousel::-webkit-scrollbar,
.touch-scroll-carousel::-webkit-scrollbar {
  display: none;
}

.mobile-card-carousel > *,
.touch-scroll-carousel > * {
  flex: 0 0 84%;
  max-width: 330px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
  height: 100%;
}

.mobile-card-carousel .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.mobile-card-carousel .card-footer {
  margin-top: auto;
}

@media (max-width: 359px) {
  .mobile-card-carousel > *,
  .touch-scroll-carousel > * {
    flex: 0 0 88%;
    max-width: 290px;
  }
}

@media (min-width: 768px) {
  .mobile-card-carousel,
  .touch-scroll-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    padding: 0;
    margin: 0;
    gap: 1.75rem;
  }
  .mobile-card-carousel.desktop-2col,
  .touch-scroll-carousel.desktop-2col {
    grid-template-columns: repeat(2, 1fr);
  }
  .mobile-card-carousel.desktop-4col,
  .touch-scroll-carousel.desktop-4col {
    grid-template-columns: repeat(4, 1fr);
  }
  .mobile-card-carousel > *,
  .touch-scroll-carousel > * {
    flex: initial;
    max-width: none;
    scroll-snap-align: none;
  }
  .carousel-indicators {
    display: none !important;
  }
}

/* Carousel Dot Pagination Indicators (44px Accessible Touch Targets) */
.carousel-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  min-height: 44px;
}
@media (min-width: 768px) {
  .carousel-indicators {
    display: none !important;
  }
}
.carousel-dot {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}
.carousel-dot-pill {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-border);
  transition: all var(--transition-normal);
  pointer-events: none;
}
.carousel-dot.active .carousel-dot-pill {
  width: 24px;
  background: var(--color-accent);
}

/* Balanced Odd-Number Grid Layout */
@media (min-width: 640px) and (max-width: 991px) {
  .balanced-odd-3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Table Responsive Horizontal Container */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

/* Mobile Touch & Stack Utilities */
@media (max-width: 640px) {
  .btn-mobile-full {
    width: 100% !important;
    justify-content: center !important;
  }
  .mobile-stack {
    flex-direction: column !important;
    width: 100% !important;
  }
  .mobile-stack > * {
    width: 100% !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #C2410C 100%);
  color: var(--color-white);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #FF6F00 0%, var(--color-accent) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-secondary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  backdrop-filter: blur(8px);
}
.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: var(--color-primary);
  font-weight: 800;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-accent {
  background: var(--color-accent-light);
  color: var(--color-accent);
}
.badge-gold {
  background: var(--color-gold-light);
  color: #B45309;
}
.badge-forest {
  background: var(--color-forest-light);
  color: var(--color-forest);
}
.badge-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Section Header Component */
.section-header {
  margin-bottom: 3.5rem;
}
.section-header .section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 680px;
}
.section-header.text-center p {
  margin-left: auto;
  margin-right: auto;
}
.section-dark .section-header p {
  color: #94A3B8;
}

/* Animations */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Responsive Breakpoints & Mobile Enhancements */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4rem 0; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3.25rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 1.85rem; }
  .section-header p { font-size: 1rem; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .section { padding: 2.75rem 0; }
  .section-header { margin-bottom: 1.75rem; }
  .section-header h2 { font-size: 1.6rem; }
  .section-header p { font-size: 0.95rem; }
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    min-height: 46px;
  }
}

@media (max-width: 360px) {
  html { font-size: 14.5px; }
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .section { padding: 2.25rem 0; }
  .section-header h2 { font-size: 1.45rem; }
  .badge { font-size: 0.7rem; padding: 0.25rem 0.65rem; }
  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}
