/* ==========================================================================
   SNDPHSS Udayamperoor NSS Website CSS Design System
   ========================================================================== */

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

:root {
  /* Colors */
  --color-primary: #1E3A8A;     /* NSS Royal Blue */
  --color-primary-dark: #0F172A;/* Deep Slate / Dark Navy */
  --color-primary-light: #EFF6FF;/* Ice Blue */
  --color-accent: #E11D48;      /* NSS Crimson Red */
  --color-accent-hover: #BE123C;
  --color-gold: #F59E0B;        /* NSS Wheel Gold */
  --color-gold-light: #FEF3C7;
  
  --color-success: #10B981;     /* Emerald Green for environment/success */
  --color-success-bg: #D1FAE5;
  --color-danger: #EF4444;      /* Red for alert/delete */
  --color-warning: #F59E0B;     /* Orange/Gold for warnings */
  
  --text-dark: #0F172A;         /* Primary text */
  --text-muted: #475569;        /* Subtext */
  --text-light: #F8FAFC;        /* Light text */
  
  --bg-main: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-dark: #0F172A;
  
  --border-color: #E2E8F0;
  
  /* Typography */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 25px rgba(225, 29, 72, 0.3);
  
  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Base Styles & Resets
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  position: relative;
}

.section {
  padding: 6rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-dark {
  background-color: var(--bg-dark);
}

.text-white {
  color: var(--text-light);
}

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

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

button, select, input, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

ul {
  list-style: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ==========================================================================
   Typography & Headers
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary-dark);
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-tag.tag-accent {
  color: var(--color-gold);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.accent-line {
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 1.5rem auto 0;
  border-radius: var(--radius-full);
  position: relative;
}

.accent-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-gold);
  border: 2px solid var(--bg-main);
}

.bg-light .accent-line::after {
  border-color: var(--bg-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-icon i {
  width: 18px;
  height: 18px;
}

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

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #1A365D;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--text-light);
}

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

.btn-outline {
  background-color: transparent;
  border-color: var(--text-light);
  color: var(--text-light);
}

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

.btn-outline-dark {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-dark:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.w-full {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Announcements / Top Bar
   ========================================================================== */
.top-bar {
  background-color: var(--color-primary-dark);
  color: var(--text-light);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-info {
  display: flex;
  gap: 1.5rem;
}

.top-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.9;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.top-badges {
  display: flex;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-accent {
  background-color: var(--color-gold-light);
  color: #92400E;
}

.badge-success {
  background-color: var(--color-success-bg);
  color: #065F46;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-symbol {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.logo:hover .logo-symbol {
  transform: rotate(45deg);
}

.nss-logo-svg {
  width: 100%;
  height: 100%;
}

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

.school-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.nss-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-fast);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary-dark);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background-color: var(--bg-main);
  z-index: 1000;
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: var(--transition-normal);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.menu-close {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  padding: 0.5rem 0;
}

.mobile-link:hover {
  color: var(--color-primary);
  padding-left: 0.5rem;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
}

.overlay.open {
  display: block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 8rem 0 7rem;
  background: radial-gradient(circle at 80% 30%, #EFF6FF 0%, #FFFFFF 60%);
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.1);
}

.icon-accent {
  color: var(--color-accent);
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 850;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-primary-dark) 30%, var(--color-accent) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-badge-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Shield Emblem Styling */
.hero-shield {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.shield-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(30, 58, 138, 0.2);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.shield-circle {
  width: 85%;
  height: 85%;
  background-color: var(--bg-card);
  border-radius: 50%;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px solid var(--border-color);
  z-index: 2;
}

.shield-nss-logo {
  width: 100%;
  height: 100%;
}

.shield-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background-color: var(--color-accent);
  opacity: 0.15;
  filter: blur(40px);
  border-radius: 50%;
  z-index: 1;
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Statistics Section
   ========================================================================== */
.stats-section {
  position: relative;
  z-index: 10;
  margin-top: -3rem;
}

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

.stat-card {
  background-color: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wrapper i {
  width: 26px;
  height: 26px;
}

.color-primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.color-danger {
  background-color: #FFE4E6;
  color: var(--color-accent);
}

.color-success {
  background-color: var(--color-success-bg);
  color: #047857;
}

.color-warning {
  background-color: var(--color-gold-light);
  color: #B45309;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-graphics {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.graphic-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.main-graphic {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--text-light);
  box-shadow: var(--shadow-lg);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}

.main-graphic::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}

.graphic-content h3 {
  color: var(--text-light);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.graphic-content p {
  opacity: 0.8;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.sub-graphic {
  background-color: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  align-items: center;
  max-width: 90%;
  margin-top: -2.5rem;
  margin-left: 2rem;
  z-index: 2;
}

.graphic-icon {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.graphic-icon i {
  width: 22px;
  height: 22px;
}

.graphic-txt h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.graphic-txt p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-text > h3 {
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
}

.about-text > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.objectives-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.objective-item {
  display: flex;
  gap: 1rem;
}

.objective-icon {
  color: var(--color-success);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.objective-icon i {
  width: 22px;
  height: 22px;
}

.objective-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

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

/* ==========================================================================
   Activities Section
   ========================================================================== */
.controls-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.filter-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pill {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pill:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-color: rgba(30, 58, 138, 0.2);
}

.pill.active {
  background-color: var(--color-primary);
  color: var(--text-light);
  border-color: var(--color-primary);
}

.search-bar-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

#activitySearch {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

#activitySearch:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

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

.activity-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--color-primary-light);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.activity-card:hover .card-img {
  transform: scale(1.08);
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card-meta i {
  width: 14px;
  height: 14px;
}

.card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Photo Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background-color: var(--color-primary-light);
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15,23,42,0) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  transition: opacity var(--transition-normal);
}

.gallery-overlay i {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text-light);
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.gallery-item:hover .gallery-photo {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.gallery-sub {
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--transition-fast);
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1600;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background-color: var(--color-accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-light);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1600;
  transition: var(--transition-fast);
}

.lightbox-nav i {
  width: 28px;
  height: 28px;
}

.lightbox-nav:hover {
  background-color: var(--color-primary);
}

.lightbox-nav.prev {
  left: 2rem;
}

.lightbox-nav.next {
  right: 2rem;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(255,255,255,0.1);
}

.lightbox-caption {
  color: var(--text-light);
  margin-top: 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  font-family: var(--font-title);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Upcoming Programs Timeline
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Vertical timeline center line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: var(--border-color);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Timeline dot */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: 4px solid var(--bg-main);
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.3);
  background-color: var(--color-gold);
}

/* Alternate Timeline sides */
.timeline-content-wrapper {
  width: 45%;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 58, 138, 0.15);
}

/* Floating Triangle Pointer */
.timeline-card::after {
  content: '';
  position: absolute;
  top: 24px;
  width: 12px;
  height: 12px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  transform: rotate(-45deg);
}

.timeline-item:nth-child(odd) .timeline-card::after {
  right: -7px;
  transform: rotate(135deg);
}

.timeline-item:nth-child(even) .timeline-card::after {
  left: -7px;
  transform: rotate(-45deg);
}

.timeline-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.timeline-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.timeline-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.timeline-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-meta-row i {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-info-col h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.contact-desc {
  opacity: 0.8;
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  margin-bottom: 3rem;
}

.info-item {
  display: flex;
  gap: 1.25rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}

.info-icon i {
  width: 22px;
  height: 22px;
}

.info-details h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.info-details p {
  opacity: 0.8;
  font-size: 0.95rem;
}

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

.social-link {
  width: 44px;
  height: 44px;
  background-color: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.05);
}

.social-link:hover {
  background-color: var(--color-accent);
  transform: translateY(-3px);
  color: white;
}

/* Contact Form Card */
.form-card {
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

.form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.form-row {
  display: flex;
  gap: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  background-color: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* ==========================================================================
   Admin Modal Portal
   ========================================================================== */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-modal.open {
  display: flex;
}

.admin-modal-dialog {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp var(--transition-normal);
}

@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.admin-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-title i {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
}

.header-title h3 {
  font-size: 1.5rem;
  line-height: 1.1;
}

.header-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.admin-modal-close:hover {
  background-color: var(--color-primary-light);
  color: var(--color-accent);
}

.admin-modal-tabs {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  padding: 0 2rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-accent);
}

.admin-modal-body {
  padding: 2rem;
  flex-grow: 1;
  overflow-y: auto;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-split-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  height: 100%;
  align-items: start;
}

.admin-form {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.admin-form h4 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* File Drop Zone */
.file-drop-zone {
  border: 2px dashed #CBD5E1;
  background-color: white;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
}

.file-drop-zone:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-zone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.drop-zone-prompt i {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.drop-zone-prompt span {
  font-size: 0.9rem;
  font-weight: 600;
}

.file-format-info {
  font-size: 0.75rem !important;
  opacity: 0.7;
}

.image-preview-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.image-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-preview-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: rgba(15, 23, 42, 0.85);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.remove-preview-btn:hover {
  background-color: var(--color-danger);
}

/* Item List inside Admin Portal */
.admin-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-list-wrapper h4 {
  font-size: 1.15rem;
}

.admin-item-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.admin-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: white;
}

.item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.item-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary-light);
}

.item-details h5 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.item-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-delete {
  background: none;
  border: none;
  color: var(--color-danger);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-delete:hover {
  background-color: #FEE2E2;
}

.grid-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.grid-list .admin-item-card {
  flex-direction: column;
  align-items: stretch;
  padding: 0.5rem;
  text-align: center;
  position: relative;
}

.grid-list .item-left {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.grid-list .item-thumb {
  width: 100%;
  height: 90px;
}

.grid-list .btn-delete {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: white;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #050B14;
  color: #94A3B8;
  padding: 5rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-svg {
  width: 48px;
  height: 48px;
}

.footer-logo h3 {
  color: white;
  font-size: 1.25rem;
  line-height: 1.2;
}

.footer-logo p {
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-about {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer-links-group h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2rem 0;
  font-size: 0.85rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.pulse {
  animation: pulse-animation 2s infinite;
}

.icon-danger {
  color: var(--color-accent);
}

@keyframes pulse-animation {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .admin-split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .admin-item-list {
    max-height: 40vh;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  .top-bar {
    display: none; /* Hide top bar details on mobile to save space */
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-badge-container {
    order: -1;
  }
  .hero-shield {
    width: 200px;
    height: 200px;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    flex-direction: row !important;
    justify-content: flex-start;
  }
  .timeline-dot {
    left: 20px;
  }
  .timeline-content-wrapper {
    width: calc(100% - 40px);
    margin-left: 40px;
  }
  .timeline-card::after {
    left: -7px !important;
    right: auto !important;
    transform: rotate(-45deg) !important;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .activities-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-card {
    padding: 1.5rem;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons a {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .sub-graphic {
    max-width: 100%;
    margin-left: 0;
    margin-top: -1.5rem;
  }
  .admin-modal-dialog {
    height: 95vh;
  }
  .admin-modal-tabs {
    padding: 0 1rem;
    overflow-x: auto;
    white-space: nowrap;
  }
  .tab-btn {
    padding: 1rem 1rem;
  }
  .admin-modal-body {
    padding: 1rem;
  }
}

/* ==========================================================================
   Admin Passcode Authorization Portal Styling
   ========================================================================== */
.admin-passcode-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-grow: 1;
  background-color: var(--bg-light);
  padding: 3rem 1.5rem;
  min-height: 480px;
}

.passcode-box {
  width: 100%;
  max-width: 400px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalSlideUp 0.4s ease;
}

.passcode-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: rgba(225, 29, 72, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(225, 29, 72, 0.15);
}

.passcode-icon-wrapper i {
  width: 30px;
  height: 30px;
}

.passcode-box h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.passcode-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.passcode-form {
  width: 100%;
  text-align: left;
}

.password-field-wrapper {
  margin-bottom: 1.25rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-icon input {
  padding-right: 3.25rem !important; /* Make room for visibility toggle */
  background-color: white !important;
}

.btn-toggle-password {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.btn-toggle-password:hover {
  background-color: var(--bg-light);
  color: var(--color-primary);
}

.btn-toggle-password i {
  width: 18px;
  height: 18px;
}

.error-msg {
  color: var(--color-danger);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.error-msg i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

