/* ==========================================================================
   PTE Sensor UI/UX Pro Max Clean Stylesheet
   Premium Framer Motion Style Interactions - Built to Never Break Layouts.
   ========================================================================== */

/* 1. CSS Variables & Theme Configuration */
:root {
  /* HSL Tailored Brand Colors */
  --brand-primary: #007E3C;     /* Official Logo Green */
  --brand-secondary: #20A2D5;   /* Official Logo Sky Blue */
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Premium Light Mode Colors */
  --bg-color: #ffffff;
  --bg-card: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f4f4f5;
  --text-color: #09090b;
  --text-muted: #71717a;
  --border-color: #e4e4e7;
  
  /* Glowing / Spotlight accents */
  --card-glow: rgba(32, 162, 213, 0.12);
  --section-glow-1: rgba(0, 126, 60, 0.05);
  --section-glow-2: rgba(32, 162, 213, 0.05);

  /* Advanced Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  
  --hero-overlay: rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(255, 255, 255, 0.85);
  
  --accent-green: var(--brand-primary);
  --accent-blue: var(--brand-secondary);
}

/* Dark Theme overrides */
body.dark {
  --bg-color: #09090b;
  --bg-card: #18181b;
  --bg-secondary: #09090b;
  --bg-tertiary: #27272a;
  --text-color: #fafafa;
  --text-muted: #a1a1aa;
  --border-color: #27272a;
  
  --card-glow: rgba(32, 162, 213, 0.22);
  --section-glow-1: rgba(16, 185, 129, 0.08);
  --section-glow-2: rgba(56, 189, 248, 0.06);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  
  --hero-overlay: rgba(0, 0, 0, 0.70);
  --nav-bg: rgba(9, 9, 11, 0.85);

  --accent-green: #10b981; /* bright emerald */
  --accent-blue: #38bdf8;  /* bright sky */
}

/* 2. Global Base Reset & Fonts */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

button, a, h1, h2, h3, h4, h5, h6, .badge, .title, .nav-link {
  text-transform: none !important;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-color);
  letter-spacing: -0.015em;
}

a {
  color: var(--brand-secondary);
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
  color: var(--accent-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* 4. Common Layout Helpers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.section {
  padding: 90px 0;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden; /* Strict protection against glow overflow */
}

/* Alternate Section Background Flow */
.section-white {
  background-color: var(--bg-color);
}

.section-gray {
  background-color: var(--bg-secondary);
}

/* Safe background glow spots rendered strictly inside overflow:hidden containers */
.section-white::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -150px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--section-glow-1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.section-gray::before {
  content: '';
  position: absolute;
  bottom: 5%;
  right: -150px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--section-glow-2) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

/* Bento Grid styling */
.bento-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Grid helper */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 5. Site Header & Navigation (Glassmorphic) */
.top-bar {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  padding: 10px 0;
  color: var(--text-muted);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 20px;
}

.top-bar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.site-header {
  height: 90px;
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.header-logo {
  height: 70px;
  width: auto;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-logo:hover {
  transform: scale(1.03);
}

/* Light/Dark Logo Switching */
.header-logo.dark-logo,
.mobile-logo.dark-logo,
.footer-brand-logo.dark-logo {
  display: none !important;
}

.header-logo.light-logo,
.mobile-logo.light-logo,
.footer-brand-logo.light-logo {
  display: block !important;
}

body.dark .header-logo.dark-logo,
body.dark .mobile-logo.dark-logo,
body.dark .footer-brand-logo.dark-logo {
  display: block !important;
}

body.dark .header-logo.light-logo,
body.dark .mobile-logo.light-logo,
body.dark .footer-brand-logo.light-logo {
  display: none !important;
}

/* Desktop Navigation Menu */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--brand-secondary);
}

/* Navigation Dropdowns */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-link:hover {
  background-color: var(--bg-secondary);
  color: var(--brand-secondary);
}

/* Theme Toggle Button (Spring bounce) */
.theme-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: var(--bg-card);
}

.theme-btn:hover {
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
  transform: scale(1.08) rotate(15deg);
}

/* Hamburger mobile button */
.hamburger-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }
}

/* Mobile Side Menu */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-xl);
  z-index: 999;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.mobile-menu-drawer.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
}

.mobile-dropdown {
  padding-left: 15px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid var(--border-color);
}

/* 6. Custom Hero Slider (Ken Burns Transitions) */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 5100 / 1600;
  min-height: 200px;
  overflow: hidden;
  background-color: #000;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 10;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active .hero-bg-img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 126, 60, 0.25), rgba(0, 0, 0, 0.5));
  opacity: 0.45;
  transition: opacity 0.3s ease;
  z-index: 2;
}

body.dark .hero-overlay {
  opacity: 0.70;
}

/* Slider Controls */
.slider-control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(29, 29, 31, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(29, 29, 31, 0.3);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-control-btn:hover {
  background: #1d1d1f;
  border-color: #1d1d1f;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 15px rgba(29, 29, 31, 0.4);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 15;
}

.slider-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-dot.active {
  background: #1d1d1f;
  width: 24px;
  border-radius: 6px;
}

/* 7. Product Cards (Standard Grid Cards with lift + safe glow) */
.section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-subtitle {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 38px;
  }
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
}

/* Product Card design */
.product-card-link {
  display: block;
  color: inherit;
  outline: none;
}

.product-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

/* Safe card spotlight glow (Renders between background and text) */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(350px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), var(--card-glow), transparent 60%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card-link:hover .product-card::before {
  opacity: 1;
}

.product-card-link:hover .product-card {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-secondary);
}

.card-img-wrapper {
  position: relative;
  z-index: 3;
  overflow: hidden;
  aspect-ratio: 16/10;
  background-color: var(--bg-tertiary);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-link:hover .card-img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(0, 126, 60, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}

.card-content {
  position: relative;
  z-index: 3;
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-subtitle {
  font-size: 12px;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 10px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
  transition: color 0.25s ease;
}

.product-card-link:hover .card-title {
  color: var(--brand-secondary);
}

.card-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-secondary);
  font-size: 14px;
  font-weight: 700;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.card-footer-btn i {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card-link:hover .card-footer-btn i {
  transform: translateX(4px);
}

/* 8. Bento Box Cards */
.bento-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-lg);
}

/* 9. Infinite Logo Marquee */
.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
  padding: 20px 0;
}

.marquee-container::before, .marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: marquee-loop 30s linear infinite;
  will-change: transform;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-logo {
  height: 55px;
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.25s ease;
}

.marquee-logo:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--brand-secondary);
}

.marquee-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes marquee-loop {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 20px)); }
}

/* 10. Testimonials Section */
.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote-icon {
  font-size: 36px;
  color: rgba(32, 162, 213, 0.15);
  position: absolute;
  top: 20px;
  right: 20px;
}

.testimonial-text {
  font-size: 14.5px;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar-placeholder {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
}

.testimonial-title {
  font-size: 12px;
  color: var(--text-muted);
}

/* 11. FAQ Accordion Elements */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-card);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--brand-secondary);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
  gap: 15px;
  outline: none;
}

.faq-trigger:hover {
  color: var(--brand-secondary);
}

.faq-icon {
  font-size: 12px;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-secondary);
}

.faq-content-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-content {
  padding: 0 24px 18px 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 12. About split columns */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .about-split {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.about-paragraphs p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.about-features-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-feature-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.about-feature-icon {
  background-color: rgba(0, 126, 60, 0.1);
  color: var(--accent-green);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.about-feature-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-feature-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* 13. Site Footer & Attributions */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px 0;
  margin-top: auto;
  color: var(--text-color);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--brand-secondary);
  border-radius: 2px;
}

.footer-brand-logo {
  height: 60px;
  margin-bottom: 20px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-branch-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.footer-branch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.footer-branch-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
}

.footer-flag-img {
  height: 18px;
  width: auto;
}

.footer-branch-info-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
}

.footer-branch-info-row i {
  color: var(--brand-secondary);
  margin-top: 3px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: var(--brand-secondary);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
}

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

.copyright-text {
  font-size: 13px;
  color: var(--text-muted);
}

.dev-credit-link {
  color: var(--brand-secondary) !important;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.dev-credit-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* 13. Action Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  gap: 8px;
}

.btn-primary {
  background-color: var(--brand-secondary);
  color: #ffffff;
  border: 1px solid var(--brand-secondary);
}

.btn-primary:hover {
  background-color: #1a8ebb;
  border-color: #1a8ebb;
  transform: translateY(-2px) scale(1.02);
  color: #ffffff;
}

.btn-primary-accent {
  background-color: var(--brand-primary);
  color: #ffffff;
  border: 1px solid var(--brand-primary);
}

.btn-primary-accent:hover {
  background-color: #00602e;
  border-color: #00602e;
  transform: translateY(-2px) scale(1.02);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: #18181b;
  transform: translateY(-2px) scale(1.02);
}

/* ==========================================================================
   14. Sub-Pages Specific Design Styles
   ========================================================================== */

.subpage-hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-primary), #004d25);
  padding: 80px 0;
  color: white;
  text-align: center;
  overflow: hidden;
  border-bottom: 3px solid var(--brand-secondary);
}

body.dark .subpage-hero {
  background: linear-gradient(135deg, #18181b, #0c4a25);
  border-bottom: 3px solid var(--brand-secondary);
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(32, 162, 213, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(0, 126, 60, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.subpage-hero h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  color: #ffffff;
}

@media (min-width: 768px) {
  .subpage-hero h1 {
    font-size: 46px;
  }
}

.subpage-hero .breadcrumbs {
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

.subpage-hero .breadcrumbs a {
  color: #ffffff;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.subpage-hero .breadcrumbs a:hover {
  opacity: 0.85;
}

.subpage-hero .breadcrumbs i {
  font-size: 10px;
  opacity: 0.6;
}

/* Sub-page layouts */
.subpage-content {
  padding: 80px 0;
}

.subpage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

@media (min-width: 1024px) {
  .subpage-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.subpage-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .subpage-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .subpage-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Premium Card Design */
.subpage-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 35px;
  height: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.subpage-cards-grid .subpage-card {
  height: 100%;
}

.subpage-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--brand-secondary);
  box-shadow: 0 12px 30px rgba(32, 162, 213, 0.08);
}

body.dark .subpage-card:hover {
  box-shadow: 0 12px 30px rgba(32, 162, 213, 0.03);
}

.subpage-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: rgba(32, 162, 213, 0.1);
  color: var(--brand-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.subpage-card:hover .subpage-card-icon {
  transform: rotate(6deg) scale(1.1);
  background-color: var(--brand-secondary);
  color: white;
}

.subpage-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.subpage-card-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
}

/* Statistics Bento style card */
.bento-stats-card {
  background: linear-gradient(135deg, var(--brand-primary), #004d25);
  color: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 126, 60, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-stats-card::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  top: -80px;
  right: -80px;
}

.bento-stat-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px 0;
  position: relative;
  z-index: 2;
}

.bento-stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bento-stat-item:first-child {
  padding-top: 0;
}

.bento-stat-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--brand-secondary);
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}

.bento-stat-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
}

.bento-stat-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* Premium Form Elements */
.premium-form {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .form-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.form-label span {
  color: #e53e3e;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  font-family: inherit;
  font-size: 15px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 4px rgba(32, 162, 213, 0.12);
  background-color: var(--bg-card);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.success-alert {
  background-color: rgba(0, 126, 60, 0.1);
  border: 1px solid var(--brand-primary);
  color: var(--text-color);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.success-alert i {
  color: var(--brand-primary);
  font-size: 18px;
}

.form-submit-btn {
  background-color: var(--brand-secondary);
  color: #ffffff;
  border: 1px solid var(--brand-secondary);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.form-submit-btn:hover {
  background-color: #1a8ebb;
  border-color: #1a8ebb;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(32, 162, 213, 0.2);
}

.form-submit-btn:active {
  transform: translateY(0);
}

/* Specs Table styling */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
}

.specs-table th, 
.specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.specs-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-color);
  width: 35%;
  background-color: var(--bg-secondary);
}

.specs-table td {
  color: var(--text-muted);
}
