/* FSN custom styles */
:root {
  --color-primary: #FF6A00;
  --color-secondary: #0B6B5A;
  --color-accent: #005B4F;
  --color-teal: #00A98F;
  --color-dark: #152130;
  --color-light: #F7FAFB;
  --color-white: #FFFFFF;
  --color-grey: #EDF2F6;
}

body {
  background: #EDF2F6;
  color: #152130;
}

.bg-brand-gradient {
  background: linear-gradient(135deg, #FF6A00 0%, #00A98F 50%, #152130 100%);
}

.bg-hero-gradient {
  background: linear-gradient(135deg, rgba(255,106,0,0.95), rgba(0,169,143,0.95), rgba(21,33,48,0.95));
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
}

.card-soft {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(26,26,46,0.08);
}

/* Admin styles */
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 40;
}

.admin-sidebar::-webkit-scrollbar {
  width: 8px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.admin-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 30px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.admin-stat-label {
  color: #6b7280;
}

.gradient-badge {
  background: linear-gradient(135deg, #00A98F, #FF6A00);
}

@media (min-width: 1024px) {
  .admin-main-content {
    margin-left: 240px;
  }
}

.admin-main-content header {
  top: 0;
}

/* ===== HERO SECTION ===== */
.hero-image-section {
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-image-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(4, 12, 26, 0.92) 0%,
    rgba(4, 12, 26, 0.82) 30%,
    rgba(0, 80, 60, 0.65) 60%,
    rgba(0, 104, 78, 0.40) 100%
  );
  z-index: 1;
}

.hero-image-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(255, 106, 0, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 169, 143, 0.10) 0%, transparent 50%);
  z-index: 1;
}

.hero-image-section > * {
  position: relative;
  z-index: 2;
}

/* ===== IMPACT IMAGE SECTION ===== */
.impact-image-section {
  position: relative;
  overflow: hidden;
}

.impact-image-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(5, 24, 38, 0.90) 0%,
    rgba(4, 20, 34, 0.78) 40%,
    rgba(0, 80, 60, 0.55) 100%
  );
  z-index: 1;
}

.impact-image-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 70% 80%, rgba(255, 106, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 30%, rgba(0, 169, 143, 0.08) 0%, transparent 50%);
  z-index: 1;
}

.impact-image-section > * {
  position: relative;
  z-index: 2;
}

/* ===== BACKGROUND IMAGE OVERLAY ===== */
.bg-image-overlay {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.bg-image-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(21, 33, 48, 0.65);
  z-index: 1;
}

.bg-image-overlay > * {
  position: relative;
  z-index: 2;
}

.bg-inhands {
  background-image: url('../images/uploads/inhands.jpg');
}

.bg-handsholding {
  background-image: url('../images/uploads/handsholding.jpg');
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
  clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 100%);
}

/* ===== CARD EFFECTS ===== */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
}

.card-border-anim {
  position: relative;
  overflow: hidden;
}

.card-border-anim::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #FF6A00, #00A98F);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-border-anim:hover::after {
  transform: scaleX(1);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animation delays for grid items */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.19s; }
.stagger-4 { transition-delay: 0.26s; }

/* ===== FORM FOCUS STYLES ===== */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.form-error {
  border-color: #FF6A00;
}

.error-text {
  color: #FF6A00;
}

/* ===== BACK TO TOP ===== */
#back-to-top {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

#back-to-top.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-2px);
}

/* ===== ENHANCED CARD SOFT ===== */
.card-soft {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.card-soft::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: url('../images/uploads/logo.jpg') no-repeat center center;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.card-soft > * {
  position: relative;
  z-index: 1;
}

.card-soft:hover {
  border-color: rgba(255, 106, 0, 0.15);
  box-shadow: 0 30px 60px rgba(255, 106, 0, 0.12);
  transform: translateY(-4px);
}

/* ===== ENHANCED BUTTONS ===== */
.btn-primary, .btn-secondary {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 106, 0, 0.35);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(11, 107, 90, 0.35);
}

/* ===== SECTION BACKGROUNDS ===== */
.bg-gradient-light {
  background: linear-gradient(135deg, rgba(247, 250, 251, 0.8), rgba(237, 242, 246, 0.9));
}

/* ===== ARTICLE CARDS ===== */
article.card-soft {
  overflow: hidden;
}

article.card-soft img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

article.card-soft:hover img {
  transform: scale(1.06);
}

/* ===== DECORATIVE ELEMENTS ===== */
.accent-top-bar {
  border-top: 4px solid;
  border-image: linear-gradient(90deg, #FF6A00, #00A98F) 1;
}

/* ===== TEXT SHADOWS ===== */
.drop-shadow-lg {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.drop-shadow-md {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ===== GRADIENT TEXT ===== */
.text-gradient {
  background: linear-gradient(135deg, #FF6A00, #00A98F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== GLASS CARD EFFECT ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.4s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== GRADIENT BORDER EFFECT ===== */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.4), rgba(0, 169, 143, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gradient-border:hover::before {
  opacity: 1;
}

/* ===== HERO STAT COUNTER ===== */
.stat-counter {
  position: relative;
  overflow: hidden;
}

.stat-counter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.05), rgba(0, 169, 143, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-counter:hover::before {
  opacity: 1;
}

/* ===== PULSE ANIMATION FOR BADGES ===== */
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(255, 106, 0, 0); }
}

.pulse-badge {
  animation: subtle-pulse 2.5s infinite;
}

/* ===== FLOATING ANIMATION ===== */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.float-animation {
  animation: float-gentle 4s ease-in-out infinite;
}

/* ===== LOGO WATERMARK ===== */
.bg-logo-watermark,
section.bg-white,
section.bg-light-grey {
  position: relative;
  overflow: hidden;
}

.bg-logo-watermark::before,
section.bg-white::before,
section.bg-light-grey::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  background: url('../images/uploads/logo.jpg') no-repeat center center;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.bg-logo-watermark > *,
section.bg-white > *,
section.bg-light-grey > * {
  position: relative;
  z-index: 1;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .hero-image-section,
  .impact-image-section {
    background-attachment: scroll !important;
  }

  .hero-image-section {
    min-height: auto;
  }
}

/* ===== NAVBAR SCROLL EFFECT ===== */
#navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* ===== PROGRAM CARD ICON ===== */
.program-icon {
  transition: all 0.3s ease;
}

.program-icon:hover {
  transform: scale(1.1) rotate(-5deg);
}

/* ===== BLOG CARD CATEGORY PILL ===== */
.category-pill {
  transition: all 0.2s ease;
}

article:hover .category-pill {
  background-color: var(--color-secondary);
  color: #fff;
}

/* ===== TEAM MEMBER CARD ===== */
.team-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-card img {
  transition: transform 0.4s ease;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}