:root {
  --primary: #ff5d00;
  --primary-hover: #e05200;
  --secondary: #2a166f;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --text-dark: #1b1c1d;
  --text-muted: #22252a;
  --border-color: #e2e8f0;
  --owwa-blue: #080824;
  --schedule-orange: #fbbd75;
}


* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}


main,
.main-content,
#app-container {
    display: block;
    min-height: calc(100vh - 280px); /* Adjust 280px to match navbar height + footer height */
    box-sizing: border-box;
    padding-bottom: 3rem !important;
}


body { 
  background-color: var(--bg-light); 
  color: var(--text-dark); 
  margin:0 !important; 
  padding:0 !important; 
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* MARITIME GLASSMORPHISM BACKGROUND CONTAINER */
.maritime-bg {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-color: #D7E1E8; /* Crisp, clean slate base */

  /* LAYER 1: Deep Navy Upward Secondary Gradient Fade
     LAYER 2: Topographic Contour Lines Overlay
     LAYER 3: LEFT-SIDE Technical Sextant & Lat/Long Chart Index
     LAYER 4: RIGHT-SIDE Astrolabe Compass Watermark
     LAYER 5: Architectural Maritime Dot Grid */
  background-image: 
    linear-gradient(
      to top,
      rgba(6, 1, 80, 0.28) 0%,   /* Rich secondary navy accent at baseline */
      rgba(30, 27, 75, 0.12) 30%,  /* Soft upward transition */
      transparent 60%              /* Fades cleanly into light dotted grid */
    ),
    /* LAYER 2: Abstract Topographic Contour Curves (Subtle 3.5% Opacity) */
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 900" fill="none" stroke="rgba(30, 27, 75, 0.035)" stroke-width="1"><path d="M100,-50 C350,200 500,350 300,600 C100,850 500,900 850,1000"/><path d="M180,-50 C430,200 580,350 380,600 C180,850 580,900 930,1000"/><path d="M260,-50 C510,200 660,350 460,600 C260,850 660,900 1010,1000"/><path d="M340,-50 C590,200 740,350 540,600 C340,850 740,900 1090,1000"/><path d="M420,-50 C670,200 820,350 620,600 C420,850 820,900 1170,1000"/></svg>'),

    /* LAYER 3: LEFT SIDE — Sextant Arc & Technical Nautical Chart Grid */
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 450 450" fill="none" stroke="rgba(30, 27, 75, 0.045)" stroke-width="0.8"><path d="M50,400 A350,350 0 0,1 400,50" stroke-dasharray="2 4"/><path d="M80,400 A320,320 0 0,1 400,80"/><line x1="50" y1="400" x2="400" y2="400"/><line x1="400" y1="50" x2="400" y2="400"/><line x1="50" y1="400" x2="300" y2="150" stroke-dasharray="4 4"/><circle cx="50" cy="400" r="12"/><circle cx="300" cy="150" r="6" fill="rgba(30, 27, 75, 0.04)"/><text x="70" y="385" font-family="monospace" font-size="10" fill="rgba(30, 27, 75, 0.25)">SEC-01 // LAT-GRID</text><text x="310" y="145" font-family="monospace" font-size="10" fill="rgba(30, 27, 75, 0.25)">FIX-7.04N</text></svg>'),

    /* LAYER 4: RIGHT SIDE — Astrolabe Compass Watermark */
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400" fill="none" stroke="rgba(30, 27, 75, 0.045)" stroke-width="0.8"><circle cx="200" cy="200" r="180"/><circle cx="200" cy="200" r="140" stroke-dasharray="3 3"/><circle cx="200" cy="200" r="100"/><circle cx="200" cy="200" r="40"/><line x1="20" y1="200" x2="380" y2="200"/><line x1="200" y1="20" x2="200" y2="380"/><polygon points="200,10 206,40 200,34 194,40" fill="rgba(30, 27, 75, 0.04)"/></svg>'),

    /* LAYER 5: Dotted Grid Base */
    radial-gradient(#cbd5e1 1.2px, transparent 1.2px);

  background-size: 
    100% 100%,        /* Upward linear gradient */
    100% 100%,        /* Topographic contour lines */
    450px 450px,      /* LEFT Sextant Chart size */
    460px 460px,      /* RIGHT Compass size */
    24px 24px;        /* Dotted grid spacing */

  background-repeat: 
    no-repeat, 
    no-repeat, 
    no-repeat, 
    no-repeat, 
    repeat;

  background-position: 
    0 0, 
    0 0, 
    left 2% bottom 6%,  /* Sextant chart index on LEFT */
    right 3% bottom 4%, /* Compass on RIGHT */
    0 0;

  background-attachment: fixed;
  transition: background-position 0.1s ease-out;
}

/* Add a slow, elegant pulse to the background astrolabe compass */
@keyframes compassRotary {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Optional subtle float for topographic lines */
@keyframes topographicDrift {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-6px) scale(1.01); }
}

/* Technical Navigation Coordinates Stamp (Top Right) */
.maritime-bg::before {
  content: "7°04'11.2\"N  125°36'24.8\"E  —  DMMA MTAC NAV-GRID 01";
  position: absolute;
  top: 18px;
  right: 28px;
  font-family: 'Courier New', Courier, monospace, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(30, 27, 75, 0.28);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

/* ===================================================
   CENTER GREYSCALE WATERMARK (RESPONSIVE & GLASS-SAFE)
   =================================================== */
.dmma-bg-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 48vw, 620px);
  height: clamp(280px, 48vw, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Prevents blocking clicks on content above it */
  user-select: none;
  z-index: 0; /* Sits behind glass cards, above page background */
}

.dmma-bg-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(105%);
  opacity: 0.08; /* Subtle grey visibility through frosted glass cards */
}

/* Slightly stronger visibility on mobile screens where cards are narrower */
@media (max-width: 600px) {
  .dmma-bg-watermark {
    width: 72vw;
    height: 72vw;
  }

  .dmma-bg-watermark img {
    opacity: 0.1;
  }
}



/* Layout & Containers */
.main-container { 
    width: 95%;               /* Dynamically scales across screens */
    max-width: 1400px;        /* Widens desktop view significantly */
    margin: 0 auto; 
    padding: 2.5rem 1.5rem; 
    padding-bottom: 0 !important; 
    flex: 1;
}

/* Ensure navbar and internal tab content fill available width */
.navbar,
.tab-content { 
    width: 100%;
}

.tab-content { display: none; animation: fadeIn 0.3s ease-in-out; }
.tab-content.active { position: relative !important;
  top: 0 !important;
  left: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  height: auto !important;
  display: block; }

.tab-content:not(.active) {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}


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

/* SECTION DIVIDER LINE */
.section-divider {
  border: 0;
  height: 1px;
  background-color: #e2e8f0; /* Matches existing site divider color */
  margin: 2.5rem 0 1.5rem 0 !important;
  width: 100%;
}

.section-header { border-bottom: 1px solid var(--border-color); padding-bottom: 1.25rem; margin-bottom: 2rem; }
.section-header.flex-between { display: flex; justify-content: space-between; align-items: flex-end; }
.section-header h2 { color: var(--text-muted); font-size: 1.75rem; padding-top: 10px;}
.section-header p { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.25rem; }

/* Hero Section */
.hero-card { background: linear-gradient(135deg, var(--secondary) 0%, #1a0d4a 100%); color: var(--white); border-radius: 16px; padding: 3.5rem 2.5rem; margin-bottom: 2rem; }
.hero-content { max-width: 650px; }
.hero-badge { font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
  padding: 6px 14px;
  border-radius: 20px; }
.hero-title { font-size: 2.25rem; font-weight: 800; margin: 1rem 0; line-height: 1.2; }
.hero-description { color: #cbd5e1; font-size: 1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; }

/*======================================================================
/* SCHEDULE DISCLAIMER BANNER */
.disclaimer-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 4px solid #ff5722; /* Matches your brand orange accent */
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(229, 231, 235, 0.6);
  border-right: 1px solid rgba(229, 231, 235, 0.6);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.disclaimer-icon {
  color: #ff5722; /* Accent orange icon color */
  font-size: 1.15rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.disclaimer-content {
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dark); /* Subtle slate color for better readability */
}

.disclaimer-content strong {
  color: #1a1744; /* Dark navy highlight for title */
  letter-spacing: 0.5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .disclaimer-banner {
    padding: 0.85rem 1rem;
    gap: 0.65rem;
  }
  
  .disclaimer-content {
    font-size: 0.75rem;
    line-height: 1.45;
  }
}
/* ==========================================================================


/* ==========================================================================
   MESSENGER CTA BUBBLE
   ========================================================================== */
.messenger-cta {
  position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #0084ff;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 132, 255, 0.4);
    z-index: 999;
    white-space: nowrap;
    overflow: hidden;
    /* Springy elastic transition curve */
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                padding 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                border-radius 0.4s ease,
                background-color 0.2s ease,
                box-shadow 0.3s ease;
    width: 160px; /* Full button width */
    height: 48px;
    box-sizing: border-box;
}

.messenger-cta span {
  display: inline-block;
  opacity: 1;
  max-width: 120px; /* Prevents text from overflowing */
  transition: opacity 0.3s ease, max-width 0.4s ease, margin 0.3s ease;
}

.messenger-cta i,
.messenger-cta svg {
  font-size: 1.4rem;
  flex-shrink: 0; /* Ensures the icon never squishes */
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.messenger-cta:hover {
  background-color: #006bce;
  box-shadow: 0 10px 30px rgba(0, 132, 255, 0.6);
}

/* --- FOOTER SHRINK STATE (Icon-Only Circle) --- */
.messenger-cta.icon-only {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%; /* Perfect Circle */
  justify-content: center;
  animation: pulse-glow 2s infinite ease-in-out;
}

.messenger-cta.icon-only span {
  opacity: 0;
  max-width: 0;
  margin: 0;
  pointer-events: none;
  position: absolute; /* Takes span completely out of layout flow */
  visibility: hidden;
}

.messenger-cta.icon-only i,
.messenger-cta.icon-only svg {
  transform: scale(1.15) rotate(360deg);
}

/* --- MOBILE RESPONSIVENESS (< 480px) --- */
@media (max-width: 480px) {
  .messenger-cta {
    bottom: 20px;
    right: 20px;
    height: 44px;
    min-width: 44px;
    font-size: 0.88rem;
  }

  .messenger-cta.icon-only {
    width: 44px;
    height: 44px;
  }
}

/* Soft Pulsing Glow Animation when minimized */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 132, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(0, 132, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 132, 255, 0);
    }
}




/* ==========================================================
   COVERFLOW CAROUSEL LIGHTBOX MODAL
   ========================================================== */
.course-modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(15, 23, 42, 0);
  backdrop-filter: blur(0px);
  align-items: center;
  justify-content: center;
  padding: 80px 1.5rem 1.5rem 1.5rem;
  opacity: 0;
  pointer-events: none; /* Prevents clicks when hidden */
  transition: opacity 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Active State - Smooth Overlay Fade */
.course-modal.active {
  opacity: 1;
  pointer-events: auto;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
}

/* Modal Content Card */
.course-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.7); /* Starting unpop state */
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

/* Active Pop State */
.course-modal.active .course-modal-content {
  transform: scale(1); /* Pop in effect */
  opacity: 1;
}

/* Image Styling */
.course-modal-content img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

/* Close Button */
.course-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}

.course-modal-close:hover {
  background: #0284c7;
  transform: scale(1.1);
}



/* ==========================================================================
   3D COVERFLOW CAROUSEL STYLES (IMAGE POSTER MODE)
   ========================================================================== */
.carousel-section {
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  max-width: 1100px;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Enable 3D Hardware Acceleration on Parent */
.coverflow-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  will-change: transform; /* Hardware acceleration prompt */
}

/* Base Card - Optimized Transitions */
.coverflow-card {
  position: absolute;
  width: 388px;
  height: 440px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background-color: transparent;
  
  /* OPTIMIZATION: Only animate transform and opacity. NEVER animate visibility or z-index */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  
  /* Force GPU Layer Creation */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0); 
  will-change: transform, opacity;
}

/* 3. Hide cards that go beyond the 5 visible positions */
.coverflow-card:not(.active):not(.prev):not(.next):not(.far-prev):not(.far-next) {
  opacity: 0 !important;
  visibility: hidden;
}

/* Full Poster Image Fitting */
.course-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3D Transformations */
/* Explicit Active & Visible States */
.coverflow-card.active {
  transform: translateX(0) scale(1.05) rotateY(0deg);
  z-index: 10;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.coverflow-card.prev {
  transform: translateX(-220px) scale(0.85) rotateY(25deg);
  z-index: 5;
  opacity: 0.8;
  visibility: visible;
}

.coverflow-card.next {
  transform: translateX(220px) scale(0.85) rotateY(-25deg);
  z-index: 5;
  opacity: 0.8;
}

.coverflow-card.far-prev {
  transform: translateX(-370px) scale(0.7) rotateY(35deg);
  z-index: 2;
  opacity: 0.3;
  visibility: visible;
}

.coverflow-card.far-next {
  transform: translateX(370px) scale(0.7) rotateY(-35deg);
  z-index: 2;
  opacity: 0.3;
  visibility: visible;
}

/* COMPACT CONTROL PILL WITH 5 VISIBLE DOTS */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: fit-content;
  background: whitesmoke;
}

.ctrl-btn {
  background: none;
  border: none;
  color: #475569;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0 0.2rem;
  display: flex;
  align-items: center;
  z-index: 2;
}

.ctrl-btn:hover {
  color: #f97316;
}

/* FIXED-WIDTH DOT CONTAINER (Fits exactly 5 dots) */
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.3rem; /* 4.8px gap */
  width: max-content; /* Exactly enough space to display 5 dots */
  overflow: hidden; /* Clips remaining 15+ dots */
  scroll-behavior: smooth;
  padding: 4px 0;
  
}

/* Base Dot Styles */
.dot {
  min-width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #cbd5e1;
  transition: all 0.3s ease;
  flex-shrink: 0; /* Prevents dots from squishing */
}

.dot.active {
  min-width: 14px;
  height: 6px;
  border-radius: 10px;
  background-color: #475569;
}


/* RESPONSIVE ADJUSTMENTS FOR MOBILE */
@media (max-width: 600px) {
  .coverflow-wrapper {
    height: 380px;
  }

  .coverflow-card {
    width: 280px;
    height: 340px;
  }

  .coverflow-card.prev { transform: translateX(-90px) scale(0.8); }
  .coverflow-card.next { transform: translateX(90px) scale(0.8); }
}


/* ==========================================================================
   RESPONSIVE LAYOUT & MEDIA QUERIES (Ultra-Wide to Mobile)
   ========================================================================== */

/* 1. Ultra-Wide & Large Monitors (1400px+) */
@media (min-width: 1400px) {
  .container, 
  main,
  .schedule-container {
    max-width: 1400px !important; /* Expands content on wide screens */
    margin-left: auto;
    margin-right: auto;
  }
}

/* 2. Standard Responsive Containers */
.container, main {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* Hero Section Responsiveness */
.hero-banner,
.course-hero-banner {
  width: 100%;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
}

/* Grid Layouts (Featured Trainings, Category Cards, Services) */
.grid-container,
.trainings-offered-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.catalog-hero h2 {
 padding-top: 10px;
 font-size: 2.0rem;
}

.catalog-hero p {
 font-size: 1.0rem;
}

/* 3. Tablets & Small Laptops (1024px and below) */
@media (max-width: 1024px) {
  .hero-overlay-grid {
    flex-direction: column;
    text-align: center;
  }
  
  .schedule-card-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    
  }

  .schedule-card-action {
    width: 100%;
  }

  .schedule-card-action button {
    width: 100%;
  }
}

/* 4. Mobile Devices (768px and below) */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  /* Navigation Bar */
  .navbar, .flex-row {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }


  /* Hero Section Mobile Adjustments */
  .hero-banner,
  .course-hero-banner {
    padding: 2rem 1rem;
    border-radius: 8px;
  }

  .hero-text-side h1 {
    font-size: 1.6rem;
  }

  /* Buttons & Action Items */
  .btn, 
  .btn-navy, 
  .btn-courses, 
  .btn-enroll-orange {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* 5. Extra Small Phones (480px and below) */
@media (max-width: 480px) {
  .container, main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  h1 { font-size: 1.5rem !important; }
  h2 { font-size: 1.25rem !important; }
  h3 { font-size: 1.1rem !important; }
}



/*-----------------------------------------------------------------------------------*/
/* Container padding for mobile safety */
.container, main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

/* Auto-fitting card grids */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Prevent images, videos, and logos from overflowing outside their containers on small screens */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
  /* Stack side-by-side flex layouts vertically */
  .flex-row, .navbar {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  /* Scale down large headings */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
  .btn {
    width: 100%; /* Full-width buttons for easy tapping */
  }
}
/*-----------------------------------------------------------------------------------*/


/* 3. Allow Main container to expand and fill remaining space */
.main-content {
  flex: 1;
}

.hidden { 
  display: none !important; 
}

/* Styling for justified, scannable text blocks */
.about-text {
  max-width: 1000px;
  margin-bottom: 2rem;
}

.about-text p {
  text-align: justify;
  text-justify: inter-word; /* Distributes word spacing evenly */
  line-height: 1.7;        /* Increases line spacing for visual comfort */
  font-size: 0.95rem;
  color: #334155;          /* Softer text color for better readability */
  margin-bottom: 1.25rem;  /* Creates clean spacing between paragraphs */
  hyphens: none;           /* Prevents awkward large gaps in justified text */
}

/* Admin Indicator Bar */
.admin-banner { background: #111827; 
  color: #ffffff; 
  padding: 0.5rem 1.5rem; 
  font-size: 0.8125rem; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.btn-link { 
  background: transparent; 
  border: none; 
  color: var(--primary); 
  font-weight: 600; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  gap: 0.35rem; 
}


/* CARD GRID LAYOUT */
.trainings-categories-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

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

/* Mobile Responsiveness: Stack into a single column on smaller devices */
@media (max-width: 768px) {
  .category-grid,
  .grid-container,
  .trainings-offered-grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* Forces 1 full-width column */
    gap: 1.5rem;
  }
}



.category-card {
  border-radius: 12px;
  padding: 2rem;
  text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; /* Spans full card height */
    padding: 2rem;
    box-sizing: border-box;
    
    background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  
  /* Ultra-subtle gradient border to emulate frosted edge light */
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 
    0 10px 30px -10px rgba(30, 27, 75, 0.04),
    0 0 0 1px rgba(30, 27, 75, 0.03) !important;
  
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.category-icon img{
  font-size: 2.2rem;
  width:90px;
  height:90px;
  color: #f97316; /* Brand Orange */
}

.category-card h3 {
  color: #1e1b4b; /* Navy */
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.category-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* BUTTON STYLING */
.view-category-btn {
  width: 100%; /* Stretches the button side-to-side across the card */
  display: block;
  text-align: center;
  background-color: #1e1b4b;
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.5rem; /* Comfortably tall and wide */
  border-radius: 10px; /* Slightly squarer modern pill shape for wide buttons */
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: auto;
  box-sizing: border-box; /* Prevents overflow outside the card padding */
}

.view-category-btn:hover {
  background-color: #f97316;
}

/* Card Hover Elevation */
.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 
    0 20px 40px -15px rgba(30, 27, 75, 0.08),
    0 0 0 1px rgba(249, 115, 22, 0.3) !important; /* Soft orange accent glow on edge */
}



/* ==========================================
   HEADER AND NAVIGATION BAR CONTAINER
   ========================================== */
.navbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  width: 100%;
  max-width: 1370px;
  margin: 0 auto; /* Keeps sticky top: 1.25rem active */

  /* Flex Layout */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.75rem;
  box-sizing: border-box;

  /* True Glassmorphic Background (Lower alpha + saturation) */
  background: rgba(30, 27, 75, 0.45); 
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  /* Glass Edge Borders */
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);

  /* Dual Glass Glow & Floating Shadow */
  box-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35),  /* Top rim reflection */
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.1);  /* Bottom rim depth */
}

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

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Keeps logo and text grouped to the left */
  gap: 0.75rem; /* Space between logo image and text column */
  text-align: left; /* Prevents text from centering inside its block */
}

/* DESKTOP MENU & LINKS */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

ul.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.0rem;
  padding: 0.4rem 1.1rem;
  border-radius: 30px;
  transition: all 0.25s ease;
}

.nav-link:hover{
  background: rgba(249, 115, 22, 0.8); /* Orange accent on hover */
  border-color: rgba(249, 115, 22, 1);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

/* Removes persistent background/outline on click focus */
.nav-link:focus,
.nav-link:focus-visible {
  outline: none;
  box-shadow: none;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hamburger-btn {
  background: rgba(48, 48, 48, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  z-index: 9999; /* Keeps button on top of overlays */
  pointer-events: auto;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
/* Ensures clicks go straight through to the button */
.hamburger-btn i {
  pointer-events: none;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE LAYOUT (<= 992px)
   ========================================== */
@media (max-width: 992px) {
  .hamburger-btn {
    display: flex; /* Changed from block to flex for proper centering */
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.5rem;
    cursor: pointer;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem); /* Spacing below the navbar capsule */
    right: 0;                   /* Anchors dropdown to the right edge */
    left: auto;                /* Overrides left: 0 so it doesn't stretch full width */
    width: 200px;              /* Compact width so it doesn't take the full screen */
    
    /* Flex Layout */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.75rem;
  box-sizing: border-box;

  /* Enhanced Dark Glassmorphic Background */
  background: rgba(73, 86, 116, 0.88) !important; /* Darker navy/slate background */
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;

  /* Crisp Glass Edges */
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;

  /* Pronounced Glass Rim Glow & Drop Shadow */
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.65),             /* Deep shadow for pop */
    inset 0 1px 1px rgba(255, 255, 255, 0.4),    /* Top bright edge light */
    inset 0 -1px 1px rgba(255, 255, 255, 0.15) !important;

    /* Animation Setup */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Active state expanded via JS toggle */
  .nav-menu.active {
    max-height: 500px;
    padding: 1.25rem;
    opacity: 1;
    visibility: visible;
  }

  ul.nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.35rem;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  ul.nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
  }

  .nav-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Subtle divider */
  }
}

/* Style the brand logo image */
.brand-logo-img {
  height: 36px;
  width: auto;
}

/* IN-HOUSE PAGE STYLES */

/* 2 columns on tablet/desktop */
@media (min-width: 768px) {
  .inhouse-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.inhouse-hero {
  color: #1a1744;
  text-align: center;
  padding: 2.5rem 1rem;
  margin-bottom: 2rem;
}

.inhouse-hero h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
  margin: 0;
}

.inhouse-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.inhouse-grid {
  display: grid;
  grid-template-columns: repeat(2 auto-fill , minmax(280px, 1fr));
  gap: 2rem;
}

.inhouse-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inhouse-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.inhouse-card-img {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #ffffff; /* Match card background exactly */
  border-bottom: none !important; /* Remove the bottom border line */
  overflow: hidden;
}

.inhouse-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  
  /* Smoother, gradual fade completely into white background */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 98%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 98%);
}

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

.inhouse-card-body h3 {
  color: #1e1b4b; /* Primary Navy */
  font-size: 0.95rem;
  font-weight: 1000;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.inhouse-card-body p {
  color: #414953;
  font-size: 0.70rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-align: justify;
  flex-grow: 1; /* Pushes the button to the bottom edge */
}


/* UNIFIED HERO HEADER */
.course-hero {
  color: #1a1744;
  text-align: center;
  padding: 2.25rem 1rem;
  margin-bottom: 2.5rem;
}

.course-hero h2 {
  font-size: 1.85rem;
  font-weight: 700;
  text-align: left;
  margin: 0;
}

/* UNIFIED CONTAINER & GRID */
.course-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards per row like Image 1 */
  gap: 2rem;
}

@media (max-width: 992px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}


/* HERO BANNER COURSE ENROLL BUTTON LANDING PAGE */
.course-hero-banner {
  background: linear-gradient(135deg, #100836 0%, #1e1b4b 50%, #1e40af 100%);
  color: #ffffff;
  padding: 3rem 2rem;
  overflow: hidden;
  position: relative;
}

.hero-overlay-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text-side h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hexagon-frame {
  width: 280px;
  height: 220px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background-color: #f97316;
  padding: 4px;
}

.hexagon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* DESCRIPTION BAR */
.course-desc-bar {
  background-color: #ffedd5;
  color: #334155;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* BODY CONTAINER */
.enrollment-body-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.requirements-section {
  margin-bottom: 2.5rem;
}

.requirements-section h3 {
  color: #1e1b4b;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.requirements-section ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #475569;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* GOOGLE FORM EMBEDDED CARD */
.portal-card-wrapper {
  display: flex;
  justify-content: center;
}

.portal-card {
  width: 100%;
  max-width: 650px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.portal-card-header {
  border-top: 8px solid #1e1b4b;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.portal-card-header h2 {
  font-size: 1.3rem;
  color: #0f172a;
}

.portal-card-body {
  padding: 1.5rem;
}

.course-tag-title {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.privacy-note, .reservation-note {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.required-asterisk {
  color: #dc2626;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 1.5rem;
}

.portal-action-area {
  margin-bottom: 1.5rem;
}

.btn-fill-form {
  background-color: #1e1b4b;
  color: #ffffff;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
}

.btn-fill-form:hover {
  background-color: #312e81;
}

.portal-footer-tag {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 0.8rem;
}


/* TRAINING COURSE CARDS */
.course-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.course-card-img {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #ffffff; /* Match card background exactly */
  border-bottom: none !important; /* Remove the bottom border line */
  overflow: hidden;
}

.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  
  /* Smoother, gradual fade completely into white background */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 98%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 98%);
}

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

.course-card-body h3 {
  color: #1e1b4b; /* Primary Navy */
  font-size: 0.95rem;
  font-weight: 1000;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.course-card-body p {
  color: #414953;
  font-size: 0.70rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-align: justify;
  flex-grow: 1; /* Pushes the button to the bottom edge */
}

/* BUTTONS */
.btn-enroll {
  background-color: #1e1b4b; /* Primary Navy */
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.btn-enroll:hover {
  background-color: #f97316; /* Secondary Orange */
}

.course-back-action {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-start;
}

.btn-back {
  background-color: #1e1b4b;
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}
.btn-back:hover {
  background-color: #f97316;
}


/* PROGRAM LANDING PAGES (SUP & SESP) */
/* Large Main Gate Buttons */
.program-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 1.5rem auto;
}

.program-btn {
  color: #ffffff;
  border: none;
  padding: 1.25rem 1.5rem;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;

  /* Translucent vibrant orange base */
  background: #1e1b4b !important;
  color: var(--white);
  
  /* Glass blur and color saturation */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  
  /* Glass edge highlight */
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 20px;
  
  /* Specular top light reflection & soft depth shadow */
  box-shadow: 
    0 10px 25px -5px rgba(0, 42, 255, 0.341),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.45);
    
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-btn:hover {
  background-color: var(--primary) !important; /* Secondary Orange */
  transform: translateY(-2px);
}

/* Title Header OWWA SUP*/
.program-hero {
  color: #1e1b4b;
  text-align: center;
  padding: 1rem 1.5rem 0.25rem !important; /* Forces tighter top/bottom space */
}

.program-hero h2 {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 !important;
  padding: 0 !important;
}

.program-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0.5rem !important; /* Forces container to sit close to header */
}

/* Sub-header Program Description Banner */
.program-description-box {
  background-color: #f8fafc;
  border-left: 4px solid #f97316; /* Secondary Orange accent line */
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.program-description-box p {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* Grid Layout (3 Columns) */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Card Design */
.program-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.program-card-img {
  width: 100%;
  height: 200px;
  background-color: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.program-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.program-card-body h3 {
  color: #1e1b4b; /* Primary Navy */
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.program-card-body p {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Action Buttons */
.btn-enroll {
  background-color: #1e1b4b; /* Primary Navy */
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.btn-enroll:hover {
  background-color: #f97316; /* Secondary Orange */
}

.program-back-action {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-start;
}

.btn-back {
  background-color: #1e1b4b; /* Primary Navy */
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.btn-back:hover {
  background-color: #f97316; /* Secondary Orange */
}

/* PASSENGER COURSE */
.btn-navy {
  background-color: #1e1b4b;
  color: #ffffff;
  border: 1px;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-navy:hover {
  background-color: #f97316 !important;
}


/* PRIMARY / SECONDARY BUTTONS */
.btn-enroll {
  background-color: #1e1b4b; /* Primary Navy */
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.btn-enroll:hover {
  background-color: #f97316; /* Secondary Orange */
}

.inhouse-back-action {
  margin-top: 2.5rem;
}

.btn-back {
  background-color: #1e1b4b; /* Primary Navy */
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.btn-back:hover {
  background-color: #f97316; /* Secondary Orange */
}

.brand { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; text-decoration: none; transition: transform 0.2s ease; }
.brand:hover { transform: scale(1.02); }
.brand-icon { background-color: var(--primary); color: var(--white); padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 1.25rem; }
.brand-text h1 { font-size: 1.25rem; line-height: 1; color: #ffffff; font-weight: 800; line-height: 1.1;}
.brand-text p { font-size: 0.65rem; margin-top: 2px; color: rgba(255, 255, 255, 0.8); font-size: 0.75rem; font-weight: 500; }

/* Tab Switching Buttons & Hover Effect */
.nav-links { display: flex; gap: 0.5rem; align-items: center; }
.nav-btn { 
  background: transparent; 
  border: none; 
  color: #e2e8f0; 
  padding: 0.6rem 1.1rem; 
  border-radius: 6px; 
  font-size: 0.875rem; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.nav-btn:hover { 
  background-color: rgba(255, 255, 255, 0.15); 
  color: var(--white); 
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.nav-btn.active { 
  background-color: var(--primary); 
  color: var(--white); 
  box-shadow: 0 2px 8px rgba(255, 93, 0, 0.4);
}
.btn-admin-gate { 
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}
.btn-admin-gate:hover { 
  background: rgba(249, 115, 22, 0.8); /* Orange accent on hover */
  border-color: rgba(249, 115, 22, 1);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
 }

/* Restored Hero Highlights / Badges Grid */
.hero-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.highlight-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

.highlight-icon {
  background: rgba(42, 22, 111, 0.08);
  color: var(--primary);
  font-size: 1.5rem;
  padding: 0.875rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.highlight-text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* HERO BANNER */
.schedule-hero {
  background-color: #1e1b4b; /* Primary Navy */
  color: #ffffff;
  text-align: center;
  padding: 1.75rem 1rem;
  margin-bottom: 1.5rem;
}

.schedule-hero h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.5px;
}

/* CONTAINER */
.schedule-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* IMAGE 2 CARD DESIGN IN-LINE (HORIZONTAL ROW) */
.schedule-card-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.schedule-card-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* CONTENT LEFT ALIGNMENT */
.schedule-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Keeps price badge, titles, and dates anchored to the left */
  text-align: left;        /* Stops text centering on window resize */
  width: 100%;             /* Spans full width so align-items works properly */
  gap: 0.35rem;
}

/* Force child elements inside content block to align left */
.schedule-card-content > * {
  text-align: left;
  margin-left: 0;
}

/* STCW MANDATORY BADGE */
.badge-mandatory {
  display: inline-block;
  background-color: #fff7ed;
  color: #ea580c; /* Secondary Orange Text */
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.course-title {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
}

.course-duration {
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.2rem 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.course-dates {
  font-size: 0.875rem;
  color: #475569;
}

.dates-label {
  font-weight: 700;
  color: #334155;
  display: block;
  margin-bottom: 0.25rem;
}

.course-dates ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.course-dates li {
  margin-bottom: 0.2rem;
}

/* ACTION RIGHT ALIGNMENT */
.schedule-card-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 240px;
}

.schedule-card-action.dual-btn {
  gap: 0.6rem;
}

/* BUTTON STYLING (FROM IMAGE 2) */
.btn-enroll-orange {
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-decoration: none !important;
  display: inline-block;

  /* Translucent vibrant orange base */
  background: var(--primary) !important;
  color: var(--white);
  
  /* Glass blur and color saturation */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  
  /* Glass edge highlight */
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 20px;
  
  /* Specular top light reflection & soft depth shadow */
  box-shadow: 
    0 10px 25px -5px rgba(255, 90, 0, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.45);
    
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-enroll-orange:hover {
  background: rgba(255, 90, 0, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-2px);
  box-shadow: 
    0 15px 30px -5px rgba(255, 90, 0, 0.6),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6); 
}

.btn-enroll-navy {
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;

  /* Translucent vibrant orange base */
  background: #1e1b4b !important;
  color: var(--white);
  
  /* Glass blur and color saturation */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  
  /* Glass edge highlight */
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 20px;
  
  /* Specular top light reflection & soft depth shadow */
  box-shadow: 
    0 10px 25px -5px rgba(0, 76, 255, 0.323),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.45);
    
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
}

.btn-enroll-navy:hover {
  background-color: #312e81;
  transform: translateY(-1px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .schedule-card-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .schedule-card-action {
    width: 100%;
    align-items: stretch;
  }
}


.hero-card {
  border-radius: 16px;
  padding: 3rem 2.5rem;
  margin-top: 15px;
  
  /* 1. Dark violet gradient overlay (adjust 0.85 opacity if you want the image brighter or darker) */
  /* 2. Replace 'your-image-path.jpg' with the actual path to your photo */
  background: linear-gradient(
      rgba(26, 11, 82, 0.88), 
      rgba(26, 11, 82, 0.88)
    ), 
    url('img/home.jpg') center / cover no-repeat;
    
  /* Ensures crisp rendering and layout stability */
  position: relative;
  overflow: hidden;
}

/* OWWA Banner Image Logos */
.owwa-banner-img {
    width: 130px;           /* Adjust width as needed */
    height: 130px;          /* Keep aspect ratio proportional */
    object-fit: contain;   /* Prevents image distortion */
    display: block;
    margin: 0 auto;

}

/* OWWA Banner */
.owwa-banner { position: relative;
  z-index: 1; /* Keeps banner below navbar levels */
  clear: both; /* Prevents floating layout overlaps */
  display: flex;
  align-items: center;
  gap: 2.5rem;
  border: var(--text-muted);
  background: linear-gradient(180deg, #f6f6f6 0%, #ffe0c8 100%);
  border-radius: 25px;
  padding: 2.0rem;
  width: 100%;
  margin-top: 2.5rem;
  box-sizing: border-box; 
}

.owwa-banner-content { display: flex; gap: 2.0rem; align-items: center; }
.owwa-logos { display: flex; flex-direction: column; gap: 1.25rem; align-items: center; min-width: 140px; }
.owwa-logo-box, .dmma-logo-box { display: flex; flex-direction: column; align-items: center; font-weight: 800; color: var(--secondary); font-size: 0.875rem; }
.owwa-icon-shield { font-size: 3.5rem; color: #d97706; }
.dmma-icon-wheel { font-size: 3.5rem; color: var(--primary); }
.owwa-text-content { flex: 1; }
.owwa-title { font-size: 2.85rem; font-weight: 800; color: #111827; margin-bottom: 0.75rem; line-height: 1.2; }
.owwa-subtitle { font-size: 0.9375rem; color: #374151; line-height: 1.5; margin-bottom: 1.5rem; }
.owwa-buttons { display: flex; flex-direction: column; gap: 0.75rem; }
.btn-owwa-nav { background-color: var(--owwa-blue); color: var(--white); border: none; padding: 0.875rem 1.25rem; border-radius: 6px; font-size: 0.875rem; font-weight: 600; cursor: pointer; text-align: center; width: 100%; transition: background-color 0.2s ease, transform 0.1s ease; }
.btn-owwa-nav:hover { background-color: #000052; transform: translateY(-1px); }

/* Responsive adjustments for OWWA Banner */
@media (max-width: 768px) {
  .owwa-banner {
    padding: 1.25rem; /* Reduce padding on mobile */
  }

  .owwa-banner-content {
    flex-direction: column; /* Stack logos above text */
    gap: 1.25rem;
    text-align: center;
  }

  .owwa-logos {
    flex-direction: row; /* Place logos side-by-side instead of stacked vertically */
    justify-content: center;
    min-width: unset;
  }

  .owwa-title {
    font-size: 1.75rem; /* Downsize title font so it fits mobile screens */
  }

  .owwa-buttons {
    width: 100%;
  }

  .btn-owwa-nav {
    width: 100%; /* Make buttons full-width for easy tapping */
  }
}


/* Program Pages */
.sup-hero { background-image: url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?auto=format&fit=crop&w=1200&q=80'); }

.sup-courses-section {
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
}

.sup-header p {
  font-size: 0.95rem;
  color: #1e1b4b;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.sup-header strong {
  color: #2a166f;
  font-weight: 800;
}

/* 3-COLUMN GRID DISPLAY */
.sup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.sup-card {
  text-align: center;
}

/* CENTER THE LAST SINGLE ITEM (RPFEW) IN THE GRID */
.sup-card-centered {
  grid-column: 2 / span 1;
}

.sup-code {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.sup-img-wrapper {
  width: 100%;
  height: 180px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.sup-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sup-title {
  font-size: 0.875rem;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.3;
}

/* RESPONSIVE LAYOUT FOR MOBILE SCREENS */
@media (max-width: 768px) {
  .sup-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .sup-card-centered {
    grid-column: auto;
  }
}

.sesp-hero { background-image: url('https://images.unsplash.com/photo-1509316975850-ff9c5deb0cd9?auto=format&fit=crop&w=1200&q=80'); }
/* SESP SECTION STYLES */
.sesp-courses-section {
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
}

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

.sesp-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

.sesp-code {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 0.75rem;
}

.sesp-img-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.sesp-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ENROLL HERE BUTTON STYLES */
.sesp-enroll-btn {
  width: 100%;
  display: block;
  background-color: #030066; /* Matching navy blue button background */
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.6rem 0;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.sesp-enroll-btn:hover {
  background-color: #1e1680;
  transform: translateY(-1px);
}

.sesp-title {
  font-size: 0.875rem;
  color: #1e1b4b;
  font-weight: 600;
  line-height: 1.35;
  padding: 0 0.5rem;
}

/* RESPONSIVE LAYOUT FOR MOBILE SCREENS */
@media (max-width: 768px) {
  .sesp-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* PASSENGER COURSE CARDS */
.trainings-offered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;

  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
  
}

/* 3-Column Card Layout matching 3rd Reference Image */
.course-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
  
}


.package-list {
  text-align: left;
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text-dark);
  font-size: 0.9rem;
  flex-grow: 1; /* Crucial step: expands list area */
}

/* Primary Navy Button */
.btn-navy-full {
  width: 100%;
  background-color: #1e1b4b;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* Secondary Orange Button */
.btn-orange-full {
  width: 100%;
  background-color: #f97316;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/*------------------------------------*/


.program-hero-overlay { 
  position: absolute; 
  inset: 0; 
  background: rgba(0, 0, 0, 0.55); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 2rem; 
  text-align: center; 
}

.program-hero-overlay h2 { 
  color: var(--white); 
  font-size: 2.25rem; 
  font-weight: 800; 
  max-width: 800px; 
  line-height: 1.25; 
}

.program-desc-bar { 
  background: linear-gradient(180deg, #ffffff 0%, #fff3e6 100%); 
  padding: 1.25rem 1.5rem; 
  border-radius: 8px; 
  border-top: 2px solid var(--owwa-blue); 
  border-bottom: 2px solid var(--owwa-blue); 
  margin-bottom: 2rem; 
  font-size: 0.9375rem; 
  color: #1e1b4b; 
  line-height: 1.5; 
  text-align: center; 
}

.program-courses-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 1.5rem; 
}

.program-course-card { 
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important; 
  text-align: center; 
}

.program-course-card h3 { 
  font-size: 1.25rem; 
  color: var(--owwa-blue); 
  margin-bottom: 0.75rem; 
  font-weight: 800; 
}

.program-course-card .img-wrapper { 
  height: 200px; 
  border-radius: 8px; 
  overflow: hidden; 
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); 
}

.program-course-card img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

/* General Grids & Cards */
.grid-2 { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 1.5rem; 
}

.grid-3 { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 1.5rem; 
}

.grid-4 { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
  gap: 1rem; 
  margin-top: 1rem; 
}

.card { 
  /* Translucent white base layer */
  background-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.45) !important;

  /* Frosted Glass Blur (Requires Webkit prefix for Safari/Chrome compatibility) */
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;

  /* Glass edge highlight reflection */
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
  
  /* Retain layout structure */
  padding: 1.75rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  
  /* Creates isolated stacking context for backdrop-filter to work */
  isolation: isolate;
}

.card-header { 
  display: flex; 
  justify-content: space-between; 
  margin-bottom: 0.75rem; 
}

.tag { 
  background: rgba(255, 93, 0, 0.1); 
  color: var(--primary); 
  font-size: 0.75rem; 
  font-weight: 600; 
  padding: 0.25rem 0.5rem; 
  border-radius: 4px; 
}

.fee { 
  color: var(--secondary); 
  font-weight: 700; 
}

.gallery-card { /* Translucent white base layer */
  background-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.45) !important;

  /* Frosted Glass Blur (Requires Webkit prefix for Safari/Chrome compatibility) */
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;

  /* Glass edge highlight reflection */
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
  
  /* Retain layout structure */
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  
  /* Creates isolated stacking context for backdrop-filter to work */
  isolation: isolate; 
}

.gallery-card img { 
  width: 100%; 
  height: 100%; 
  object-fit:fill
}

.gallery-card p {  
  font-size: 0.875rem; 
  font-weight: 500; 
}

/* ==========================================================
   CAPTURED MOMENTS GALLERY IMAGE FIX
   ========================================================== */

/* Target gallery grid images (adjust selector if your class differs) */
.gallery-card img,
.gallery-item img,
.captured-moments img {
  width: 100% !important;
  height: 250px !important;       /* Set your desired uniform card image height */
  object-fit: cover !important;   /* Prevents stretching by auto-cropping to fit */
  object-position: center !important; /* Centers the image inside the frame */
  border-radius: 8px;             /* Optional: maintains inner card corner radius */
}


/* LIGHTBOX MODAL CONTAINER FOR GALLERY */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  align-items: center;
  justify-content: center; /* Centered layout */
  padding: 1rem;
  box-sizing: border-box;
}

.lightbox.active {
  display: flex !important;
}

/* FULL IMAGE & CAPTION CONTAINER */
.lightbox-content-wrapper {
  position: relative; /* Anchor point for buttons */
  max-width: 85vw;
  max-height: 80vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: block;
}

#lightbox-caption {
  color: #ffffff;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* GLASS NAVIGATION BUTTONS */
.lightbox-btn {
  position: absolute !important;
  top: 45% !important; /* Centers relative to image height */
  transform: translateY(-50%) !important;
  z-index: 100 !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  user-select: none;
}

/* Floating button placement on image borders */
.lightbox-btn.prev-btn {
  left: 10px !important;
}

.lightbox-btn.next-btn {
  right: 10px !important;
}

/* MOBILE RESPONSIVE TWEAKS */
@media (max-width: 640px) {
  .lightbox-content-wrapper {
    max-width: 95vw;
  }

  .lightbox-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }

  .lightbox-btn.prev-btn {
    left: 5px !important;
  }

  .lightbox-btn.next-btn {
    right: 5px !important;
  }
}

/* HOVER EFFECT FOR DYNAMIC GALLERY IMAGES */
#gallery-grid img {
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#gallery-grid img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.gallery-grid,
.gallery-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 Columns on large screens */
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .gallery-grid,
    .gallery-container {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 Columns on tablets */
    }
}

@media (max-width: 576px) {
    .gallery-grid,
    .gallery-container {
        grid-template-columns: 1fr !important; /* 1 Column on mobile */
    }
}


.admin-card { 
  background: var(--white); 
  border: 1px solid var(--border-color); 
  border-radius: 12px; 
  padding: 1.5rem; 
  margin-bottom: 2rem; 
}

.form-row { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
  gap: 1rem; 
}

.form-stack { 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
}

input[type="text"], input[type="url"] { 
  width: 100%; 
  padding: 0.625rem 0.875rem; 
  border: 1px solid var(--border-color); 
  border-radius: 8px; 
  font-size: 0.875rem; 
}

/* TRAINING COURSE CATEGORY DROP DOWN */
.section-header-banner {
    color: var(--text-dark);
    border-radius: 10px;
    margin-top: 5.5rem;
    margin-bottom: 1.25rem;
}

.section-header-banner h2 {
  margin-top: 80%;
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

/* Ensure proper spacing between cards under each banner */
.course-card {
    margin-bottom: 1rem;
}

/* Admin specific category header styling */
.admin-category-header {
    background: #282350;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* Admin Schedule Input List */
.schedule-input-box { background: var(--bg-light); border: 1px solid var(--border-color); padding: 1rem; border-radius: 8px; }
.schedules-input-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.75rem 0; }
.schedule-item-row { display: flex; gap: 0.5rem; align-items: center; }

.btn { padding: 0.625rem 1.25rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-decoration: none; transition: background-color 0.2s ease, transform 0.1s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-primary {
  /* Translucent vibrant orange base */
  background: var(--primary) !important;
  color: var(--white);
  
  /* Glass blur and color saturation */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  
  /* Glass edge highlight */
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 20px;
  
  /* Specular top light reflection & soft depth shadow */
  box-shadow: 
    0 10px 25px -5px rgba(255, 90, 0, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.45);
    
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover { 
  background: rgba(255, 90, 0, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-2px);
  box-shadow: 
    0 15px 30px -5px rgba(255, 90, 0, 0.6),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6); 
}

#cancel-edit-btn {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.75rem 1rem;
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

#cancel-edit-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.btn-secondary { 
  background: #c6c8ca; 
  color: var(--text-dark); 
}

.btn-secondary-solid {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(49, 46, 129, 0.9));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px; /* Matches form input border-radius for visual alignment */
  padding: 7px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(30, 27, 75, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Hover & Active Micro-Interactions */
.btn-secondary-solid:hover {
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.98), rgba(67, 56, 202, 0.95));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 27, 75, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.btn-secondary-solid:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(30, 27, 75, 0.2);
}

.btn-outline-light { 
  /* Glass edge highlight */
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4); 
  background: transparent; color: var(--white); 
}

/* Admin Form Divider Line */
.admin-section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin-top: 2.5rem;    /* Pushes line down from Publish button */
    margin-bottom: 0.50rem; /* Pushes course list down from the line */
    width: 100%;
}

/* ADMIN UPDATE & DELETE */
.admin-list-item { 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}
/* Left info container */
.admin-course-info {
  flex: 1;
  min-width: 0;
}
/* Action buttons wrapper - stops unwanted line wrapping */
.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0; /* Prevents action buttons from wrapping under long titles */
  white-space: nowrap; /* Keeps button text on one line */
}
/* Ensure buttons inside stay side-by-side */
.admin-actions .btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
/* Responsive adjustment for small screen devices */
@media (max-width: 640px) {
  .admin-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .btn {
    flex: 1;
    justify-content: center;
  }
}




.icon-btn { 
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer; 
  }
.icon-btn.danger:hover { color: #dc2626; }
.thumb-card { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); }
.thumb-card img { width: 100%; height: 90px; object-fit: cover; }
.thumb-card .danger { position: absolute; top: 4px; right: 4px; background: rgba(220, 38, 38, 0.9); color: var(--white); }

/*Delete Course Button */
.btn-delete,
.btn-danger {
    background-color: #b50a0a !important;
    color: #ffffff !important;
    border: none;
    transition: background-color 0.2s ease;
}

.btn-delete:hover,
.btn-danger:hover {
    background-color: #bd2130 !important;
}

/* Currency Input Wrapper Styling */
.currency-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.currency-symbol {
  position: absolute;
  left: 0.75rem;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.95rem;
  pointer-events: none;
}

.currency-input-wrapper input {
  padding-left: 1.85rem !important; /* Pushes typed text past the ₱ symbol */
}


.hand-pointer-badge {
  position: absolute;
  right: -25px;
  bottom: -20px;
  color: #ff6b00;
  font-size: 3.5rem;
  transform: rotate(-20deg);
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

/* --- SITE FOOTER --- */
.site-footer {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
    
    /* Ensures no margins restrict full width */
    margin-top: 2rem !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    
    /* Keep your existing visual styles */
    background: linear-gradient(
        135deg,
        rgba(150, 155, 180, 0.45) 0%,
        rgba(40, 35, 80, 0.55) 100%
    ) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.4) !important;
    color: var(--white);
    padding: 2rem 1.5rem !important;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem !important;
}

/* Increase footer logo image size */
.footer-brand img,
.footer-logo-circle img {
  width: 90px !important;       /* Increases overall badge size */
  height: 90px !important;      /* Keeps proportional 1:1 square ratio */
  max-width: none !important;
  object-fit: contain;
}

.footer-brand-title h2 {
  font-size: 2.25rem !important;
  font-weight: 800;
  line-height: 1;
  margin: 0 !important;
}

.footer-brand-title p {
  font-size: 0.75rem;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.5px;
}

.footer-col h3 {
  font-size: 0.875rem !important;
  margin-bottom: 0.25rem !important;
}

.footer-col p {
 font-size: 0.75rem !important;
  margin-bottom: 0.15rem !important;
  color: #cbd5e1 !important;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--white);
  border-radius: 8px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Universal Lift Animation on Hover */
.footer-socials a:hover {
  transform: translateY(-1.5px); /* Gentle 1.5px lift */
  border-color: transparent;
}

/* 1. Facebook Hover (#1877F2) */
.footer-socials a.facebook:hover {
  background-color: #1877f2;
  box-shadow: 0 4px 10px rgba(24, 119, 242, 0.35);
}

/* 2. Instagram Hover (Signature Gradient) */
.footer-socials a.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 10px rgba(220, 39, 67, 0.35);
}

/* 3. TikTok Hover (#000000 with Subtle Glow) */
.footer-socials a.tiktok:hover {
  background-color: #000000;
  box-shadow: -1px 1px 8px rgba(254, 44, 85, 0.4), 1px -1px 8px rgba(37, 244, 238, 0.4);
}

/* 4. YouTube Hover (#FF0000) */
.footer-socials a.youtube:hover {
  background-color: #ff0000;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.35);
}


/* GOOGLE MAPS SECTION */
.map-section {
  width: 100%;
  margin: 2.5rem auto 0 auto;
  box-sizing: border-box;
  max-width: 100% !important; /* Spans full width of the about-container */
}

.map-title {
  color: #1e1b4b;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  text-align: left; /* Flushes heading to the exact left edge */
}

.map-container {
  width: 100%;
  height: 400px; /* Adjust height as needed */
  border-radius: 16px; /* Smooth rounded corners matching your cards */
  overflow: hidden; /* Clips iframe corners to radius */
  box-shadow: 0 10px 25px -5px rgba(30, 27, 75, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.map-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* DIRECTORY IMAGE CONTAINER */
.directory-section {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-sizing: border-box;
  display: block;
}

.directory-heading {
  font-size: 2.0rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.directory-heading .link-icon {
  font-size: 0.9rem;
  color: #64748b;
}

.directory-banner-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
}

.directory-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* CONTAINER & BANNER STYLING */
.about-hero-section {
  width: 100%;
  padding: 0.5rem 0 1rem 0;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

/* BANNER IMAGE WRAPPER */
.about-banner-wrapper {
  width: 100%;
  max-height: 480px; /* Controls image height */
  overflow: hidden;
  margin-bottom: 0.75rem;
  border-radius: 4px; /* Optional slight curve */
}

.about-banner-img {
  width: 100%;
  height: auto;
  max-height: 450px; /* Adjust height to taste */
  object-fit: cover; /* Prevents image stretching */
  display: block;
  border-radius: 12px; /* Optional subtle rounded corners */
  margin-bottom: 1.5rem;
}

/* JUSTIFIED TEXT STYLING */
.about-text p {
  text-align: justify;
  text-justify: inter-word;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1e1b4b;
  margin-bottom: 1rem;
}

/* ALIGN TEXT DIRECTLY WITH BOXES ABOVE & BELOW */
.about-text {
  width: 100% !important;
  max-width: 100% !important; /* Spans full width of the about-container */
  margin: 0 0 2rem 0 !important;
  padding: 0 !important; /* Removes padding offset so left/right edges match cards */
}


/* MOBILE FOOTER RESPONSIVE STYLES */
@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 1rem;
  }

  /* Stack content vertically */
  .site-footer .footer-container,
  .site-footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
  }

  /* Center branding logo & text */
  .site-footer .brand {
    flex-direction: column;
    text-align: center;
  }

  /* Ensure contact info stacks neatly */
  .site-footer .contact-info p {
    margin: 0.25rem 0;
  }

  /* Wrap social media icons nicely on small screens */
  .site-footer .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .site-footer .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/*-- IMAGE UPLOAD LOADING ANIMATION --*/
.thumb-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    z-index: 5;
}

/* NOTIFICATION POPUP MESSAGE SUCCESS UPDATE/PUBLISH COURSE */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.custom-modal.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* Custom Popup Card */
.custom-modal-content {
    background: #1e293b;
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#custom-modal-message {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.custom-modal-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.btn-modal-primary {
    background-color: #f97316;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-modal-primary:hover {
    background-color: #ea580c;
}

.btn-modal-danger {
    background-color: #ef4444;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-modal-danger:hover {
    background-color: #dc2626;
}

.btn-modal-secondary {
    background-color: #475569;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
}


/* NOTIFICATION WARNING DELETE POPUP MESSAGE */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.custom-modal-box {
    background: #1e293b;
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.warning-icon {
    font-size: 2.5rem;
    color: #ff0015;
}

.custom-modal-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}



/* ==========================================================================
   --- GOOGLE LOGIN, EDIT MODE & LOGOUT BUTTON STYLES ---
   ========================================================================== */

#loginBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 240px !important;
  padding: 10px 18px !important;
  
  /* Dark Glassmorphism Styling */
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 30px !important;
  
  /* Typography */
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

#loginBtn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px);
}

/* Give the logo a subtle white circle background so it stays sharp on dark glass */
#loginBtn svg.google-icon {
  width: 20px !important;
  height: 20px !important;
  background: #ffffff;
  border-radius: 50%;
  padding: 2px;
  flex-shrink: 0 !important;
}

#logoutBtn {
  border-radius: 50px;
}

/* STRICT OVERRIDE UTILITIES */
#loginBtn.is-hidden,
#logoutBtn.is-hidden,
#admin-tab-btn.is-hidden,
.is-hidden {
  display: none !important;
}

#loginBtn.is-visible,
#logoutBtn.is-visible,
#admin-tab-btn.is-visible,
.is-visible {
  display: inline-flex !important;
}

/* --- RESPONSIVE GOOGLE LOGIN BUTTON --- */
#authContainer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important; /* Removes default margins pushing it upward */
  padding: 0 !important;
  line-height: 1 !important;
  gap: 10px !important;
}

/* Edit Mode gear icon text color & layout */
#admin-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;               /* Space between gear icon and text */
  padding: 0.45rem 0.45rem;    /* Breathing room around text */
  border-radius: 20px;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: nowrap;       /* Keeps text on a single line */
  cursor: pointer;
}


#admin-tab-btn i {
  font-size: 1.0rem;
  margin: 0;
}

/*=============================================*/



/*========================================
          AI CHATBOT DESIGN 
/*========================================*/
.ai-bubble-widget {
  position: fixed;
  bottom: 85px; /* Perfectly aligned above the Messenger bubble */
  right: 20px;
  z-index: 990;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ai-bubble-widget.hidden-by-modal {
  display: none !important;
}

/* Minimalist Chat Head Button */
.ai-chat-head {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--border-color);
  border: 1.5px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-head:hover {
  transform: scale(1.06);
}

.chat-head-icon {
  font-size: 24px;
}

/* Subtle Pulsing Ring (Active when closed) */
.ai-chat-head::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid #ff6b00;
  animation: subtlePulse 2.5s infinite ease-out;
  pointer-events: none;
}

.ai-bubble-widget.active .ai-chat-head::before {
  display: none;
}

@keyframes subtlePulse {
  0% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(0.96); opacity: 0; }
}

.online-indicator {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

/* Minimalist Glass Panel - Matches Website Action Cards */
.ai-chat-window {
  display: none;
  position: absolute;
  bottom: 60px; /* Sits directly above the chat head */
  right: 0;
  width: 350px;
  max-width: calc(100vw - 32px);
  height: 490px;
  max-height: calc(100vh - 160px);
  
  /* Website Theme Palette: Dark Translucent Navy */
  background: rgba(18, 24, 43, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
}

.ai-chat-window.open {
  display: flex;
  animation: cleanFadeIn 0.22s ease-out forwards;
}

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

/* Clean Header */
.ai-chat-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-profile .avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ff6b00;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ai-profile .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-profile strong {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  display: block;
  letter-spacing: -0.01em;
}

.ai-profile small {
  font-size: 0.72rem;
  color: #4ade80;
  font-weight: 500;
}

.close-chat-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.close-chat-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Messages Stream */
.ai-chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  word-wrap: break-word;
}

.ai-msg.bot {
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 3px;
}

.ai-msg.user {
  background: #ff6b00;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  font-weight: 500;
}

/* Subtle Suggestion Chips */
.ai-quick-chips {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
}
.ai-quick-chips::-webkit-scrollbar { display: none; }

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #fdba74;
  border: 1px solid rgba(253, 186, 116, 0.2);
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 0.73rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: #ff6b00;
  color: #ffffff;
  border-color: #ff6b00;
}

/* Seamless Integrated Input Bar */
.ai-chat-input-row {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
  align-items: center;
}

.ai-chat-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px 12px;
  border-radius: 20px;
  outline: none;
  font-size: 0.84rem;
  color: #ffffff !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ai-chat-input-row input::placeholder {
  color: #9ca3af;
}

.ai-chat-input-row input:focus {
  border-color: #ff6b00;
  background: rgba(255, 255, 255, 0.09);
}

.ai-chat-input-row button {
  background: #ff6b00;
  color: #ffffff;
  border: none;
  padding: 9px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ai-chat-input-row button:hover {
  background: #ea580c;
}

/* Mobile Screen Layout */
@media (max-width: 480px) {
  .ai-bubble-widget {
    bottom: 85px;
    right: 25px;
  }
  .ai-chat-window {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: calc(100vw - 32px);
    max-width: 290px;
    height: 455px;
    max-height: calc(100vh - 160px);
  }
  .ai-chat-head {
    height: 48px;
    width: 48px;
  }
}

/*==============================================*/


/* ============================================================
   NAVBAR SEARCH TRIGGER BUTTON
   ============================================================ */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Base style for search buttons */
.nav-search-trigger-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.nav-search-trigger-btn:hover {
  background: #ff6b00;
  border-color: #ff5b00;
}

/* Visibility Rules */
.mobile-search-btn {
  display: none; /* Hide mobile search on wide screens */
}

/* Mobile View Styles */
@media (max-width: 768px) {
  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-search-btn {
    display: flex; /* Show search next to hamburger on mobile */
    width: 32px;
    height: 32px;
  }

  .desktop-search-btn {
    display: none; /* Hide desktop search inside dropdown on mobile */
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  /* Remove borders and divider lines in mobile menu */
  .nav-menu hr,
  .nav-buttons hr {
    display: none !important;
  }

  .nav-buttons {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding-top: 8px;
    margin-top: 0;
  }
}

/* ============================================================
   GLASS SEARCH OVERLAY MODAL
   ============================================================ */

.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Glass Modal Card Container */
.search-modal-card {
  width: 90%;
  max-width: 580px;
  background: rgba(30, 27, 75, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  padding: 18px 20px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-15px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-overlay.active .search-modal-card {
  transform: translateY(0) scale(1);
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Glass Input Field Wrapper */
.search-modal-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 8px 16px;
  transition: all 0.25s ease;
}

.search-modal-input-group:focus-within {
  border-color: #ff6b00;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.35);
}

.search-modal-icon {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-right: 10px;
}

.search-modal-input-group input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
}

.search-modal-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.search-modal-clear,
.search-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  transition: all 0.2s ease;
}

.search-modal-close:hover {
  color: #ff6b00;
  transform: scale(1.1);
}

/* Results Stream Container */
.search-modal-results {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 12px;
  padding-right: 4px;
}

/* Custom Minimalist Scrollbar */
.search-modal-results::-webkit-scrollbar {
  width: 5px;
}

.search-modal-results::-webkit-scrollbar-track {
  background: transparent;
}

.search-modal-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* Result List Row Styling */
.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: rgba(255, 107, 0, 0.22);
  border-color: rgba(255, 107, 0, 0.6);
  transform: translateX(3px);
}

.result-title {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
}

.result-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.search-result-item:hover .result-arrow {
  color: #ff6b00;
}

.search-no-results {
  text-align: center;
  padding: 20px 10px;
  color: rgba(255, 255, 255, 0.7);
}

.search-no-results i {
  font-size: 1.5rem;
  color: #ff6b00;
  margin-bottom: 6px;
}

/* ============================================================
   SEARCH OVERLAY RESULT ITEMS & NO-RESULTS STATE 
   ============================================================ */

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: rgba(255, 107, 0, 0.2);
  border-color: rgba(255, 107, 0, 0.6);
  transform: translateX(3px);
}

.result-title {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  flex: 1;
  padding-right: 12px;
}

/* Category Badge (Replaces Arrow Icon) */
.result-category-tag {
  color: #ff6b00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.4);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.card-highlight-active {
  position: relative !important;
  border-radius: 20px !important;
  box-shadow: 0 0 0 4px #ff6b00, 
              0 0 30px rgba(255, 107, 0, 0.85),
              0 15px 35px rgba(0, 0, 0, 0.3) !important;
  transform: scale(1.02);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 10 !important;
}

/* Ensure inner elements inherit the rounded corners cleanly */
.card-highlight-active * {
  border-color: transparent !important;
}

.search-result-item:hover .result-arrow {
  color: #ff6b00;
}

.search-no-results {
  text-align: center;
  padding: 24px 10px;
  color: rgba(255, 255, 255, 0.7);
}

.search-no-results i {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #ff6b00;
}

.search-no-results p {
  font-size: 0.9rem;
  margin: 0;
}

/*=============================================*/
/* REQUIREMENTS BUTTON FOR COURSES */
/* Drawer Background Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Glassmorphic Sliding Drawer Container */
.glass-drawer {
  position: fixed;
  top: 0;
  right: -450px; /* Hidden offscreen by default */
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(248, 250, 252, 0.85); /* Matches your #f8fafc base */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: -15px 0 35px -5px rgba(30, 27, 75, 0.12);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  box-sizing: border-box;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

/* Open State Trigger */
.glass-drawer.open {
  right: 0;
}

/* Close Button */
.drawer-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(30, 27, 75, 0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #1e1b4b;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.drawer-close-btn:hover {
  background: rgba(30, 27, 75, 0.15);
}

/* Header Elements */
.drawer-badge {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.drawer-header h3 {
  font-size: 1.4rem;
  color: #0f172a;
  margin: 12px 0 4px 0;
}

.drawer-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 24px 0;
}

/* Requirements List */
.req-group h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e1b4b;
  margin-bottom: 12px;
}

.req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.req-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #22c55e;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.req-list strong {
  display: block;
  font-size: 0.88rem;
  color: #1e293b;
}

.req-list p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

/* Bottom Action Footer */
.drawer-action-card {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(30, 27, 75, 0.08);
}

.drawer-enroll-btn {
  display: block;               /* Stretches full width across container */
  width: 100%;                 /* Spans side to side to the edges */
  padding: 12px 16px;
  background: #1e1b4b;
  color: #ffffff;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;           /* Centers text horizontally */
  text-decoration: none;        /* REMOVES THE UNDERLINE */
  box-sizing: border-box;       /* Ensures padding doesn't overflow edge */
  cursor: pointer;
  transition: background 0.2s;
}

.drawer-enroll-btn:hover {
  background: #f97316;
}


/*--------- PRICES IN REQUIREMENT VIEW ------*/

.drawer-price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(30, 27, 75, 0.04);
  border: 1px solid rgba(30, 27, 75, 0.1);
  border-radius: 12px;
}

.price-group {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e1b4b; /* Navy */
}

.price-amount.alumni {
  color: #f97316; /* Orange accent for discount */
}

/* Push Price Card and Enroll Button to Bottom of Drawer */
.drawer-content {
  display: flex;
  flex-direction: column;
  flex: 1; /* Spans all remaining vertical space */
}

.drawer-action-card {
  margin-top: auto; /* Pushes price box & button to the bottom */
  padding-top: 16px;
}




/*--------- REQUIREMENT BUTTON DESIGN --------*/
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 8px; /* Compact spacing above Enroll Now */
  padding: 8px 14px;
  
  /* Minimal Ghost Glass Styling */
  background: rgba(30, 27, 75, 0.03); 
  border: 1px solid rgba(30, 27, 75, 0.12);
  border-radius: 50px;
  
  /* Typography */
  color: #1e1b4b; /* Navy accent text */
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

/* Subtle Hover Glow */
.card-btn:hover {
  background: rgba(30, 27, 75, 0.08);
  border-color: rgba(30, 27, 75, 0.25);
  color: #f97316; /* Soft orange hover text shift */
  transform: translateY(-1px);
}

/* Active Click Effect */
.card-btn:active {
  transform: translateY(0);
  background: rgba(30, 27, 75, 0.12);
}

/*==================================================*/



/* ============================================================
   ANNOUNCEMENT STYLING (MATCHES DMMA MTAC THEME)
   ============================================================ */
.announcement-display-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.announcement-public-container {
  width: 100%;
}

.announcement-header-title {
  font-size: 1.80rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.announcement-header-title i {
  color: #ff6b00;
}

/* Glassmorphic Placeholder when empty */
.no-announcements-placeholder {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  color: #64748b;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.no-announcements-placeholder i {
  color: #94a3b8;
  font-size: 1rem;
}

.no-announcements-msg {
  color: #64748b;
  font-size: 0.9rem;
  font-style: italic;
  padding: 10px 0;
}

.announcement-display-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}



/* Fix Admin Management Panel Textarea Width */
.announcement-admin-card textarea.form-control,
#announcementContent {
  width: 100% !important;
  min-height: 90px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* Minimal Frosted Banner Card */
.announcement-card-public {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}


.announcement-card-public.type-info::before { background: #0284c7; }
.announcement-card-public.type-notice::before { background: #f59e0b; }
.announcement-card-public.type-attention::before { background: #931010; }

.ann-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ann-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  
}

.ann-badge-info { background: #e0f2fe; color: #0284c7; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);}
.ann-badge-notice { background: #fef3c7; color: #f59e0b; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);}
.ann-badge-attention { background: #fee2e2; color: #931010; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);}

.ann-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ann-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;  
  white-space: pre-line;
}

.announcement-card-public:hover {
  gap: 9px;
}

.announcement-card-public {
  cursor: pointer;
}



/* Glassmorphic Notice Board Container */
.announcement-board {
  position: relative;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  box-sizing: border-box !important;
}

/* Force any immediate parent wrapper of .announcement-board to match .section-header width */
*:has(> .announcement-board) {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Internal Card Margin Reset */
.announcement-board .announcement-card-public {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
}

/* Responsive Padding for Mobile (< 600px) */
@media (max-width: 600px) {
  .announcement-board {
    padding: 16px 18px;
    border-radius: 16px;
  }
}
/* Mobile Layout (< 520px) */
@media (max-width: 520px) {
  .announcement-board .announcement-header-title {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .btn-view-all-ann {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }
}



/* SEPARATOR DIVIDER BETWEEN PINNED AND REGULAR POSTS */
.announcement-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0 20px 0;
  width: 100%;
  min-height: 24px;
}

/* Hard-coded physical line dimensions for production builds */
.announcement-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(148, 163, 184, 0.4) 25%, 
    rgba(148, 163, 184, 0.4) 75%, 
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Frosted pill badge resting directly over the line */
.announcement-divider span {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* ANNOUNCEMENT HEADER & VIEW ALL BUTTON */
.announcements-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.announcements-section-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.btn-view-all-ann {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-dark, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-view-all-ann:hover {
  background: rgba(255, 107, 0, 0.15);
  color: #ff6b00;
  border-color: rgba(255, 107, 0, 0.4);
  transform: translateY(-1px);
}

/* ALL ANNOUNCEMENTS MODAL OVERLAY */
.ann-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ann-modal-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ann-modal-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ann-modal-overlay.is-hidden .ann-modal-card {
  transform: translateY(20px) scale(0.96);
}

.ann-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.5);
}

.ann-modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}


.ann-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


@media (max-width: 600px) {
.announcement-header-title {
    font-size: 1.25rem !important;
    gap: 8px !important;
  }
  .ann-modal-card {
    max-height: 90vh;
    border-radius: 16px;
  }
  .ann-modal-header {
    padding: 14px 18px;
  }
  .ann-modal-body {
    padding: 16px;
  }
  .btn-view-all-ann {
    font-size: 0.75rem !important;
    padding: 5px 10px !important;
  }
}
/* Extra Small Screens (< 380px) */
@media (max-width: 380px) {
  .announcement-header-title {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}





/* Admin Dashboard Table Row */
.admin-ann-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 10px;
}

.admin-ann-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-ann-info strong {
  color: #0f172a;
}

.admin-ann-date {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.ann-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}


/* Admin Dashboard Row Styling */
.admin-ann-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  margin-top: 10px;
}

.admin-ann-info strong {
  color: #0f172a;
}

.ann-type-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
}

.ann-type-tag.type-info { background: #e0f2fe; color: #0284c7; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);}
.ann-type-tag.type-notice { background: #ffedd5; color: #c2410c; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);}
.ann-type-tag.type-attention { background: #ffe4e6; color: #be123c; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);}

.admin-ann-date {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.btn-delete-ann {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-delete-ann:hover {
  background: #dc2626;
}

.btn-secondary {
  background: #64748b;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-secondary:hover {
  background: #475569;
}


/* ============================================================
   CUSTOM SYSTEM CONFIRMATION / ALERT MODAL FOR ANNOUNCEMENTS
   ============================================================ */

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.custom-modal-box {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 22px 24px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.custom-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.custom-modal-icon.warning { color: #ef4444; }
.custom-modal-icon.success { color: #22c55e; }
.custom-modal-icon.info { color: #3b82f6; }

.custom-modal-message {
  color: #f1f5f9;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 24px;
}

.custom-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-modal-cancel {
  background: #475569;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-modal-cancel:hover {
  background: #334155;
}

.btn-modal-action {
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-modal-action.danger { background: #ef4444; }
.btn-modal-action.primary { background: #ff6b00; }
.btn-modal-action.success { background: #22c55e; }

.btn-modal-action:hover {
  opacity: 0.9;
}




/* ============================================================
   RESPONSIVE YOUTUBE VIDEO GALLERY
   ============================================================ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -12px rgba(15, 23, 42, 0.15);
}

/* 16:9 Aspect Ratio Container */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  background: #0f172a;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 18px 20px;
}

.video-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.video-info p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}



/* ============================================================
   FLOATING PWA INSTALL TOAST BANNER
   ============================================================ */
/* FLOATING RESPONSIVE PWA TOAST BANNER */
.pwa-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% - 32px);
  max-width: 480px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  color: #ffffff;
  box-sizing: border-box;
}

.pwa-toast.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px) scale(0.95);
  pointer-events: none;
}

/* Content Area */
.pwa-toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0; /* Enables text clipping & shrinking on mobile */
  flex: 1;
}

.pwa-toast-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-toast-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.pwa-toast-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0; /* Prevents flex children from overflowing container */
  flex: 1;
}

.pwa-toast-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap; /* Allows badge to drop cleanly if text is tight */
}

.pwa-toast-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.pwa-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pwa-toast-text span {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Truncates clean with "..." if screen is very narrow */
  display: block;
}

/* Action Buttons */
.pwa-toast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-btn-primary {
  background: linear-gradient(135deg, #ff6b00, #ff8800);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

.pwa-btn-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

/* MOBILE SPECIFIC RESPONSIVE OVERRIDES (< 480px) */
@media (max-width: 480px) {
  .pwa-toast {
    bottom: 50px;
    padding: 10px 12px;
    gap: 8px;
    width: calc(100% - 24px);
  }

  .pwa-toast-icon {
    width: 32px;
    height: 32px;
  }

  .pwa-btn-primary {
    padding: 5px 12px;
    font-size: 0.75rem;
  }
}




/* ==========================================================
   STACKED TICKET DECK STYLING
   ========================================================== */

.tickets-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  padding: 1rem 0 3rem 0;
}

/* Outer Stack Container */
#ticket-stack-container {
  position: relative;
  width: 100%;
  max-width: 950px;
  height: 480px;
  margin: 0 auto;
}

/* Main Ticket Card */
.ticket {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  display: flex;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.4s ease,
              box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
}

/* Decorative Ticket Notches (Top & Bottom) */
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: #f8fafc; /* Matches your background section color */
  border-radius: 50%;
  z-index: 20;
}

/* Top Notch along the dashed barcode line */
.ticket::before {
  top: -11px;
  right: 99px;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.1);
}

/* Bottom Notch along the dashed barcode line */
.ticket::after {
  bottom: -11px;
  right: 99px;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.1);
}

.ticket:hover {
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.18);
}

/* Stack Layering Animation */
.ticket.active {
  z-index: 10;
  transform: rotate(0deg) translateY(0) scale(1);
  opacity: 1;
}

.ticket.next-1 {
  z-index: 9;
  transform: rotate(3.5deg) translate(10px, 8px) scale(0.98);
  opacity: 0.9;
}

.ticket.next-2 {
  z-index: 8;
  transform: rotate(-3deg) translate(-8px, 14px) scale(0.96);
  opacity: 0.75;
}

.ticket.hidden-stack {
  z-index: 1;
  transform: rotate(5deg) translate(18px, 22px) scale(0.92);
  opacity: 0;
  pointer-events: none;
}

/* Left Column - Trainee Photo */
.left {
  position: relative;
  width: 320px;
  height: 100%;
  flex-shrink: 0;
  background: #0f172a;
}

.left .image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Center Column - Text Content */
.ticket-info {
  flex: 1;
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.ticket-header {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #fa4c13;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.ticket-info .show-name {
  margin-bottom: 1rem;
}

.ticket-info .show-name h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #080824;
  line-height: 1.15;
  margin: 0;
}

/* Story Text & Quote Scroll Area */
.ticket-info .story-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.ticket-info .story-body::-webkit-scrollbar {
  width: 5px;
}

.ticket-info .story-body::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}

.ticket-info .story-body blockquote {
  font-style: italic;
  color: #fa4c13;
  border-left: 3.5px solid #fa4c13;
  padding-left: 0.85rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
}

.ticket-info .story-body p {
  font-size: 1rem;
  color: #000000;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

/* Right Column - Decorative Fake Barcode Stub */
.right {
  width: 110px;
  height: 100%;
  border-left: 2px dashed #cbd5e1;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  flex-shrink: 0;
}

/* Fake Barcode CSS Pattern */
.fake-barcode {
  width: 50px;
  height: 80%;
  background: repeating-linear-gradient(
    0deg,
    #0f172a,
    #0f172a 2px,
    transparent 2px,
    transparent 5px,
    #0f172a 5px,
    #0f172a 9px,
    transparent 9px,
    transparent 11px
  );
  opacity: 0.8;
  border-radius: 2px;
}

/* ==========================================================
   MOBILE RESPONSIVE FIX (PREVENTS OVERLAP & GLITCHES)
   ========================================================== */

@media (max-width: 768px) {
  #ticket-stack-container {
    width: 100%;
    height: auto !important;
    min-height: unset !important;
    position: relative;
  }

  .ticket {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100%;
    height: auto !important;
    flex-direction: column;
  }

  .ticket.next-1,
  .ticket.next-2,
  .ticket.hidden-stack {
    display: none !important;
  }

  .ticket.active {
    display: flex !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .left {
    width: 100% !important;
    height: 240px !important;
  }

  .ticket-info {
    padding: 1.5rem 1.25rem !important;
  }

  .ticket-info .show-name h1 {
    font-size: 1.6rem !important;
  }

  .ticket-info .story-body {
    max-height: 280px !important;
  }

  .right {
    width: 100% !important;
    height: 70px !important;
    border-left: none !important;
    border-top: 2px dashed #cbd5e1 !important;
    padding: 0.75rem !important;
  }

  .fake-barcode {
    width: 75%;
    height: 35px;
    background: repeating-linear-gradient(
      90deg,
      #0f172a,
      #0f172a 2px,
      transparent 2px,
      transparent 5px,
      #0f172a 5px,
      #0f172a 9px,
      transparent 9px,
      transparent 11px
    );
  }

  .ticket::before,
  .ticket::after {
    display: none !important;
  }
}


/* Container to hold badges horizontally for prices walk-in and fresh grad */
.price-badges-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  margin-bottom: 6px;
}

/* Base Badge Style */
.price-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

/* Orange Walk-in Badge */
.price-badge.price-walkin {
  background-color: #fff3eb;
  color: #ff5500;
  border: 1px solid #ffd8c2;
}

/* Light Navy Alumni Badge (Matches Orange Layout) */
.price-badge.price-alumni {
  background-color: #f0f2f9;
  color: #21215a;
  border: 1px solid #c8d0e7;
}






/* FOR RESPONSIVE DIFFERENT SCREEN TYPES */
/* Ultra-Wide Monitors (1600px and up) */
@media (min-width: 1600px) {
    .main-container {
        max-width: 1520px;
    }
}

/* Tablets & Laptops (1024px and below) */
@media (max-width: 1024px) {
    .main-container {
        width: 95%;
        padding: 1.5rem 1rem;
    }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
    .main-container {
        width: 100%;
        padding: 1rem;
    }
}


/* ==========================================================
   NAVBAR LINKS RESPONSIVENESS & TEXT WRAP FIX
   ========================================================== */

/* Prevent nav links from wrapping into 2 lines */
.navbar nav,
.navbar ul,
.navbar-links {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;        /* Flexible spacing between items */
  flex-wrap: nowrap !important;   /* Forces items to stay on a single line */
}

/* Force links to stay on one line and adjust font sizing */
.navbar nav a,
.navbar ul li a,
.navbar-links a {
  white-space: nowrap !important; /* Stops "About Us" from breaking onto two lines */
  font-size: 0.9rem !important;   /* Slightly reduce font so all items fit */
}

/* Tablet & Smaller Screens Adjustment */
@media (max-width: 1100px) {
  .navbar nav,
  .navbar ul,
  .navbar-links {
    gap: 0.75rem !important;       /* Tighten gap when viewport shrinks */
  }

  .navbar nav a,
  .navbar ul li a,
  .navbar-links a {
    font-size: 0.8rem !important;  /* Scale down font size */
  }

  /* Optional: hide subtitle to save navbar space on smaller displays */
  .navbar .brand-subtitle,
  .navbar .logo-text span {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* Fix header section stacking */
  .admin-header,
  .section-header,
  .flex-between {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  /* Make editing status badge align cleanly */
  .admin-header .editing-status,
  .section-header > div:last-child {
    align-self: flex-start;
  }

  /* Form container responsiveness */
  #course-form,
  .admin-card,
  .card {
    padding: 1rem !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Ensure all inputs and selects take full width */
  #course-form input[type="text"],
  #course-form input[type="url"],
  #course-form select,
  #course-form button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Input rows stacking */
  .form-row,
  .grid-2,
  .grid-3,
  .grid-4 {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  /* Add bottom padding to form so the floating Chat button doesn't block inputs */
  #course-form {
    padding-bottom: 5rem !important;
  }
}
































/*========== FOR TITLE DIVIDERS ONLY ==============*/
.category-divider-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1744;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0; /* Soft bottom line */
  margin-bottom: 1.5rem;
  position: relative;
}

/* Orange accent highlight line under text */
.category-divider-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80px; /* Length of the orange accent line */
  height: 3px;
  background-color: #ff5722; /* Matches your orange enrollment button */
  border-radius: 2px;
}

.section-header-banner {
  color: #1a1744;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0; /* Soft bottom line */
  margin-bottom: 1.5rem;
  position: relative;
}

/* Orange accent highlight line under text */
.section-header-banner::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80px; /* Length of the orange accent line */
  height: 3px;
  background-color: #ff5722; /* Matches your orange enrollment button */
  border-radius: 2px;
}

.course-hero-banner {
  color: #1a1744;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0; /* Soft bottom line */
  margin-bottom: 1.5rem;
  position: relative;
}

/* Orange accent highlight line under text */
.course-hero-banner::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80px; /* Length of the orange accent line */
  height: 3px;
  background-color: #ff5722; /* Matches your orange enrollment button */
  border-radius: 2px;
}

.course-hero h2 {
  color: #1a1744;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0; /* Soft bottom line */
  margin-bottom: 1.5rem;
  position: relative;
}

/* Orange accent highlight line under text */
.course-hero h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80px; /* Length of the orange accent line */
  height: 3px;
  background-color: #ff5722; /* Matches your orange enrollment button */
  border-radius: 2px;
}

.inhouse-hero h2 {
  color: #1a1744;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0; /* Soft bottom line */
  margin-bottom: 1.5rem;
  position: relative;
}

/* Orange accent highlight line under text */
.inhouse-hero h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80px; /* Length of the orange accent line */
  height: 3px;
  background-color: #ff5722; /* Matches your orange enrollment button */
  border-radius: 2px;
}

/* CUSTOM CSS FOR DROPDOWN IN SELECT CATEGORY ADMIN MODE*/
input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: #374151; /* Dark gray text color */
  background-color: #ffffff;
  border: 1px solid #e5e7eb; /* Light border matching other inputs */
  border-radius: 8px; /* Matching rounded corners */
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

/* Fix browser-native dropdown styling */
select {
  cursor: pointer;
  /* Adds custom chevron arrow on the right */
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.65rem auto;
  padding-right: 2.25rem; /* Prevents text overlapping the arrow */
}

/* Subtle focus ring when clicking into inputs/selects */
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}





/* WATERMARK */
.footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* Ultra-faint separator line */
  margin-top: 28px;
  padding: 16px 0 20px 0;
  background: transparent;
}

.footer-bottom-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 24px;
  display: flex !important;
  flex-direction: column !important; /* Stacks copyright on top, name below */
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  gap: 4px; /* Minimal vertical gap between the lines */
}

/* Primary copyright line */
.copyright-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Subtle, minimal credit signature directly underneath */
.developer-credit {
  font-size: 0.52rem; /* Micro font size */
  color: rgba(255, 255, 255, 0.28); /* Blends heavily into the background */
  font-weight: 290;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase; /* Clean aesthetic layout */
  transition: opacity 0.25s ease, color 0.25s ease;
}

/* Fades in smoothly only when someone explicitly hovers over it */
.developer-credit:hover {
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}