/*---VARIABLES---*/

:root {
  --white-color: #0e2c45;
  --items-white-color: #fff;
  --primary-color: #1d4a70;
  --secondary-color: #0e2c45;
  --section-bg-color: #f0f8ff;
  --dark-color: #000000;
  --navbar-bg-color: #fff;
  --navbar-2nd-bg-color: #2c80bd;
  --p-color: #717275;
  --highlight-icon-color: #0064a1;

  --body-font-family: "DM Sans", sans-serif;

  --h1-font-size: 62px;
  --h2-font-size: 48px;
  --h3-font-size: 36px;
  --h4-font-size: 32px;
  --h5-font-size: 24px;
  --h6-font-size: 22px;
  --p-font-size: 18px;
  --menu-font-size: 16px;
  --copyright-text-font-size: 16px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  font-family: var(--body-font-family);
  -webkit-user-select: none;
  /* Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Standard */
}

.hidden {
    display: none !important;
}


/*---------------------------------------
  Announcement Banner
----------------------------------------*/
.announcement-banner {
  background-color: rgba(44, 128, 180, 1.0);
  transition: background-color 0.3s ease;
}

/*---------------------------------------
  DOWNLOAD OVERLAY STYLES (UPDATED)
----------------------------------------*/

/* DEFAULT: DESKTOP/TABLET STYLING */
.certificate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  /* Black transparent modal look */
  backdrop-filter: blur(0.5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.certificate-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.certificate-overlay .overlay-content {
  background: white;
  /* White rounded rectangle */
  border-radius: 18px;
  max-width: 400px;
  width: 90%;
  transform: scale(0.95);
  transition: transform 0.3s ease-in-out;
}

.certificate-overlay.show .overlay-content {
  transform: scale(1);
}

/*---------------------------------------
  MOBILE VERSION (= 576px)
  PURE WHITE BACKGROUND + NO WHITE BOX
----------------------------------------*/
@media (max-width: 576px) {
  .certificate-overlay {
    background: white !important;
    /* Full white background */
    backdrop-filter: none !important;
    /* Remove blur */
  }

  .certificate-overlay .overlay-content {
    background: none !important;
    /* Remove white modal box */
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/*---------------------------------------
  OVERLAY DISPLAY TUTORIAL STEPS               
-----------------------------------------*/

.tutorial-header {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #2c80bd;
}

#tutorialOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 5000000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#tutorialOverlay.show {
  opacity: 1;
  pointer-events: auto;
}

.tutorial-box {
  background: #fff;
  width: 100%;
  max-width: 700px;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
}

.tutorial-close {
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.tutorial-step {
  opacity: 0;
  transition: opacity 0.5s ease;
  display: block;
  height: 0;
  overflow: hidden;
}

.tutorial-step.active {
  opacity: 1;
  height: auto;
  overflow: visible;
}

.tutorial-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.tutorial-content {
  font-size: 17px;
  margin-bottom: 20px;
}

.tutorial-img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px;
  display: block;
}

/* ==================== FOOTER: BUTTONS + DOTS ==================== */
.tutorial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.tutorial-btn {
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}

.tutorial-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.tutorial-dots {
  display: flex;
  justify-content: center;
  flex-grow: 1;
}

.tutorial-dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
}

.tutorial-dot.active {
  background: #007bff;
}

.pill-download {
  display: inline-block;
  padding: 2px 10px;
  background: #007bff;
  /* blue */
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
}

/* MOBILE */
@media (max-width: 768px) {
  .tutorial-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c80bd;
  }
}

/*---------------------------------------
  OVERLAY DISPLAY CONFIRMATION LOADING               
-----------------------------------------*/

html,
body {
  overflow-x: hidden;
}

/* Base state (hidden) */
#externalOverlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;

  /* DEFAULT (desktop/tablet) — black transparent modal */
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(0.5px);

  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

/* Fade-in visible state */
#externalOverlay.show {
  opacity: 1;
  pointer-events: auto;
}

.overlay-content {
  max-width: 500px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease-in-out;

  /* DESKTOP — white rounded rectangle modal */
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Smooth pop-in content animation */
#externalOverlay.show .overlay-content {
  transition: transform 0.3s ease-in-out;
}

/* Custom spinner color */
#loadingSpinner .spinner-border {
  border-color: #0072bc !important;
  border-right-color: transparent !important;
}

/* Make external link display smaller */
#externalLinkDisplay {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Even smaller on mobile */
@media (max-width: 576px) {
  #externalLinkDisplay {
    font-size: 0.8rem;
    word-break: break-all;
  }
}

/* ---------------------------------------
   MOBILE VIEW — PURE WHITE, NO MODAL BOX
----------------------------------------- */
@media (max-width: 576px) {
  /* Mobile: pure white full screen */
  #externalOverlay {
    background: #ffffff;
    backdrop-filter: none;
  }

  /* Remove modal box effect */
  .overlay-content {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
}

/* ---------------------------------------
   DOWNLOAD CONFIRMATION MODAL OVERLAY
----------------------------------------- */

/* ===== DESKTOP/TABLET BACKGROUND ===== */
#downloadConfirmOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  /* Black transparent modal background */
  backdrop-filter: blur(0.5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100000;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#downloadConfirmOverlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== WHITE ROUNDED BOX (DESKTOP) ===== */
#downloadConfirmOverlay .confirm-box {
  padding: 30px 25px;
  max-width: 400px;
  width: 90%;
  text-align: center;

  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.spinner-wrapper {
  display: flex;
  justify-content: center;
}

/* Rating container */
.rating-container {
  text-align: center;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.stars i {
  font-size: 32px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s ease;
  margin: 0 3px;
}

.stars i.hovered,
.stars i.selected {
  color: #f4b400;
}

/* ---------------------------------------
   MOBILE OVERRIDES
----------------------------------------- */
@media (max-width: 600px) {
  /* Background becomes PURE WHITE */
  #downloadConfirmOverlay {
    background: #ffffff !important;
    backdrop-filter: none !important;
  }

  /* Remove white box — content sits directly on white */
  #downloadConfirmOverlay .confirm-box {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 25px 15px;
  }

  /* Rating card stays white */
  .rating-container {
    background: #ffffff !important;
    border: 1px solid #ddd !important;
  }

  /* Stars stay gray/yellow */
  .stars i {
    color: #ccc !important;
  }

  .stars i.hovered,
  .stars i.selected {
    color: #f4b400 !important;
  }
}

/* ---------------------------------------
   PDF OVERLAY WINDOW
----------------------------------------- */

#pdfOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  padding: 20px;
  flex-direction: column;

  opacity: 0;
  transition: opacity 0.35s ease;
}

#pdfOverlay.active {
  opacity: 1;
}

#pdfOverlay .overlay-box {
  width: 100%;
  max-width: 100%;
  transform: scale(0.92);
  transition: transform 0.35s ease;
}

#pdfOverlay.active .overlay-box {
  transform: scale(1);
}

.embed-container {
  position: relative;
  padding-bottom: 79.5vh;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#pdfOverlay .overlay-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

/* PDF Spinner */
#pdfSpinner {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

#pdfOverlay .overlay-buttons .btn {
  min-width: 120px;
}

#closePDF {
  position: static;
}

/* ===== FILE ITEM ===== */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.file-item {
  background: #fffff;
  padding: 18px 20px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.file-item:hover {
  transform: translateY(-3px);
  background: #f1f9ff;
}

.file-thumb {
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  color: #0072bc;
}

/* MOBILE */
@media (max-width: 768px) {
  .file-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .file-item .d-flex.gap-2 {
    flex-direction: column;
  }

  .file-item .file-download-btn,
  .file-item .view-pdf-btn {
    width: 100%;
  }

  .embed-container {
    position: relative;
    padding-bottom: 69.5vh;
    height: 0;
    overflow: hidden;
    max-width: 100%;
  }
}

/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  letter-spacing: -1px;
}

h1 {
  font-size: var(--h1-font-size);
  letter-spacing: -2px;
  text-transform: uppercase;
}

h2 {
  font-size: var(--h2-font-size);
  letter-spacing: -2px;
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
  line-height: normal;
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a,
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  color: var(--p-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

::selection {
  background: var(--primary-color);
  color: var(--white-color);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--white-color);
}

.section-padding {
  padding-top: 120px;
  padding-bottom: 120px;
}

.custom-border-radius {
  border-radius: 20px;
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

.small-title {
  text-transform: uppercase;
}

.avatar-image {
  border: 2px solid var(--white-color);
  border-radius: 100px;
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.avatar-image-left {
  position: relative;
  left: -10px;
}

.avatar-image-left + .avatar-image-left {
  left: -20px;
}

.avatar-image-left + .avatar-image-left + .avatar-image-left {
  left: -30px;
}

.avatar-image-left
  + .avatar-image-left
  + .avatar-image-left
  + .avatar-image-left {
  left: -40px;
}

.avatar-info {
  display: inline-block;
  vertical-align: top;
}

/*---------------------------------------
  CUSTOM ICON               
-----------------------------------------*/
.custom-icon {
  display: inline-block;
  height: 45px;
  width: 45px;
  line-height: 45px;
  border: 2px solid var(--white-color);
  text-align: center;
  border-radius: 50%;
  font-size: 20px;
  position: relative;
}

.custom-icon::before,
.custom-icon::after {
  box-sizing: inherit;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 50%;
}

.custom-icon::before {
  border: 2px solid transparent;
}

.custom-icon::after {
  border: 0 solid transparent;
}

.custom-icon:hover {
  border-color: transparent;
}

.custom-icon:hover::before {
  border-top-color: var(--primary-color);
  border-right-color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  transition: border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.1s, border-bottom-color 0.15s linear 0.2s;
}

.custom-icon:hover::after {
  border-top: 2px solid var(--primary-color);
  border-left-width: 2px;
  border-right-width: 2px;
  transform: rotate(270deg);
  transition: transform 0.4s linear 0s, border-left-width 0s linear 0.35s;
}

/*---------------------------------------
  CUSTOM BUTTON               
-----------------------------------------*/
.custom-btn,
.navbar-expand-lg .navbar-nav .nav-link.custom-btn,
.navbar-nav .nav-link.custom-btn {
  background: var(--navbar-bg-color);
  border-radius: 100px;
  color: var(--white-color);
  font-size: var(--copyright-text-font-size);
  font-weight: var(--font-weight-bold);
  padding: 10px 20px;
}

.navbar-expand-lg .navbar-nav .nav-link.custom-btn,
.navbar-nav .nav-link.custom-btn {
  background: var(--secondary-color);
}

.navbar-expand-lg .navbar-nav .nav-link.custom-btn,
.navbar-nav .nav-link.custom-btn {
  margin-left: 20px;
}

.custom-border-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.custom-btn:hover,
.navbar-expand-lg .navbar-nav .nav-link.custom-btn:hover,
.navbar-nav .nav-link.custom-btn:hover {
  background: var(--primary-color);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  color: var(--white-color);
}

/*---------------------------------------
  GLOBAL NAVIGATION SETTINGS
-----------------------------------------*/

.sticky-wrapper {
  background: var(--navbar-bg-color);
}

.navbar {
  background: var(--navbar-bg-color);
  z-index: 100;
  right: 0;
  left: 0;
  transition: all 0.3s;
  padding-top: 15px;
  padding-bottom: 15px;
}

/* ============================================================
   FIRST NAVIGATION BAR
============================================================ */
.main-navbar-only {
  position: relative !important;
}

.main-navbar-only.sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  /* higher than overlay background */
}

.navbar-brand {
  font-size: 20px;
  line-height: 1.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  text-transform: uppercase;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 20px;
  padding-left: 20px;
}

.navbar-nav .nav-link {
  color: var(--white-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-semi);
  padding-top: 15px;
  padding-bottom: 15px;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--primary-color);
  font-weight: bold;
}

/* Toggler Menu Button Animation - Adjust selectors for new JS toggle */
.navbar-toggler {
  width: 30px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 5px 0;
}

.navbar-toggler .toggler-line {
  /* ... keep lines styles ... */
  display: block;
  width: 30px;
  height: 2px;
  background: var(--white-color, #fff);
  border-radius: 1px;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

/* New active state for Toggler when side menu is open */
.navbar-toggler.active .middle-line {
  opacity: 0;
}

.navbar-toggler.active .top-line {
  transform: translateY(8px) rotate(45deg);
}

.navbar-toggler.active .bottom-line {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
    SIDEBAR MENU STYLES (New)
============================================================ */
/* Helper to remove lag while dragging */
.no-transition {
  transition: none !important;
}

#sideMenuOverlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  /* Must be higher than navbar-sticky (10000) if it's sticky */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#sideMenuOverlay.active {
  opacity: 1;
  visibility: visible;
}

/* Dark background dim */
.side-menu-background {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

/* The sliding panel - Base Styles */
.side-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  /* CHANGE 1: Set a smaller default width for larger mobile/tablet screens. 
       We will override this to 100% in the media query below.
       Keep the 300px width for now, or just remove max-width here: */
  width: 300px;
  max-width: 100vw;
  /* Ensure it never exceeds the viewport width */
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 2;

  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

#sideMenuOverlay.active .side-menu-panel {
  transform: translateX(0);
}

/* Sidebar Menu Content Styles */
.close-side-menu-btn {
  align-self: flex-start;
  /* Aligns the close button to the left */
  background: none;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  margin: 0 0 15px 0;
}

.navbar-brand-side {
  margin-bottom: 25px;
}

.logo-img-side {
  height: 45px;
  width: auto;
}

.side-menu-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu-nav .nav-link-side {
  display: block;
  padding: 15px 0;
  color: #333;
  font-size: 1.1rem;
  font-weight: var(--font-weight-semi);
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: color 0.2s;
}

.side-menu-nav .nav-link-side:hover {
  color: var(--primary-color);
  font-weight: bold;
}

#sideMenu {
    overscroll-behavior: contain; /* Prevents "scroll chaining" to the background */
    overflow-y: auto;            /* Allows the menu itself to scroll */
}



/* ============================================================
    RESPONSIVE (Hiding the sidebar on desktop)
============================================================ */

@media (max-width: 991px) {
  /* CHANGE 2: Set the sidebar panel to full width */
  .side-menu-panel {
    width: 100%;
    max-width: 90%;
    /* Ensure it's never constrained */
  }

  /* You might want to adjust the logo and navigation styling for the wider screen */
  .navbar-brand-side {
    margin-top: 30px;
  }
}

/* Hide desktop menu on mobile */
@media (max-width: 991px) {
  #navbarNav {
    display: none !important;
  }
}

/* ============================================================
   BRAND LOGO + PRODUCT MENU TOGGLER
============================================================ */
.logo-img {
  height: 40px;
  width: auto;
  margin-right: -4px;
}

.product-menu-toggler {
  background: none;
  border: none;
  color: var(--white-color, #fff);
  font-size: 1.5rem;
  padding: 0;
  margin-left: 15px;
  cursor: pointer;
  transition: color 0.3s;
}

.product-menu-toggler:hover {
  color: var(--primary-color);
}

/* ============================================================
   FULLSCREEN PRODUCT OVERLAY — MATCHING YOUR SCREENSHOT
============================================================ */

#products-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;

  transition: opacity 0.15s ease, visibility 0.15s ease;
}

#products-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Dark background dim */
.overlay-background {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}

/* White floating panel */
.overlay-panel {
  position: absolute;
  top: var(--navbar-height, 80.2px);
  left: 0;
  width: 100%;
  /* FULL WIDTH */
  z-index: 1;
}

/* White area that holds grid */
.products-wrapper {
  width: 100%;
  background: #fff;
  border-radius: 0 0 0 0;

  padding: 50px 40px;

  /* This creates the floating white half you want */
  height: 420px;
  /* Match screenshot height */
  overflow-y: auto;
  /* Only scroll inside */
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

/* Grid */
.products-grid {
  max-width: 1300px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 35px;
}

/* Product boxes */
/* Styling for the product box container itself */
.product-box {
display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  height: 150px;
  text-decoration: none;
  color: #333;
}

/* Styling for the image logo */
.product-box img {
  /* Set a max-width/max-height to ensure the logo fits within the box */
  max-width: 90%;
  max-height: 60%;

  /* Ensure the image scales down nicely without stretching */
  width: auto;
  height: auto;
  
  /* Recommended: Add a slight gap below the image */
  margin-bottom: 5px; 
}

/*  NEW: Style for the product name text */
.product-name {
font-size: 12px; 
  font-weight: 500; 
  display: block; 
  /*  **NEW/MODIFIED** - Ensures the text inside the span is centered */
  text-align: center;
}

/* You might also need styles for the grid container if you don't have them */
.products-grid {
  display: grid;
  /* Example: 4 columns with equal width and 20px gap */
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-box:hover {
  background: #f2f2f2;
  transform: translateY(-3px);
}

/* Disable scroll behind overlay */
.no-scroll {
  overflow: hidden;
}

.close-overlay-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 10;
}

.close-overlay-btn:hover {
  color: #000;
}

/* ============================================================
   RESPONSIVE (Mobile scroll area)
============================================================ */

@media (max-width: 991px) {
  .products-wrapper {
    height: 1900px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .products-wrapper {
    height: 620px;
    padding: 31px 25px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*---------------------------------------

SECOND NAVIGATION (STICKY)

-----------------------------------------*/

.second-navbar {
    /* ... existing styles ... */
    background: rgba(44, 128, 189, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 12px;
    padding-bottom: 12px;
    z-index: 100 !important;
}

.second-navbar .navbar-brand.second-title {
  font-size: 12px;

  font-weight: var(--font-weight-bold);

  color: var(--items-white-color);
}

.second-nav-items .nav-link {
  color: var(--items-white-color);

  padding: 10px 18px;

  font-weight: var(--font-weight-medium);
}

.second-nav-items .nav-link:hover {
  color: var(--primary-color);
}

.second-navbar.sticky-active {
  position: fixed;

  top: 0;

  left: 0;

  right: 0;

  z-index: 9999;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/*---------------------------------------



SECOND NAVBAR MOBILE - Triangle Toggler



-----------------------------------------*/

@media (max-width: 991px) {
  .second-navbar .navbar-toggler {
    /* Remove default border */

    border: none;

    /* Ensure transition applies to the button for any overall effect */

    transition: transform 0.3s ease-in-out;
  }

  /* ?? TRIANGLE ICON STYLING (The Fix) ?? */
  .second-navbar .navbar-toggler-icon {
    /* CRITICAL: Remove Bootstrap's default SVG image */
    background-image: none;
    background-color: transparent;

    /* Set dimensions for border-based triangle */
    width: 0;
    height: 0;
    display: inline-block;

    /* 1. Create the downward-pointing triangle using borders (DEFAULT: DOWN ARROW) */
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    /* Change from border-bottom to border-top */
    border-top: 12px solid var(--items-white-color); /* Visible part (Triangle color) */

    /* 2. Set transitions and initial state for smooth rotation */
    transform: rotate(0deg); /* Initial state: pointing DOWN */
    transition: transform 0.3s ease-in-out;
  }

  /* Remove any leftover custom hamburger lines that might interfere */

  .second-navbar .navbar-toggler-icon::before,
  .second-navbar .navbar-toggler-icon::after {
    content: none;
  }

  /* ?? ROTATION LOGIC: When menu is OPEN */

  /* Target the icon when the button does NOT have the .collapsed class */

  .second-nav-toggler:not(.collapsed) .navbar-toggler-icon {
    transform: rotate(180deg);
    /* Rotate 180 degrees to point downwards */
  }

  /*---------------------------------------



EXISTING MENU STYLES



-----------------------------------------*/

  #secondNavMenu {
    padding: 15px 10px;

    margin-top: 10px;

    border-radius: 8px;
  }
}

/*--------------------------------------
  BUTTONS             
-----------------------------------------*/
.btn-events {
  background-color: #0072bc;
  /* your brand color */
  border: none;
  transition: background-color 0.3s ease;
}

.btn-events:hover {
  background-color: #003f80;
}

/*---------------------------------------
  COUNTDOWN TIMER              
-----------------------------------------*/
#countdown-timer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0e2c45;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  font-family: "Poppins", sans-serif;
}

#timer.one-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(0.8rem, 2.5vw, 1.3rem);
  /* ðŸ”¥ Auto-resizes with screen width */
  font-weight: bold;
  letter-spacing: 1px;
  flex-wrap: wrap;
  /* Allows clean wrap on tiny screens */
  word-spacing: 2px;
}

#timer.one-line .label {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

#timer.one-line span:not(.label) {
  color: #00c8ff;
}

@media (max-width: 480px) {
  #countdown-timer {
    padding: 8px 0;
  }

  #timer.one-line {
    gap: 5px;
    font-size: clamp(0.7rem, 3vw, 1rem);
  }
}

/*---------------------------------------
  Section 1-IMG Float             
-----------------------------------------*/

/* Basic fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.3s;
}

.reveal.delay-2 {
  animation-delay: 0.6s;
}

.reveal.delay-3 {
  animation-delay: 0.9s;
}

@keyframes floatUpDown {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
    /* Goes up */
  }

  100% {
    transform: translateY(0px);
    /* Back to original position */
  }
}

.floating {
  animation: floatUpDown 3s ease-in-out infinite;
}

/*---------------------------------------
  Section 1             
-----------------------------------------*/

#title {
  position: relative;
  padding-top: 20px;
  padding-bottom: 15px;
  text-align: center;
  overflow: hidden;

  /* Fallback background image */
  background-image: url("images/background-02.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -0;
  pointer-events: none;
  /* Prevents interaction */
}

/* Container positioning */

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.scroll-down.hidden {
  opacity: 0;
  visibility: hidden;
}

.scroll-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.scroll-link:hover {
  transform: translateY(-5px) scale(1.1);
}

.arrow-container {
  animation: fly 2s infinite ease-in-out;
}

.arrow {
  font-size: 32px;
  display: block;
  transition: color 0.3s ease;
}

.scroll-text {
  font-size: 14px;
  margin-top: 5px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-link:hover .arrow {
  color: #00ffff;
}

.scroll-link:hover .scroll-text {
  opacity: 1;
  color: #00ffff;
}

@keyframes fly {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.sec {
  max-width: 1200px;
  margin: auto;
  padding: 1px;
}

.img-theme img {
  max-width: 50%;
  /* responsive */
  height: auto;
}

.text-justified {
  text-align: center;
  font-size: 1.125rem;
  /* ~18px */
  margin-top: 10px;
}

.text-justified span {
  font-size: 1rem;
  display: block;
  margin-top: 5px;
}

.image-section img {
  max-width: 90%;
  height: auto;
  margin-top: 1px;
}

.register-here {
  text-align: center;
  margin-top: 5px;
}

.register-here h2 {
  font-size: 1.5rem;
  color: #fff;
}

.register-here a {
  display: inline-block;
  padding: 12px 30px;
  background-color: #0e2c45;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.register-here a:hover {
  background-color: #2e82be;
  color: #fff;
}

@media (max-width: 768px) {
  .text-justified {
    font-size: 1rem;
  }

  .register-here a {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  #title {
    padding-top: 20px;
    padding-bottom: 10vh;
    text-align: center;
  }

  .image-section img {
    max-width: 100%;
    height: auto;
    padding-top: 25px;
  }

  .img-theme img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .register-here a {
    width: 70%;
    padding: 12px;
  }

  .img-theme img {
    max-width: 100%;
    padding-top: 35px;
  }

  .section {
    padding: 5px;
  }
}

.text-info {
  color: #0064a1 !important;
}

.text-info-emphasis {
  color: #0064a1 !important;
}

.number-badge {
  background-color: #0064a1;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  /* centers the text vertically */
  text-align: center;
  margin-right: 0.5rem;
  padding: 0;
  /* remove padding to keep the circle shape */
}

.card {
  border: none !important;
  box-shadow: none !important;
  background-color: transparent;
}

.card .list-group-item {
  border: none !important;
  padding-left: 0;
  background-color: transparent;
}

.about {
  background-image: url("images/back_landscape_light.jpg");
  /* Replace with your actual image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* Optional: for parallax effect */
}

.image-container {
  width: 100%;
  height: 100%;
}

/* Desktop: image fills vertical space */
@media (min-width: 768px) {
  .image-container {
    height: 100vh;
  }

  .image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
  }
}

/* Mobile: force image to fit nicely */
@media (max-width: 767.98px) {
  .image-container {
    height: auto;
  }

  .image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }
}

/*---------------------------------------
  HERO              
-----------------------------------------*/
.hero {
  position: relative;
  height: calc(90vh - 84px);
}

.hero::after {
  content: "";
  background: rgba(0, 0, 0, 0)
    linear-gradient(rgba(39, 48, 83, 0.1) 0%, rgb(39, 48, 83) 100%) repeat
    scroll 0% 0%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin-bottom: -5px;
}

.hero-text {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero .arrow-icon {
  position: relative;
  top: 50px;
}

.video-wrap {
  z-index: -100;
}

.custom-video {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.date-text,
.location-text {
  border: 1px solid var(--white-color);
  color: var(--white-color);
  display: inline-block;
  padding: 10px 20px;
}

.date-text {
  border-right: 0;
}

/*---------------------------------------
  SPEAKERS              
-----------------------------------------*/
.speakers {
  background-color: #0d0d0d;
}

.text-gradient {
  background: linear-gradient(90deg, #00ff99, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.speaker-card {
  background-color: #f4e6df;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  /* Make the card a flex container */
  flex-direction: column;
  /* Stack content vertically */
  justify-content: space-between;
  /* Push image to the bottom */
  height: 100%;
  /* Ensure full height consistency */
}

.speaker-card:hover {
  transform: translateY(-5px);
}

.speaker-content {
  padding: 1.5rem;
  flex-grow: 1;
  /* Take up remaining space above the image */
}

.speaker-image {
  margin-top: auto;
  /* Push image to bottom of card */
}

.speaker-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.badge {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
}

/* Badge Colors */
.speaker-badge-green {
  background-color: #00ff99;
  color: #000;
}

.speaker-badge-pink {
  background-color: #ff00ff;
  color: #000;
}

.speaker-badge-orange {
  background: linear-gradient(90deg, #ffcc00, #ff00ff);
  color: #000;
}

.speaker-badge-blue {
  background: linear-gradient(90deg, #00ccff, #6600ff);
  color: #000;
}

.section-padding {
  padding: 80px 0;
}

/* Consistent speaker name formatting */
.speaker-name {
  font-size: 1.6rem;
  /* consistent font size */
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  /* allow wrapping only at natural points */
  word-break: keep-all;
  /* prevent awkward breaks */
  text-wrap: balance;
  /* modern browsers: keeps even wrapping */
  text-align: left;
}

/* Consistent description layout */
.speaker-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  text-align: left;
  max-width: 90%;
  margin-bottom: 0;
}

/* Prevent height changes on smaller screens */
.speaker-content {
  min-height: 180px;
  /* keeps all cards same height */
}

@media (max-width: 991px) {
  .speaker-name,
  .speaker-desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* For screens below 1200px — 2 cards per row */
@media (max-width: 1199px) {
  .speakers .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* For screens below 992px — 1 card per row */
@media (max-width: 991px) {
  .speakers .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.speakers {
  background-image: url("images/speakers-section-bg.jpg");
  /* Replace with your actual image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* Optional: for parallax effect */
}

.speakers-thumb {
  position: relative;
}

.speakers-thumb-small {
  margin-top: 24px;
}

.speakers-thumb:hover .speakers-info::before {
  background: var(--primary-color);
  width: 100%;
  padding: 15px;
}

.speakers-thumb:hover .speakers-title,
.speakers-thumb:hover .speakers-text {
  color: var(--white-color);
}

.speakers-info {
  background: var(--white-color);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  margin: 20px;
  padding: 10px 15px;
}

.speakers-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--primary-color);
  width: 5px;
  height: 100%;
  transition: all 1s;
}

.speakers-image {
  width: 100%;
}

.speakers-text-info {
  padding: 100px;
}

.speakers-title,
.speakers-text {
  position: relative;
}

.speakers-text {
  font-size: 12px;
  text-transform: uppercase;
}

.speakers-featured-text {
  background: var(--secondary-color);
  border-radius: 4px;
  color: var(--white-color);
  position: absolute;
  top: 0;
  right: 0;
  font-size: 12px;
  text-transform: uppercase;
  margin: 10px;
  padding: 4px 12px;
}

.speakers-thumb .social-icon {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 15px;
}

.speakers-thumb .social-icon {
  opacity: 0;
  transition: opacity all 1s;
}

.speakers-thumb:hover .social-icon {
  opacity: 1;
  transition-delay: 1s;
}

.sponsor-image {
  max-width: 130px;
  margin: 10px auto;
  height: auto;
}

.rounded-rectangle {
  width: 50%;
  aspect-ratio: 2.5 / 4;
  /* Portrait shape */
  object-fit: cover;
  border-radius: 4rem;
  /* Adjust roundness here */
  display: block;
}

/*---------------------------------------
  SCHEDULE              
-----------------------------------------*/
.nav-tabs {
  border-bottom: 0;
}

.nav-tabs .nav-link,
.nav-tabs .nav-link span {
  display: block;
  text-align: left;
}

.nav-tabs .nav-link span {
  display: block;
}

.nav-tabs .nav-link small {
  display: block;
  font-size: 18px;
  font-weight: normal;
  color: var(--p-color);
}

.nav-tabs .nav-link {
  background: var(--white-color);
  border-radius: 0;
  border: 0;
  border-left: 3px solid var(--section-bg-color);
  padding: 20px 30px;
  transition: all 0.3s;
  width: 25%;
}

.nav-tabs .nav-link:first-child {
  border-left-color: transparent;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
  border-left-color: var(--primary-color);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.nav-tabs .nav-link.active h3,
.nav-tabs .nav-link:focus h3,
.nav-tabs .nav-link:hover h3 {
  color: var(--primary-color);
}

.schedule-image {
  border-radius: 20px;
}

/*---------------------------------------
  CALL TO ACTION              
-----------------------------------------*/
.call-to-action {
  background-image: url("../images/terren-hurst-blgOFmPIlr0-unsplash.jpg");
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}

.call-to-action::after {
  content: "";
  background: rgba(0, 0, 0, 0.45);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.call-to-action .row {
  position: relative;
  z-index: 2;
}

.call-to-action .custom-btn {
  background: var(--white-color);
  color: var(--dark-color);
}

.call-to-action .custom-btn:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/*---------------------------------------
  DOWNLOADBLES              
-----------------------------------------*/
.aspect-ratio-square {
  aspect-ratio: 1.5 / 1;
  padding: 1rem;
}

@media (max-width: 576px) {
  .col-10 {
    margin-left: auto;
    margin-right: auto;
  }
}

.btn-outline-fin {
  color: #0064a1;
  border-color: #0064a1;
}

.btn-outline-fin:hover {
  color: #fff;
  background-color: #0064a1;
  border-color: #0064a1;
}

/*---------------------------------------
  CONTACT              
-----------------------------------------*/
.contact {
  background-image: url("images/background-02.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.contact-form {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.contact-form h2 {
  color: #0b114d;
  padding: 30px 50px;
}

.contact-form .row {
  padding: 50px;
}

.arrow-icon {
  background: var(--section-bg-color);
  border-radius: 100px;
  color: var(--dark-color);
  font-size: var(--h5-font-size);
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  display: inline-block;
  margin: auto;
}

.arrow-icon:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/*---------------------------------------
  CUSTOM FORM               
-----------------------------------------*/
.custom-form .form-control {
  background: var(--section-bg-color);
  border: 0;
  margin-bottom: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.custom-form button[type="submit"] {
  background: var(--primary-color);
  border-radius: 100px;
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
  transition: all 0.3s;
  margin-bottom: 0;
}

.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--navbar-bg-color);
}

/*---------------------------------------
  SITE FOOTER              
-----------------------------------------*/
footer.site-footer {
  background-color: #0072bc;
  color: #fff;
}

footer .logo-img {
  max-width: 160px;
}

footer .social-icon a:hover {
  color: #0d6efd;
  transition: color 0.3s;
}

.site-footer {
  padding-top: 100px;
  padding-bottom: 100px;
}

.site-footer .navbar-brand {
  color: var(--primary-color);
}

.site-footer .social-icon-link {
  font-size: var(--h6-font-size);
  width: 50px;
  height: 50px;
  line-height: 50px;
}

.site-footer .copyright-text {
  font-size: var(--copyright-text-font-size);
}

.footer-menu {
  margin: 0;
  padding: 0;
}

.footer-menu-item {
  list-style: none;
}

.footer-menu-link {
  font-size: var(--copyright-text-font-size);
  display: inline-block;
  vertical-align: top;
  margin-right: 20px;
}

/*---------------------------------------
  SOCIAL ICON               
-----------------------------------------*/
.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon li {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  background: var(--white-color);
  border-radius: 100px;
  font-size: var(--p-font-size);
  color: var(--dark-color);
  display: inline-block;
  vertical-align: top;
  margin: 2px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
}

.social-icon-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
@media screen and (max-width: 1500px) {
  .speakers-text-info {
    padding: 50px;
  }
}

@media screen and (max-width: 991px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  .section-padding,
  .site-footer {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .custom-btn {
    font-size: var(--copyright-text-font-size);
    padding: 8px 16px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 0;
  }

  .navbar-nav .nav-link {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero {
    height: calc(75vh - 78.39px);
  }

  .nav-tabs .nav-link {
    width: 50%;
  }

  .copyright-text-wrap {
    margin-top: 20px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 28px;
  }

  h4 {
    font-size: 24px;
  }

  h5 {
    font-size: 20px;
  }

  .navbar-brand {
    font-size: 16px;
  }

  .custom-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .nav-tabs .nav-link {
    margin-right: 0;
    margin-left: 0;
    padding: 15px;
  }

  .hero-text {
    width: 100%;
  }

  .site-footer .social-icon-link {
    width: 35px;
    height: 35px;
    line-height: 35px;
  }

  .footer-menu-link {
    margin-left: 10px;
    margin-right: 10px;
  }

  .footer-menu,
  .copyright-text-wrap {
    justify-content: center;
  }
}

.schedule .program-columns {
  max-width: 1000px;
  /* adjust as needed */
  margin: 0 auto;
  /* center the column */
}

.program-columns {
  column-count: 1;
  column-gap: 2rem;
}

@media (max-width: 767.98px) {
  .program-columns {
    column-count: 1;
  }
}

.program-item {
  break-inside: avoid;
  background-color: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.program-time {
  font-weight: bold;
  color: #0064a1;
  margin-bottom: 0.25rem;
}

.program-item h6 {
  margin-bottom: 0.25rem;
}

.program-item p {
  margin-bottom: 0;
  /* removes extra spacing under person in charge */
}

.schedule {
  background-image: url("images/back_landscape_light.jpg");
  /* Replace with your actual image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* Optional: for parallax effect */
}

.schools {
  min-height: 450px;
  /* Adjust as needed */
  background-color: #fff;
  /* Your preferred color */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

/* Preloader wrapper */
#preloader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  /* change if needed */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100009999;
}

/* Spinner */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #e0e0e0;
  border-top: 6px solid #0d6efd;
  /* Bootstrap primary color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#logo-preloader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  /* change if needed */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Logo animation */
.preloader-logo {
  width: 100px;
  /* adjust size */
  animation: fadePulse 1.5s ease-in-out infinite;
}

/* Opacity animation */
@keyframes fadePulse {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

/* Preloader Overlay */
#preloader {
  position: fixed;
  inset: 0;
  background: #f5f6f7;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100009999;
}

/* Skeleton container */
.skeleton-wrapper {
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

/* Skeleton elements */
.skeleton {
  background: #e2e5e7;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* Logo size */
.skeleton.logo {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 12px;
}

/* Lines */
.skeleton.line {
  height: 18px;
  margin: 0 auto;
}

/* Shimmer effect */
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

#link-preloader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: none;
  z-index: 99999;
  backdrop-filter: blur(2px);
}

#link-preloader .loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: #0dcaf0;
  transition: width 0.6s ease;
}
/* ===============================
   OVERLAY (Black Transparent BG)
   =============================== */
.feedback-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Black transparent dimmer */
  z-index: 99999;
  
  /* Flexbox is used to position the child popup */
  display: flex; 
  justify-content: center; /* Center horizontally always */
  
  /* Hidden state by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Active State (Triggered by JS) */
.feedback-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ===============================
   POPUP CARD (Shared Styles)
   =============================== */
.feedback-popup {
  background: white;
  padding: 20px 24px;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===============================
   DESKTOP VIEW (Centered Modal)
   =============================== */
@media (min-width: 769px) {
  .feedback-overlay {
    align-items: center; /* Vertically center in screen */
  }

  .feedback-popup {
    max-width: 450px;
    border-radius: 12px;
    
    /* Animation Start State */
    transform: scale(0.9);
  }

  /* Animation End State */
  .feedback-overlay.show .feedback-popup {
    transform: scale(1);
  }
}

/* ===============================
   MOBILE VIEW (Bottom Sheet)
   =============================== */
@media (max-width: 768px) {
  .feedback-overlay {
    align-items: flex-end; /* Push to bottom of screen */
  }

  .feedback-popup {
    max-width: 100%;
    border-radius: 20px 20px 0 0; /* Round top corners only */
    padding-bottom: 30px; /* Extra padding for safe area */
    
    /* Animation Start State: Pushed off screen */
    transform: translateY(100%);
  }

  /* Animation End State: Slide Up */
  .feedback-overlay.show .feedback-popup {
    transform: translateY(0);
  }
}

/* ===============================
   INTERNAL CONTENT STYLES
   =============================== */
.popup-header .popup-title {
  font-weight: 600;
  font-size: 17px;
}

.emoji-link {
  text-decoration: none !important;
}

.emoji {
  font-size: 34px;
  transition: transform 0.2s;
  cursor: pointer;
  padding: 5px;
}

.emoji:hover {
  transform: scale(1.25);
}

.labels span {
  font-size: 12px;
  color: #6c757d;
}


#backToTop {
  position: fixed;
  right: 20px;
  bottom: 35px;
  background-color: rgba(44, 128, 200, 0.90);
  color: white;
  
  /* Forces a perfect circle */
  width: 50px;
  height: 50px;
  border-radius: 50%; 
  
  /* Centers the icon perfectly */
  display: none; /* Changed to flex/block via JS usually */
  align-items: center;
  justify-content: center;
  line-height: 50px; /* Matches height to center text vertically */
  
  cursor: pointer;
  font-size: 24px; /* Adjust size of the arrow icon here */
  text-align: center;
  z-index: 800;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.2s;
}

#backToTop:hover {
  background-color: #0056b3;
  transform: scale(1.1); /* Slight pop effect on hover */
}

@media (max-width: 768px) {
  #backToTop {
    bottom: 105px; /* Keeps your mobile positioning */
  }
}


/* ------------------ Notification Pill ------------------ */

/* Base CSS for the Floating Notification Pill */
.pill-notification-container {
    /* Position fixed to float above other content */
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    max-width: 100%;

    /* --- CRITICAL CHANGE 1: DEFAULT (NON-STICKY) POSITION --- */
    top: 175px; /* Adjust this to sit right under the two non-sticky navbars */
}

/* --- CRITICAL CHANGE 2: STICKY POSITION LOGIC --- */
.pill-notification-container.sticky-active {
    top: 85px; /* Adjust this to sit right under the sticky second navbar */
}


/* Custom styling for the pill shape */
.alert-pill-custom {
    border-radius: 50px;
    padding: .5rem 1.5rem;
    text-align: center;
    margin-bottom: 0;
    /* Remove 'width: 100%;' here, we'll control the width via max-width */
}

/* New CSS to ensure the <a> tag behaves like a block element */
.alert-link-pill {
    text-decoration: none; /* Remove underline from the link */
    display: inline-flex; /* Use flex to align icon/text and control width */
    align-items: center;
    white-space: nowrap; /* CRITICAL: Prevent wrapping to keep it one line */
	top: 10px;
}

/* Optional: Adjust position for smaller screens if navbars collapse */
@media (max-width: 991.98px) {
    /* Limit the pill's width on small screens to prevent it from hugging the edges,
       but leave some padding for a better "pill" look. */
    .pill-notification-container {
        /* Set max-width on the container */
        max-width: 90%; /* Limits the container to 90% of the viewport width */
    }

    /* Adjust the specific link/alert element's width */
    .alert-link-pill {
        max-width: 100%; /* Ensures the pill fits within its container (90% width) */
        width: auto; /* Allow the width to shrink-wrap the content */
		top:10px;
    }

    /* Adjust for non-sticky mobile state */
    .pill-notification-container:not(.sticky-active) {
        top: 150px; /* Example: If navbars take up more vertical space */
    }
    /* Adjust for sticky mobile state (if the second navbar sticks) */
    .pill-notification-container.sticky-active {
        top: 70px; /* Adjust this to sit right under the sticky mobile navbar */
    }
}




/* ===============================
   Navigation Pill
   =============================== */
html { scroll-behavior: smooth; }
/* Moves the dock 150px down (off-screen) when hidden */
.hide-dock {
    transform: translate(-50%, 150px) !important;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease-in-out; /* Dagdag ito para hindi biglang nawawala */
}
    /* Mobile-Only Logic (iOS Style Dock) */
    @media (max-width: 991.98px) {
        .ios-dock-container {
            display: flex;
            position: fixed;
            bottom: 20px; /* Adjusted for better clearance */
            left: 50%;
            transform: translateX(-50%);
            z-index: 999;
            width: 93%; /* Increased width for small screens */
            max-width: 420px;
        }

        .ios-dock {
            display: flex;
            justify-content: space-around;
            align-items: center;
            width: 100%;
            /* Scalable padding based on screen width */
            padding: clamp(8px, 2vw, 12px) 5px;
            background: rgba(44, 128, 200, 0.80);
            backdrop-filter: blur(25px) saturate(180%);
            -webkit-backdrop-filter: blur(25px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 35px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
        }

        .nav-link-custom {
            text-decoration: none !important;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            transition: all 0.3s ease;
            color: rgba(255, 255, 255, 0.4) !important;
            /* Prevents text from wrapping */
            white-space: nowrap; 
        }

        /* Scalable Icon Styling */
        .nav-link-custom i, 
        .nav-link-custom svg {
            /* Adjusts size between 1.2rem and 1.6rem based on screen width */
            font-size: clamp(1.2rem, 5vw, 1.6rem); 
            width: clamp(1.2rem, 5vw, 1.6rem);
            height: auto;
            margin-bottom: 2px;
            color: inherit !important;
            display: block;
        }

        /* Scalable Text Styling */
        .nav-link-custom span {
            /* Adjusts font between 0.55rem and 0.7rem */
            font-size: clamp(0.55rem, 2.5vw, 0.7rem);
            font-weight: 600;
            color: inherit !important;
            letter-spacing: 0.2px;
        }
		.nav-link-custom:hover,
		.nav-link-custom:active {
			color: #ffffff !important;
		}
        .nav-link-custom.active,
        .nav-link-custom.cert-link {
            color: #ffffff !important;
	
        }
    }

    /* Hide on Desktop */
    @media (min-width: 992px) {
        .ios-dock-container { display: none !important; }
    }




  /* Ad Modal Overlay background */
  .custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none; 
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px; /* Buffer space so image doesn't touch screen edges */
    box-sizing: border-box;
  }

  /* Container that dictates the size */
  .ad-container {
    position: relative;
    /* This ensures the container never exceeds the screen height or width */
    max-width: 100%;
    max-height: 90vh; 
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ad-container img {
    display: block;
    /* "Contain" prevents stretching and maintains aspect ratio */
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain; 
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
  }

  /* The Close Button */
  .btn-circle-close {
    position: absolute;
    /* Adjusted slightly for better visibility on mobile */
    top: -12px;
    right: -12px;
    z-index: 10001;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    cursor: pointer;
    font-size: 22px;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
  }

  .btn-circle-close:hover {
    transform: scale(1.1);
  }

  /* Trigger class */
  .custom-modal-overlay.active {
    display: flex;
  }

  /* Prevent scrolling when modal is open */
  body.modal-open {
    overflow: hidden;
  }