/* BPO Custom CSS — Brand Colors: #103344 (primary) + #F5B70C (accent) */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bpo-primary:       #103344;
  --bpo-primary-light: #1A4A5E;
  --bpo-primary-dark:  #0A2230;
  --bpo-accent:        #F5B70C;
  --bpo-accent-hover:  #D9A00A;
  --bpo-accent-light:  #FDD96A;
  --bpo-white:         #FFFFFF;
  --bpo-offwhite:      #F4F7F6;
  --bpo-text-dark:     #0D1F26;
  --bpo-text-muted:    #6B7280;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bpo-primary-dark); }
::-webkit-scrollbar-thumb { background: var(--bpo-accent); border-radius: 3px; }

/* Nav links */
.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link:hover { color: #F5B70C; background: rgba(255,255,255,0.08); }
.nav-link.active { color: #F5B70C; font-weight: 600; }

.dropdown-item {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.dropdown-item:hover { color: #F5B70C; background: rgba(255,255,255,0.08); }

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: color 0.15s, background-color 0.15s;
}
.mobile-nav-link:hover { color: #F5B70C; background: rgba(255,255,255,0.08); }

/* Scroll animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].animate-visible { opacity: 1; transform: translateY(0); }

[data-animate-left] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate-left].animate-visible { opacity: 1; transform: translateX(0); }

[data-animate-right] {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate-right].animate-visible { opacity: 1; transform: translateX(0); }

/* Staggered children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-stagger].animate-visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0.1s; }
[data-stagger].animate-visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.2s; }
[data-stagger].animate-visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.3s; }
[data-stagger].animate-visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.4s; }
[data-stagger].animate-visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.5s; }
[data-stagger].animate-visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:0.6s; }

/* Team card hover */
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-top: 3px solid #F5B70C;
}

/* Page hero — used on all inner pages */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-color: #0A2230;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,34,48,0.75);
  z-index: 0;
}
.page-hero .page-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 2rem;
}
@media (min-width: 640px) {
  .page-hero .page-hero-inner { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (min-width: 1024px) {
  .page-hero .page-hero-inner { padding-left: 3rem; padding-right: 3rem; }
}
.page-hero-inner { opacity: 1; transform: none; }

/* Hero gradient */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-gradient {
  background: linear-gradient(135deg, #0A2230 0%, #103344 45%, #1A4A5E 75%, #F5B70C 100%);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
}

/* Diagonal clip */
.clip-diagonal { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.clip-diagonal-reverse { clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%); }

/* Marquee */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

/* Card hover */
.program-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: #F5B70C !important;
}

/* Blog card image zoom */
.blog-card-img { transition: transform 0.4s ease; }
.blog-card:hover .blog-card-img { transform: scale(1.05); }

/* Prose styles for blog content */
.prose-bpo h2 { font-size: 1.5rem; font-weight: 700; color: #103344; margin: 1.5rem 0 0.75rem; }
.prose-bpo h3 { font-size: 1.25rem; font-weight: 600; color: #0A2230; margin: 1.25rem 0 0.5rem; }
.prose-bpo p  { margin-bottom: 1rem; line-height: 1.75; color: #374151; }
.prose-bpo ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-bpo li { margin-bottom: 0.5rem; color: #374151; }
.prose-bpo blockquote { border-left: 4px solid #F5B70C; padding-left: 1rem; font-style: italic; color: #6B7280; margin: 1.5rem 0; }
.prose-bpo a  { color: #103344; text-decoration: underline; }

/* Admin sidebar */
.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.admin-sidebar-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.admin-sidebar-link.active {
  background: rgba(245,183,12,0.2);
  color: #F5B70C;
  border: 1px solid rgba(245,183,12,0.35);
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
  background: #fff;
  color: #1f2937;
  font-size: 0.875rem;
}
.form-input:focus { box-shadow: 0 0 0 3px rgba(16,51,68,0.15); border-color: #103344; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #F5B70C;
  color: #103344;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(245,183,12,0.35);
}
.btn-primary:hover { background: #D9A00A; box-shadow: 0 6px 20px rgba(245,183,12,0.45); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #103344;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-secondary:hover { background: #1A4A5E; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid #F5B70C;
  color: #F5B70C;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: #F5B70C; color: #103344; }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-white:hover { background: #fff; color: #103344; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ef4444;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.2s;
}
.btn-danger:hover { background: #dc2626; }

/* Section titles */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #103344;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin-top: 0.75rem;
  max-width: 42rem;
}

/* Pulse animation */
@keyframes pulseAccent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,183,12,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(245,183,12,0); }
}
.animate-pulse-gold { animation: pulseAccent 2s cubic-bezier(0.4,0,0.6,1) infinite; }

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

/* Bounce scroll indicator */
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}
.animate-bounce-slow { animation: bounce-slow 1.5s ease-in-out infinite; }

/* Table styles */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f9fafb;
}
.admin-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  border-top: 1px solid #f3f4f6;
}
.admin-table tr:hover td { background: #f9fafb; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-gold  { background: rgba(245,183,12,0.15); color: #7a5800; }
.badge-teal  { background: rgba(16,51,68,0.12);   color: #103344; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-red   { background: #fee2e2; color: #991b1b; }
.badge-gray  { background: #f3f4f6; color: #374151; }
.badge-blue  { background: #dbeafe; color: #1e40af; }

/* Flash message */
.flash-message {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
