/* ===================================================================
   GENAXA - National Council for Vocational Education & Certification
   Master Institutional Stylesheet (css/style.css)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  /* Primary Institutional Palette */
  --color-navy-darkest: #050B17;
  --color-navy-dark: #0A152C;
  --color-navy-base: #0F1E3D;
  --color-navy-light: #162B54;
  --color-navy-surface: #1B3466;
  --color-navy-glass: rgba(15, 30, 61, 0.85);

  /* Gold / Saffron Accents */
  --color-gold-light: #FDE047;
  --color-gold-base: #F59E0B;
  --color-gold-deep: #D97706;
  --color-gold-metallic: linear-gradient(135deg, #F9D976 0%, #E9B642 50%, #C98A2C 100%);
  --color-gold-border: rgba(245, 158, 11, 0.35);
  --color-saffron: #F97316;

  /* Emerald / Green Accents */
  --color-green-emerald: #10B981;
  --color-green-dark: #059669;
  --color-green-light: #34D399;
  --color-green-glow: rgba(16, 185, 129, 0.25);

  /* Cyan / Light Blue Accents */
  --color-blue-accent: #38BDF8;
  --color-blue-glow: rgba(56, 189, 248, 0.25);

  /* Neutrals & Text */
  --color-silver: #E2E8F0;
  --color-text-white: #FFFFFF;
  --color-text-muted: #94A3B8;
  --color-text-dim: #64748B;
  --color-border-subtle: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-serif: 'Playfair Display', 'Merriweather', Georgia, serif;
  --font-display: 'Cinzel', 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Shadow & Glow */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-gold-hover: 0 15px 35px -5px rgba(245, 158, 11, 0.2), 0 0 0 1px rgba(245, 158, 11, 0.4);
  --shadow-green-hover: 0 15px 35px -5px rgba(16, 185, 129, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.4);
}

/* -------------------------------------------------------------
   Base Reset & Typography
   ------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-navy-darkest);
  color: var(--color-silver);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #132448 0%, #050B17 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* -------------------------------------------------------------
   Master Council Footer Styling
   ------------------------------------------------------------- */
.footer-council {
  background: linear-gradient(180deg, #060E1E 0%, #030712 100%);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  color: #94A3B8;
  position: relative;
  overflow: hidden;
}

.footer-council::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.6) 0%, transparent 80%);
}

.footer-link {
  color: #94A3B8;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: #FBBF24;
  transform: translateX(4px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--color-navy-darkest);
}
::-webkit-scrollbar-thumb {
  background: #1e3a6e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-base);
}

/* -------------------------------------------------------------
   Typography & Accents
   ------------------------------------------------------------- */
h1, h2, h3, .font-serif-heading {
  font-family: var(--font-serif);
  color: var(--color-text-white);
  letter-spacing: -0.01em;
}

.font-council-title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.text-gold-gradient {
  background: var(--color-gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-green-gradient {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header-motif {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-header-motif::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-gold-metallic);
  border-radius: 2px;
}

.section-header-motif.align-left::after {
  left: 0;
  transform: none;
}

/* -------------------------------------------------------------
   Emblem & Logo Styles
   ------------------------------------------------------------- */
.genaxa-emblem-svg {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.genaxa-emblem-svg:hover {
  transform: scale(1.04);
}

/* -------------------------------------------------------------
   Navigation & Header
   ------------------------------------------------------------- */
.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 11, 23, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 76px;
  display: flex;
  align-items: center;
}

.navbar-scrolled {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8);
  border-bottom-color: rgba(245, 158, 11, 0.3);
  background: rgba(4, 9, 20, 0.98);
}

.genaxa-header-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.genaxa-header-logo:hover {
  transform: scale(1.025);
  filter: drop-shadow(0 4px 14px rgba(245, 158, 11, 0.4));
}

.nav-link {
  position: relative;
  color: #CBD5E1;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  padding: 8px 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: #FBBF24;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold-metallic);
  border-radius: 2px;
  transition: width 0.25s ease;
}

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

/* Dropdown Menu */
.dropdown-menu-council {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: #0B172E;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.7);
  padding: 8px 0;
  z-index: 110;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown-group:hover .dropdown-menu-council {
  display: block;
}

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

.dropdown-item-council {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: #CBD5E1;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.dropdown-item-council:hover {
  background: rgba(245, 158, 11, 0.1);
  color: #FBBF24;
  padding-left: 20px;
}

/* -------------------------------------------------------------
   Buttons & CTAs
   ------------------------------------------------------------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-gold-metallic);
  color: #050B17;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  color: #000;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #FBBF24;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline-gold:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #FBBF24;
  color: #FFF;
  transform: translateY(-2px);
}

.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* -------------------------------------------------------------
   Council Cards & Containers
   ------------------------------------------------------------- */
.card-council {
  background: #0E1A36;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-council:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold-hover);
}

.card-council-green:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-green-hover);
}

/* Top Accent line on cards */
.card-accent-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold-metallic);
}

.card-accent-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #34D399);
}

/* -------------------------------------------------------------
   Hero Geometric SVG Pattern & Embellishments
   ------------------------------------------------------------- */
.hero-pattern-bg {
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.07) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

.stats-strip {
  background: linear-gradient(90deg, #091326 0%, #102144 50%, #091326 100%);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

/* -------------------------------------------------------------
   Verification & Certificate UI
   ------------------------------------------------------------- */
.cert-seal-border {
  border: 4px double #D97706;
  position: relative;
  background: radial-gradient(circle at center, #0F1E3D 0%, #070E1C 100%);
}

.badge-status-valid {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
}

.badge-status-expired {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
}

.badge-status-revoked {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
}

/* -------------------------------------------------------------
   Tabs UI
   ------------------------------------------------------------- */
.tab-btn {
  padding: 12px 20px;
  font-weight: 600;
  color: #94A3B8;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: #E2E8F0;
}

.tab-btn.active {
  color: #FBBF24;
  border-bottom-color: #FBBF24;
  background: rgba(245, 158, 11, 0.05);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* -------------------------------------------------------------
   Form Inputs & Controls
   ------------------------------------------------------------- */
.input-council {
  width: 100%;
  background: #081329;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 11px 14px;
  color: #FFFFFF;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.input-council:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.label-council {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* -------------------------------------------------------------
   Toasts & Notifications
   ------------------------------------------------------------- */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  min-width: 300px;
  max-width: 420px;
  background: #0E1A36;
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--color-gold-base);
  animation: slideInToast 0.3s ease forwards;
}

.toast-success { border-left-color: var(--color-green-emerald); }
.toast-error { border-left-color: #EF4444; }
.toast-info { border-left-color: var(--color-blue-accent); }

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.footer-council {
  background: #030712;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  color: #94A3B8;
  margin-top: auto;
}

.footer-link {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-block;
  margin-bottom: 8px;
}

.footer-link:hover {
  color: #FBBF24;
  transform: translateX(4px);
}

/* -------------------------------------------------------------
   Course Hero Slideshow
   ------------------------------------------------------------- */
.course-hero-carousel {
  position: relative;
  width: 100%;
  min-height: 480px;
  max-height: 580px;
  overflow: hidden;
  background: #020617;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}

@media (min-width: 768px) {
  .course-hero-carousel {
    min-height: 520px;
  }
}

.course-slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  display: flex;
  align-items: center;
  z-index: 1;
}

.course-slide-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.course-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 7s ease-out;
  filter: brightness(0.65) contrast(1.1);
}

.course-slide-item.active .course-slide-img {
  transform: scale(1.06);
}

.course-slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.82) 45%, rgba(2, 6, 23, 0.45) 100%),
              radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
  z-index: 2;
}

.course-slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

@media (min-width: 640px) {
  .course-slide-content {
    padding: 4rem 2rem;
  }
}

.course-slide-item .slide-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-slide-item.active .slide-anim-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.course-slide-item.active .slide-anim-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.course-slide-item.active .slide-anim-3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.course-slide-item.active .slide-anim-4 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.65s;
}

/* Slideshow Navigation Buttons */
.slide-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slide-arrow-btn:hover {
  background: var(--color-gold-base);
  color: #000000;
  border-color: var(--color-gold-light);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.slide-arrow-prev { left: 1.25rem; }
.slide-arrow-next { right: 1.25rem; }

/* Slideshow Indicator Dots */
.slide-dots-container {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(2, 6, 23, 0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-dot.active {
  width: 28px;
  border-radius: 9999px;
  background: var(--color-gold-base);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

