
/*---VARIABLES---*/

:root {
  --white-color:                  #1c2d4c;
  --items-white-color:             #fff;
  --primary-color:                #003f66;
  --secondary-color:              #0d6efd;
  --section-bg-color:             #f0f8ff;
  --dark-color:                   #000000;
  --navbar-bg-color:              #fff;
  --navbar-2nd-bg-color:          #597cbf;
  --p-color:                      #334b79;
  --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;
}

/*---------------------------------------
  VENUE MODAL STYLES (UPDATED)
----------------------------------------*/
.modal {
  z-index: 1060; /* Set a new, higher value */
}

#venueModal .modal-content {
    height: 100%;
    max-height: 75vh !important;
    overflow: hidden;
}

#venueModal .modal-body {
    overflow-y: auto;
    padding: 1.0rem !important;
}

/* MOBILE STYLE ALWAYS */
.venue-modal-columns {
    display: flex;
    flex-direction: column;
    gap: 0.7rem !important;
}

/* Venue items � stacked layout */
.venue-modal-item {
    padding: 0.9rem !important;
    border-radius: 1rem;
    border: 1px solid #dee2e6;
    background: #ffffff;
    transition: 0.25s ease;
    display: flex;
    flex-direction: column !important;
    gap: 0.6rem !important;
}

/* Buttons go full width */
.venue-modal-item .d-flex.gap-2 {
    flex-direction: column !important;
    width: 100%;
    gap: 0.5rem;
}

.venue-modal-item .d-flex.gap-2 a.btn {
    width: 100%;
    text-align: center;
}

/* Button styles */
.btn-info {
    background: #1c2d4e;
    border-color: #1c2d4e;
    color: #fff;
    transition: 0.25s;
}

.btn-info:hover {
    background: #5a81cc;
    border-color: #5a81cc;
}

.btn-info.disabled,
.btn-info:disabled {
    background: #b1c2e3 !important;
    border-color: #b1c2e3 !important;
    pointer-events: none;
    color: #fff;
}

.btn-outline-info {
    color: #1c2d4e;
    border-color: #1c2d4e;
    transition: 0.25s;
}

.btn-outline-info:hover {
    background: #1c2d4e;
    color: #fff;
}

/*---------------------------------------
  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: 1000;
  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: 9999;
    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: 10000;

  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: 12px;
  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;
  }
}


/* ---------------------------------------
   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: 1;

  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: 1050;
  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; }

/*---------------------------------------
  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 .15s linear,border-right-color .15s linear .1s,border-bottom-color .15s linear .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 .4s linear 0s,border-left-width 0s linear .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,.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;
}

/* ============================================================
    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: 1040;

  transition: opacity 0.25s ease, visibility 0.25s 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, 79px);
  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: 33px 25px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*---------------------------------------
  SECOND NAVIGATION (STICKY)
-----------------------------------------*/

.second-navbar {
    background: rgba(0, 125, 197,0.9); /* semi-transparent white */
    backdrop-filter: blur(10px); /* adds the frosted glass blur effect */
    -webkit-backdrop-filter: blur(10px); /* for Safari support */
    padding-top: 12px;
    padding-bottom: 12px;
    z-index: 1000 !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: var(--highlight-icon-color); /* your brand color */
  border: none;
  transition: background-color 0.3s ease;
}

.btn-events:hover {
  background-color: var(--white-color);
}


/* Container to help with centering on page */
.timer-pill-container {
    display: flex;
    justify-content: center;
    padding: 10px;
    font-family: 'Poppins', sans-serif;
}

/* The Pill Body */
.timer-pill {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    color: #1c2d4e;
    padding: 8px 20px;
    border-radius: 100px; /* Force pill shape */

    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    gap: 15px;
}

/* Label Styling */
.header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header-text .city {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-text .sub {
    font-size: 0.65rem;
    color: #777;
}

/* Vertical Divider inside the pill */
.pill-divider {
    width: 1px;
    height: 25px;
    background: #ddd;
}

/* Timer Section */
.timer-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-box {
    display: flex;
    align-items: baseline; /* Keeps number and 'd/h/m' aligned */
    gap: 2px;
}

.time-box span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1c2d4e;
}

.time-box small {
    font-size: 0.65rem;
    font-weight: 600;
    color: #888;
    text-transform: lowercase;
}

.sep {
    font-weight: 700;
    color: #ccc;
    font-size: 1rem;
}

/* Responsive Tweaks */
@media (max-width: 400px) {
    .timer-pill {
        padding: 6px 15px;
        gap: 10px;
    }
    .header-text .city { font-size: 0.65rem; }
    .time-box span { font-size: 1rem; }
    .pill-divider { margin: 0 2px; }
}
/* Center adjustment for the section */
#title {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*---------------------------------------
  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(-8px); /* Goes up */
  }
  100% {
    transform: translateY(0px); /* Back to original position */
  }
}

.floating {
  animation: floatUpDown 4s 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-03.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#speaker {
  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: #1c2d4e;
    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: #4666a3;
	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) {

    .img-theme img {
      max-width: 100%;
	  padding-top: 35px;
    }

    .section {
      padding: 5px;
    }
  }

  .text-info {
    color: #1c2d4e !important; 
  }

  .text-info-emphasis {
    color: #1c2d4e !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 SECTION
-----------------------------------------*/
.speakers {
    background-image: url('images/speakers-section-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.section-padding {
    padding: 80px 0;
}

/* ===================== SPEAKER CARDS ===================== */
.speaker-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensures all cards in a row have the same height */
    border-radius: 15px;
    overflow: hidden;
    background-color: #e4edff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.speaker-card:hover {
    transform: translateY(-3px);
}

.speaker-content {
    flex-grow: 1; /* Pushes the image container to the bottom */
    display: flex;
    flex-direction: column;
}

.speaker-image {
    margin-top: auto; /* Anchors image to the bottom of the card */
    width: 100%;
}

.speaker-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ===================== TEXT STYLING ===================== */
.speaker-name {
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    text-align: left;
    /* Fluid typography: Min 1rem, Max 1.5rem */
    font-size: clamp(1rem, 2.5vw, 1.5rem); 
}

.speaker-desc {
    line-height: 1.4;
    color: #444;
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}



/* ===================== RESPONSIVE ADJUSTMENTS ===================== */

/* Desktop and Large Screens */
@media (min-width: 992px) {
    .speaker-card {
        min-height: 520px; /* Uniform height for 4-column layout */
    }
}

/* Tablets (3-column layout) */
@media (min-width: 768px) and (max-width: 991px) {
    .speaker-card {
        min-height: 480px;
    }
}

/* Mobile (2-column layout) */
@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }

    .speaker-card {
        min-height: 350px; /* Reduced height for smaller screens */
    }

    .speaker-content {
        padding: 15px !important;
    }

    /* Keep the name readable on small screens */
    .speaker-name {
        font-size: 0.95rem;
    }

    .speaker-desc {
        font-size: 0.8rem;
    }
}

/* Very Small Devices (Single Column or narrow mobile) */
@media (max-width: 400px) {
    .speaker-card {
        min-height: 300px;
    }
    
  
}
/*---------------------------------------
  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,.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;
}


#scheduleBtn {
    font-weight: 600;
    transition: all 0.3s ease;
}

/*---------------------------------------
  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: 999999;
}

/* 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: 999999;
}

/* 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: 99999;
}

/* 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;
}



#backToTop {
  position: fixed;
  right: 20px;
  bottom: 35px;
  background-color: var(--highlight-icon-color);
  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 */
  }
}

/* ------------------ Filled Info Button ------------------ */
.btn-info {
  background: #1c2d4e;
  border-color: #1c2d4e;
  color: #fff;
  transition: 0.25s ease;
}

/* Hover state */
.btn-info:hover {
  background: #5a81cc;
  border-color: #5a81cc;
  color: #fff;
}

/* Active / Clicked state */
.btn-info:active,
.btn-info.active {
  background: #1c2d4e;
  border-color: #1c2d4e;
  color: #fff;
}

/* Disabled filled button */
.btn-info:disabled,
.btn-info.disabled {
  background: #b1c2e3 !important;
  border-color: #b1c2e3 !important;
  opacity: 1;
  pointer-events: none;
  color: #fff;
}

/* ------------------ Outlined Info Button ------------------ */
.btn-outline-info {
  color: #1c2d4e;
  border-color: #1c2d4e;
  background: transparent;
  transition: 0.25s ease;
}

/* Hover state for outlined */
.btn-outline-info:hover {
  background: #1c2d4e;
  color: #fff;
  border-color: #1c2d4e;
}

/* Active / Clicked state for outlined */
.btn-outline-info:active,
.btn-outline-info.active {
  background: #1c2d4e;
  color: #fff;
  border-color: #1c2d4e;
}

/* Disabled outlined button */
.btn-outline-info:disabled,
.btn-outline-info.disabled {
  background: transparent;
  color: #b1c2e3;
  border-color: #b1c2e3;
  pointer-events: none;
  opacity: 1;
}

/* Program Item hover effect */
.program-item {
  transition: 0.25s ease;
}

.program-item:hover {
  background: #f0faff;
  transform: scale(1.01);
  border-color: #0dcaf0;
}

/* Mobile: stack buttons vertically full width */
@media (max-width: 768px) {
  .program-item {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  .program-item .d-flex.gap-2 {
    flex-direction: column;
    width: 100%;
  }
  .program-item .d-flex.gap-2 a.btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}





/* ------------------ 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: var(--highlight-icon-color);
            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; }
    }




/* Card Container */
.album-card {
    display: block;
    text-decoration: none;
    background-color: transparent; /* Removes the white card background */
    transition: transform 0.2s ease;
}

/* Thumbnail with Round Corners */
.album-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden; 
    border-radius: 18px; /* Smooth rounded corners */
    background-color: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Subtle depth */
}

.album-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Left-Aligned Text Body */
.album-body {
    text-align: left; /* Forces text to the left */
    padding-left: 2px;
}

.album-item-title {
    color: #333;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.album-date {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Hover Effects */
.album-card:hover .album-img {
    transform: scale(1.08);
}

.album-card:active {
    transform: scale(0.97);
}


#section_7 .bg-white {
    min-height: 450px; /* Adjust based on the average height of the posts */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Add this to your CSS file */
#featureModal .modal-content {
    border-radius: 12px; /* Adjust this value for more or less curve */
    border: none;        /* Optional: removes the default border for a cleaner look */
}





  /* 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;
  }

/*---------------------------------------
  Announcement Banner
----------------------------------------*/
.announcement-banner {
  background-color: rgba(89, 124, 191, 1.0);
  transition: background-color 0.3s ease;
  overflow: hidden; /* Ensures no scrollbars if elements wiggle */
}

.banner-link {
  display: inline-block;
  text-decoration: none;
  /* Apply the pulse animation: 2 seconds duration, infinite loop */
  animation: gentlePulse 2s infinite ease-in-out;
}

/* Hover state: Pause animation and add a slight glow */
.banner-link:hover {
  animation-play-state: paused;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Keyframes for the attention-grabbing movement */
@keyframes gentlePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05); /* Grows slightly */
  }
  100% {
    transform: scale(1);
  }
}



/* FORCE 2 COLUMNS ON ALL SCREENS 991px AND BELOW */
@media (max-width: 991.98px) {
    #section_1 .row-cols-2 > .col,
    #section_1 .row-cols-lg-3 > .col {
        width: 50% !important;
        flex: 0 0 auto;
    }
    
    #section_1 .g-2 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
}

.text-cus{
 color:#00598c;
}


/* Card Container */
.seminar-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column; /* Vertical stack */
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 600x388 Aspect Ratio Thumbnail */
.thumbnail-container {
    width: 100%;
    aspect-ratio: 600 / 388;
    overflow: hidden;
    background: #e0e0e0;
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Body flex to handle vertical alignment */
.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Take up all available space */
}

/* Text Content Styling */
.event-date {
    color: #555;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left; /* Add this: left, center, or right */
}

.event-title {
    color: #000;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Max 5 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.5rem; /* Gap between text and buttons */
    text-align: left; /* Add this: left, center, or right */
}

/* STACKED BUTTONS - Forced to bottom */
.btn-group-custom {
    display: flex;
    flex-direction: column; 
    gap: 8px; 
    margin-top: auto; /* PUSHES TO THE BOTTOM */
}

.btn-group-custom a {
    width: 100%;
    text-align: center;
    padding: 10px 5px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-reg {
    background-color: #00598c; 
    color: #fff !important;
}

.btn-reg:hover {
    background-color: #004770;
    transform: translateY(-2px);
}

.btn-view {
    background-color: #e9ecef; 
    color: #000 !important;
}

.btn-view:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

/* Force 2 Columns on Mobile/Tablet */
@media (max-width: 991.98px) {
    #section_1 .row-cols-2 > .col {
        width: 50% !important;
        flex: 0 0 auto;
    }
}


/* Disable main body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
}

/* Remove default modal header & margins */
.modal-content {
    border: none !important;
    border-radius: 0 !important;
}

.modal-body {
    padding: 0 !important;
    overflow-y: auto; /* Allow scrolling inside the modal */
    height: 100vh;
}

/* Custom "Go Back" Button */
.btn-go-back {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-go-back:hover {
    background: #00598c;
    color: white;
}

/* Ensure section 2 (first section in modal) starts at the very top */
#section_2 {
    margin-top: 0 !important;
    padding-top: 80px !important; /* Space for the Go Back button */
}


    .program-item.product-card {
        background-size: cover;
        background-position: center;
        position: relative;
        overflow: hidden;
        min-height: 450px; /* Maintains the card size */
        display: flex;
        flex-direction: column;
        transition: transform 0.3s ease;
        border: none;
    }

    /* Hover effect */
    .program-item.product-card:hover {
        transform: translateY(-10px);
    }

    /* Overlay to ensure text readability over the image */
    .program-item.product-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        /* Background color removed per instruction */
    }

    .product-content {
        position: relative;
        z-index: 2; /* Sits above the overlay */
        height: 100%;
    }

    .btn-reg {
        background-color: #0066a2; /* Matching the blue in your image */
        text-decoration: none;
        display: inline-block;
        transition: opacity 0.3s;
    }

    .btn-reg:hover {
        opacity: 0.9;
        color: #fff;
    }

        /* Balanced section spacing */
    .section-padding { padding: 60px 0; }
    
    /* Responsive font tweak for the date */
    .date-badge h5 {
        font-size: 1.1rem;
    }


       .extra-small {
        font-size: 0.75rem;
    }

    .video-wrapper {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Keeps image fluid but manageable */
    .video-wrapper img {
        width: 100%;
        max-width: 500px;
        height: auto;
    }

    /* Desktop: small fixed width */
    .btn-fixed-responsive {
        width: 120px;
        padding: 8px 0;
        text-align: center;
        border-radius: 8px;
        text-decoration: none;
    }

    /* Mobile: full width */
    @media (max-width: 767px) {
        .btn-fixed-responsive {
            width: 100%;
            padding: 12px 0;
        }
    }