html {
  scroll-behavior: smooth;
}

/* Apply smooth scrolling by default */
/* NAV BAR */
/* --- Theme Variables (Approximation of shadcn slate/default) --- */
:root {
  --background: hsl(0 0% 3.9%);
  --foreground: hsl(0 0% 98%);
  --muted-foreground: hsl(0 0% 62.8%);
  --primary: hsl(0 0% 98%);
  --primary-foreground: hsl(0 0% 9%);
  --accent: hsl(0 0% 12%);
  --maroon: #a64250;
  --maroon-light: #b9545e;
  --maroon-dark: #803040;
  --maroon-darker: #602430;
  --maroon-transparent: rgba(166, 66, 80, 0.1);
  --maroon-shadow: rgba(166, 66, 80, 0.15);
  --maroon-shadow-dark: rgba(166, 66, 80, 0.25);
  --maroon-gradient: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  --maroon-gradient-light: linear-gradient(135deg,
      var(--maroon-light),
      var(--maroon));
  --maroon-gradient-dark: linear-gradient(135deg,
      var(--maroon-dark),
      var(--maroon-darker));
  /* Slightly darker accent for contrast */
  --accent-foreground: hsl(0 0% 98%);
  --border: hsl(0 0% 14.9%);

  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Animation Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.4s;
  --stagger-delay: 0.05s;

  --background-color: #f0f4f8;
  /* Lighter background */
  --border-color: #d1d9e6;
  /* Softer border */
  --shadow-color-light: rgba(0, 0, 0, 0.08);
  --shadow-color-deep: rgba(69, 90, 100, 0.6);
  /* Slightly desaturated deep shadow */
  --circle-bg: #ffffff;
  --circle-border: #e1e8f0;
  --hover-border-color: #a8b9cf;
  --beam-path-color: #b0bec5;
  /* Softer gray for beam path */
  --gradient-start: #66ceff;
  /* Light blue */
  --gradient-stop: #8a61ff;
  /* Purple */
  /* Delay between staggered items */
}

/* --- Basic Reset & Body --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: white;
  color: var(--foreground);
  overflow-x: hidden;
  transition: background-color var(--duration-normal) ease;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* Prevent scrolling when mobile menu is open */
body.mobile-nav-open {
  overflow: hidden;
}

/* --- Main Container --- */
.dropdown-nav-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* padding: 1rem; */
  background-color: white;
}

/* --- Nav Bar Styling --- */
#mainNav {
  width: 100%;
  max-width: 1200px;
  /* Max width for content */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  /* Vertical padding */
  position: fixed;
  /* For absolute children like mobile menu */
  z-index: 100;
  /* Ensure nav is above general content */
  height: 68px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  top: 20px;
}

/* Add simple branding style */
.nav-branding {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  z-index: 101;
  /* Above mobile menu background */
  transition: color var(--duration-fast) ease;
}

.nav-branding:hover {
  color: var(--muted-foreground);
}

/* --- Navigation List (Desktop) --- */
.nav-list {
  position: relative;
  display: flex;
  list-style: none;
  align-items: center;
  /* Vertically align items */
}

/* --- Individual Nav Item (Desktop) --- */
.nav-item {
  position: relative;
}

/* --- Nav Button (Desktop) --- */
.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  /* Slightly more padding */
  font-size: 0.9rem;
  /* Slightly larger */
  font-weight: 500;
  color: var(--maroon);
  background-color: transparent;
  border: none;
  cursor: none;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  border-radius: var(--radius-full);
  /* Rounded for better hover bg */
  transition: color var(--duration-fast) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-expo);
}

.nav-button:hover {
  color: var(--maroon);
  transform: translateY(-1px);
  /* Subtle lift */
}

/* Style direct links differently if needed */
.nav-button[href]:not([href="#"]) {
  position: relative;
  text-decoration: none;
  color: var(--maroon);
}

/* Chevron Icon */
.nav-chevron {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  margin-left: 2px;
  /* Small space */
  transition: transform var(--duration-normal) var(--ease-in-out-cubic);
  color: var(--maroon);
}

/* Rotate chevron when dropdown is potentially active */
.nav-item:hover .nav-chevron,
/* Keep hover for desktop */
.nav-item.persist-hover .nav-chevron,
.nav-item.submenu-open .nav-chevron {
  /* For mobile active state */
  transform: rotate(180deg);
  color: var(--maroon);
}

/* --- Hover Background (Desktop) --- */
.hover-background {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  /* Set by JS */
  background-color: var(--accent);
  /* Use accent color */
  border-radius: var(--radius-full);
  z-index: 1;
  opacity: 0;
  /* Smoother, slightly faster transition */
  transition: left var(--duration-normal) var(--ease-out-expo),
    width var(--duration-normal) var(--ease-out-expo),
    opacity var(--duration-fast) ease-in;
  pointer-events: none;
}

/* --- Dropdown Menu Container (Desktop) --- */
.dropdown-menu-wrapper {
  position: absolute;
  left: 50%;
  /* Start from center of nav item */
  transform: translateX(-50%);
  /* Center align the dropdown */
  top: 100%;
  padding-top: 0.75rem;
  /* pt-3 */
  z-index: 50;
  width: max-content;
  perspective: 1000px;
  /* Add perspective for 3D-ish effect */

  /* Animated state */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(15px) rotateX(-5deg);
  /* Initial slight tilt */
  transform-origin: top center;
  transition: opacity var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo),
    visibility 0s linear var(--duration-normal);
}

/* Visible state for dropdown (Desktop) */
.nav-item:hover .dropdown-menu-wrapper,
.nav-item.persist-hover .dropdown-menu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) rotateX(0deg);
  transition: opacity var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo),
    visibility 0s linear 0s;
}

/* Dropdown Menu Styling (Desktop) */
.dropdown-menu {
  background-color: white;
  /* Use accent for dropdown */
  border: 1px solid var(--maroon-transparent);
  padding: 1.5rem;
  /* p-6 */
  border-radius: var(--radius-lg);
  /* Slightly less rounded */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2),
    0 10px 10px -5px rgba(0, 0, 0, 0.1);
  /* Enhanced shadow */
  overflow: hidden;
}

/* Styles for submenu columns, titles, lists remain largely the same */
.submenu-columns {
  display: flex;
  gap: 2.5rem;
  width: fit-content;
}

.submenu-column {
  width: 100%;
}

.submenu-column h3 {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
  color: var(--muted-foreground);
}

.submenu-item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Reduced gap */
}

/* --- Individual Submenu Item Link (Desktop) --- */
.submenu-link {
  display: flex;
  align-items: center;
  /* Center align icon and text vertically */
  gap: 0.75rem;
  text-decoration: none;
  color: var(--maroon);
  padding: 0.5rem 0.75rem;
  /* Add padding for hover effect */
  margin: -0.5rem -0.75rem;
  /* Negative margin to offset padding */
  border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.submenu-link:hover {
  color: var(--maroon-dark);
  background-color: var(--maroon-transparent);
  transform: translateX(4px);
  /* Slight shift on hover */
}

.submenu-icon-wrapper {
  width: 2rem;
  /* size-8 */
  height: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--maroon-transparent);
  /* Very subtle background */
  border: 1px solid var(--maroon-transparent);
  color: var(--maroon);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) ease;
}

.submenu-link:hover .submenu-icon-wrapper {
  background-color: var(--maroon);
  color: white;
  border-color: var(--maroon);
  transform: scale(1.1) rotate(5deg);
  /* Icon micro-interaction */
}

.submenu-icon-wrapper svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}

.submenu-text-content {
  line-height: 1.3;
  width: max-content;
}

.submenu-text-content .label {
  font-size: 0.9rem;
  font-weight: 500;
  color: black;
  margin-bottom: 0.1rem;
}

.submenu-text-content .description {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  transition: color var(--duration-fast) ease;
}

.submenu-link:hover .submenu-text-content .description {
  color: black;
}

/* =================================== */
/* --- MOBILE & RESPONSIVE STYLES --- */
/* =================================== */

/* --- Hamburger Button --- */
.hamburger-menu {
  display: none;
  /* Hidden on desktop */
  background: none;
  border: none;
  cursor: none;
  padding: 10px;
  z-index: 1101;
  /* Above everything including mobile menu */
  position: relative;
  /* Ensure stacking context */
  /* Add hover effect */
  transition: transform var(--duration-fast) ease;
}

.hamburger-menu:hover {
  transform: scale(1.1);
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 2px;
  /* Thinner lines */
  background-color: var(--maroon);
  margin: 6px 0;
  /* More space */
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.3s ease;
}

/* Hamburger 'X' Animation */
.hamburger-menu.is-active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: white;
}

.hamburger-menu.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
  /* Fade out sideways */
}

.hamburger-menu.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: white;
}

/* --- Media Query --- */
@media (max-width: 992px) {
  /* Adjusted breakpoint to 992px for better tablet handling */

  /* Show Hamburger */
  .hamburger-menu {
    display: block;
  }

  /* Hide Desktop Hover Background */
  .hover-background {
    display: none;
  }

  /* NEW MOBILE MENU DESIGN */
  /* Mobile Nav List - Slide-in Menu */
  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--maroon);
    /* Use maroon background */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 5rem 1rem 2rem;
    z-index: 1100;
    overflow-y: auto;
    overscroll-behavior-y: contain;

    /* Initial hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out,
      visibility 0s linear 0.4s;
  }

  /* Active state for Mobile Nav List */
  .nav-list.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out,
      visibility 0s linear 0s;
  }

  /* Mobile Nav Items */
  .nav-item {
    width: 100%;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Show nav items when menu is active */
  .nav-list.is-active .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger the animation of nav items */
  .nav-list.is-active .nav-item:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-list.is-active .nav-item:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav-list.is-active .nav-item:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav-list.is-active .nav-item:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav-list.is-active .nav-item:nth-child(5) {
    transition-delay: 0.3s;
  }

  .nav-list.is-active .nav-item:nth-child(6) {
    transition-delay: 0.35s;
  }

  .nav-list.is-active .nav-item:nth-child(7) {
    transition-delay: 0.4s;
  }

  .nav-list.is-active .nav-item:nth-child(8) {
    transition-delay: 0.45s;
  }

  /* Nav Button Styling */
  .nav-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: white !important;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem 0.5rem;
    text-align: left;
    background: transparent;
    border: none;
    cursor: none;
  }

  /* No hover effect needed on mobile */
  .nav-button:hover,
  .nav-button:focus {
    color: white !important;
    background: transparent;
  }

  /* Active nav button */
  .nav-button[aria-expanded="true"] {
    color: white !important;
  }

  /* Chevron icon */
  .nav-chevron {
    transition: transform 0.3s ease;
  }

  .nav-button[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
  }

  /* Dropdown menu wrapper */
  .dropdown-menu-wrapper {
    background-color: rgba(0, 0, 0, 0.3);
    /* Translucent dark background */
    width: 100%;
    max-height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: max-height 0.5s ease;
  }

  /* Show submenu when parent has class */
  .nav-item.submenu-open .dropdown-menu-wrapper {
    max-height: 1000px;
    /* Large value to accommodate any content */
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }

  /* Submenu Columns */
  .submenu-columns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .submenu-column {
    padding: 0.5rem;
  }

  /* Submenu Title */
  .submenu-column h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  /* Submenu Items */
  .submenu-item-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Dropdown menu item */
  .dropdown-menu-item {
    margin-bottom: 0.5rem;
  }

  /* Text Styles */
  .dropdown-menu-label {
    color: white;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
  }

  .dropdown-menu-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
  }

  /* Submenu Link */
  .submenu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
  }

  .submenu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Submenu Icon Wrapper */
  .submenu-icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0.375rem;
  }

  .submenu-text-content {
    flex: 1;
  }
}

/* Mobile Navigation Fix - override all other styles */
@media (max-width: 992px) {

  /* Main mobile nav background */
  .nav-list,
  .nav-list.is-active {
    background-color: var(--maroon) !important;
    overflow-y: auto;
    padding-bottom: 80px;
    /* Add more padding at bottom */
  }

  /* Make sure dropdown shows properly */
  .dropdown-menu-wrapper {
    background-color: rgba(20, 20, 20, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    margin-top: 5px !important;
    position: static !important;
    transform: none !important;
    left: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }

  /* Ensure dropdown stays visible and accessible */
  .nav-item.submenu-open .dropdown-menu-wrapper {
    max-height: none !important;
    /* Remove max-height constraint */
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    padding: 0.75rem !important;
    position: static !important;
    overflow: visible !important;
    margin-bottom: 15px !important;
  }

  /* Fix dropdown menu layout */
  .dropdown-menu {
    box-shadow: none !important;
    background-color: transparent !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    position: static !important;
  }

  /* Format submenu columns correctly */
  .submenu-columns {
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .submenu-column {
    width: 100% !important;
    padding: 0 !important;
  }

  /* Fix for the click/tap issues */
  .submenu-link {
    padding: 15px !important;
    margin: 5px 0 !important;
    border-radius: 4px !important;
    display: flex !important;
    width: 100% !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
    z-index: 10 !important;
  }

  /* Ensure content doesn't overflow */
  .submenu-text-content {
    width: auto !important;
    max-width: 70% !important;
    overflow-wrap: break-word !important;
  }

  /* Mobile fix - prevent scrolling on body when menu is open */
  body.nav-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
  }
}

/* Enhanced Mobile Navigation Styles */
@media (max-width: 992px) {

  /* Main navigation container */
  #mainNav {
    padding: 0.5rem 1rem;
  }

  /* Hamburger menu icon */
  .hamburger-menu {
    z-index: 2000;
    position: relative;
  }

  .hamburger-line {
    background-color: var(--maroon);
    height: 2px;
    width: 24px;
    margin: 5px 0;
  }

  /* Mobile nav list styling */
  .nav-list.is-active {
    padding-top: 6rem;
    z-index: 1500;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    border-radius: 10px;
  }

  /* Nav items styling */
  .nav-item {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 4px;
    border: none;
    transition: background-color 0.2s ease;
    width: 100%;
    max-width: 400px;
  }

  .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Button styling in mobile */
  .nav-button {
    width: 100%;
    text-align: left;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    color: white !important;
  }

  /* Dropdown menu styling */
  .dropdown-menu-wrapper {
    background-color: rgba(0, 0, 0, 0.2) !important;
    margin: 0.5rem 0 !important;
    border-radius: 4px !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    width: 100%;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
    pointer-events: auto;
  }

  /* Show submenu when parent has class */
  .nav-item.submenu-open .dropdown-menu-wrapper {
    max-height: 2000px;
    /* Large enough to fit any submenu */
    padding: 0.75rem !important;
    overflow: visible;
  }

  /* Submenu title */
  .submenu-column h3 {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: white !important;
  }

  /* Submenu items */
  .submenu-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0 !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    color: white !important;
    transition: background-color 0.2s ease !important;
  }

  .submenu-link:hover,
  .submenu-link:active {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
  }

  .submenu-icon-wrapper {
    width: 2rem !important;
    height: 2rem !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
  }

  /* Fix z-index and pointer events for mobile dropdowns */
  .submenu-columns {
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
  }
}

/* Special styling for staff directory page */
.staff-directory-page .nav-list.is-active {
  height: 100% !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  overflow-y: auto !important;
}

/* Ensure consistent background color */
.staff-directory-page .nav-button,
.staff-directory-page .nav-item,
.staff-directory-page .submenu-link {
  background-color: transparent !important;
}

/* Adjust top spacing for the staff directory page */
@media (max-width: 768px) {
  .staff-directory-page .directory-container {
    margin-top: 10vh;
  }

  /* Improve section nav tabs */
  .staff-directory-page .section-link {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Fix hamburger menu positioning */
  .staff-directory-page .hamburger-menu {
    right: 1rem;
    top: 1rem;
  }
}

/* Responsive marquee font size for mobile */
@media (max-width: 768px) {
  .marquee h1 {
    font-size: 34px;
  }

  .marquee img {
    height: 40px;
  }

  #move {
    margin: 5rem 0;
    padding: 2vw 0;
  }

  /* Mobile hero content size adjustments */
  .hero-title {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  .hero-paragraph {
    font-size: 0.8rem;
  }
}

/* Responsive marquee font size for mobile */
.marquee h1 {
  font-size: 2rem;
}

.marquee img {
  height: 58px;
}

/* ============================ */
/* === MOTTO SECTION CSS === */
/* ============================ */

/* #page2 {
    width: 100%;
    margin-top: 2rem;
}

#move {
    background-color: var(--maroon);
    display: flex;
    padding: 3vw 0;
    margin: 10rem 0 10rem 0;
}

.marquee {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3vw;
    padding: 0 1.5vw;
    background-color: var(--maroon);
    transform: translate(-100%);
} 



/* The text element that scrolls horizontally */
.scrolling-text {
  font-size: 6vw;
  /* Responsive font size */
  font-weight: bold;
  white-space: nowrap;
  /* Crucial: Prevents text wrapping */
  will-change: transform;
  /* Performance hint */
  padding: 0 5vw;
  /* Add some padding */
  /* Initial transform handled by GSAP */
  background-color: var(--maroon);
}

/* Simple helper just to make text longer */
.scrolling-text span {
  margin: 0 1em;
  /* Add space between repeated phrases */
  opacity: 0.7;
}

.scrolling-text span:nth-child(odd) {
  opacity: 1;
}

/* ============================ */
/* === END MOTTO SECTION CSS === */
/* ============================ */

/* ============================ */
/* === PARTNERS SECTION CSS === */
/* ============================ */

/* --- MODIFIED: Container takes full viewport --- */
.beam-container {
  position: relative;
  display: flex;
  /* Still use flex for centering inner content */
  width: 100vw;
  /* Full viewport width */
  align-items: center;
  justify-content: center;
  /* Removed overflow: hidden to allow scrolling */
  /* Removed border and explicit background, let body handle it */
  /* Removed box-shadow, less relevant on full page */
  padding: 4rem;
  /* More padding for full page layout */
  box-sizing: border-box;
  /* Include padding in dimensions */
}

/* --- MODIFIED: Inner Layout adapts --- */
.inner-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  /* Let content determine height */
  max-width: 44rem;
  /* Increase max-width slightly */
  max-height: 70%;
  /* Limit height relative to container */
  align-items: stretch;
  justify-content: space-between;
  gap: 7rem;
  /* Increase gap */
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

/* --- MODIFIED: Circle Styles with Transitions and Hover --- */
.circle {
  z-index: 10;
  display: flex;
  width: 4rem;
  /* Slightly larger base size */
  height: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 2px solid var(--circle-border);
  background-color: var(--circle-bg);
  padding: 1rem;
  /* Adjust padding */
  box-shadow: 0 4px 15px -3px var(--shadow-color-light),
    0 2px 8px -4px var(--shadow-color-light);
  /* Softened shadow */
  box-sizing: border-box;
  cursor: none;
  /* Indicate interactivity */

  /* --- ADDED: Transitions --- */
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    /* Ease-out-cubic */
    box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.3s ease-out;

  /* --- ADDED: Initial state for fade-in --- */
  opacity: 0;
  transform: scale(0.8);
  animation: fadeInCircle 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  animation-delay: var(--fade-in-delay, 0s);
  /* Customizable delay per circle if needed */
}

.circle-large {
  width: 5rem;
  /* Slightly larger large circle */
  height: 5rem;
}

/* --- ADDED: Hover State --- */
.circle:hover {
  transform: scale(1.1);
  /* Scale up more */
  border-color: var(--hover-border-color);
  box-shadow: 0 8px 25px -5px var(--shadow-color-deep),
    0 5px 15px -6px var(--shadow-color-deep);
  /* Stronger shadow */
  z-index: 11;
  /* Bring hovered circle slightly forward */
}

/* --- ADDED: Animation Keyframes --- */
@keyframes fadeInCircle {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Set different delays for a staggered effect */
#circle-1 {
  --fade-in-delay: 0.1s;
}

#circle-5 {
  --fade-in-delay: 0.15s;
}

#circle-2 {
  --fade-in-delay: 0.2s;
}

#circle-4 {
  --fade-in-delay: 0.25s;
}

/* Center */
#circle-6 {
  --fade-in-delay: 0.3s;
}

#circle-3 {
  --fade-in-delay: 0.35s;
}

#circle-7 {
  --fade-in-delay: 0.4s;
}

/* Image styles within circle */
.circle img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease-out;
  scale: 1.8;
  border-radius: 50%;
  /* Add transition to image too */
}

.circle:hover img {
  transform: scale(1.05);
  /* Slightly grow icon on hover */
}

/* --- MODIFIED: SVG Beam Styles --- */
.animated-beam-svg {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  stroke-width: 2;
  /* Keep default stroke */
  /* --- ADDED: Initial state for fade-in --- */
  opacity: 0;
  animation: fadeInBeam 0.5s ease-out forwards;
  animation-delay: 0.5s;
  /* Start after circles finish fading in */
}

/* --- ADDED: Beam Fade-in Animation --- */
@keyframes fadeInBeam {
  to {
    opacity: 1;
  }
}

/* Global responsive fixes */
@media (max-width: 768px) {
  main {
    width: 100%;
    overflow-x: hidden;
  }

  .text-rotate-main {
    display: inline;
    padding-right: 0;
    min-height: auto;
  }

  /* Ensure content doesn't create horizontal overflow */
  * {
    max-width: 100%;
  }
}

/* VIDEO SECTION */

.video {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem;
  padding: 2rem;
}

/* Demo Container Styles (Optional) */
.demo-container {
  width: 100%;
  max-width: 896px;
  /* Roughly max-w-4xl */
  text-align: center;
}

.demo-container h2 {
  margin-bottom: 20px;
  color: #1e293b;
  /* slate-800 */
}

/* --- Video Player Styles --- */
.video-player-container {
  position: relative;
  width: 100%;
  max-width: 896px;
  /* max-w-4xl */
  margin: 0 auto;
  border-radius: 12px;
  /* rounded-xl */
  overflow: hidden;
  background-color: rgba(17, 17, 17, 0.6);
  /* #11111198 */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  /* backdrop-blur-sm */
  opacity: 0;
  /* Start hidden for entry animation */
  transform: translateY(20px);
  animation: playerFadeIn 0.5s ease-out forwards;
}

@keyframes playerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-element {
  display: block;
  /* Prevents extra space below */
  width: 100%;
  height: auto;
  cursor: none;
}

.video-controls {
  position: absolute;
  bottom: 12px;
  /* margin m-2 roughly */
  left: 12px;
  right: 12px;
  margin: 0 auto;
  /* Center */
  max-width: calc(100% - 48px);
  /* Limit width */
  padding: 16px;
  /* p-4 */
  background-color: rgba(17, 17, 17, 0.6);
  /* #11111198 */
  backdrop-filter: blur(8px);
  /* backdrop-blur-md */
  border-radius: 16px;
  /* rounded-2xl */
  box-sizing: border-box;
  /* Animation/Transition */
  opacity: 0;
  /* filter: blur(10px); // Blur can be choppy */
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    /* Spring-like ease */
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* filter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); */
}

.video-player-container:hover .video-controls,
.video-controls.visible {
  /* Add .visible class via JS for persistent show */
  opacity: 1;
  transform: translateY(0);
  /* filter: blur(0px); */
  pointer-events: auto;
}

/* Progress Bar */
.progress-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  /* gap-2 */
  margin-bottom: 8px;
  /* mb-2 */
}

.time-display {
  color: white;
  font-size: 0.875rem;
  /* text-sm */
  flex-shrink: 0;
  /* Prevent shrinking */
  min-width: 35px;
  /* Ensure space */
  text-align: center;
}

/* Slider Styles */
.custom-slider {
  position: relative;
  width: 100%;
  height: 4px;
  /* h-1 */
  border-radius: 9999px;
  /* rounded-full */
  cursor: none;
  flex-grow: 1;
  /* Take available space */
}

.progress-slider {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.volume-slider {
  width: 96px;
  /* w-24 */
  height: 4px;
  flex-grow: 0;
  /* Don't grow volume slider */
}

.slider-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  /* bg-white/20 */
  border-radius: 9999px;
}

.slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: white;
  border-radius: 9999px;
  width: 0%;
  /* Default width */
  /* Simulate spring transition */
  transition: width 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Bottom Controls */
.bottom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.left-controls,
.right-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  /* gap-2 / gap-4 adjusted */
}

.volume-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  /* gap-x-1 */
}

/* Buttons */
.control-button {
  background: none;
  border: none;
  color: white;
  padding: 8px;
  /* Adjust for size="icon" equivalent */
  border-radius: 6px;
  /* Default Button radius */
  cursor: none;
  display: inline-flex;
  /* For icon alignment */
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.control-button:hover {
  background-color: rgba(17, 17, 17, 0.82);
  /* #111111d1 */
  transform: scale(1.1);
}

.control-button:active {
  transform: scale(0.9);
}

.control-button svg {
  /* Style icons within buttons */
  width: 20px;
  /* h-5 w-5 */
  height: 20px;
}

.speed-button {
  font-size: 0.875rem;
  /* text-sm */
  min-width: 36px;
  /* Ensure space for text */
  font-weight: 500;
}

.speed-button.active {
  background-color: rgba(17, 17, 17, 0.82);
  /* #111111d1 */
}

.text-heading {
  font-size: 1.75rem;
  /* Example size (adjust as needed: 1.5rem, 2rem, etc.) */
  font-weight: 600;
  /* Semibold (common for headings) */
  line-height: 1.3;
  /* Tighter line height often looks good for headings */
  color: #111827;
  /* Dark gray - nearly black */
  margin-top: 0;
  /* Remove default top margin */
  margin-bottom: 0.5rem;
  /* Space below the heading */
}

/* Styling for the Paragraph (p) */
.text-paragraph {
  font-size: 1rem;
  /* Standard text size (16px by default) */
  line-height: 1.6;
  /* Increased line height for readability */
  color: #4b5563;
  /* Medium gray for body text */
  margin-top: 0;
  /* Remove default top margin (spacing handled by heading's bottom margin) */
  margin-bottom: 1rem;
  /* Space below the paragraph (optional, depends on what follows) */
}

/* Mobile Video Controls */
@media (max-width: 768px) {

  /* Video player container */
  .video-player-container {
    border-radius: 8px;
  }

  /* Video controls for touch devices */
  .video-controls {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    max-width: 100%;
    border-radius: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    background-color: rgba(0, 0, 0, 0.75);
    /* Darker for mobile */
  }

  /* Always show controls on mobile when video is playing */
  .video-player-container.playing .video-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Adjust progress bar for better touch */
  .progress-controls {
    margin-bottom: 12px;
  }

  .custom-slider {
    height: 6px;
    /* Bigger for touch */
  }

  .slider-track,
  .slider-fill {
    border-radius: 3px;
  }

  /* Reorganize bottom controls for mobile */
  .bottom-controls {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Make buttons bigger for touch */
  .control-button {
    padding: 10px;
  }

  .control-button svg {
    width: 24px;
    height: 24px;
  }

  /* Hide volume slider on mobile but keep mute button */
  .volume-slider {
    display: none;
  }

  /* Compact speed buttons */
  .speed-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
  }

  .speed-button {
    font-size: 0.75rem;
    min-width: 30px;
    padding: 6px 4px;
  }

  /* Place fullscreen button more prominently */
  .fullscreen-button {
    margin-left: 6px;
    background-color: rgba(255, 255, 255, 0.15);
  }

  /* Touch-friendly tap areas */
  .control-button:active {
    background-color: rgba(255, 255, 255, 0.3);
  }

  /* Add tap highlight effect */
  .control-button {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  }
}

/* Force video controls to be visible on touch */
@media (pointer: coarse) {
  .video-player-container .video-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Fullscreen mode styles */
.video-player-container.is-fullscreen {
  border-radius: 0;
  max-width: 100%;
  width: 100%;
  height: 100%;
  background-color: #000;
}

.video-player-container.is-fullscreen .video-element {
  height: 100%;
  object-fit: contain;
}

.video-player-container.is-fullscreen .video-controls {
  bottom: 20px;
  max-width: 80%;
  left: 50%;
  transform: translateX(-50%);
}

/* Styles for mobile in landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .video-player-container .video-controls {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    padding: 8px;
  }

  .progress-controls {
    margin-bottom: 8px;
  }

  .bottom-controls {
    justify-content: space-between;
  }

  .time-display {
    font-size: 0.7rem;
  }

  .control-button {
    padding: 6px;
  }

  .control-button svg {
    width: 20px;
    height: 20px;
  }

  .speed-button {
    font-size: 0.7rem;
    min-width: 24px;
    padding: 4px 2px;
  }

  /* Enhanced touch interactions for landscape */
  .slider-track {
    height: 8px;
  }

  .slider-fill {
    height: 8px;
  }
}

/* GALLARY SECTOIN */

.placeholder-content {
  height: 100vh;
  /* Full viewport height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: #aaa;
  box-sizing: border-box;
  /* Include padding in height */
}

.placeholder-content.top h1 {
  margin-bottom: 1rem;
  color: #eee;
}

/* --- Gallery Specific Styles --- */

/* Wrapper for the gallery section if needed */
.gallery-section-wrapper {
  display: flex;
  /* Use flex to center the container if needed */
  justify-content: center;
  /* Center the gallery container horizontally */
  padding: 4rem 0;
  /* Increased vertical padding for larger gallery */
  min-height: 800px;
  /* Ensure wrapper has enough height */
  align-items: center;
  /* Vertically center content if wrapper is taller */
}

/* The main container for the gallery that fades in as a whole */
.gallery-container {
  width: 90%;
  /* Control max width */
  max-width: 1400px;
  /* Increased max-width slightly for more images */
  opacity: 0;
  /* Initial state: hidden */
  transition: opacity 0.6s ease-in-out;
  /* Smooth fade-in for the container */
}

/* The visible state for the container */
.gallery-container.is-visible {
  opacity: 1;
}

/* Masonry-like Grid Layout */
.image-grid {
  /* Using CSS Columns for masonry effect */
  column-count: 2;
  /* Default to 2 columns */
  column-gap: 1rem;
  /* Spacing between columns */
}

/* Responsive columns */
@media (min-width: 640px) {

  /* Tailwind 'sm' breakpoint approx */
  .image-grid {
    column-count: 3;
    /* 3 columns on small+ screens */
  }
}

@media (min-width: 1024px) {

  /* Tailwind 'lg' breakpoint approx */
  .image-grid {
    column-count: 4;
    /* 4 columns on large+ screens */
  }
}

@media (min-width: 1280px) {

  /* Tailwind 'xl' breakpoint approx */
  .image-grid {
    column-count: 5;
    /* Add 5 columns for very wide screens */
    column-gap: 1.25rem;
    /* Slightly more gap */
  }
}

/* Individual grid item wrapper */
.grid-item {
  margin-bottom: 1rem;
  /* Spacing below each item */
  display: inline-block;
  /* Essential for column layout */
  width: 100%;
  /* Ensure item takes full column width */
  vertical-align: top;
  /* Prevent potential alignment issues */
  overflow: hidden;
  /* Ensure image corners respect border-radius */
  border-radius: 0.5rem;
  /* Apply rounding here too for consistency */

  /* Initial animation state (hidden) */
  opacity: 0;
  transform: scale(0.85);
  /* Slightly less aggressive scale */
  filter: blur(8px);
  /* Slightly less blur */

  /* Define transitions for the visible state properties */
  /* Delay will be added dynamically via JS for stagger */
  transition: opacity 0.5s ease-out, transform 0.5s ease-out,
    filter 0.5s ease-out;
}

/* Visible state for individual items */
.grid-item.item-visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

/* Image styling */
.grid-image {
  display: block;
  /* Prevents extra space below image */
  width: 100%;
  /* Make image fill its container */
  height: auto;
  /* Maintain aspect ratio */
  /* border-radius: 0.5rem; /* Rounded corners - applied to parent now */
  object-fit: cover;
  /* Cover the area, may crop slightly */
  background-color: #333;
  /* Placeholder color while loading */
  transition: transform 0.3s ease;
  /* Add subtle hover effect */
}

/* Optional: subtle zoom on hover */
.grid-item:hover .grid-image {
  transform: scale(1.03);
}

.text-content {
  text-align: center;
}

/* STATS SECTION */

/* --- Base Styles (Mostly unchanged, added transitions) --- */

/* --- Base Styles (Mostly unchanged, added transitions) --- */

.stats-section {
  width: 100%;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 1280px;
}

.main-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2.5rem;
}

.text-contents {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  /* Entry Animation */
  opacity: 0;
  /* Start hidden for animation */
  animation: fadeInUp 0.6s 0.2s ease-out forwards;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  background-color: var(--maroon-transparent);
  color: var(--maroon);
  /* Microinteraction: Transition */
  transition: transform 0.2s ease-in-out, background-color 0.2s ease,
    color 0.2s ease;
}

.badge:hover {
  /* Microinteraction: Hover effect */
  transform: scale(1.05);
  background-color: var(--maroon);
  color: white;
}

.text-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.heading {
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
  font-weight: 400;
  text-align: left;
  transition: color 0.3s ease;
  color: var(--maroon);
}

.heading:hover {
  color: var(--maroon);
}

.paragraph {
  font-size: 1.125rem;
  line-height: 1.75rem;
  letter-spacing: -0.01em;
  color: #64748b;
  text-align: left;
  /* Microinteraction: Transition */
  transition: color 0.3s ease;
}

/* Optional: Remove hover from paragraph if too much red
.paragraph:hover {
     color: rgb(164, 65, 74);
}
*/

.stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  text-align: left;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  min-height: 180px;
  background-color: #ffffff;
  /* Ensure background for shadow */
  /* Microinteraction: Transition */
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
  /* Entry Animation (Staggered) */
  opacity: 0;
  transform: translateY(20px);
  /* Start slightly lower for animation */
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger the entry animation for cards */
.stat-card:nth-child(1) {
  animation-delay: 0.4s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.6s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.7s;
}

.stat-card:hover {
  /* Microinteraction: Hover effect - Lift and Shadow */
  transform: translateY(-6px);
  /* Lift effect */
  box-shadow: 0 10px 20px rgba(164, 65, 74, 0.1),
    0 3px 6px rgba(164, 65, 74, 0.08);
  /* Shadow using interaction color */
  border-color: var(--maroon);
  /* <<< Interaction Color Border */
}

.icon {
  width: 1rem;
  height: 1rem;
  margin-bottom: 2.5rem;
  /* Microinteraction: Transition */
  transition: transform 0.3s ease-in-out, stroke 0.3s ease;
  /* Added stroke transition */
  stroke: #0ea5e9;
  /* Default primary icon color */
}

.stat-card:hover .icon {
  /* Microinteraction: Icon reacts on card hover */
  transform: scale(1.2) rotate(3deg);
  stroke: rgb(164, 65, 74);
  /* <<< Interaction Color Stroke */
}

/* Remove .icon-primary default stroke if all icons should turn red on hover */
/* .icon-primary { stroke: #0ea5e9; } */

.icon-destructive {
  /* Keep this if you might have destructive icons elsewhere */
  stroke: var(--maroon);
}

.stat-value {
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: -0.025em;
  font-weight: 400;
  text-align: left;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-end;
  color: #0f172a;
  /* Base color */
  /* Microinteraction: Transition */
  transition: color 0.3s ease;
}

.stat-card:hover .stat-value {
  /* Microinteraction: Value color change on card hover */
  color: var(--maroon);
  /* <<< Interaction Color */
}

.stat-change {
  color: #64748b;
  /* Default muted color */
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: normal;
  /* Microinteraction: Transition */
  transition: transform 0.3s ease, color 0.3s ease;
}

.stat-card:hover .stat-change {
  /* Microinteraction: Percentage nudge on card hover */
  transform: translateX(4px);
  color: var(--maroon);
  /* <<< Interaction Color */
}

.stat-label {
  font-size: 1rem;
  line-height: 1.75rem;
  letter-spacing: -0.01em;
  color: #64748b;
  /* Default muted color */
  text-align: left;
  margin-top: 0.25rem;
  /* Microinteraction: Transition */
  transition: color 0.3s ease;
}

.stat-card:hover .stat-label {
  /* Microinteraction: Label subtle change on card hover */
  color: rgb(164, 65, 74);
  /* <<< Interaction Color */
}

/* --- Responsive Styles (Unchanged) --- */

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .heading {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .stats-section {
    padding-top: 10rem;
    padding-bottom: 10rem;
  }

  .main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heading {
    font-size: 3rem;
    line-height: 1;
    max-width: 36rem;
  }

  .paragraph {
    max-width: 24rem;
  }
}

/* --- Keyframes for Animations (Unchanged) --- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.no-touch {
  cursor: none;
}

/* Ensure links ARE clickable even when body cursor is none */
a,
button {
  cursor: none;
}

/* --- Custom Cursor (Hidden on Touch) --- */
#custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 50px;
  /* Start hidden */
  height: 50px;
  border-radius: 50%;
  background-color: rgba(167, 38, 54, 0.08);
  /* Replaced --interaction-color-light */
  /* border: 2px solid #A72636; Replaced --interaction-color */
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  /* Start hidden */
  backdrop-filter: blur(2px);
  /* Optional: subtle blur */
}

#cursor-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  /* Inherit parent's border-radius */
  opacity: 1;
  /* Start hidden */
  transform: scale(0.5);
  transition: opacity 0.3s ease 0.1s,
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Active Cursor State */
#custom-cursor.active {
  opacity: 1;
  width: 50px;
  /* Adjust size as needed */
  height: 50px;
  transform: translate(-50%, -50%) scale(1.1);
  /* Add slight scale up */
  border-width: 3px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#custom-cursor.active #cursor-img {
  opacity: 1;
  transform: scale(1);
}

/* Hide cursor on touch devices using JS added class */
body.touch-device #custom-cursor {
  display: none !important;
}

/* SERVICES SECTION */

/* --- Base Styles & Reset --- */

/* Hide default cursor if not a touch device (applied via JS) */

/* --- Container --- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 1280px;
}

/* --- Services Section Styles --- */
.services-section {
  width: 100%;
  padding-top: 5rem;
  padding-bottom: 6rem;
  background-color: #ffffff;
  /* Replaced --bg-white */
  overflow: hidden;
  /* Prevent animations from causing scroll */
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  /* Entry Animation */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.1s cubic-bezier(0.165, 0.84, 0.44, 1.275) forwards;
}

.section-header h2 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #1e293b;
  /* Replaced --text-color-dark */
  transition: color 0.3s ease;
}

.section-header p {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #64748b;
  /* Replaced --text-color-muted */
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  transition: color 0.3s ease;
}

/* Microinteraction: Header hover */
.section-header h2:hover {
  color: #a72636;
  /* Replaced --interaction-color */
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  /* Default 1 column */
  gap: 1.5rem;
}

.service-card {
  background-color: #ffffff;
  /* Replaced --bg-white */
  border: 1px solid #e2e8f0;
  /* Replaced --border-color-light */
  border-radius: 0.75rem;
  /* Slightly larger radius */
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
  /* Microinteraction: Transition */
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease,
    background-color 0.3s ease;
  /* Entry Animation (Staggered) */
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1.275) forwards;
  /* Change cursor for non-touch only */
  cursor: default;
}

body.no-touch .service-card {
  cursor: none;
}

/* Stagger service card animations */
.services-grid .service-card:nth-child(1) {
  animation-delay: 0.3s;
}

.services-grid .service-card:nth-child(2) {
  animation-delay: 0.4s;
}

.services-grid .service-card:nth-child(3) {
  animation-delay: 0.5s;
}

.services-grid .service-card:nth-child(4) {
  animation-delay: 0.6s;
}

/* Microinteraction: Card Hover */
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  /* Lift and slightly enlarge */
  box-shadow: 0 15px 30px rgba(167, 38, 54, 0.12),
    0 5px 10px rgba(167, 38, 54, 0.08);
  border-color: rgba(167, 38, 54, 0.08);
  /* Replaced --interaction-color-light */
  background-color: #fffdfd;
  /* Very subtle warm white */
}

/* Mobile / Touch devices use active state for tap feedback */
.service-card:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}

.icon-wrapper {
  display: inline-flex;
  padding: 0.85rem;
  /* Slightly increased padding */
  background-color: rgba(167, 38, 54, 0.05);
  /* Replaced --interaction-color-lighter */
  border-radius: 50%;
  margin-bottom: 1.25rem;
  transition: background-color 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Bouncy effect */
}

.service-card:hover .icon-wrapper {
  background-color: var(--maroon);
  /* Replaced --interaction-color */
  transform: scale(1.15) rotate(-5deg);
  /* Scale and slight rotation */
}

.service-icon {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--maroon);
  /* Replaced --interaction-color */
  transition: stroke 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-icon {
  stroke: #ffffff;
  /* Replaced --bg-white */
  transform: rotate(5deg);
  /* Counter-rotate icon */
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e293b;
  /* Replaced --text-color-dark */
  transition: color 0.3s ease, transform 0.3s ease;
}

.service-card:hover h3 {
  color: var(--maroon);
  /* Replaced --interaction-color */
  transform: translateY(-2px);
  /* Slight lift */
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  /* Replaced --text-color-muted */
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: #475569;
  /* Slightly darker muted on hover */
}

/* --- Responsive Styles --- */

/* Medium screens and up (md: 768px) */
@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
  }

  .section-header p {
    font-size: 1.2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

/* Large screens and up (lg: 1024px) */
@media (min-width: 1024px) {
  .services-section {
    padding-top: 6rem;
    padding-bottom: 8rem;
  }

  .section-header h2 {
    font-size: 2.75rem;
  }

  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* --- Keyframes for Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* TESTIMONILAS SECTION */

.testimonials-section {
  background-color: #ffffff;
  /* White background for the section */
  padding-top: 3rem;
  /* py-12 */
  padding-bottom: 3rem;
  /* py-12 */
  overflow-x: hidden;
  /* Prevent horizontal scrollbar on body */
}

.testimonials-container {
  max-width: 1280px;
  /* max-w-container equivalent */
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  /* gap-10 between header and marquee */
  position: relative;
  /* For fade overlays */
}

/* Fix for testimonials section with guaranteed infinite scrolling */
.marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 15px;
  /* Added padding to offset negative margins */
}

/* The container for the sliding content */
.marquee-wrapper::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(to right,
      white,
      transparent 5%,
      transparent 95%,
      white);
  pointer-events: none;
  z-index: 10;
}

/* Create a flex container that will hold two sets of content */
.marquee-track {
  display: flex;
  width: fit-content;
  animation: marquee-scroll 30s linear infinite;
}

/* Style both sets of content */
.marquee-content {
  display: flex;
  gap: 0;
  /* No gap between cards */
  padding: 5px 0;
  flex-shrink: 0;
  /* Prevent content from shrinking */
}

.testimonial-card {
  flex: 0 0 320px;
  /* Wider cards */
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 15px;
  margin: 0 -150px 0 0;
  /* Extreme negative right margin for very close cards */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid #803946;
  /* School's maroon accent */
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-info {
  margin-left: 16px;
}

.author-name {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  display: block;
}

.author-handle {
  font-size: 14px;
  color: #6c242d;
  /* School's burgundy color */
  opacity: 0.9;
  font-weight: 500;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
  position: relative;
  margin: 0;
}

.testimonial-text::before {
  content: '"';
  font-size: 48px;
  color: rgba(108, 36, 45, 0.1);
  position: absolute;
  top: -15px;
  left: -10px;
  /* Removed font-family: Georgia, serif; */
}

/* Remove fade overlays as they're handled by ::before now */
.fade-overlay {
  display: none;
}

/* Simple animation for infinite scrolling */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Ensure testimonials look good at different screen sizes */
@media (min-width: 1200px) {
  .testimonial-card {
    flex: 0 0 320px;
    /* Adjusted for large screens */
    margin: 0 -150px 0 0;
    /* Keep extreme negative margin on large screens */
  }

  .marquee-content {
    gap: 0;
    /* No gap */
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 90vw;
    width: 90vw;
    margin: 0 0.5rem 0 0;
    /* Remove negative margin, use small positive margin for spacing */
  }

  .marquee-content {
    gap: 1rem;
    /* Add gap between cards for mobile */
  }
}

/* Add animation pause on hover */
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* --- Section Header --- */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  /* gap-4 */
  text-align: center;
  padding-left: 1rem;
  /* Horizontal padding for text on smaller screens */
  padding-right: 1rem;
}

.section-header h2 {
  max-width: 720px;
  font-size: 1.875rem;
  /* text-3xl */
  font-weight: 600;
  /* font-semibold */
  line-height: 1.25;
  /* leading-tight */
  color: var(--maroon);
  /* School Red for title */
}

.section-header p {
  max-width: 600px;
  font-size: 1rem;
  /* text-md */
  font-weight: 500;
  /* font-medium */
  color: #6c757d;
  /* text-muted-foreground equivalent */
}

/* --- Marquee --- */
.marquee-wrapper {
  display: flex;
  /* Use flex for multiple marquee-content divs */
  width: 100%;
  overflow: hidden;
  /* Hide overflowing content */
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
  opacity: 1;
  visibility: visible;
  display: block;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  /* Prevent content from shrinking */
  gap: 1rem;
  /* --gap: 1rem */
  padding: 0.5rem 0;
  /* Add some vertical padding */
  justify-content: space-around;
  /* Distribute items */
  min-width: 100%;
  /* Ensure it takes at least full width */

  /* Animation */
  animation: marquee 40s linear infinite;
  /* --duration: 40s */
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
    /* Scrolls one full width of the content */
  }
}

/* --- Testimonial Card --- */
.testimonial-card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  /* Light border */
  border-radius: 0.75rem;
  /* Rounded corners */
  padding: 1.5rem;
  width: 320px;
  /* Fixed width for consistent look */
  flex-shrink: 0;
  /* Prevent shrinking */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- Testimonial Author --- */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--maroon);
  /* Subtle school color border */
}

.author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.author-name {
  font-weight: 600;
  color: #343a40;
}

.author-handle {
  font-size: 0.875rem;
  color: #6c757d;
  /* Muted color */
}

/* Optional Link Style
.author-link {
    font-size: 0.875rem;
    color: #A72636;
    text-decoration: none;
}
.author-link:hover {
    text-decoration: underline;
}
*/

/* --- Testimonial Text --- */
.testimonial-text {
  font-size: 0.95rem;
  color: #495057;
  margin: 0;
  /* Reset blockquote margin */
  font-style: normal;
  /* Override default italic */
}

.testimonial-text::before,
.testimonial-text::after {
  content: "";
  /* Remove default quote marks if blockquote is used */
}

/* --- Fade Overlays (Optional replacement for mask) --- */
.fade-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  /* Adjust width as needed */
  pointer-events: none;
  /* Allow clicking through */
  display: none;
  /* Hide by default, show on larger screens */
  z-index: 2;
}

.fade-left {
  left: 0;
  background: linear-gradient(to right, #ffffff 20%, transparent 100%);
}

.fade-right {
  right: 0;
  background: linear-gradient(to left, #ffffff 20%, transparent 100%);
}

/* --- Responsive Adjustments --- */
@media (min-width: 640px) {

  /* sm */
  .testimonials-section {
    padding-top: 6rem;
    /* sm:py-24 */
    padding-bottom: 6rem;
  }

  .section-header h2 {
    font-size: 3rem;
    /* sm:text-5xl */
  }

  .section-header p {
    font-size: 1.125rem;
    /* sm:text-xl */
  }

  /* Show fade overlays on larger screens if not using mask */
  .fade-overlay {
    display: block;
  }

  /* If not using mask, remove it here */
  .marquee-wrapper {
    -webkit-mask-image: none;
    mask-image: none;
    display: block;
  }
}

@media (min-width: 768px) {

  /* md */
  .testimonials-section {
    padding-top: 8rem;
    /* md:py-32 */
    padding-bottom: 8rem;
  }
}

/* SECTION PAADDING */

section {
  padding: 1rem 0 10rem 0;
}

/* --- Avatar Widget Container --- */
.avatar-widget {
  display: inline-flex;
  /* Behaves like inline but allows flex properties */
  align-items: center;
  border-radius: 9999px;
  /* rounded-full */
  border: 1px solid #e9ecef;
  /* border border-border (light gray) */
  background-color: #ffffff;
  /* bg-background (white) */
  padding: 0.25rem;
  /* p-1 */
  /* shadow shadow-black/5 */
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05),
    0 1px 2px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  /* Ensure nothing spills out */
  /* Add transition for potential widget-level hover effects */
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

/* Optional: Slight scale on widget hover */
/*
.avatar-widget:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.06), 0 1px 3px -1px rgba(0, 0, 0, 0.06);
}
*/

/* --- Avatar Group (Handles Overlap) --- */
.avatar-group {
  display: flex;
  /* The negative margin is applied to images directly */
}

/* --- Avatar Image Styling --- */
.avatar-image {
  width: 20px;
  /* Explicit width */
  height: 20px;
  /* Explicit height */
  border-radius: 50%;
  /* rounded-full */
  object-fit: cover;
  /* Prevent image distortion */
  /* Ring effect using box-shadow */
  box-shadow: 0 0 0 2px #ffffff;
  /* White ring matching widget background */
  display: block;
  /* Remove extra space below inline images */
  position: relative;
  /* Needed for z-index */
  cursor: none;
  /* Indicate interactivity */

  /* --- Microinteraction Transition --- */
  transition: transform 0.2s ease-out, z-index 0s ease-out 0.2s;
  /* Delay z-index change */
}

/* --- Overlapping Effect --- */
/* Apply negative margin to all images *except* the first one */
.avatar-group>.avatar-image:not(:first-child) {
  margin-left: -6px;
  /* Approx -space-x-1.5 equivalent */
  /* Add transition for margin change if needed */
  transition: transform 0.2s ease-out, z-index 0s ease-out 0.2s,
    margin-left 0.2s ease-out;
}

/* --- Microinteraction on Hover --- */
/* Target only images within a hovered widget for better context (optional but good practice) */
.avatar-widget:hover .avatar-image:hover {
  transform: scale(1.25);
  /* Scale up the hovered avatar */
  z-index: 10;
  /* Bring the hovered avatar to the front */
  transition-delay: 0s;
  /* Apply z-index immediately on hover */
}

/* Optional: Slightly adjust margin of the *next* sibling when one is hovered */
/* This creates a subtle "making space" effect */
/*
.avatar-widget:hover .avatar-image:hover + .avatar-image {
    margin-left: -4px; // Slightly reduce the overlap
}
*/

/* --- Widget Text Styling --- */
/* Corrected class name */
.widget-text {
  font-size: 0.75rem;
  /* text-xs */
  line-height: 1rem;
  /* text-xs line height */
  color: #6c757d;
  /* text-muted-foreground (medium gray) */
  padding-left: 0.75rem;
  /* px-2 equivalent padding-left */
  padding-right: 0.5rem;
  /* px-2 adjusted slightly for balance */
  margin: 0;
  /* Remove default paragraph margin */
  white-space: nowrap;
  /* Prevent text wrapping */
}

/* --- Highlighted Text (Strong Tag) --- */
.widget-text .text-highlight {
  font-weight: 500;
  /* font-medium */
  color: #343a40;
  /* text-foreground (darker gray/black) */
}

/* FAQ SECTION */

/* --- Layout & Spacing --- */
.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.faq-section {
  padding-top: 6rem;
  /* Reduced padding slightly */
  padding-bottom: 6rem;
  opacity: 0;
  /* Start hidden for animation */
  animation: fadeInSection 1s ease-out forwards;
}

.faq-heading-section,
.accordion-container,
.support-section {
  margin-bottom: 4rem;
  /* space-y-16 equivalent */
}

.support-section {
  margin-bottom: 0;
  /* No margin below last element */
}

/* --- Animations --- */
@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes avatarWiggle {

  0%,
  100% {
    transform: rotate(-1deg);
  }

  50% {
    transform: rotate(1deg);
  }
}

@keyframes pulseShadow {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 87, 101, 0.4);
  }

  /* #8B5765 with alpha */
  70% {
    box-shadow: 0 0 0 10px rgba(139, 87, 101, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(139, 87, 101, 0);
  }
}

/* --- Heading Section --- */
.faq-heading-section {
  max-width: 48rem;
  /* max-w-3xl */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  opacity: 0;
  animation: slideUp 0.8s ease-out 0.2s forwards;
  /* Delayed slide up */
}

/* --- Accordion --- */
.accordion-container {
  max-width: 48rem;
  /* lg:max-w-3xl */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.accordion-item {
  border-bottom: 1px solid #e5e7eb;
  /* Light gray border */
  transition: background-color 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInItem 0.5s ease-out forwards;
  /* Stagger the animation for each item using nth-child */
}

.accordion-item:nth-child(1) {
  animation-delay: 0.3s;
}

.accordion-item:nth-child(2) {
  animation-delay: 0.4s;
}

.accordion-item:nth-child(3) {
  animation-delay: 0.5s;
}

.accordion-item:nth-child(4) {
  animation-delay: 0.6s;
}

/* Add more if needed */

@keyframes slideInItem {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-item:hover {
  background-color: #fdf8f9;
  /* Very subtle pinkish hover */
}

.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.2rem 0.5rem;
  /* Increased padding slightly */
  background: none;
  border: none;
  cursor: none;
  text-align: left;
  font-size: 1.1rem;
  /* Slightly larger */
  font-weight: 500;
  color: #333333;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.accordion-trigger:hover {
  background-color: #f5eaef;
  /* Light accent bg */
  color: #7a4a58;
  /* Darker primary hover */
}

.accordion-trigger:focus {
  outline: none;
  /* Remove default */
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #8b5765;
  /* Inner white, outer primary */
  border-radius: 3px;
  /* Slight radius for focus */
}

.accordion-trigger:active {
  transform: scale(0.99);
  /* Subtle press effect */
}

.question-text {
  padding-right: 1rem;
  transition: transform 0.3s ease;
}

.accordion-trigger:hover .question-text {
  transform: translateX(3px);
  /* Slight move on hover */
}

.icon {
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  /* Elastic rotation */
  flex-shrink: 0;
  width: 1.2em;
  /* Slightly larger icon */
  height: 1.2em;
  stroke: #8b5765;
  /* Primary color */
  stroke-width: 1.5;
  /* Thinner stroke */
}

.accordion-trigger[aria-expanded="true"] .icon {
  transform: rotate(135deg);
  /* Rotate more for a clear 'x' */
}

.accordion-trigger:hover .icon {
  transform: scale(1.1);
  /* Scale icon on hover */
}

.accordion-trigger[aria-expanded="true"]:hover .icon {
  transform: rotate(135deg) scale(1.1);
  /* Combine rotation and scale */
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
  /* Smoother transition */
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.accordion-content-inner {
  padding-bottom: 1.5rem;
  /* More space below content */
  color: #666666;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0;
  /* Fade in content */
  transition: opacity 0.3s ease-in-out 0.1s;
  /* Delay opacity */
}

.accordion-content[aria-hidden="false"] .accordion-content-inner {
  opacity: 1;
  /* Fade in when open */
}

/* --- Support Section --- */
.support-section {
  max-width: 56rem;
  /* max-w-4xl */
  background-color: #f5eaef;
  /* Light accent bg */
  border-radius: 12px;
  /* md:rounded-xl */
  padding: 2.5rem;
  /* lg:p-8 */
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: slideUp 0.8s ease-out 0.7s forwards;
  /* Delayed slide up */
  transition: box-shadow 0.4s ease;
}

.support-section:hover {
  box-shadow: 0 10px 30px -10px rgba(139, 87, 101, 0.2);
  /* Subtle shadow on hover */
}

.avatar-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  /* md:mb-5 */
  height: 4.5rem;
  /* Slightly taller */
}

.avatar {
  width: 4rem;
  /* size-16 */
  height: 4rem;
  /* size-16 */
  border-radius: 50%;
  border: 3px solid #ffffff;
  /* White border */
  background-color: #ccc;
  display: inline-block;
  position: absolute;
  bottom: 0;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s 0.3s;
  /* Delay z-index change */
  /* Initial animation for avatars */
  animation: avatarWiggle 3s ease-in-out infinite;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.avatar:hover img {
  transform: scale(1.05);
  /* Zoom image inside avatar */
}

.avatar.center {
  position: relative;
  /* Keeps it in flow for centering */
  z-index: 10;
  animation-delay: 0.1s;
  /* Stagger wiggle */
}

.avatar.left {
  transform: translateX(-60%) scale(0.85);
  /* Slightly larger */
  transform-origin: bottom;
  z-index: 5;
  animation-delay: 0s;
}

.avatar.right {
  transform: translateX(60%) scale(0.85);
  transform-origin: bottom;
  z-index: 5;
  animation-delay: 0.2s;
}

.avatar:hover {
  transform: scale(1.15) translateY(-5px);
  /* Lift and scale more */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  z-index: 20;
  /* Bring fully to front */
  animation-play-state: paused;
  /* Stop wiggle on hover */
  /* Specific hover transforms overriding positioning */
}

.avatar.left:hover {
  transform: translateX(-60%) scale(1.15) translateY(-5px);
}

.avatar.right:hover {
  transform: translateX(60%) scale(1.15) translateY(-5px);
}

.support-heading {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #4a3138;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.support-heading:hover {
  color: #8b5765;
  letter-spacing: 0.5px;
  /* Subtle spacing change */
}

.support-description {
  margin-bottom: 2rem;
  color: #666666;
  font-size: 1.1rem;
  max-width: 40rem;
  /* Limit width */
  margin-left: auto;
  margin-right: auto;
  transition: color 0.3s ease;
}

.support-description:hover {
  color: #333333;
}

.button-container {
  display: flex;
  justify-content: center;
  text-align: center;
}

.support-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  /* More padding */
  background-color: var(--maroon);
  /* Primary color */
  color: white;
  border: none;
  border-radius: 30px;
  /* Pill shape */
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 4px 15px -5px rgba(139, 87, 101, 0.5);
  /* #8B5765 shadow */
  transition: background-color 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  /* Bouncy transition */
}

.support-button:hover {
  background-color: var(--maroon);
  /* Darker primary */
  transform: translateY(-4px) scale(1.05);
  /* Lift and scale more */
  box-shadow: 0 8px 20px -6px rgba(139, 87, 101, 0.6);
}

.support-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #7a4a58;
  /* Inner white, outer darker primary */
}

.support-button:active {
  background-color: var(--maroon);
  /* Even darker */
  transform: translateY(-1px) scale(0.98);
  /* Press down effect */
  box-shadow: 0 2px 8px -3px rgba(139, 87, 101, 0.5);
}

/* Optional: Add a subtle pulse animation to the button for attention */
/* .support-button { animation: pulseShadow 2s infinite; } */

/* --- Responsive Adjustments (Simplified) --- */
@media (max-width: 768px) {
  .section-heading {
    font-size: 1.8rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .accordion-trigger {
    font-size: 1rem;
    padding: 1rem 0.3rem;
  }

  .support-section {
    padding: 1.5rem;
  }

  .avatar {
    width: 3.5rem;
    height: 3.5rem;
  }

  .avatar-container {
    height: 4rem;
  }

  .support-heading {
    font-size: 1.2rem;
  }

  .support-description {
    font-size: 1rem;
  }

  .support-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .faq-heading-section,
  .accordion-container,
  .support-section {
    margin-bottom: 3rem;
  }

  .section-heading {
    font-size: 1.6rem;
  }

  .accordion-item {
    transform: translateX(-10px);
    /* Less initial offset */
  }

  .avatar {
    width: 3rem;
    height: 3rem;
  }

  .avatar-container {
    height: 3.5rem;
    margin-bottom: 1rem;
  }

  .avatar.left {
    transform: translateX(-55%) scale(0.8);
  }

  .avatar.right {
    transform: translateX(55%) scale(0.8);
  }

  .avatar:hover {
    transform: scale(1.1) translateY(-3px);
  }

  .avatar.left:hover {
    transform: translateX(-55%) scale(1.1) translateY(-3px);
  }

  .avatar.right:hover {
    transform: translateX(55%) scale(1.1) translateY(-3px);
  }

  .support-button {
    width: 100%;
    box-sizing: border-box;
  }

  /* Full width on small screens */
}

/* VIDEO PLAYER STYLING */
.video-player-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background-color: #000;
}

.video-element {
  width: 100%;
  display: block;
  cursor: none;
}

.video-controls {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  padding: 15px;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.video-player-container:hover .video-controls {
  opacity: 1;
}

.progress-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.time-display {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  min-width: 40px;
}

.custom-slider {
  position: relative;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  flex-grow: 1;
  cursor: none;
  overflow: hidden;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: #b9545e;
  width: 0;
  border-radius: 5px;
  transition: width 0.1s ease;
}

.bottom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left-controls,
.right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-button {
  background: none;
  border: none;
  color: #fff;
  padding: 5px;
  cursor: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.control-button:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.1);
}

.control-button:active {
  transform: scale(0.96);
}

.volume-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 60px;
  display: none;
}

.speed-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.speed-button {
  font-size: 12px;
  padding: 2px 4px;
  opacity: 0.7;
}

.speed-button.active {
  background-color: rgba(185, 84, 94, 0.5);
  opacity: 1;
  font-weight: bold;
}

/* Video responsive styles */
@media (max-width: 768px) {
  .bottom-controls {
    flex-direction: column;
    gap: 10px;
  }

  .right-controls,
  .left-controls {
    width: 100%;
    justify-content: center;
    flex-flow: row;
  }

  .video-controls {
    padding: 10px;
  }
}

/* =======================
   Mobile: place controls below video
   and add loading overlay styles
   ======================= */
@media (max-width: 768px) {
  .video-player-container {
    display: block;
    /* stack video then controls */
  }

  .video-element {
    cursor: default;
    /* allow normal interaction on mobile */
  }

  .video-controls {
    position: static;
    /* no absolute overlay */
    margin-top: 8px;
    /* separate from video */
    background: transparent;
    /* keep control background subtle */
    opacity: 1 !important;
    /* always visible below the video */
    pointer-events: auto;
  }

  .video-player-container .video-loading-overlay {
    position: absolute;
    /* overlay only covers the video area */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
  }
}

/* Desktop overlay */
.video-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.video-loading-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.video-loading-overlay .spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.15);
  border-top-color: #b9545e;
  /* primary accent */
  animation: spin 1s linear infinite;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.overlay-message {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  text-align: center;
}

.retry-button {
  margin-top: 8px;
  padding: 8px 16px;
  background-color: #b9545e;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.retry-button:hover {
  background-color: #a0454e;
}

.retry-button:active {
  transform: scale(0.96);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* FOOTER SECTION */

footer a {
  color: #b9545e;
  /* Primary color */
  text-decoration: none;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline-offset: 4px;
}

footer a:focus-visible {
  /* Clearer focus */
  outline: 2px dashed #a0454e;
  /* Accent color */
}

/* --- Footer General Styles --- */
.site-footer {
  background-color: #ffffff;
  /* White footer bg */
  color: #4f4a4d;
  /* Footer base text */
  padding: 4rem 0 0;
  /* Remove bottom padding initially */
  border-top: 4px solid #b9545e;
  /* Primary color top border */
  position: relative;
  overflow: hidden;
  /* Subtle animated gradient background - remove if too much */
  /* background: linear-gradient(135deg, #ffffff 50%, #fff9fa 100%); */
  /* animation: subtleGradient 15s ease infinite; */
}

/* Optional subtle gradient animation */
/* @keyframes subtleGradient {
	0%{background-position:0% 50%}
	50%{background-position:100% 50%}
	100%{background-position:0% 50%}
} */

.footer-container {
  max-width: 1240px;
  /* Wider container */
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--maroon);
  /* Primary color headings */
  margin-top: 0;
  margin-bottom: 1.2rem;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 0.4rem;
}

/* Subtle underline effect for headings */
.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--maroon-gradient);
  /* Light accent color */
}

/* --- Main Footer Grid Layout --- */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Single column mobile */
  gap: 2.5rem 3rem;
  /* Row gap, Column gap */
  padding-bottom: 3rem;
  /* Space before bottom bar */
}

@media (min-width: 992px) {
  .footer-main-grid {
    grid-template-columns: 1.2fr 1fr;
    /* Asymmetric: Map/Brand wider */
    align-items: flex-start;
    /* Align content top */
  }
}

/* --- Column 1: Brand & Map --- */
.footer-col-brand-map {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* Space between brand and map */
}

.footer-brand-enhanced {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  max-width: 65px;
  height: auto;
  display: block;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-logo:hover {
  transform: rotate(-8deg) scale(1.1);
}

.brand-text {
  line-height: 1.4;
}

.footer-school-name {
  margin: 0 0 0.2rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #3f3a3d;
  /* Darker heading */
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: #7a6a6c;
  /* Muted text */
  font-weight: 400;
}

.footer-map-container {
  width: 100%;
  height: 280px;
  /* Adjust height as needed */
  overflow: hidden;
  border-radius: 8px;
  /* Slightly more rounded */
  border: 1px solid #eee;
  /* Lighter border */
  box-shadow: 0 5px 20px rgba(185, 84, 94, 0.07);
  /* Softer shadow */
}

.footer-map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%);
  /* Optional: Slightly desaturate map */
  transition: filter 0.3s ease;
}

.footer-map-container:hover iframe {
  filter: grayscale(0%);
  /* Full color on hover */
}

/* --- Column 2: Quick Links & Contact --- */
.footer-col-links-contact {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  /* Space between links and contact */
}

@media (min-width: 576px) {

  /* Arrange link groups side-by-side earlier */
  .footer-quick-links-grouped {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
  }
}

.link-group {
  margin-bottom: 1.5rem;
  /* Styles for individual link groups if needed */
}

.quick-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links-list li {
  margin-bottom: 0.6rem;
}

.quick-links-list a {
  font-size: 0.95rem;
  color: #6a5f62;
  /* Muted link color */
  display: inline-block;
  padding: 3px 0;
  position: relative;
  transform-origin: left center;
  transition: color 0.25s ease-out, transform 0.25s ease-out;
}

/* Micro-interaction: Link glow/shift */
.quick-links-list a::before {
  content: "";
  position: absolute;
  left: -12px;
  /* Start further left */
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: #b9545e;
  /* Primary color */
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s ease-out, left 0.25s ease-out;
}

.quick-links-list a:hover {
  color: #b9545e;
  /* Primary color */
  transform: translateX(4px);
}

.quick-links-list a:hover::before {
  opacity: 1;
  left: -8px;
  /* Move closer */
}

.footer-contact-info {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-heading {
  margin-bottom: 1rem;
  /* Reduce gap slightly */
}

.contact-item {
  display: flex;
  /* Use flex */
  align-items: center;
  padding: 0.5rem 0;
  /* Vertical padding only */
  color: #6a5f62;
  /* Muted text */
  font-size: 0.95rem;
  border-bottom: 1px solid #f5f0f1;
  /* Subtle separator */
  transition: color 0.25s ease-out, border-color 0.25s ease-out;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item:hover {
  color: #b9545e;
  /* Primary color */
  border-color: #f1e4e6;
  /* Light accent border */
}

.contact-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.8rem;
  opacity: 0.7;
  flex-shrink: 0;
  color: #b9545e;
  /* Primary color for icons */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.25s ease-out;
}

.contact-item:hover .contact-icon {
  opacity: 1;
  transform: scale(1.15) rotate(-5deg);
}

.contact-item span {
  transition: transform 0.25s ease-out;
}

.contact-item:hover span {
  transform: translateX(3px);
}

/* --- Bottom Bar: Social & Copyright --- */
.footer-bottom-bar {
  border-top: 1px solid #eee;
  /* Light separator line */
  padding: 1.5rem 0;
  /* Padding top/bottom */
  margin-top: 1rem;
  /* Space above bottom bar */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.social-link {
  display: inline-block;
  line-height: 0;
}

.social-link img {
  width: 36px;
  /* Slightly smaller */
  height: 36px;
  opacity: 0.6;
  vertical-align: middle;
  transition: opacity 0.25s ease-out,
    transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover img {
  opacity: 1;
  transform: scale(1.2) translateY(-3px);
  /* More pop */
}

.footer-copyright {
  font-size: 0.8rem;
  color: #8a7c80;
  /* Muted text */
  text-align: center;
  /* Center on mobile */
  flex-grow: 1;
  /* Allow text to take space */
}

@media (min-width: 768px) {
  .footer-copyright {
    text-align: right;
    /* Align right on desktop */
  }
}

.footer-copyright a {
  color: #8a7c80;
  border-bottom: 1px dotted #dcd3d5;
  /* Dotted underline */
  transition: color 0.25s ease-out, border-color 0.25s ease-out;
}

.footer-copyright a:hover {
  color: #b9545e;
  border-color: #b9545e;
}

/* --- Scroll-to-Top Button --- */
.scroll-top-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--maroon);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  box-shadow: 0 6px 20px rgba(185, 84, 94, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.7) translateY(20px) rotate(15deg);
  transition: opacity 0.35s ease, visibility 0.35s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 1000;
}

.scroll-top-button.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0) rotate(0deg);
  /* Animate to final state */
}

.scroll-top-button img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top-button:hover {
  background-color: var(--maroon);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 25px rgba(185, 84, 94, 0.2);
}

/* Micro-interaction: Arrow slides up inside button */
.scroll-top-button:hover img {
  transform: translateY(-2px) scale(1.05);
}

.marquee-wrapper {
  display: block;
}

.link-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.footer-contact-info {
  margin-bottom: 1.5rem;
}

.contact-heading {
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  width: 110px;
  height: 120px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
  /* animation: pulse 2s ease-in-out infinite; */
}

.loading-progress-container {
  width: 250px;
  height: 4px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--maroon, #7a3c49);
  transition: width 0.3s ease-out;
}

.loading-text {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: #333;
  margin-top: 10px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* For reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .loading-logo {
    animation: none;
  }
}

/* ===================== Notice Popup Styles ===================== */
.notice-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.notice-popup.active {
  opacity: 1;
  visibility: visible;
  animation: popupFadeIn 0.5s ease forwards;
}

.notice-content {
  width: 90%;
  max-width: 500px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.5s ease;
}

.notice-popup.active .notice-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.notice-header {
  position: relative;
  padding: 20px 25px;
  background: linear-gradient(to right, #7a3c49, #8b4554);
  color: white;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notice-icon {
  background-color: rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  animation: pulseIcon 2s infinite;
}

.notice-icon i {
  font-size: 16px;
  color: white;
}

.notice-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 600;
  flex-grow: 1;
}

.notice-close {
  background: transparent;
  border: none;
  cursor: none;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.notice-close:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.notice-close:active {
  transform: rotate(90deg) scale(0.9);
}

.notice-body {
  padding: 25px;
}

.notice-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-top: 0;
  margin-bottom: 20px;
}

.notice-highlight {
  background-color: #f7f0f2;
  border-left: 4px solid var(--maroon, #7a3c49);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-highlight:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.notice-highlight-icon {
  color: var(--maroon, #7a3c49);
  font-size: 24px;
  margin-right: 15px;
}

.notice-highlight p {
  margin: 0;
  color: #444;
}

.notice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--maroon, #7a3c49);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  margin-top: 5px;
  position: relative;
  overflow: hidden;
}

.notice-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0) 100%);
  transition: left 0.6s ease;
}

.notice-button:hover {
  background-color: #6c242d;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 20px rgba(122, 60, 73, 0.25);
}

.notice-button:hover::before {
  left: 100%;
}

.notice-button:active {
  transform: translateY(-1px);
}

.notice-button span {
  margin-right: 10px;
}

.notice-button i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.notice-button:hover i {
  transform: translateX(4px);
}

.notice-footer {
  padding: 15px 25px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
}

.notice-checkbox-container {
  display: flex;
  align-items: center;
  cursor: none;
  user-select: none;
}

.notice-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: none;
  height: 0;
  width: 0;
}

.notice-checkbox-custom {
  position: relative;
  height: 18px;
  width: 18px;
  background-color: white;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
  transition: all 0.2s ease;
}

.notice-checkbox-container:hover .notice-checkbox-custom {
  border-color: #bbb;
}

.notice-checkbox-container input:checked~.notice-checkbox-custom {
  background-color: var(--maroon, #7a3c49);
  border-color: var(--maroon, #7a3c49);
}

.notice-checkbox-custom:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.notice-checkbox-container input:checked~.notice-checkbox-custom:after {
  display: block;
}

.notice-checkbox-text {
  font-size: 14px;
  color: #666;
}

/* Animations */
@keyframes popupFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes pulseIcon {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }

  100% {
    transform: scale(1);
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .notice-content {
    max-width: 90%;
  }

  .notice-header {
    padding: 15px 20px;
  }

  .notice-body {
    padding: 20px;
  }

  .notice-title {
    font-size: 18px;
  }

  .notice-text {
    font-size: 15px;
  }

  .notice-button {
    padding: 10px 20px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }
}

/* For reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  .notice-popup,
  .notice-content,
  .notice-icon,
  .notice-close,
  .notice-button::before {
    animation: none !important;
    transition: opacity 0.3s ease-in-out !important;
  }

  .notice-highlight:hover {
    transform: none;
  }

  .notice-button:hover {
    transform: none;
  }

  .notice-button:hover i {
    transform: none;
  }
}

/* Notice Popup Styles with cursor: none */
.notice-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  cursor: none;
}

.notice-popup.active {
  opacity: 1;
  visibility: visible;
}

.notice-content {
  max-width: 500px;
  width: 90%;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease-in-out;
  cursor: default;
}

.notice-header {
  background: var(--maroon);
  padding: 20px 25px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: none;
}

.notice-icon {
  background-color: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  cursor: none;
}

.notice-title {
  color: white;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  cursor: none;
}

.notice-close {
  position: absolute;
  right: 15px;
  top: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: none;
}

.notice-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.notice-body {
  padding: 25px;
  cursor: none;
}

.notice-text {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #555;
  cursor: none;
}

.notice-highlight {
  background-color: #f9f5f6;
  border-left: 4px solid var(--maroon, #7a3c49);
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  border-radius: 0 8px 8px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: none;
}

.notice-button {
  cursor: none;
}

.notice-footer {
  cursor: none;
}

.notice-checkbox-container {
  cursor: none;
}

.notice-checkbox-custom {
  cursor: none;
}

/* HERO SECTION */

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--maroon);
}

h1 {
  font-size: clamp(36px, 6vw, 75px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(96, 36, 48, 0.08);
  line-height: 1.1;
}

h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 300;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4a4647;
}

.nsps-hero--landing-titles h2:first-of-type {
  color: var(--maroon);
  font-weight: 600;
}

h3 {
  font-size: clamp(24px, 2.2vw, 26px);
  margin-bottom: 10px;
  font-weight: 700;
}

p {
  margin-bottom: 1px;
  font-size: 13px;
  color: #5c5859;
  line-height: 1.5;
}

/* --- Container --- */
.nsps-hero--page-wrapper {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- Background Shapes --- */
.nsps-hero--decorative-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.nsps-hero--decorative-bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  background: radial-gradient(circle, rgba(169, 92, 106, 0.4), transparent 75%);
  animation: pulse 20s infinite ease-in-out alternate;
}

.nsps-hero--decorative-bg-shape-v1 {
  width: 40vmax;
  height: 40vmax;
  top: 25%;
  left: 3%;
  animation-delay: 0s;
}

.nsps-hero--decorative-bg-shape-v2 {
  width: 50vmax;
  height: 50vmax;
  bottom: 6%;
  right: 20%;
  animation-delay: 5s;
}

.nsps-hero--decorative-bg-shape-v3 {
  width: 30vmax;
  height: 30vmax;
  top: 0%;
  right: 40%;
  animation-delay: 10s;
}

/* --- Hero Section --- */
.nsps-hero--main-landing-area {
  display: flex;
  /* Establish flex context */
  /* Default (mobile-first) is column */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  text-align: center;
  padding-left: inherit;
  padding-right: inherit;
  padding-top: 60px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  flex-grow: 1;
  gap: 32px;
  /* Gap between items when stacked */
}

/* --- Hero Layout Columns --- */
.nsps-hero--landing-left-column,
.nsps-hero--landing-right-column {
  width: 100%;
  display: flex;
  /* Use flex internally */
  flex-direction: column;
  align-items: center;
  /* Reset order for desktop */
  order: initial;
}

/* --- Hero Content Block (Headings) --- */
.nsps-hero--landing-content-block {
  width: 100%;
  z-index: 10;
  position: relative;
  /* Reset order for desktop */
  order: initial;
}

.nsps-hero--landing-titles {
  margin-bottom: 32px;
}

.nsps-hero--landing-titles h1,
.nsps-hero--landing-titles h2 {
  transition: color 0.4s ease-in-out, text-shadow 0.4s ease-in-out;
}

/* --- Features Grid --- */
.nsps-hero--key-features-grid {
  display: flex;
  /* Use Flexbox for inline layout on desktop */
  justify-content: space-around;
  align-items: stretch;
  gap: 20px;
  margin-top: 32px;
  width: 100%;
  max-width: 750px;
  flex-wrap: wrap;
  /* Allow wrapping */
  /* Reset order for desktop */
  order: initial;
}

/* --- Right Column & Slideshow --- */
.nsps-hero--landing-right-column {
  align-items: center;
}

.nsps-hero--image-carousel-container {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px -12px rgba(96, 36, 48, 0.18);
  z-index: 5;
  transition: box-shadow 0.4s ease-in-out, transform 0.4s ease-in-out;
  /* Reset order for desktop */
  order: initial;
}

.nsps-hero--image-carousel-container:hover {
  box-shadow: 0 15px 50px -15px rgba(96, 36, 48, 0.28);
  transform: scale(1.015) rotate(-0.3deg);
}

/* --- Feature Cards --- */
.nsps-hero--feature-tilt-container {
  perspective: 900px;
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 220px;
  display: flex;
}

.nsps-hero--feature-display-card {
  width: 100%;
  background: linear-gradient(145deg, #ffffff, #fdfcfd);
  border-radius: 12px;
  border: 1px solid #efebec;
  padding: 32px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px -12px rgba(96, 36, 48, 0.15);
  transition: box-shadow 0.4s ease-in-out, background 0.4s ease-in-out,
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
}

/* ... Keep Feature Card hover effects and inner styles ... */
.nsps-hero--feature-tilt-container:hover .nsps-hero--feature-display-card {
  transform: rotateY(4deg) rotateX(2deg) translateY(-12px) scale(1.04);
  box-shadow: 0 18px 40px -12px rgba(96, 36, 48, 0.25);
}

.nsps-hero--feature-display-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--maroon);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease-out 0.1s;
}

.nsps-hero--feature-tilt-container:hover .nsps-hero--feature-display-card::before {
  transform: scaleY(1);
}

.nsps-hero--feature-display-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#eae0d5 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0;
  transition: opacity 0.5s ease 0.1s;
  z-index: -1;
}

.nsps-hero--feature-tilt-container:hover .nsps-hero--feature-display-card::after {
  opacity: 0.06;
}

.nsps-hero--feature-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7f3ef, #eae0d5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  transition: background 0.4s ease-in-out,
    transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), box-shadow 0.3s ease;
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
}

.nsps-hero--feature-tilt-container:hover .nsps-hero--feature-icon-container {
  background: var(--maroon);
  transform: scale(1.1) rotate(-8deg) translateZ(15px);
  box-shadow: 0 6px 15px -4px rgba(128, 48, 64, 0.35);
}

.nsps-hero--feature-icon-container .nsps-hero--feature-card-icon {
  font-size: 24px;
  color: var(--maroon);
  margin-bottom: 0;
  transition: color 0.4s ease-in-out,
    transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.nsps-hero--feature-tilt-container:hover .nsps-hero--feature-card-icon {
  color: #ffffff;
  transform: scale(1.1) translateZ(8px);
}

.nsps-hero--feature-text-content {
  margin-top: auto;
}

.nsps-hero--feature-text-content h3 {
  color: var(--maroon);
  font-size: 17px;
  font-weight: 700;
  transition: color 0.2s ease-in-out;
  margin-bottom: 8px;
}

.nsps-hero--feature-tilt-container:hover .nsps-hero--feature-text-content h3 {
  color: var(--maroon);
}

.nsps-hero--feature-text-content p {
  font-size: 12px;
  color: #5c5859;
  margin-bottom: 0;
  transition: color 0.2s ease-in-out;
}

.nsps-hero--feature-tilt-container:hover .nsps-hero--feature-text-content p {
  color: #353233;
}

.nsps-hero--feature-card-clickable-area {
  position: absolute;
  inset: 0;
  z-index: 2;
  font-size: 0;
  color: transparent;
}

/* --- Slideshow Styles --- */
/* ... Keep existing slideshow styles ... */
.nsps-hero--carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
}

.nsps-hero--carousel-item {
  flex: 0 0 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.05);
}

.nsps-hero--carousel-item.nsps-hero--state-active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

.nsps-hero--carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease-out;
}

.nsps-hero--carousel-item.nsps-hero--state-active img {
  transform: scale(1.06);
}

.nsps-hero--carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0) 35%);
  opacity: 0.7;
  z-index: 1;
}

.nsps-hero--carousel-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}

.nsps-hero--carousel-nav-button {
  background-color: var(--maroon);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: all;
  transition: opacity 0.4s ease-in-out, transform 0.3s ease,
    background-color 0.2s ease-in-out, color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

.nsps-hero--image-carousel-container:hover .nsps-hero--carousel-nav-button {
  opacity: 1;
}

.nsps-hero--carousel-nav-button:hover {
  background-color: var(--maroon);
  color: #ffffff;
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 4px 12px rgba(96, 36, 48, 0.25);
}

.nsps-hero--carousel-nav-button:active {
  transform: scale(0.94) rotate(-4deg);
}

.nsps-hero--carousel-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 10;
}

.nsps-hero--carousel-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: none;
  transition: background-color 0.2s ease-in-out,
    transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    box-shadow 0.2s ease-in-out;
}

.nsps-hero--carousel-indicator-dot:hover {
  background-color: var(--maroon);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(169, 92, 106, 0.25);
}

.nsps-hero--carousel-indicator-dot.nsps-hero--state-active {
  background-color: var(--maroon);
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(128, 48, 64, 0.35);
}

.nsps-hero--carousel-indicator-dot:active {
  transform: scale(1.15);
}

/* --- General Interactive Element Base --- */
.nsps-hero--ui-interactive {
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out,
    filter 0.2s ease-in-out;
  cursor: none;
}

.nsps-hero--ui-interactive:active {
  opacity: 0.85;
}

/* --- Animations --- */
/* ... Keep existing animation keyframes and classes ... */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.nsps-hero--anim-entry-fade-in {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

.nsps-hero--anim-entry-fade-down {
  animation: fadeDown 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.nsps-hero--anim-entry-slide-up {
  animation: slideUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.nsps-hero--anim-entry-scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.nsps-hero--anim-delay-1 {
  animation-delay: 0.1s;
}

.nsps-hero--anim-delay-2 {
  animation-delay: 0.25s;
}

.nsps-hero--anim-delay-3 {
  animation-delay: 0.4s;
}

.nsps-hero--anim-delay-4 {
  animation-delay: 0.55s;
}

.nsps-hero--anim-delay-5 {
  animation-delay: 0.7s;
}

.nsps-hero--anim-delay-6 {
  animation-delay: 0.85s;
}

/* =============================================== */
/* --- Responsive Adjustments --- */
/* =============================================== */

/* Desktop First (Base styles define desktop layout) */
@media (min-width: 992px) {
  .nsps-hero--main-landing-area {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .nsps-hero--landing-left-column {
    width: 42%;
    max-width: 520px;
    align-items: flex-start;
    order: 1;
    /* Explicit order for desktop */
  }

  .nsps-hero--landing-right-column {
    width: 55%;
    max-width: 650px;
    align-items: center;
    order: 2;
    /* Explicit order for desktop */
  }

  .nsps-hero--landing-left-column,
  .nsps-hero--landing-right-column {
    display: flex;
    /* Ensure they are flex containers */
  }

  .nsps-hero--key-features-grid {
    max-width: 100%;
    justify-content: space-between;
    gap: 16px;
    order: 2;
    /* Ensure features are below headings in the left column */
    margin-top: 40px;
    /* Space above features */
    display: flex;
    /* Ensure flex applies */
    flex-wrap: nowrap;
    /* Prevent wrapping on desktop */
  }

  .nsps-hero--landing-content-block {
    order: 1;
    /* Ensure headings are first in the left column */
  }

  .nsps-hero--image-carousel-container {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 10;
  }

  .nsps-hero--feature-tilt-container {
    flex-basis: calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
  }
}

/* Tablet and Mobile (Below 992px) */
@media (max-width: 991px) {
  .nsps-hero--page-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nsps-hero--main-landing-area {
    flex-direction: column;
    /* Stack elements */
    text-align: center;
    padding-top: 50px;
    justify-content: flex-start;
    gap: 40px;
  }

  .nsps-hero--decorative-bg-shape-v1 {
    width: 40vmax;
    height: 40vmax;
    top: 6%;
    left: 3%;
    animation-delay: 0s;
  }

  .nsps-hero--decorative-bg-shape-v2 {
    width: 50vmax;
    height: 50vmax;
    bottom: 85%;
    right: -30%;
    animation-delay: 5s;
  }

  .nsps-hero--decorative-bg-shape-v3 {
    width: 30vmax;
    height: 30vmax;
    top: 0%;
    right: 40%;
    animation-delay: 10s;
  }

  /* Use display: contents to promote children for ordering */
  .nsps-hero--landing-left-column,
  .nsps-hero--landing-right-column {
    display: contents;
    /* Makes children direct flex items of main */
    width: 100%;
    max-width: none;
    /* Remove max-width specific to columns */
    order: initial;
    /* Reset any desktop order */
  }

  /* Now order the direct children of main-landing-area */
  .nsps-hero--landing-content-block {
    order: 1;
    /* Headings first */
    max-width: 580px;
    /* Control width of headings block */
    margin: 0 auto;
    /* Center headings block */
    width: 100%;
    /* Take available width */
  }

  .nsps-hero--image-carousel-container {
    order: 2;
    /* Slideshow second */
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16 / 10;
    margin: 0 auto;
  }

  .nsps-hero--key-features-grid {
    order: 3;
    /* Features third */
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 580px;
    /* Control width of features block */
    margin: 32px auto 0;
    /* Margin top and center */
    width: 100%;
    /* Take available width */
  }

  .nsps-hero--feature-tilt-container {
    flex-basis: auto;
    /* Reset flex basis */
    width: clamp(180px, 45%, 220px);
    /* Control width when wrapping */
    max-width: none;
  }

  h1 {
    font-size: clamp(52px, 5.5vw, 80px);
  }

  h2 {
    font-size: clamp(22px, 2.3vw, 28px);
  }

  .nsps-hero--feature-display-card {
    padding: 32px 24px;
  }
}

/* Mobile (Portrait) */
@media (max-width: 768px) {
  body {
    font-size: 14.5px;
  }

  .nsps-hero--main-landing-area {
    padding-top: 40px;
    gap: 32px;
  }

  .nsps-hero--landing-titles {
    margin-bottom: 32px;
  }

  /* Order remains from tablet view */
  .nsps-hero--landing-content-block {
    max-width: 100%;
    padding: 0 8px;
  }

  .nsps-hero--key-features-grid {
    margin-top: 32px;
    gap: 24px;
    padding: 0 8px;
  }

  .nsps-hero--image-carousel-container {
    aspect-ratio: 4 / 3;
    width: calc(100% - 16px);
    margin: 0 auto;
  }

  /* Add padding */
  h1 {
    font-size: clamp(38px, 7vw, 60px);
  }

  h2 {
    font-size: clamp(20px, 3.3vw, 24px);
  }

  .nsps-hero--carousel-navigation {
    left: 12px;
    right: 12px;
  }

  .nsps-hero--carousel-nav-button {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .nsps-hero--carousel-indicator-dot {
    width: 9px;
    height: 9px;
  }

  .nsps-hero--feature-display-card {
    padding: 28px 20px;
  }

  .nsps-hero--feature-icon-container {
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
  }

  .nsps-hero--feature-icon-container .nsps-hero--feature-card-icon {
    font-size: 22px;
  }

  .nsps-hero--feature-text-content h3 {
    font-size: 17px;
  }

  .nsps-hero--feature-text-content p {
    font-size: 12px;
  }

  .nsps-hero--feature-tilt-container {
    width: clamp(160px, 80%, 250px);
    margin: 0 auto;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .nsps-hero--page-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nsps-hero--main-landing-area {
    padding-top: 30px;
    padding-bottom: 40px;
    gap: 28px;
  }

  h1 {
    font-size: clamp(34px, 8vw, 50px);
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(18px, 3.8vw, 21px);
    margin-bottom: 6px;
  }

  .nsps-hero--key-features-grid {
    gap: 20px;
  }

  .nsps-hero--feature-tilt-container {
    width: 90%;
    max-width: 300px;
  }

  .nsps-hero--feature-display-card {
    padding: 24px 16px;
  }

  .nsps-hero--image-carousel-container {
    width: calc(100% - 16px);
    aspect-ratio: 1 / 1;
    border-radius: 8px;
  }

  .nsps-hero--carousel-navigation {
    left: 10px;
    right: 10px;
  }

  .nsps-hero--carousel-nav-button {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .nsps-hero--carousel-indicators {
    bottom: 16px;
    gap: 10px;
  }

  .nsps-hero--carousel-indicator-dot {
    width: 8px;
    height: 8px;
  }
}

/* Reduced Motion - Keep at the end */
@media (prefers-reduced-motion: reduce) {
  /* ... Keep existing reduced motion styles ... */
}

@keyframes pulse-animation {
  0% {
    transform: scale(0.95) translate(5px, -5px);
    opacity: 0.04;
    filter: blur(0.5px);
  }

  40% {
    transform: scale(1.03) translate(-2px, 3px);
    opacity: 0.07;
    filter: blur(1.5px);
  }

  60% {
    transform: scale(1.07) translate(-4px, 6px);
    opacity: 0.09;
    filter: blur(2.5px);
  }

  100% {
    transform: scale(1.12) translate(-7px, 8px);
    opacity: 0.05;
    filter: blur(1px);
  }
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.loading-text {
  font-size: 1rem;
  margin-top: 1.5rem;
}

.notice-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

/* Force all headings to use Poppins and maroon color */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
  color: var(--maroon) !important;
}

.notice-title {
  color: #fff !important;
}