/* templates.css
   Enterprise-ready UI layer (design tokens, components, and layout themes).
*/

:root{
  /* Brand variables are centralized in public/css/theme.css to allow easy theming. */

  /* Neutrals */
  --bg: #F7F8FC;
  --panel: rgba(255,255,255,.78);
  --panel-2: rgba(255,255,255,.92);
  --border: rgba(15,23,42,.10);
  --text: rgba(15,23,42,.92);
  --muted: rgba(15,23,42,.70);
  --muted-2: rgba(15,23,42,.55);
  --shadow: 0 10px 30px rgba(2,6,23,.10);

  /* Alerts */
  --success: #22c55e;
  --danger: #ef4444;
  --info: #3b82f6;
  --warning: #f59e0b;

  /* Radii & spacing */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(122,12,46,.25);

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html, body{
  height: 100%;
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(122, 12, 46, 0.15);
  color: rgba(15, 23, 42, 0.95);
}

::-moz-selection {
  background: rgba(122, 12, 46, 0.15);
  color: rgba(15, 23, 42, 0.95);
}

a{
  color: rgba(122,12,46,.95);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
a:hover {
    color: rgba(122,12,46,1);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
a:focus-visible{ outline: none; box-shadow: var(--focus-ring); border-radius: 8px; }

img{ max-width: 100%; height: auto; }

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15,23,42,0.04);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(15,23,42,0.15);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(122,12,46,0.3);
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
  background: rgba(122,12,46,0.5);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.container{
  width: min(1160px, calc(100% - 2*var(--space-5)));
  margin-inline: auto;
}

/* Headings */
h1,h2,h3,h4,h5{
  margin: 0 0 var(--space-3) 0;
  letter-spacing: -.02em;
  line-height: 1.2;
}
p{ margin: 0 0 var(--space-3) 0; color: var(--muted); line-height: 1.7; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.70);
  /*color: var(--text);*/
  font-weight: 650;
  cursor: pointer;
  transition: transform .04s ease, background .15s ease, border-color .15s ease;
  user-select: none;
}
.btn:hover{
  background: rgba(255,255,255,.95);
  border-color: rgba(15,23,42,.18);
  text-decoration: none;
}
.btn:active{ transform: translateY(1px); }
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(159,0,0,.25);
}
.btn-primary{
  border-color: rgba(122,12,46,.40);
  background: linear-gradient(180deg, rgba(122,12,46,.95), rgba(95,8,35,.92));
}
.btn-primary:hover{
  background: linear-gradient(180deg, rgba(122,12,46,1), rgba(95,8,35,1));
  border-color: rgba(122,12,46,.60);
}

.btn-secondary{
  border-color: rgba(20,184,166,.35);
  background: linear-gradient(180deg, rgba(20,184,166,.85), rgba(20,184,166,.75));
}

/* Cards / panels */
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(255,255,255,.35);
  overflow: hidden;
  padding: var(--space-4);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.06);
}

.card-header{
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.55);
}
.card-body{
  padding: var(--space-4);
}

.hero-kicker{
  display: inline-flex;
  align-items: center;    
  margin-bottom: 2em;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
  width: fit-content;
  backdrop-filter: blur(10px);
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(255,255,255,.95);
  transition: all 0.3s ease;
}

.hero-kicker:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.30);
  transform: translateY(-2px);
}

.hero-title{
  font-size: clamp(3.5rem, 5vw, 4.5rem);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.04em;
  color: #fff;
  font-weight: 950;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.hero-subtitle{
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin: 0;    
  margin-block: 2em;
  color: rgba(255,255,255,.92);
  max-width: 62ch;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,.15);
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero-scroll-indicator{
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-weight: 850;
  font-size: 13px;
  animation: bounce 2s infinite;
}

.hero-scroll-dot{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hero-scroll-indicator:hover .hero-scroll-dot {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.30);
  transform: translateY(4px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* Stats strip (hero footer metrics) */
.stat-strip{
  margin-top: 56px;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat{
  padding: 18px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
}

.stat .num{
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: -0.03em;
}

.stat .lbl{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.82);
  font-weight: 800;
  letter-spacing: .02em;
}

/* Public sections */
.section{
  padding: 120px 0;
}

.section-header{
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
}

.section-title{
  font-size: clamp(2.6rem, 3.6vw, 3rem);
  line-height: 1.1;
  color: rgba(15,23,42,.96);
  letter-spacing: -0.03em;
  font-weight: 1000;
  margin: 0;
}

.section-subtitle{
  font-size: 20px;
  color: rgba(15,23,42,.68);
  margin: 0;
  max-width: 70ch;
}

/* Feature cards (public premium hover) */
.feature-card{
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.feature-card:hover{
  border-color: rgba(122,12,46,.22);
  box-shadow: 0 14px 40px rgba(2,6,23,.12);
  transform: translateY(-2px);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}

/* Grid helpers for public cards */
.grid-auto-cards{
  display: grid;
  align-items: start;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 980px) {
  .grid-auto-cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* Images inside cards */
.card img.card-image{
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 2px);
  display: block;
  margin: 0 0 var(--space-4) 0;
}
/* Form controls */
label{ color: var(--muted); font-weight: 650; display: block; margin-bottom: var(--space-2); }
.form-control{
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.9);
  color: var(--text);
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control::placeholder{ color: rgba(15,23,42,.45); }
.form-control:focus{
  border-color: rgba(122,12,46,.55);
  box-shadow: 0 0 0 3px rgba(122,12,46,.1);
}

/* Checkbox */
.form-check{
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-check input[type="checkbox"]{
  width: 18px; height: 18px;
  accent-color: var(--brand-primary);
}

/* Alerts */
.alert{
  border-radius: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.70);
  margin: var(--space-4) 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.alert-info{ border-color: rgba(59,130,246,.28); background: rgba(59,130,246,.08); }
.alert-success{ border-color: rgba(34,197,94,.28); background: rgba(34,197,94,.08); }
.alert-danger{ border-color: rgba(239,68,68,.28); background: rgba(239,68,68,.08); }

.flash-close{
  position: absolute;
  right: 10px;
  top: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.flash-close:hover {
  color: rgba(239,68,68,.8);
}

/* Tables (minimal but enterprise-ready baseline) */
.table-responsive{ overflow-x: auto; }
.table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.75);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.table th, .table td{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  text-align: left;
}
.table th{
  color: rgba(15,23,42,.85);
  font-weight: 750;
  background: rgba(15,23,42,.02);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table tbody tr {
  transition: background 0.15s ease;
}
.table tbody tr:hover td{
  background: rgba(122,12,46,.04);
}
.table tr:last-child td{ border-bottom: none; }

/* Footer */
.footer{
  margin-top: var(--space-8);
  padding: var(--space-8) 0 var(--space-6);
  border-top: 1px solid rgba(15,23,42,.08);
  color: var(--muted);
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}
.footer-content{
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(12, 1fr);
}
.footer-section{ 
  grid-column: span 5; 
  padding: var(--space-5);
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.footer-section:last-child{ grid-column: span 4; }
.footer-bottom{
  margin-top: var(--space-6);
  color: rgba(15,23,42,.55);
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(15,23,42,.08);
}

/* Main content spacing */
main.with-sidebar{
  padding-top: var(--space-6);
  /* Ensure content doesn't sit beneath the fixed sidebar */
  padding-left: 300px;
}

/* Footer should never be covered by the fixed sidebar (admin + any other role w/ sidebar) */
main.with-sidebar{
  position: relative;
  z-index: 1;
}

main.with-sidebar ~ .footer{
  padding-left: 300px;
  position: relative;
  z-index: 10;
}

/* If sidebar slides out on mobile, ensure footer stays above it */
@media (max-width: 780px){
  main.with-sidebar ~ .footer{
    z-index: 10;
  }
}

.with-sidebar .container{
  width: min(1160px, calc(100% - 2*var(--space-5)));
}

/* Public hero / marketing sections (premium, Girder-inspired) */
.hero-section {
  width: 100vw;
  margin: 0;
  padding: 96px 0 80px 0;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.35)
    ),
    url('/images/hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  min-height: calc(100vh - 120px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Overlay for better text contrast */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(255, 255, 255, 0.15),
      transparent 60%
    ),
    linear-gradient(
      135deg,
      rgba(122, 12, 46, 0.65),
      rgba(0, 0, 0, 0.4)
    );
  z-index: 1;
}

/* Keep hero content above overlay */
.hero-section > * {
  position: relative;
  z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 64px 0;
    text-align: center;
    align-items: center;
  }
}
@media (max-width: 768px) {
  .grid { gap: 12px; }
  .card { padding: 16px; }
}

/* Public sections */
.section{
  padding: 120px 0;
  position: relative;
}

.section-header{
  display: grid;
  gap: 14px;
  margin-bottom: 56px;
}

.section-title{
  font-size: clamp(2.6rem, 3.6vw, 3rem);
  line-height: 1.1;
  color: rgba(15,23,42,.96);
  letter-spacing: -0.03em;
  font-weight: 1000;
  margin: 0;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary, #800000), #ff6200);
  border-radius: 2px;
}

.section-subtitle{
  font-size: 20px;
  color: rgba(15,23,42,.68);
  margin: 0;
  max-width: 70ch;
  line-height: 1.7;
}

/* Feature cards (public premium hover) */
.feature-card{
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}
.feature-card:hover{
  border-color: rgba(122,12,46,.22);
  box-shadow: 0 14px 40px rgba(2,6,23,.12);
  transform: translateY(-4px);
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .3s cubic-bezier(0.22, 1, 0.36, 1), border-color .3s ease;
}

/* Small responsive tweak */
@media (max-width: 980px){
  .stat-strip{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px){
  .stat-strip{ grid-template-columns: 1fr; }
}

/* Grid helpers for public cards */
.grid-auto-cards{
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Images inside cards */
.card img.card-image{
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 2px);
  display: block;
  margin: 0 0 var(--space-4) 0;
}

/* Quick menu (admin dashboard) */
.quick-menu{
  margin-bottom: var(--space-6);
}
.quick-menu-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-3);
}
.quick-menu-item{
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.75);
  box-shadow: 0 6px 18px rgba(2,6,23,.06);
  transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.quick-menu-item i{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(122,12,46,.12);
  border: 1px solid rgba(122,12,46,.20);
  color: rgba(122,12,46,.98);
}
.quick-menu-item span{
  font-weight: 800;
  color: rgba(15,23,42,.92);
}
.quick-menu-item:hover{
  text-decoration: none;
  background: rgba(255,255,255,.96);
  border-color: rgba(122,12,46,.25);
  box-shadow: 0 12px 28px rgba(2,6,23,.10);
  transform: translateY(-1px);
}

/* Button variants used by templates */
.btn-outline{
  border-color: rgba(15,23,42,.20);
  background: transparent;
  color: rgba(15,23,42,.85);
}
.btn-outline:hover{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.40);
  text-decoration: none;
}
.btn-outline-light{
  border-color: rgba(255,255,255,.30);
  background: transparent;
  color: rgba(255,255,255,.92);
}
.btn-outline-light:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.50);
  text-decoration: none;
}

/* Badge / status pills */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.70);
  font-weight: 850;
  font-size: 12px;
  color: rgba(15,23,42,.82);
}
.badge-maroon{
  border-color: rgba(122,12,46,.28);
  background: rgba(122,12,46,.10);
  color: rgba(122,12,46,.98);
}

/* Improve table premium feel */
.table tbody tr:hover td{
  background: rgba(122,12,46,.06);
}
.table a{
  color: rgba(122,12,46,.95);
  font-weight: 800;
}
.table a:hover{ text-decoration: underline; }

/* Auth pages: remove reliance on inline spacing */
.auth-container{
  max-width: 460px;
  margin: 0 auto;
  padding-top: var(--space-7);
}

/* Sidebar (application layout) */
.sidebar{
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: rgba(255,255,255,.95);
  border-right: 1px solid rgba(15,23,42,.10);
  backdrop-filter: saturate(180%) blur(12px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 12px rgba(15,23,42,.04);
}
.sidebar-header{
  padding: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid rgba(15,23,42,.10);
}
.logo-full{
  display: flex; align-items: center; gap: 12px;
  font-weight: 800;
  transition: opacity 0.2s ease;
}
.logo-full:hover {
  opacity: 0.85;
}
.logo-mini{ display: none; }

.sidebar-toggle{
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.14);
  color: var(--text);
  border-radius: 12px;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sidebar-toggle:focus-visible{ outline: none; box-shadow: var(--focus-ring); }

.sidebar-menu{
  list-style: none;
  padding: var(--space-4) 10px 18px 10px;
  margin: 0;
  overflow: auto;
}
.sidebar-section-label{
  margin: var(--space-3) 10px;
  font-size: 12px;
  color: rgba(15,23,42,.55);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.sidebar-menu > li{ margin-bottom: 4px; }

.sidebar .nav-link{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  color: rgba(15,23,42,.88);
  border: 1px solid transparent;
  background: transparent;
  font-weight: 700;
}
.sidebar .nav-link:hover{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.10);
  text-decoration: none;
}
.sidebar .nav-link.active{
  background: rgba(122,12,46,.12);
  border-color: rgba(122,12,46,.22);
}
.sidebar-badge{
  margin-left: auto;
  min-width: 24px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(122,12,46,.14);
  border: 1px solid rgba(122,12,46,.30);
  color: rgba(122,12,46,.98);
}

.submenu{
  display: none;
  padding-left: 8px;
  margin: 6px 0 10px 0;
}
.submenu.show{ display: block; }
.submenu .nav-link{
  padding: 9px 12px;
  margin: 2px 0;
  font-weight: 680;
  background: rgba(15,23,42,.03);
  border-color: rgba(15,23,42,.08);
}

/* Header (public pages and non-logged sidebar-absent pages) */
.header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(15,23,42,.10);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.06);
  transition: box-shadow 0.3s ease;
}
.header.scrolled{
  box-shadow: 0 4px 20px rgba(15,23,42,.08), 0 1px 3px rgba(15,23,42,.06);
}
.top-bar{
  border-bottom: 1px solid var(--brand-primary, #7a0c2e);
  background: var(--brand-primary, #7a0c2e);
  width: 100vw;
}
.top-bar .container,
.mid-bar .container,
.nav-bar .container{
  padding: 12px var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.contact-info{
  display: flex; gap: var(--space-4);
  color: rgb(255, 255, 255);
  font-size: 14px;
  font-weight: 600;
}
.contact-info a{
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.contact-info a:hover{
  color: white;
  transform: translateY(-1px);
}
.social-links{
  display: flex; gap: 10px;
}
.social-links a{
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.10);
  color: white;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
}
.social-links a:hover{ 
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.40);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  text-decoration: none; 
}

.mid-bar .logo{
  display: inline-flex; gap: 12px; align-items: center;
  font-weight: 900;
  color: rgba(15,23,42,.95);
  transition: opacity 0.2s ease;
}
.mid-bar .logo:hover{
  opacity: 0.85;
}
.mid-bar .logo img{
  max-height: 80px;
  max-width: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mid-bar .logo:hover img{
  transform: scale(1.05);
}
.mid-bar .logo span{ font-size: 18px; }

.nav-menu{
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0;
  align-items: center;
}
.nav-menu .nav-link{
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 750;
  color: rgba(15,23,42,.88);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.nav-menu .nav-link:hover{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.10);
  text-decoration: none;
  transform: translateY(-1px);
}
.nav-menu .nav-link.active{
  background: rgba(122,12,46,.12);
  border-color: rgba(122,12,46,.22);
  color: rgba(122,12,46,.95);
}

/* Mobile menu */
.mobile-menu-toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mobile-menu-toggle span{
  position: absolute;
  width: 20px; height: 2px;
  background: rgba(15,23,42,.85);
  border-radius: 2px;
}
.mobile-menu-toggle span:nth-child(1){ transform: translateY(-6px); }
.mobile-menu-toggle span:nth-child(2){ }
.mobile-menu-toggle span:nth-child(3){ transform: translateY(6px); }

/* Shop header */
.shop-header{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
}
.shop-header-top .container,
.shop-header-top-inner{
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
}
.shop-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.shop-brand img{ height: 30px; width: auto; display: block; }

.shop-search-form{
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 80vw;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 999px;
  padding: 4px 4px 4px 38px;
  transition: border-color .15s ease, box-shadow .15s ease;
  max-width: 60vW;
}
.shop-search-form:focus-within{
  border-color: var(--brand-primary, #7a0c2e);
  box-shadow: 0 0 0 3px rgba(122,12,46,.12);
}
.shop-search-icon{
  position: absolute;
  left: 14px;
  color: rgba(15,23,42,.45);
  pointer-events: none;
}
.shop-search-form input{
  flex: 1 0.7 auto;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px;
  font-size: 14px;
  max-width: 53vw;

}
.shop-search-btn{
  border: 0;
  background: var(--brand-primary, #7a0c2e);
  color: #fff;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.shop-search-btn:hover{ filter: brightness(1.08); }

.shop-action-item{
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
  color: rgba(15,23,42,.92);
  min-width: 84px;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.shop-action-item:hover{ background: #fff; text-decoration: none; transform: translateY(-1px); }
.shop-action-item.shop-action-icon{ min-width: 56px; }
.shop-header-actions{
  display: flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.shop-action-label{ font-weight: 700; font-size: 12px; line-height: 1.2; }
.shop-action-value{ color: rgba(15,23,42,.70); font-weight: 700; font-size: 12px; line-height: 1.2; }

.shop-cart-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-primary, #7a0c2e);
  color: #fff;
  border: 2px solid #fff;
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
}

.shop-actions-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  color: rgba(15,23,42,.8);
  cursor: pointer;
  flex: 0 0 auto;
}

/* Shop category navigation */
.shop-header-nav{
  border-top: 1px solid rgba(15,23,42,.06);
  background: #fff;
}
.shop-nav-inner{
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 var(--space-4);
}
.shop-nav{
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1 1 auto;
  padding: 6px 2px;
}
.shop-nav::-webkit-scrollbar{ display: none; }
.shop-nav-link{
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(15,23,42,.72);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.shop-nav-link:hover{
  background: rgba(122,12,46,.08);
  color: var(--brand-primary, #7a0c2e);
  text-decoration: none;
}
.shop-nav-link.active{
  background: var(--brand-primary, #7a0c2e);
  color: #fff;
  border-color: var(--brand-primary, #7a0c2e);
}
.shop-nav-scroll{
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  color: rgba(15,23,42,.7);
  cursor: pointer;
}
.shop-nav-scroll:hover{ background: rgba(15,23,42,.12); }

/* Auth + error helpers */
.auth-title{
  text-align: center;
  margin-bottom: var(--space-6);
}
.error-hero{
  text-align: center;
  padding: var(--space-8) 0;
}
.empty-state{
  text-align: center;
  padding: var(--space-7) 0;
}

/* Responsive */
@media (max-width: 980px){
  .sidebar{ width: 250px; }
  .footer-section{ grid-column: span 12; }
  .footer-section:last-child{ grid-column: span 12; }
}
@media (max-width: 840px){
  .section {
    padding: 80px 0;
  }
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
  }
  .footer-section {
    grid-column: span 12;
  }
  .footer-section:last-child {
    grid-column: span 12;
  }
}
@media (max-width: 780px){
  .top-bar .container{ display: none; }
  .nav-menu{ display: none; }
  .mobile-menu-toggle{ display: inline-flex; }
  .nav-bar .container{ justify-content: space-between; }
  .mobile-nav-open .nav-menu{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: var(--space-3) 0;
  }
  .mobile-nav-open .nav-menu .nav-link{
    padding: 12px 14px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .sidebar{
    width: 260px;
    transform: translateX(-100%);
    transition: transform .25s ease;

  }
  .sidebar.is-open{
    transform: translateX(0); 
  }
  
.sidebar.is-open .hero {
  display: none;
}

}


/* Shop responsive */
@media (min-width: 781px){
  .shop-nav-scroll{ display: inline-flex; }
}
@media (max-width: 780px){
  /* Mobile top row: search takes 80%, dropdown toggle takes 20%.
     No brand/logo on this row - the brand lives in the main site header
     above, exactly like other pages. */
  .shop-header-top-inner{
    flex-wrap: nowrap;
    gap: 2vw;
    padding: var(--space-2) var(--space-3);
    overflow: visible;
  }
  /* Search takes the remaining ~80vw; dropdown toggle is locked to 20vw.
     Search uses flex:1 so the 80/20 split never overflows the viewport. */

  .shop-search-form {
        flex: 1 1 70vw;
        max-width: 70vw;
    }
  .shop-search-btn{ padding: 8px 12px; 
        position: relative;}

      .shop-actions-toggle {
        display: inline-flex;
        flex: 0 0 12vw;
        max-width: 40vw;
        justify-content: center;
    }
  .shop-header-actions{
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    background: #fff;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15,23,42,.14);
    padding: var(--space-3);
    min-width: 180px;
    max-width: 260px;
    display: none;
    z-index: 1040;
  }
  .shop-header-actions.is-open{ display: flex; }
  .shop-action-item{
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    width: 100%;
  }
}

/* Print */
/* Breadcrumb */
.breadcrumb{ margin: var(--space-4) 0 var(--space-6); }
.breadcrumb-list{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; list-style:none; padding:0; margin:0; }
.breadcrumb-item{ display:flex; align-items:center; gap:6px; color: rgba(15,23,42,.72); font-size:14px; }
.breadcrumb-separator{ color: rgba(15,23,42,.38); }
.breadcrumb-item a{ color: rgba(15,23,42,.62); text-decoration:none; }
.breadcrumb-item a:hover{ color: var(--brand-primary, #800000); text-decoration:underline; }
.breadcrumb-item[aria-current="page"]{ color: rgba(15,23,42,.96); font-weight:600; }

/* Utilities (enterprise-friendly, minimal) */
.text-center{ text-align: center; }
.list-unstyled{ list-style: none; padding: 0; margin: 0; }
.stack{ display: flex; flex-direction: column; gap: var(--space-4); }
.stack-sm{ display: flex; flex-direction: column; gap: var(--space-3); }
.grid{
  display: grid;
  gap: var(--space-5);
}
.grid-responsive{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.mt-0{ margin-top: 0; }
.mb-0{ margin-bottom: 0; }
.visually-hidden{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.text-balance{ text-wrap: balance; }

/* Generic table wrapper */
.table-container{ margin-top: var(--space-6); }

/* Responsive table helper */
.table-responsive{ overflow-x: auto; }

/* Pagination */
.pagination-nav{
  margin-top: var(--space-4);
}
.pagination{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.page-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.75);
  color: rgba(15,23,42,.9);
  font-weight: 750;
  text-decoration: none;
}
.page-link:hover{
  background: rgba(255,255,255,.98);
  border-color: rgba(15,23,42,.18);
  text-decoration: none;
}
.page-link:focus-visible{
  outline: none;
  box-shadow: var(--focus-ring);
}
.page-link.active{
  background: rgba(122,12,46,.12);
  border-color: rgba(122,12,46,.30);
  color: rgba(122,12,46,.98);
}
.pagination-info{
  margin: var(--space-3) 0 0 0;
  color: rgba(15,23,42,.62);
  font-size: 13px;
}

/* Page header for public pages (About, Contact, Projects, Career, Blog) */
.page-header {
    text-align: center;
    padding: var(--space-8) 0 var(--space-6);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-7);
    background: var(--panel-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.page-header h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 950;
    color: rgba(15,23,42,.96);
    margin: 0 0 var(--space-2) 0;
    letter-spacing: -0.03em;
}
.page-header p {
    font-size: 18px;
    color: var(--muted);
    margin: 0;
    max-width: 60ch;
    margin: 0 auto;
}

/* Smaller section padding for internal pages */
.section-sm {
    padding: 60px 0;
}

/* Card action footer */
.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}

/* Form group wrapper */
.form-group {
    margin-bottom: var(--space-4);
}
.form-group label {
    color: var(--muted);
    font-weight: 650;
    display: block;
    margin-bottom: var(--space-2);
}

/* Bullet list with proper bullets */
.bullet-list {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0;
}
.bullet-list li {
    position: relative;
    padding-left: var(--space-5);
    margin-bottom: var(--space-2);
    color: var(--text);
}
.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-primary);
}

/* Trust badge (for shop homepage) */
.trust-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
}
.trust-badge {
    text-align: center;
    padding: var(--space-5);
    border-radius: var(--radius-md);
    background: rgba(122,12,46,.04);
    border: 1px solid rgba(122,12,46,.10);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2,6,23,.08);
    border-color: rgba(122,12,46,.22);
}
.trust-badge-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(122,12,46,.10);
    border: 1px solid rgba(122,12,46,.20);
    color: rgba(122,12,46,.98);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: var(--space-3);
}
.trust-badge h3 {
    font-size: 1rem;
    font-weight: 800;
    color: rgba(15,23,42,.92);
    margin: 0 0 var(--space-2) 0;
}
.trust-badge p {
    font-size: 14px;
    color: var(--muted-2);
    margin: 0;
}

/* Testimonial card */
.testimonial-card {
    background: rgba(122,12,46,.04);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--brand-primary);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: transform .15s ease, box-shadow .15s ease;
}
.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2,6,23,.08);
}
.testimonial-card .stars {
    color: #f59e0b;
    font-size: 18px;
    letter-spacing: 2px;
}
.testimonial-card blockquote {
    margin: 0;
    font-style: italic;
    color: var(--muted);
    line-height: 1.6;
}
.testimonial-card .author {
    font-weight: 700;
    color: rgba(15,23,42,.92);
}
.testimonial-card .product-ref {
    font-size: 13px;
    color: var(--muted-2);
}

/* Shop product card */
.shop-product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(2,6,23,.10);
}
.shop-product-card .product-image-wrap {
    position: relative;
    padding-top: 100%;
    background: #f8f9fa;
    overflow: hidden;
}
.shop-product-card .product-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-product-card .product-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.product-badge-sale {
    background: var(--danger);
    color: #fff;
}
.product-badge-bestseller {
    background: var(--brand-accent-orange, #f59e0b);
    color: #fff;
}
.product-badge-new {
    background: var(--success);
    color: #fff;
}
.product-badge-hot {
    background: var(--brand-accent-orange, #f59e0b);
    color: #fff;
}
.shop-product-card .product-body {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.shop-product-card .product-category {
    font-size: 12px;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: var(--space-2);
}
.shop-product-card .product-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(15,23,42,.92);
    line-height: 1.4;
    margin-bottom: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-product-card .product-price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}
.shop-product-card .price-current {
    font-size: 16px;
    font-weight: 850;
    color: var(--brand-primary);
}
.shop-product-card .price-original {
    font-size: 13px;
    color: var(--muted-2);
    text-decoration: line-through;
}
.shop-product-card .product-actions {
    margin-top: auto;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Ensure nav links have adequate touch targets */
.nav-menu .nav-link,
.sidebar .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Mobile sidebar backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.4);
    backdrop-filter: blur(2px);
    z-index: 45;
}
.sidebar-backdrop.is-open {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .card:hover {
        transform: none;
    }
    .feature-card:hover {
        transform: none;
    }
}

@media print{
  body{ background: #fff; color: #000; }
  .sidebar, .header, .shop-header, .footer{ display: none !important; }
}
table tr:nth-child(even) { background: #f9fafb; }
.table th, .table td{ border-color: rgba(0,0,0,.12); }
.table{ background: transparent; }
.card{ background: #fff; border-color: rgba(0,0,0,.1); box-shadow: none; }


.modal-content {
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  position: relative;
}

.modal-backdrop {
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
}



@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --panel: rgba(30,30,30,.85);
    --panel-2: rgba(40,40,40,.92);
    --border: rgba(255,255,255,.12);
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.65);
    --muted-2: rgba(255,255,255,.45);
    --shadow: 0 8px 24px rgba(0,0,0,.6);

    --success: #22c55e;
    --danger: #ef4444;
    --info: #3b82f6;
    --warning: #f59e0b;
  }

  body {
    background: var(--bg);
    color: var(--text);
  }

  .card {
    background: var(--panel);
    border-color: var(--border);
    box-shadow: var(--shadow);
  }

  .table {
    background: var(--panel-2);
  }

  .footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
  }

  .sidebar {
    background: var(--panel-2);
    border-right: 1px solid var(--border);
  }

  .header, .shop-header {
    background: rgba(30,30,30,.9);
    border-bottom: 1px solid var(--border);
  }

  .btn {
    background: rgba(255,255,255,.08);
    color: var(--text);
  }
  .btn-primary {
    background: linear-gradient(180deg, var(--brand-primary, #800000), #7a0000);
    color: #fff;
  }
}

/* Enterprise Landing Page Styles */

/* Enhanced Hero Section */
.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(122,12,46,0.92) 0%, rgba(95,8,35,0.88) 50%, rgba(15,23,42,0.85) 100%);
  z-index: 0;
}

.hero-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.02) 0%, transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.02) 0%, transparent 45%);
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-kicker:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.30);
  transform: translateY(-2px);
}

.kicker-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.kicker-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.30);
}

.hero-kicker span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
}

.title-accent {
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-trust-badges {
  display: flex;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.trust-badge i {
  font-size: 14px;
  color: rgba(255,255,255,0.95);
}

.hero-contact {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.contact-item i {
  font-size: 16px;
  color: rgba(255,255,255,0.95);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.16);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 16px;
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: maroon;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  color: maroon;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Section Badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(122,12,46,0.95);
  margin-bottom: 16px;
}

/* Page Hero */
.page-hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, rgba(122,12,46,0.08) 0%, rgba(95,8,35,0.05) 50%, rgba(15,23,42,0.03) 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 50%, rgba(122,12,46,0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 30%, rgba(122,12,46,0.02) 0%, transparent 40%);
  pointer-events: none;
}

.page-hero-content {
  max-width: 800px;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(122,12,46,0.95);
  margin-bottom: 20px;
}

.page-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  color: rgba(15,23,42,0.96);
  margin: 0 0 20px 0;
  line-height: 1.1;
}

.page-subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 60ch;
}

/* Section Alt */
.section-alt {
  background: rgba(122,12,46,0.02);
}

/* Enhanced Product Cards */
.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-sm) - 2px);
  margin-bottom: var(--space-4);
  min-height: 180px;
  background: linear-gradient(135deg, rgba(122,12,46,0.04), rgba(255,255,255,0.02));
}

.card-image-wrapper img.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-placeholder {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.08);
}

.image-placeholder i {
  font-size: 28px;
  color: rgba(15,23,42,0.25);
}

.image-placeholder span {
  font-size: 14px;
  line-height: 1.4;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-image-wrapper:hover .card-overlay {
  opacity: 1;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.product-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.price-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.price-value {
  font-size: 18px;
  font-weight: 850;
  color: var(--brand-primary);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2,6,23,0.10);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(122,12,46,0.1) 0%, rgba(15,23,42,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(122,12,46,0.4);
}

.project-status {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-status.active {
  color: var(--success);
}

.project-status.completed {
  color: var(--brand-primary);
}

.project-status.pending {
  color: var(--warning);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.project-content {
  padding: var(--space-5);
}

.project-meta {
  margin-bottom: 12px;
}

.project-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.project-content h3 {
  font-size: 18px;
  font-weight: 750;
  color: rgba(15,23,42,0.92);
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.project-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.project-link:hover {
  gap: 12px;
  text-decoration: none;
}

/* Features Grid */
.features-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-item {
  text-align: center;
  padding: var(--space-5);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(122,12,46,0.95);
  margin-bottom: var(--space-4);
}

.feature-item h3 {
  font-size: 18px;
  font-weight: 750;
  color: rgba(15,23,42,0.92);
  margin: 0 0 12px 0;
}

.feature-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Section CTA */
.section-cta {
  text-align: center;
  margin-top: var(--space-7);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  grid-column: 1/-1;
}

.empty-state i {
  font-size: 48px;
  color: var(--muted-2);
  margin-bottom: var(--space-4);
}

.empty-state p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

/* About Page Styles */
.about-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about-text {
  margin-bottom: var(--space-5);
}

.about-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-stat {
  text-align: center;
  padding: var(--space-4);
  background: rgba(122,12,46,0.05);
  border-radius: 12px;
  border: 1px solid rgba(122,12,46,0.10);
}

.about-stat .stat-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat .stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.image-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.image-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, rgba(122,12,46,0.1) 0%, rgba(15,23,42,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: rgba(122,12,46,0.3);
}

.image-caption {
  padding: var(--space-4);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-2);
  text-align: center;
  background: rgba(15,23,42,0.02);
}

/* Mission & Vision Grid */
.mission-vision-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr 1fr;
}

.mission-card,
.vision-card {
  padding: var(--space-6);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(122,12,46,0.95);
  margin-bottom: var(--space-4);
}

.mission-card h3,
.vision-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-3) 0;
}

.mission-card p,
.vision-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.mission-points,
.vision-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mission-points li,
.vision-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.mission-points li i,
.vision-points li i {
  color: var(--success);
  font-size: 14px;
}

/* Values Grid */
.values-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.value-item {
  padding: var(--space-5);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2,6,23,0.08);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(122,12,46,0.95);
  margin-bottom: var(--space-4);
}

.value-item h3 {
  font-size: 18px;
  font-weight: 750;
  color: rgba(15,23,42,0.92);
  margin: 0 0 12px 0;
}

.value-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Team Grid */
.team-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.team-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2,6,23,0.10);
}

.team-photo {
  height: 200px;
  background: linear-gradient(135deg, rgba(122,12,46,0.1) 0%, rgba(15,23,42,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder {
  font-size: 64px;
  color: rgba(122,12,46,0.3);
}

.team-info {
  padding: var(--space-5);
}

.team-info h3 {
  font-size: 18px;
  font-weight: 750;
  color: rgba(15,23,42,0.92);
  margin: 0 0 4px 0;
}

.team-role {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-primary);
  margin: 0 0 12px 0;
}

.team-bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(122,12,46,0.95) 0%, rgba(95,8,35,0.92) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  color: #fff;
}

.cta-content h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 var(--space-3) 0;
}

.cta-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin: 0 0 var(--space-5) 0;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn-primary {
  background: #fff;
  color: var(--brand-primary);
  border-color: #fff;
}

.cta-actions .btn-primary:hover {
  background: rgba(255,255,255,0.95);
}

.cta-actions .btn-outline {
  border-color: rgba(255,255,255,0.40);
  color: #fff;
}

.cta-actions .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.60);
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2,6,23,0.10);
}

.service-card.featured {
  border-color: rgba(122,12,46,0.30);
  background: linear-gradient(135deg, rgba(122,12,46,0.03) 0%, rgba(255,255,255,0.95) 100%);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(122,12,46,0.95);
  margin-bottom: var(--space-4);
}

.service-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.service-content h3 {
  font-size: 22px;
  font-weight: 800;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-3) 0;
}

.service-content > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4) 0;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}

.service-features li i {
  color: var(--success);
  font-size: 14px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.service-link:hover {
  gap: 12px;
  text-decoration: none;
}

/* Process Steps */
.process-steps {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.process-step {
  position: relative;
  padding: var(--space-5);
}

.step-number {
  font-size: 48px;
  font-weight: 900;
  color: rgba(122,12,46,0.15);
  line-height: 1;
  margin-bottom: var(--space-3);
  letter-spacing: -0.04em;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 750;
  color: rgba(15,23,42,0.92);
  margin: 0 0 12px 0;
}

.step-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Industries Grid */
.industries-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.industry-item {
  text-align: center;
  padding: var(--space-5);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.industry-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2,6,23,0.08);
}

.industry-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(122,12,46,0.95);
  margin-bottom: var(--space-4);
}

.industry-item h3 {
  font-size: 18px;
  font-weight: 750;
  color: rgba(15,23,42,0.92);
  margin: 0 0 12px 0;
}

.industry-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Projects Filter Bar */
.projects-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.filter-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(122,12,46,0.05);
  border-color: rgba(122,12,46,0.20);
  color: var(--brand-primary);
}

.filter-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.filter-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  padding: 10px 40px 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  width: 250px;
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: var(--focus-ring);
}

.filter-search i {
  position: absolute;
  right: 16px;
  color: var(--muted-2);
}

/* Project Stats Grid */
.project-stats-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-item {
  text-align: center;
  padding: var(--space-5);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-item .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(122,12,46,0.95);
  margin-bottom: var(--space-4);
}

.stat-item .stat-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.featured-post {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.featured-image {
  height: 400px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(122,12,46,0.1) 0%, rgba(15,23,42,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: rgba(122,12,46,0.3);
}

.featured-content {
  padding: var(--space-8);
}

.post-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.featured-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-4) 0;
  line-height: 1.2;
}

.featured-content h2 a {
  color: inherit;
  text-decoration: none;
}

.featured-content h2 a:hover {
  color: var(--brand-primary);
}

.post-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: 13px;
  color: var(--muted-2);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: var(--space-5);
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.post-link:hover {
  gap: 12px;
  text-decoration: none;
}

.blog-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2,6,23,0.10);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(122,12,46,0.1) 0%, rgba(15,23,42,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(122,12,46,0.3);
}

.blog-content {
  padding: var(--space-5);
}

.post-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-bottom: var(--space-3);
}

.blog-content h3 {
  font-size: 18px;
  font-weight: 750;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-3) 0;
}

.blog-content h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-content h3 a:hover {
  color: var(--brand-primary);
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.blog-link:hover {
  gap: 12px;
  text-decoration: none;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, rgba(122,12,46,0.95) 0%, rgba(95,8,35,0.92) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  color: #fff;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,0.95);
  margin-bottom: var(--space-5);
}

.newsletter-content h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 var(--space-3) 0;
}

.newsletter-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin: 0 0 var(--space-5) 0;
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 14px;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.6);
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.60);
  background: rgba(255,255,255,0.15);
}

.newsletter-form .btn-primary {
  background: #fff;
  color: var(--brand-primary);
  border-color: #fff;
}

/* Shop Hero */
.shop-hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.shop-hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(122,12,46,0.90) 0%, rgba(95,8,35,0.86) 50%, rgba(15,23,42,0.82) 100%);
  z-index: 0;
}

.shop-hero-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 45%, rgba(255,255,255,0.025) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,0.02) 0%, transparent 40%);
  pointer-events: none;
}

.shop-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.shop-trust-badges {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.trust-badge-item i {
  font-size: 14px;
  color: rgba(255,255,255,0.95);
}

/* Category Grid */
.category-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2,6,23,0.10);
  border-color: rgba(122,12,46,0.30);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(122,12,46,0.95);
  margin-bottom: var(--space-4);
}

.category-card h3 {
  font-size: 18px;
  font-weight: 750;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-3) 0;
}

.category-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
  transition: gap 0.2s ease;
}

.category-card:hover .category-link {
  gap: 12px;
}

/* Products Grid */
.products-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-author {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* Job Detail Layout */
.job-detail-layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr 350px;
}

.job-main-content {
  min-width: 0;
}

.job-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.job-section {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.job-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.job-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-4) 0;
}

.job-description,
.job-requirements,
.job-responsibilities {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.job-sidebar {
  min-width: 0;
}

.job-summary-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  position: sticky;
  top: var(--space-6);
}

.job-summary-card h3 {
  font-size: 18px;
  font-weight: 750;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-4) 0;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item i {
  font-size: 16px;
  color: var(--brand-primary);
}

.summary-item span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.job-apply-cta {
  margin-top: var(--space-5);
}

.job-share {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.job-share span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-bottom: var(--space-3);
}

.share-links {
  display: flex;
  gap: 12px;
}

.share-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(122,12,46,0.95);
  transition: all 0.2s ease;
}

.share-link:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.job-back-link {
  margin-top: var(--space-5);
}

.job-meta-hero {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.job-meta-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.job-meta-hero i {
  font-size: 14px;
}

/* LMS Layout */
.lms-layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 300px 1fr;
}

.lms-sidebar {
  min-width: 0;
}

.filter-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  position: sticky;
  top: var(--space-6);
}

.filter-card h3 {
  font-size: 18px;
  font-weight: 750;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-5) 0;
}

.filter-card .form-group label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-bottom: var(--space-2);
}

.filter-card .form-control {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
}

.filter-card .form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: var(--focus-ring);
}

.lms-main {
  min-width: 0;
}

.courses-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.course-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2,6,23,0.10);
}

.course-image {
  height: 180px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(122,12,46,0.1) 0%, rgba(15,23,42,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(122,12,46,0.3);
}

.course-content {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(122,12,46,0.95);
  margin-bottom: var(--space-3);
}

.course-content h3 {
  font-size: 16px;
  font-weight: 750;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-3) 0;
  line-height: 1.4;
}

.course-content h3 a {
  color: inherit;
  text-decoration: none;
}

.course-content h3 a:hover {
  color: var(--brand-primary);
}

.course-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  flex: 1;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.course-price {
  font-size: 18px;
  font-weight: 850;
  color: var(--brand-primary);
}

.course-enrollments {
  font-size: 13px;
  color: var(--muted-2);
}

/* Responsive Adjustments */
@media (max-width: 980px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-post {
    grid-template-columns: 1fr;
  }
  
  .featured-image {
    height: 250px;
  }
  
  .job-detail-layout {
    grid-template-columns: 1fr;
  }
  
  .job-summary-card {
    position: static;
  }
  
  .lms-layout {
    grid-template-columns: 1fr;
  }
  
  .filter-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
  }
  
  .hero-kicker,
  .hero-trust-badges,
  .hero-contact {
    justify-content: center;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .projects-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    overflow-x: auto;
    padding-bottom: var(--space-2);
  }
  
  .filter-search {
    width: 100%;
  }
  
  .search-input {
    width: 100%;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Support - Device Preference */
@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.1450 0 0);
    --foreground: oklch(0.9850 0 0);
    --card: oklch(0.1850 0 0);
    --card-foreground: oklch(0.9850 0 0);
    --popover: oklch(0.1850 0 0);
    --popover-foreground: oklch(0.9850 0 0);
    --primary: oklch(0.6489 0.2370 26.97);
    --primary-foreground: oklch(0.9850 0 0);
    --secondary: oklch(0.2550 0 0);
    --secondary-foreground: oklch(0.9850 0 0);
    --muted: oklch(0.2550 0 0);
    --muted-foreground: oklch(0.7080 0 0);
    --accent: oklch(0.2550 0 0);
    --accent-foreground: oklch(0.9850 0 0);
    --destructive: oklch(0.5770 0.2450 27.325);
    --destructive-foreground: oklch(0.9850 0 0);
    --border: oklch(0.2550 0 0);
    --input: oklch(0.2550 0 0);
    --ring: oklch(0.6489 0.2370 26.97);
    --panel: oklch(0.1850 0 0);
    --panel-2: oklch(0.2250 0 0);
    --text: oklch(0.9850 0 0);
  }

  /* Hero Background - Dark Mode */
  .hero-background {
    background: linear-gradient(135deg, rgba(122,12,46,0.88) 0%, rgba(95,8,35,0.84) 50%, rgba(5,10,20,0.92) 100%);
  }

  .hero-background::before {
    background-image: 
      radial-gradient(circle at 20% 50%, rgba(255,255,255,0.02) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.015) 0%, transparent 40%),
      radial-gradient(circle at 40% 80%, rgba(255,255,255,0.015) 0%, transparent 45%);
  }

  /* Page Hero - Dark Mode */
  .page-hero {
    background: linear-gradient(135deg, rgba(122,12,46,0.12) 0%, rgba(95,8,35,0.08) 50%, rgba(5,10,20,0.95) 100%);
    border-bottom-color: rgba(255,255,255,0.08);
  }

  .page-hero::before {
    background-image: 
      radial-gradient(circle at 25% 50%, rgba(122,12,46,0.04) 0%, transparent 50%),
      radial-gradient(circle at 75% 30%, rgba(122,12,46,0.03) 0%, transparent 40%);
  }

  /* Shop Hero - Dark Mode */
  .shop-hero-background {
    background: linear-gradient(135deg, rgba(122,12,46,0.86) 0%, rgba(95,8,35,0.82) 50%, rgba(5,10,20,0.90) 100%);
  }

  .shop-hero-background::before {
    background-image: 
      radial-gradient(circle at 15% 45%, rgba(255,255,255,0.02) 0%, transparent 45%),
      radial-gradient(circle at 85% 25%, rgba(255,255,255,0.015) 0%, transparent 40%);
  }

  /* Section Alt - Dark Mode */
  .section-alt {
    background: oklch(0.1650 0 0);
  }

  /* Cards - Dark Mode */
  .card,
  .feature-card,
  .service-card,
  .value-card,
  .team-card,
  .project-card,
  .blog-card,
  .category-card,
  .course-card,
  .job-card,
  .job-summary-card,
  .filter-card,
  .stat-item {
    background: oklch(0.1850 0 0);
    border-color: rgba(255,255,255,0.08);
  }

  /* Newsletter - Dark Mode */
  .newsletter-section {
    background: linear-gradient(135deg, rgba(122,12,46,0.90) 0%, rgba(95,8,35,0.88) 100%);
  }

  /* Trust Badges - Dark Mode */
  .trust-badge-item {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.90);
  }

  /* Filter Bar - Dark Mode */
  .projects-filter-bar {
    background: oklch(0.1850 0 0);
    border-color: rgba(255,255,255,0.08);
  }

  .filter-btn {
    background: oklch(0.2250 0 0);
    border-color: rgba(255,255,255,0.12);
    color: oklch(0.7080 0 0);
  }

  .filter-btn:hover {
    background: rgba(122,12,46,0.15);
    border-color: rgba(122,12,46,0.30);
    color: oklch(0.6489 0.2370 26.97);
  }

  .search-input {
    background: oklch(0.2250 0 0);
    border-color: rgba(255,255,255,0.12);
    color: oklch(0.9850 0 0);
  }

  /* Blog - Dark Mode */
  .featured-post {
    background: oklch(0.1850 0 0);
    border-color: rgba(255,255,255,0.08);
  }

  .featured-content h2 {
    color: oklch(0.9850 0 0);
  }

  .blog-content h3 {
    color: oklch(0.9850 0 0);
  }

  .category-card h3 {
    color: oklch(0.9850 0 0);
  }

  .course-content h3 {
    color: oklch(0.9850 0 0);
  }

  .job-summary-card h3 {
    color: oklch(0.9850 0 0);
  }

  .job-section h2 {
    color: oklch(0.9850 0 0);
  }

  .filter-card h3 {
    color: oklch(0.9850 0 0);
  }

  /* Form Controls - Dark Mode */
  .form-control {
    background: oklch(0.2250 0 0);
    border-color: rgba(255,255,255,0.12);
    color: oklch(0.9850 0 0);
  }

  .form-control::placeholder {
    color: oklch(0.5560 0 0);
  }
}

/* Careers Grid */
.careers-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.career-entry-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.career-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2,6,23,0.10);
  border-color: rgba(122,12,46,0.30);
}

.career-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(122,12,46,0.95);
  margin-bottom: var(--space-4);
}

.career-entry-card h3 {
  font-size: 20px;
  font-weight: 750;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-3) 0;
}

.career-entry-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 var(--space-4) 0;
  flex: 1;
}

.career-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.career-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
}

.career-meta i {
  font-size: 14px;
  color: var(--brand-primary);
}

.career-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
  transition: gap 0.2s ease;
}

.career-entry-card:hover .career-cta {
  gap: 12px;
}

/* Track Options */
.track-options {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.track-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.track-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2,6,23,0.10);
  border-color: rgba(122,12,46,0.30);
}

.track-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(122,12,46,0.95);
  margin-bottom: var(--space-4);
}

.track-card h3 {
  font-size: 18px;
  font-weight: 750;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-3) 0;
}

.track-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Responsive Adjustments for Careers */
@media (max-width: 768px) {
  .careers-grid {
    grid-template-columns: 1fr;
  }
  
  .track-options {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode for Careers */
@media (prefers-color-scheme: dark) {
  .career-entry-card {
    background: oklch(0.1850 0 0);
    border-color: rgba(255,255,255,0.08);
  }
  
  .career-entry-card h3 {
    color: oklch(0.9850 0 0);
  }
  
  .track-card {
    background: oklch(0.1850 0 0);
    border-color: rgba(255,255,255,0.08);
  }
  
  .track-card h3 {
    color: oklch(0.9850 0 0);
  }
}

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  background: linear-gradient(135deg, rgba(122,12,46,0.03) 0%, rgba(15,23,42,0.02) 100%);
}

.auth-container {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: 0 4px 24px rgba(2,6,23,0.08);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-7);
}

.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(122,12,46,0.15) 0%, rgba(122,12,46,0.08) 100%);
  border: 1px solid rgba(122,12,46,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(122,12,46,0.95);
  margin-bottom: var(--space-4);
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-2) 0;
  letter-spacing: -0.02em;
}

.auth-header p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.auth-form {
  margin-bottom: var(--space-6);
}

.auth-form .form-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr 1fr;
}

.auth-form .form-group {
  margin-bottom: var(--space-5);
}

.auth-form .form-group label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-bottom: var(--space-2);
  display: block;
}

.auth-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
}

.auth-form .form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: var(--focus-ring);
}

.auth-form .form-control::placeholder {
  color: var(--muted-2);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.forgot-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.auth-footer p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.auth-footer a {
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Auth Success */
.auth-success {
  text-align: center;
  margin-bottom: var(--space-7);
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,197,94,0.15) 0%, rgba(34,197,94,0.08) 100%);
  border: 1px solid rgba(34,197,94,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: rgba(34,197,94,0.95);
  margin-bottom: var(--space-5);
}

.auth-success h1 {
  font-size: 26px;
  font-weight: 800;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-3) 0;
  letter-spacing: -0.02em;
}

.auth-success p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Responsive Auth */
@media (max-width: 768px) {
  .auth-page {
    padding: var(--space-6) var(--space-4);
  }
  
  .auth-container {
    padding: var(--space-6);
  }
  
  .auth-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode for Auth */
@media (prefers-color-scheme: dark) {
  .auth-page {
    background: linear-gradient(135deg, rgba(122,12,46,0.05) 0%, rgba(5,10,20,0.95) 100%);
  }
  
  .auth-container {
    background: oklch(0.1850 0 0);
    border-color: rgba(255,255,255,0.08);
  }
  
  .auth-header h1 {
    color: oklch(0.9850 0 0);
  }
  
  .auth-form .form-control {
    background: oklch(0.2250 0 0);
    border-color: rgba(255,255,255,0.12);
    color: oklch(0.9850 0 0);
  }
  
  .auth-form .form-control::placeholder {
    color: oklch(0.5560 0 0);
  }
  
  .auth-footer {
    border-top-color: rgba(255,255,255,0.08);
  }
  
  .auth-success h1 {
    color: oklch(0.9850 0 0);
  }
}

/* ERP Dashboard */
.erp-dashboard {
  padding: var(--space-8);
}

.dashboard-header {
  margin-bottom: var(--space-8);
}

.header-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(122,12,46,0.95);
  margin-bottom: var(--space-4);
}

.dashboard-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-3) 0;
  letter-spacing: -0.02em;
}

.dashboard-header p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.dashboard-stats {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2,6,23,0.08);
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(122,12,46,0.95);
}

.stat-info h3 {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1;
  margin: 0 0 4px 0;
}

.stat-info p {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin: 0;
}

.quick-actions h2 {
  font-size: 22px;
  font-weight: 800;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-5) 0;
}

.actions-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-5);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2,6,23,0.10);
  border-color: rgba(122,12,46,0.30);
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(122,12,46,0.95);
  margin-bottom: var(--space-3);
}

.action-card span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(15,23,42,0.92);
}

/* Responsive ERP Dashboard */
@media (max-width: 768px) {
  .erp-dashboard {
    padding: var(--space-6);
  }
  
  .dashboard-header h1 {
    font-size: 26px;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .actions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Dark Mode for ERP Dashboard */
@media (prefers-color-scheme: dark) {
  .dashboard-header h1 {
    color: oklch(0.9850 0 0);
  }
  
  .stat-card {
    background: oklch(0.1850 0 0);
    border-color: rgba(255,255,255,0.08);
  }
  
  .stat-info h3 {
    color: oklch(0.6489 0.2370 26.97);
  }
  
  .quick-actions h2 {
    color: oklch(0.9850 0 0);
  }
  
  .action-card {
    background: oklch(0.1850 0 0);
    border-color: rgba(255,255,255,0.08);
  }
  
  .action-card span {
    color: oklch(0.9850 0 0);
  }
}

/* ERP Projects Page */
.erp-projects {
  padding: var(--space-8);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
}

.header-title {
  flex: 1;
}

.header-title .header-badge {
  margin-bottom: var(--space-3);
}

.header-title h1 {
  font-size: 32px;
  font-weight: 800;
  color: rgba(15,23,42,0.92);
  margin: 0 0 var(--space-2) 0;
  letter-spacing: -0.02em;
}

.header-title p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.plm-hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: rgba(122,12,46,0.05);
  border: 1px solid rgba(122,12,46,0.15);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  font-size: 14px;
  color: var(--muted-2);
}

.plm-hint i {
  color: rgba(122,12,46,0.95);
}

.table-container {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: var(--space-4);
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  color: rgba(15,23,42,0.92);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table .text-center {
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-planning {
  background: rgba(148,163,184,0.15);
  border: 1px solid rgba(148,163,184,0.30);
  color: rgba(148,163,184,0.95);
}

.badge-active {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.30);
  color: rgba(34,197,94,0.95);
}

.badge-completed {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.30);
  color: rgba(59,130,246,0.95);
}

.badge-high {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.30);
  color: rgba(239,68,68,0.95);
}

.badge-urgent {
  background: rgba(122,12,46,0.15);
  border: 1px solid rgba(122,12,46,0.30);
  color: rgba(122,12,46,0.95);
}

.badge-warning {
  background: rgba(251,191,36,0.15);
  border: 1px solid rgba(251,191,36,0.30);
  color: rgba(251,191,36,0.95);
}

.plm-name-link {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.plm-name-link:hover {
  color: rgba(122,12,46,0.80);
}

.no-invoice {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.progress-bar {
  width: 80px;
  height: 6px;
  background: rgba(148,163,184,0.20);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
}

.action-buttons {
  display: flex;
  gap: var(--space-2);
}

/* Responsive ERP Projects */
@media (max-width: 768px) {
  .erp-projects {
    padding: var(--space-6);
  }
  
  .page-header {
    flex-direction: column;
  }
  
  .header-title h1 {
    font-size: 26px;
  }
  
  .data-table {
    font-size: 14px;
  }
  
  .data-table th,
  .data-table td {
    padding: var(--space-3);
  }
  
  .action-buttons {
    flex-direction: column;
  }
}

/* Dark Mode for ERP Projects */
@media (prefers-color-scheme: dark) {
  .header-title h1 {
    color: oklch(0.9850 0 0);
  }
  
  .plm-hint {
    background: rgba(122,12,46,0.15);
    border-color: rgba(122,12,46,0.30);
  }
  
  .table-container {
    background: oklch(0.1850 0 0);
    border-color: rgba(255,255,255,0.08);
  }
  
  .data-table td {
    color: oklch(0.9850 0 0);
  }
  
  .plm-name-link {
    color: oklch(0.6489 0.2370 26.97);
  }
  
  .plm-name-link:hover {
    color: oklch(0.7489 0.2370 26.97);
  }
}

/* ERP Users Page */
.erp-users {
  padding: var(--space-8);
}

.badge-primary {
  background: rgba(122,12,46,0.15);
  border: 1px solid rgba(122,12,46,0.30);
  color: rgba(122,12,46,0.95);
}

.badge-secondary {
  background: rgba(148,163,184,0.15);
  border: 1px solid rgba(148,163,184,0.30);
  color: rgba(148,163,184,0.95);
}

.badge-inactive {
  background: rgba(148,163,184,0.15);
  border: 1px solid rgba(148,163,184,0.30);
  color: rgba(148,163,184,0.95);
}

/* Dark Mode for ERP Users */
@media (prefers-color-scheme: dark) {
  .badge-primary {
    background: rgba(122,12,46,0.25);
    border-color: rgba(122,12,46,0.40);
    color: oklch(0.6489 0.2370 26.97);
  }
}

/* ERP Tasks Page */
.erp-tasks {
  padding: var(--space-8);
}

.badge-todo {
  background: rgba(148,163,184,0.15);
  border: 1px solid rgba(148,163,184,0.30);
  color: rgba(148,163,184,0.95);
}

.badge-in_progress {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.30);
  color: rgba(59,130,246,0.95);
}

.parent-task {
  background: rgba(122,12,46,0.03);
}

.sub-task {
  background: var(--panel);
}

.sub-task td:first-child {
  padding-left: var(--space-8);
}

.sub-task td:first-child span {
  color: var(--muted-2);
  font-weight: 600;
}

/* Dark Mode for ERP Tasks */
@media (prefers-color-scheme: dark) {
  .parent-task {
    background: rgba(122,12,46,0.08);
  }
  
  .sub-task {
    background: oklch(0.1850 0 0);
  }
}

/* ============================================================
   LMS MODULE STYLES
   ============================================================ */

/* LMS Catalog */
.lms-catalog {
  min-height: 60vh;
}

/* LMS Hero */
.lms-hero {
  background: linear-gradient(135deg, rgba(122,12,46,0.92) 0%, rgba(95,8,35,0.88) 50%, rgba(15,23,42,0.85) 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.lms-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
  pointer-events: none;
}

.lms-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.lms-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.lms-hero-badge i {
  font-size: 16px;
}

.lms-hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 20px 0;
  color: #fff;
}

.lms-hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 60ch;
}

.lms-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* LMS Stats Strip */
.lms-stats-strip {
  padding: 40px 0;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}

.lms-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.lms-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lms-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  color: rgba(122,12,46,0.98);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.lms-stat-content {
  display: flex;
  flex-direction: column;
}

.lms-stat-number {
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: rgba(15,23,42,0.96);
  line-height: 1.1;
}

.lms-stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* LMS Catalog Section */
.lms-catalog-section {
  padding: 80px 0;
}

.lms-catalog-header {
  margin-bottom: 40px;
}

.lms-section-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(122,12,46,0.95);
  margin-bottom: 16px;
}

.lms-section-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  color: rgba(15,23,42,0.96);
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.lms-section-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

/* LMS Layout (sidebar + main) */
.lms-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.lms-sidebar {
  position: sticky;
  top: 100px;
}

.lms-filter-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.lms-filter-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(15,23,42,0.92);
}

.lms-filter-card .form-group {
  margin-bottom: 16px;
}

.lms-filter-card label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 6px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 14px;
}

.search-input-wrap input {
  padding-left: 36px;
}

/* LMS Course Grid */
.lms-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.lms-course-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.lms-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2,6,23,0.10);
}

.lms-course-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.lms-course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lms-course-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(122,12,46,0.15), rgba(95,8,35,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(122,12,46,0.5);
}

.lms-course-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lms-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.lms-badge-category {
  background: rgba(122,12,46,0.90);
  color: #fff;
}

.lms-badge-level {
  background: rgba(255,255,255,0.90);
  color: rgba(15,23,42,0.85);
}

.lms-badge-preview {
  background: rgba(34,197,94,0.15);
  color: #16a34a;
  border: 1px solid rgba(34,197,94,0.30);
}

.lms-course-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lms-course-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.lms-course-title a {
  color: rgba(15,23,42,0.92);
  text-decoration: none;
}

.lms-course-title a:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

.lms-course-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex: 1;
}

.lms-course-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.lms-course-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lms-course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.lms-course-price {
  display: flex;
  align-items: center;
}

.price-amount {
  font-size: 18px;
  font-weight: 900;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}

.price-free {
  font-size: 16px;
  font-weight: 800;
  color: #16a34a;
}

/* LMS Benefits */
.lms-benefits {
  padding: 80px 0;
  background: rgba(122,12,46,0.02);
  border-top: 1px solid var(--border);
}

.lms-benefits-header {
  text-align: center;
  margin-bottom: 48px;
}

.lms-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.lms-benefit-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lms-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(2,6,23,0.08);
}

.lms-benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  color: rgba(122,12,46,0.98);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.lms-benefit-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: rgba(15,23,42,0.92);
}

.lms-benefit-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* LMS Dashboard */
.lms-dashboard {
  padding: 40px 0;
}

.lms-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.lms-dashboard-title {
  font-size: 28px;
  font-weight: 950;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(15,23,42,0.96);
}

.lms-dashboard-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.lms-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.lms-stat-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.lms-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.lms-stat-icon.enrolled { background: rgba(59,130,246,0.10); color: #3b82f6; border: 1px solid rgba(59,130,246,0.20); }
.lms-stat-icon.in-progress { background: rgba(245,158,11,0.10); color: #f59e0b; border: 1px solid rgba(245,158,11,0.20); }
.lms-stat-icon.completed { background: rgba(34,197,94,0.10); color: #22c55e; border: 1px solid rgba(34,197,94,0.20); }
.lms-stat-icon.certificates { background: rgba(122,12,46,0.10); color: rgba(122,12,46,0.98); border: 1px solid rgba(122,12,46,0.20); }

.lms-stat-content {
  display: flex;
  flex-direction: column;
}

.lms-stat-number {
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: rgba(15,23,42,0.96);
  line-height: 1.1;
}

.lms-stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* LMS Dashboard Content */
.lms-dashboard-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.lms-content-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.lms-content-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
}

.lms-content-header h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(15,23,42,0.92);
}

.lms-content-body {
  padding: 24px;
}

/* LMS Enrollment List */
.lms-enrollment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lms-enrollment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.50);
  transition: background 0.15s ease;
}

.lms-enrollment-item:hover {
  background: rgba(255,255,255,0.80);
}

.lms-enrollment-info {
  flex: 1;
  min-width: 0;
}

.lms-enrollment-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: rgba(15,23,42,0.92);
}

.lms-progress-bar {
  height: 8px;
  background: rgba(15,23,42,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.lms-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.lms-progress-text {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* LMS Recommendations */
.lms-dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lms-recommendation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lms-recommendation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.50);
  text-decoration: none;
  transition: background 0.15s ease;
}

.lms-recommendation-item:hover {
  background: rgba(255,255,255,0.80);
  text-decoration: none;
}

.lms-recommendation-content {
  flex: 1;
  min-width: 0;
}

.lms-recommendation-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(15,23,42,0.92);
  margin-bottom: 2px;
}

.lms-recommendation-reason {
  font-size: 12px;
  color: var(--muted);
}

.lms-recommendation-item i {
  color: var(--muted-2);
  font-size: 12px;
}

.lms-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lms-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel-2);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lms-quick-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2,6,23,0.08);
  text-decoration: none;
}

.lms-quick-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  color: rgba(122,12,46,0.98);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.lms-quick-link span {
  font-size: 13px;
  font-weight: 700;
  color: rgba(15,23,42,0.92);
}

/* LMS Empty State */
.lms-empty-state {
  text-align: center;
  padding: 80px 20px;
}

.lms-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(122,12,46,0.08);
  border: 1px solid rgba(122,12,46,0.15);
  color: rgba(122,12,46,0.60);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 20px;
}

.lms-empty-state h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: rgba(15,23,42,0.92);
}

.lms-empty-state p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 24px 0;
}

.lms-empty-state-sm {
  text-align: center;
  padding: 48px 20px;
}

.lms-empty-state-sm i {
  font-size: 40px;
  color: var(--muted-2);
  margin-bottom: 12px;
  display: block;
}

.lms-empty-state-sm p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.lms-text-muted {
  color: var(--muted);
  font-size: 14px;
}

/* LMS My Courses */
.lms-my-courses {
  padding: 40px 0;
}

.lms-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.lms-page-title {
  font-size: 28px;
  font-weight: 950;
  margin: 0 0 6px 0;
  color: rgba(15,23,42,0.96);
  letter-spacing: -0.03em;
}

.lms-page-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.lms-my-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.lms-my-course-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.lms-my-course-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
}

.lms-my-course-status {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
}

.status-enrolled { background: rgba(59,130,246,0.10); color: #3b82f6; }
.status-in_progress { background: rgba(245,158,11,0.10); color: #f59e0b; }
.status-completed { background: rgba(34,197,94,0.10); color: #22c55e; }
.status-dropped { background: rgba(239,68,68,0.10); color: #ef4444; }

.lms-my-course-progress {
  font-size: 14px;
  font-weight: 800;
  color: rgba(15,23,42,0.85);
}

.lms-my-course-body {
  padding: 20px;
}

.lms-my-course-body h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 14px 0;
  color: rgba(15,23,42,0.92);
}

.lms-my-course-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.50);
}

/* LMS Lesson Viewer */
.lms-lesson-viewer {
  min-height: 60vh;
}

.lms-lesson-header {
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.lms-lesson-header-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lms-lesson-breadcrumb a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lms-lesson-breadcrumb a:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

.lms-lesson-title {
  font-size: 24px;
  font-weight: 950;
  margin: 0;
  color: rgba(15,23,42,0.96);
  letter-spacing: -0.02em;
}

.lms-lesson-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lms-lesson-progress .lms-progress-bar {
  flex: 1;
  max-width: 300px;
}

.lms-progress-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.lms-lesson-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 24px 0;
  align-items: start;
}

.lms-sidebar-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: 100px;
}

.lms-sidebar-title {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: rgba(15,23,42,0.92);
}

.lms-lessons-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lms-lessons-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(15,23,42,0.78);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.lms-lessons-nav li a:hover {
  background: rgba(15,23,42,0.04);
  text-decoration: none;
}

.lms-lessons-nav li.lms-lesson-active a {
  background: rgba(122,12,46,0.12);
  color: rgba(122,12,46,0.98);
  font-weight: 700;
}

.lms-lesson-nav-number {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.lms-lessons-nav li.lms-lesson-active .lms-lesson-nav-number {
  background: rgba(122,12,46,0.15);
  border-color: rgba(122,12,46,0.30);
}

.lms-lesson-nav-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lesson Content */
.lms-lesson-content-header {
  padding: 24px 24px 0;
}

.lms-lesson-content-header h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: rgba(15,23,42,0.96);
}

.lms-lesson-content-body {
  padding: 24px;
}

.lms-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  margin-bottom: 24px;
}

.lms-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

.lms-lesson-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(15,23,42,0.88);
}

.lms-lesson-text img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.lms-lesson-text h2,
.lms-lesson-text h3,
.lms-lesson-text h4 {
  margin: 24px 0 12px 0;
  color: rgba(15,23,42,0.96);
}

.lms-lesson-text p {
  margin: 0 0 16px 0;
}

.lms-lesson-text ul,
.lms-lesson-text ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.lms-lesson-text li {
  margin-bottom: 8px;
}

.lms-lesson-text code {
  background: rgba(15,23,42,0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.lms-lesson-text pre {
  background: rgba(15,23,42,0.06);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 16px 0;
}

.lms-lesson-text pre code {
  background: none;
  padding: 0;
}

/* Lesson Navigation */
.lms-lesson-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 24px 24px;
}

/* LMS Course Detail (public) */
.lms-course-detail {
  padding: 40px 0;
}

.lms-breadcrumb {
  margin-bottom: 32px;
}

.lms-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.lms-breadcrumb-list a {
  color: var(--muted);
  text-decoration: none;
}

.lms-breadcrumb-list a:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

.lms-breadcrumb-active {
  color: rgba(15,23,42,0.85);
  font-weight: 600;
}

.lms-course-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.lms-course-main {
  min-width: 0;
}

.lms-course-header {
  margin-bottom: 32px;
}

.lms-course-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.lms-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.lms-course-title {
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -0.03em;
  margin: 0 0 16px 0;
  color: rgba(15,23,42,0.96);
  line-height: 1.2;
}

.lms-course-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Course Card (sidebar) */
.lms-course-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35);
  position: sticky;
  top: 100px;
}

.lms-course-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.lms-course-image-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(122,12,46,0.15), rgba(95,8,35,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: rgba(122,12,46,0.4);
}

.lms-course-card-body {
  padding: 24px;
}

.lms-course-price-block {
  margin-bottom: 20px;
}

.lms-price {
  font-size: 32px;
  font-weight: 950;
  color: rgba(15,23,42,0.96);
  letter-spacing: -0.03em;
}

.lms-price-free {
  font-size: 28px;
  font-weight: 900;
  color: #16a34a;
}

.lms-course-card .btn {
  margin-bottom: 20px;
}

.lms-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lms-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.lms-features-list li i {
  color: #22c55e;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

/* LMS Lessons List */
.lms-lessons-list {
  display: flex;
  flex-direction: column;
}

.lms-lesson-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.50);
  transition: background 0.15s ease;
}

.lms-lesson-item:hover {
  background: rgba(255,255,255,0.80);
}

.lms-lesson-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  color: rgba(122,12,46,0.98);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.lms-lesson-info {
  flex: 1;
  min-width: 0;
}

.lms-lesson-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(15,23,42,0.92);
  margin-bottom: 4px;
}

.lms-lesson-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .lms-layout {
    grid-template-columns: 1fr;
  }

  .lms-sidebar {
    position: static;
  }

  .lms-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lms-dashboard-content {
    grid-template-columns: 1fr;
  }

  .lms-courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .lms-course-layout {
    grid-template-columns: 1fr;
  }

  .lms-course-card {
    position: static;
  }

  .lms-lesson-container {
    grid-template-columns: 1fr;
  }

  .lms-sidebar-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .lms-hero {
    padding: 64px 0;
  }

  .lms-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .lms-catalog-section,
  .lms-benefits {
    padding: 48px 0;
  }

  .lms-dashboard-header {
    flex-direction: column;
  }

  .lms-page-header {
    flex-direction: column;
  }

  .lms-stat-card {
    padding: 16px;
  }

  .lms-stat-number {
    font-size: 22px;
  }

  .lms-my-courses-grid {
    grid-template-columns: 1fr;
  }

  .lms-lesson-navigation {
    flex-direction: column;
  }

  .lms-lesson-navigation .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .lms-stats-grid {
    grid-template-columns: 1fr;
  }

  .lms-course-meta {
    flex-direction: column;
    gap: 8px;
  }

  .lms-quick-links {
    grid-template-columns: 1fr;
  }
}

/* LMS Learning Tools */
.flashcard-container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 24px;
  height: 320px;
  cursor: pointer;
}

.flashcard {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  border-radius: 16px;
}

.flashcard.is-flipped {
  transform: rotateY(180deg);
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.4s;
  transform-style: preserve-3d;
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  font-size: 1.15rem;
  line-height: 1.6;
}

.flashcard-front {
  background: #fff;
  color: rgba(15,23,42,.92);
}

.flashcard-back {
  background: linear-gradient(135deg, var(--brand-primary, #800000), #5a0000);
  color: #fff;
  transform: rotateY(180deg);
}

.flashcard-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.note-editor-wrap {
  max-width: 900px;
  margin: 0 auto;
}

#note-content {
  min-height: 320px;
  font-family: inherit;
  line-height: 1.7;
}

#save-status {
  font-size: 13px;
  color: rgba(15,23,42,.6);
}

.lms-inline-form .form-group {
  margin-bottom: 0;
}

.lms-inline-form .form-control {
  margin-bottom: 0;
}

.ai-generate-wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* Certificates */
.certificate-page {
  padding: 32px 0;
}

.certificate-container {
  max-width: 900px;
  margin: 0 auto;
}

.certificate-border {
  border: 12px double var(--brand-primary, #800000);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}

.certificate-inner {
  border: 2px solid var(--brand-primary, #800000);
  border-radius: 4px;
  padding: 48px;
  text-align: center;
  position: relative;
}

.certificate-header {
  margin-bottom: 32px;
}

.certificate-logo {
  margin-bottom: 16px;
}

.certificate-title {
  font-family: 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-primary, #800000);
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.certificate-subtitle {
  font-size: 1.1rem;
  color: rgba(15,23,42,.72);
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.certificate-body {
  margin: 40px 0;
}

.certificate-presented {
  font-size: 1.1rem;
  color: rgba(15,23,42,.72);
  margin-bottom: 16px;
  font-style: italic;
}

.certificate-name {
  font-family: 'Times New Roman', serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(15,23,42,.96);
  margin: 0 0 16px;
  border-bottom: 2px solid var(--brand-primary, #800000);
  display: inline-block;
  padding-bottom: 8px;
  min-width: 300px;
}

.certificate-achievement {
  font-size: 1.1rem;
  color: rgba(15,23,42,.72);
  margin-bottom: 16px;
}

.certificate-course {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary, #800000);
  margin: 0 0 32px;
}

.certificate-meta {
  display: inline-flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.certificate-meta-item {
  text-align: center;
}

.certificate-meta-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(15,23,42,.6);
  margin-bottom: 4px;
  font-weight: 700;
}

.certificate-meta-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(15,23,42,.92);
}

.certificate-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(15,23,42,.12);
}

.certificate-signature {
  text-align: center;
}

.signature-line {
  width: 200px;
  border-bottom: 2px solid rgba(15,23,42,.32);
  margin-bottom: 8px;
}

.certificate-signature span {
  font-size: 0.85rem;
  color: rgba(15,23,42,.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.certificate-seal {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--brand-primary, #800000);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.9;
}

.certificate-verification {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px dashed rgba(15,23,42,.2);
}

.certificate-verify-text {
  font-size: 0.8rem;
  color: rgba(15,23,42,.6);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.certificate-verify-url {
  font-size: 0.85rem;
  color: var(--brand-primary, #800000);
  word-break: break-all;
  margin: 4px 0 0;
}

.certificate-verify-icon {
  margin-bottom: 16px;
}

/* Print styles for certificate */
@media print {
  body {
    background: #fff;
  }
  .certificate-page {
    padding: 0;
  }
  .certificate-actions,
  .sidebar,
  .header,
  .footer,
  .breadcrumb,
  .main > .container > *:not(#certificate) {
    display: none !important;
  }
  .certificate-container {
    max-width: 100%;
    margin: 0;
  }
  .certificate-border {
    border: 8px double var(--brand-primary, #800000);
  }
  .certificate-inner {
    padding: 32px;
  }
}

/* Assessments */
.assessment-question {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.assessment-question p {
  margin-bottom: 10px;
}

.assessment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,.08);
  transition: all 0.2s;
}

  .assessment-option:hover {
  border-color: var(--brand-primary, #800000);
  background: rgba(127,29,102,.02);
}

.assessment-option input[type="radio"],
.assessment-option input[type="checkbox"] {
  accent-color: var(--brand-primary, #800000);
}

.lms-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

#assessment-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: rgba(15,23,42,.92);
}

.assessment-result-item {
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid;
}

.assessment-result-correct {
  border-color: #22c55e;
  background: #f0fdf4;
}

.assessment-result-wrong {
  border-color: #ef4444;
  background: #fef2f2;
}

/* Page Builder Sections */
.page-builder-section {
  position: relative;
}

.page-builder-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-builder-section .section-header .section-title {
  margin-bottom: 12px;
}

.page-builder-section .section-header .section-subtitle {
  max-width: 70ch;
  margin: 0 auto;
}

/* Hero section full-width fix */
.hero-section {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hero-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Stats cards */
.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.95);
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* CTA section */
.page-builder-section .section-title {
  margin-bottom: 16px;
}

/* Process steps */
.process-step {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  min-width: 48px;
  font-weight: 800;
  color: var(--brand-primary, #800000);
  font-size: 1.5rem;
  line-height: 1;
}

.step-content h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.step-content p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mission Vision cards */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.mission-card, .vision-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--brand-primary, #800000);
}

.mission-card h3, .vision-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.mission-card p, .vision-card p {
  margin: 0 0 16px;
  color: #666;
  line-height: 1.6;
}

.mission-points, .vision-points {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.mission-points li, .vision-points li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mission-points li i, .vision-points li i {
  color: var(--brand-primary, #800000);
}

/* Team cards */
.team-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.team-photo {
  height: 180px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder {
  font-size: 3rem;
  color: #999;
}

.team-info {
  padding: 20px;
}

.team-info h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.team-role {
  margin: 0 0 8px;
  color: var(--brand-primary, #800000);
  font-size: 0.9rem;
  font-weight: 600;
}

.team-bio {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Benefits cards */
.benefits-grid, .lms-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.benefit-item, .lms-benefit-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.benefit-icon, .lms-benefit-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--brand-primary, #800000);
}

.benefit-item h3, .lms-benefit-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.benefit-item p, .lms-benefit-card p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Shop trust badges */
.shop-trust .trust-badge {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.shop-trust .trust-badge-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--brand-primary, #800000);
}

.shop-trust .trust-badge h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.shop-trust .trust-badge p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Project stats */
.project-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.project-stats .stat-item {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.project-stats .stat-item .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--brand-primary, #800000);
}

.project-stats .stat-item .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-primary, #800000);
}

.project-stats .stat-item .stat-label {
  color: #666;
  font-size: 0.95rem;
  margin-top: 6px;
}

/* Careers benefits */
.careers-benefits .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Industries grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.industry-item {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.industry-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--brand-primary, #800000);
}

.industry-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.industry-item p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Section CTA */
.section-cta {
  text-align: center;
  margin-top: 40px;
}

.section-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Stats section in page builder */
.page-builder-section .stats-grid,
.page-builder-section .project-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.page-builder-section .stat-item {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.page-builder-section .stat-item .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--brand-primary, #800000);
}

.page-builder-section .stat-item .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-primary, #800000);
}

.page-builder-section .stat-item .stat-label {
  color: #666;
  font-size: 0.95rem;
  margin-top: 6px;
}

/* Stats grid */
.page-builder-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.page-builder-section .stats-grid .stat-card {
  background: white;
  border-radius: 12px;
  padding: 28px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-builder-section .stats-grid .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.page-builder-section .stats-grid .stat-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: var(--brand-primary, #800000);
}

.page-builder-section .stats-grid .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-primary, #800000);
  line-height: 1.2;
}

.page-builder-section .stats-grid .stat-label {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Features grid */
.page-builder-section .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.page-builder-section .feature-card {
  background: white;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-builder-section .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.page-builder-section .feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(122,12,46,0.10);
  border: 1px solid rgba(122,12,46,0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(122,12,46,0.95);
  margin-bottom: 16px;
}

.page-builder-section .feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.page-builder-section .feature-card p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA section */
.page-builder-section .cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-builder-section .cta-section .section-header {
  margin-bottom: 32px;
}

.page-builder-section .cta-section .section-title {
  margin-bottom: 16px;
}

.page-builder-section .cta-section .section-subtitle {
  max-width: 70ch;
  margin: 0 auto;
  opacity: 0.9;
}

.page-builder-section .cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-builder-section .cta-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Top bar links */
.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.top-bar-link:hover {
  opacity: 1;
  text-decoration: none;
}

.top-bar-link i {
  font-size: 12px;
  opacity: 0.8;
}

.social-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  color: white;
}

/* Section badges */
.page-builder-section .section-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(122,12,46,0.08);
  color: var(--brand-primary, #800000);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-builder-section .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .page-builder-section .features-grid {
    grid-template-columns: 1fr;
  }
  
  .page-builder-section .products-grid {
    grid-template-columns: 1fr;
  }
  
  .page-builder-section .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .page-builder-section .cta-section {
    padding: 60px 20px;
  }
  
  .page-builder-section .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== Modern UI Enhancements ===== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Card hover animations */
.page-builder-section .feature-card,
.page-builder-section .product-card,
.page-builder-section .project-card,
.page-builder-section .value-item,
.page-builder-section .industry-item,
.page-builder-section .benefit-item,
.page-builder-section .lms-benefit-card,
.page-builder-section .trust-badge,
.page-builder-section .stat-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section .feature-card:hover,
.page-builder-section .product-card:hover,
.page-builder-section .project-card:hover,
.page-builder-section .value-item:hover,
.page-builder-section .industry-item:hover,
.page-builder-section .benefit-item:hover,
.page-builder-section .lms-benefit-card:hover,
.page-builder-section .trust-badge:hover,
.page-builder-section .stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Section backgrounds */
.page-builder-section .features-grid,
.page-builder-section .values-grid,
.page-builder-section .team-grid,
.page-builder-section .benefits-grid,
.page-builder-section .lms-benefits-grid,
.page-builder-section .trust-badge-grid {
  position: relative;
}

/* Badge styling */
.page-builder-section .section-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(122,12,46,0.1), rgba(122,12,46,0.05));
  color: var(--brand-primary, #800000);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  border: 1px solid rgba(122,12,46,0.15);
}

/* Section headers with gradient underline */
.page-builder-section .section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.page-builder-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary, #800000), #ff6200);
  border-radius: 2px;
}

/* Stats card improvements */
.page-builder-section .stats-grid .stat-card {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  border: 1px solid rgba(122,12,46,0.08);
}

.page-builder-section .stats-grid .stat-card:hover {
  border-color: rgba(122,12,46,0.2);
}

/* Feature icon glow */
.page-builder-section .feature-icon {
  position: relative;
}

.page-builder-section .feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* Product card image zoom */
.page-builder-section .product-card .card-image-wrapper {
  overflow: hidden;
}

.page-builder-section .product-card .card-image-wrapper img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section .product-card:hover .card-image-wrapper img {
  transform: scale(1.08);
}

/* Project card image zoom */
.page-builder-section .project-card .project-image {
  overflow: hidden;
}

.page-builder-section .project-card .project-image img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section .project-card:hover .project-image img {
  transform: scale(1.08);
}

/* CTA section pulse */
.page-builder-section .cta-section .btn {
  position: relative;
  overflow: hidden;
}

.page-builder-section .cta-section .btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.page-builder-section .cta-section .btn:active::after {
  width: 300px;
  height: 300px;
}

/* Scroll animations */
.page-builder-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animations */
.page-builder-section .feature-card,
.page-builder-section .product-card,
.page-builder-section .project-card,
.page-builder-section .value-item,
.page-builder-section .industry-item,
.page-builder-section .benefit-item,
.page-builder-section .stat-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section.is-visible .feature-card,
.page-builder-section.is-visible .product-card,
.page-builder-section.is-visible .project-card,
.page-builder-section.is-visible .value-item,
.page-builder-section.is-visible .industry-item,
.page-builder-section.is-visible .benefit-item,
.page-builder-section.is-visible .stat-card {
  opacity: 1;
  transform: translateY(0);
}

.page-builder-section.is-visible .feature-card:nth-child(1),
.page-builder-section.is-visible .product-card:nth-child(1),
.page-builder-section.is-visible .project-card:nth-child(1),
.page-builder-section.is-visible .value-item:nth-child(1),
.page-builder-section.is-visible .industry-item:nth-child(1),
.page-builder-section.is-visible .benefit-item:nth-child(1),
.page-builder-section.is-visible .stat-card:nth-child(1) { transition-delay: 0.05s; }

.page-builder-section.is-visible .feature-card:nth-child(2),
.page-builder-section.is-visible .product-card:nth-child(2),
.page-builder-section.is-visible .project-card:nth-child(2),
.page-builder-section.is-visible .value-item:nth-child(2),
.page-builder-section.is-visible .industry-item:nth-child(2),
.page-builder-section.is-visible .benefit-item:nth-child(2),
.page-builder-section.is-visible .stat-card:nth-child(2) { transition-delay: 0.1s; }

.page-builder-section.is-visible .feature-card:nth-child(3),
.page-builder-section.is-visible .product-card:nth-child(3),
.page-builder-section.is-visible .project-card:nth-child(3),
.page-builder-section.is-visible .value-item:nth-child(3),
.page-builder-section.is-visible .industry-item:nth-child(3),
.page-builder-section.is-visible .benefit-item:nth-child(3),
.page-builder-section.is-visible .stat-card:nth-child(3) { transition-delay: 0.15s; }

.page-builder-section.is-visible .feature-card:nth-child(4),
.page-builder-section.is-visible .product-card:nth-child(4),
.page-builder-section.is-visible .project-card:nth-child(4),
.page-builder-section.is-visible .value-item:nth-child(4),
.page-builder-section.is-visible .industry-item:nth-child(4),
.page-builder-section.is-visible .benefit-item:nth-child(4),
.page-builder-section.is-visible .stat-card:nth-child(4) { transition-delay: 0.2s; }

.page-builder-section.is-visible .feature-card:nth-child(5),
.page-builder-section.is-visible .product-card:nth-child(5),
.page-builder-section.is-visible .project-card:nth-child(5),
.page-builder-section.is-visible .value-item:nth-child(5),
.page-builder-section.is-visible .industry-item:nth-child(5),
.page-builder-section.is-visible .benefit-item:nth-child(5),
.page-builder-section.is-visible .stat-card:nth-child(5) { transition-delay: 0.25s; }

.page-builder-section.is-visible .feature-card:nth-child(6),
.page-builder-section.is-visible .product-card:nth-child(6),
.page-builder-section.is-visible .project-card:nth-child(6),
.page-builder-section.is-visible .value-item:nth-child(6),
.page-builder-section.is-visible .industry-item:nth-child(6),
.page-builder-section.is-visible .benefit-item:nth-child(6),
.page-builder-section.is-visible .stat-card:nth-child(6) { transition-delay: 0.3s; }

/* Hero section improvements */
.hero-section .hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-section .hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding-inline: 5vw;
}

.hero-section .hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section .hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-section .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: white;
}

.hero-section .btn-outline-light:hover {
  background: white;
  color: var(--brand-primary, #800000);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Stats improvements */
.page-builder-section .stats-grid .stat-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--brand-primary, #800000);
  opacity: 0.9;
}

.page-builder-section .stats-grid .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-primary, #800000);
  line-height: 1.2;
  margin-bottom: 8px;
}

.page-builder-section .stats-grid .stat-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Trust badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.trust-badge i {
  font-size: 16px;
  opacity: 0.9;
}

/* Section CTA button hover */
.page-builder-section .section-cta .btn {
  transition: all 0.3s ease;
}

.page-builder-section .section-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(159, 0, 0, 0.3);
}

/* Pricing style for products */
.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary, #800000);
  margin-bottom: 16px;
}

.price-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  display: block;
  margin-bottom: 4px;
}

/* Button improvements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary, #800000), #7A0C2E);
  color: white;
  box-shadow: 0 4px 12px rgba(159, 0, 0, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(159, 0, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary, #800000);
  border: 2px solid var(--brand-primary, #800000);
}

.btn-outline:hover {
  background: var(--brand-primary, #800000);
  color: white;
}

/* Loading animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-builder-section.is-visible .feature-card,
.page-builder-section.is-visible .product-card,
.page-builder-section.is-visible .project-card,
.page-builder-section.is-visible .value-item,
.page-builder-section.is-visible .industry-item,
.page-builder-section.is-visible .benefit-item,
.page-builder-section.is-visible .stat-card {
  animation: fadeInUp 0.6s ease forwards;
}

/* Smooth image loading */
.page-builder-section img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-builder-section img.loaded {
  opacity: 1;
}

/* Focus states for accessibility */
.page-builder-section a:focus-visible,
.page-builder-section button:focus-visible {
  outline: 2px solid var(--brand-primary, #800000);
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .page-builder-section,
  .page-builder-section .feature-card,
  .page-builder-section .product-card,
  .page-builder-section .project-card,
  .page-builder-section .value-item,
  .page-builder-section .industry-item,
  .page-builder-section .benefit-item,
  .page-builder-section .stat-card {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ===== Page Builder Component Styles ===== */

/* Text section */
.page-builder-section.text-section {
  padding: 80px 20px;
}

.page-builder-section.text-section .rich-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #374151;
  max-width: 800px;
  margin: 0 auto;
}

.page-builder-section.text-section.text-left {
  text-align: left;
}

.page-builder-section.text-section.text-center {
  text-align: center;
}

.page-builder-section.text-section.text-right {
  text-align: right;
}

/* Image section */
.page-builder-section.image-section {
  padding: 80px 20px;
}

.page-builder-section.image-section .card-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 4px 20px rgba(15,23,42,0.08);
  transition: box-shadow 0.3s ease;
}

.page-builder-section.image-section .card-image:hover {
  box-shadow: 0 8px 30px rgba(15,23,42,0.12);
}

.page-builder-section.image-section .section-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section.image-section .card-image:hover .section-image {
  transform: scale(1.02);
}

.page-builder-section.image-section .section-image-link {
  display: block;
}

.page-builder-section.image-section .section-image-caption {
  text-align: center;
  color: #666;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Testimonials section */
.page-builder-section.testimonials-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

.page-builder-section.testimonials-section .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.page-builder-section.testimonials-section .testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.06);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.page-builder-section.testimonials-section .testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 80px;
  font-weight: 900;
  color: rgba(122,12,46,0.04);
  line-height: 1;
  font-family: Georgia, serif;
}

.page-builder-section.testimonials-section .testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.1), 0 2px 8px rgba(15,23,42,0.06);
  border-color: rgba(122,12,46,0.15);
}

.page-builder-section.testimonials-section .testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  color: #374151;
  line-height: 1.7;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.page-builder-section.testimonials-section .testimonial-stars {
  text-align: center;
  color: #ffc107;
  margin-bottom: 12px;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.page-builder-section.testimonials-section .testimonial-author {
  text-align: center;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.page-builder-section.testimonials-section .testimonial-position {
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
}

/* Blog section */
.page-builder-section.blog-section {
  padding: 60px 20px;
}

.page-builder-section.blog-section .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-builder-section.blog-section .blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-builder-section.blog-section .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.page-builder-section.blog-section .blog-card-image-wrapper {
  height: 180px;
  overflow: hidden;
}

.page-builder-section.blog-section .blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.page-builder-section.blog-section .blog-card:hover .blog-card-image {
  transform: scale(1.05);
}

.page-builder-section.blog-section .blog-card-placeholder {
  height: 180px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #9ca3af;
}

.page-builder-section.blog-section .blog-card-content {
  padding: 20px;
}

.page-builder-section.blog-section .blog-card-title {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.page-builder-section.blog-section .blog-card-title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-builder-section.blog-section .blog-card-title a:hover {
  color: var(--brand-primary, #800000);
}

.page-builder-section.blog-section .blog-card-author {
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.page-builder-section.blog-section .blog-card-excerpt {
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Projects section */
.page-builder-section.projects-section {
  padding: 60px 20px;
  background: #f5f5f5;
}

.page-builder-section.projects-section .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-builder-section.projects-section .project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-builder-section.projects-section .project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.page-builder-section.projects-section .project-card-content {
  padding: 24px;
}

.page-builder-section.projects-section .project-card-title {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.page-builder-section.projects-section .project-card-category {
  color: #6b7280;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* Contact form */
.page-builder-section.contact-form {
  padding: 60px 20px;
}

.page-builder-section.contact-form .contact-form-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #111827;
}

.page-builder-section.contact-form .contact-form-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-builder-section.contact-form .form-group {
  margin-bottom: 16px;
}

.page-builder-section.contact-form .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
}

.page-builder-section.contact-form .form-group input,
.page-builder-section.contact-form .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-builder-section.contact-form .form-group input:focus,
.page-builder-section.contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary, #800000);
  box-shadow: 0 0 0 3px rgba(159, 0, 0, 0.1);
}

.page-builder-section.contact-form .btn-block {
  width: 100%;
}

/* Columns */
.page-builder-section.columns {
  padding: 60px 20px;
}

.page-builder-section.columns .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: var(--columns-gap, 20px);
  flex-wrap: wrap;
}

.page-builder-section.columns .column-left,
.page-builder-section.columns .column-right {
  flex: 0 0 var(--column-width, 50%);
}

@media (max-width: 768px) {
  .page-builder-section.columns .column-left,
  .page-builder-section.columns .column-right {
    flex: 1 1 100%;
  }
}

/* Timeline */
.page-builder-section.timeline {
  padding: 60px 20px;
  background: #fafafa;
}

.page-builder-section.timeline .timeline-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-builder-section.timeline .timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-builder-section.timeline .timeline-item:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-builder-section.timeline .timeline-year {
  min-width: 90px;
  font-weight: 700;
  color: var(--brand-primary, #800000);
  font-size: 1.1rem;
}

.page-builder-section.timeline .timeline-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #111827;
}

.page-builder-section.timeline .timeline-description {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

/* FAQ */
.page-builder-section.faq {
  padding: 80px 20px;
}

.page-builder-section.faq .faq-item {
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  background: white;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.page-builder-section.faq .faq-item:hover {
  border-color: rgba(122,12,46,0.15);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08), 0 2px 8px rgba(15,23,42,0.06);
  transform: translateY(-2px);
}

.page-builder-section.faq .faq-question {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.page-builder-section.faq .faq-answer {
  margin: 0;
  color: #6b7280;
  line-height: 1.75;
  font-size: 0.95rem;
}

/* Newsletter */
.page-builder-section.newsletter {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f5f0f3 0%, #faf5f7 100%);
}

.page-builder-section.newsletter .newsletter-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: white;
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(15,23,42,0.08);
  border: 1px solid rgba(15,23,42,0.06);
  position: relative;
  overflow: hidden;
}

.page-builder-section.newsletter .newsletter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary, #800000), #ff6200);
}

.page-builder-section.newsletter .newsletter-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px 0;
}

.page-builder-section.newsletter .newsletter-description {
  color: #6b7280;
  margin: 0 0 24px 0;
  font-size: 1rem;
  line-height: 1.7;
}

.page-builder-section.newsletter .newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.page-builder-section.newsletter .newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 12px;
  background: #fafafa;
  color: #111827;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-builder-section.newsletter .newsletter-input:focus {
  outline: none;
  border-color: var(--brand-primary, #800000);
  box-shadow: 0 0 0 3px rgba(122,12,46,0.1);
  background: white;
}

.page-builder-section.newsletter .btn {
  padding: 14px 28px;
}

.page-builder-section.newsletter .newsletter-title {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #111827;
}

.page-builder-section.newsletter .newsletter-subtitle {
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Gallery */
.page-builder-section.gallery {
  padding: 80px 20px;
}

.page-builder-section.gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.page-builder-section.gallery .gallery-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.page-builder-section.gallery .gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.06);
  border-color: rgba(122,12,46,0.15);
}

.page-builder-section.gallery .gallery-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section.gallery .gallery-card:hover .gallery-card-image {
  transform: scale(1.04);
}

.page-builder-section.gallery .gallery-card-placeholder {
  height: 240px;
  background: linear-gradient(135deg, rgba(122,12,46,0.06) 0%, rgba(15,23,42,0.03) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 48px;
}

.page-builder-section.gallery .gallery-card-caption {
  padding: 20px;
  font-weight: 600;
  color: #111827;
  font-size: 0.95rem;
}
}

/* Unknown section */
.page-builder-section.unknown {
  padding: 80px 20px;
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

.page-builder-section.unknown .unknown-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.7;
}

/* Centered title helpers */
.section-title-centered {
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle-centered {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

/* Ensure page builder sections have consistent vertical rhythm */
.page-builder-section .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Enhanced form elements */
.page-builder-section .form-group {
  margin-bottom: 20px;
}

.page-builder-section .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
}

.page-builder-section .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 10px;
  background: white;
  color: #111827;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-builder-section .form-control:focus {
  outline: none;
  border-color: var(--brand-primary, #800000);
  box-shadow: 0 0 0 3px rgba(122,12,46,0.1);
}

/* Enhanced list styles */
.page-builder-section ul,
.page-builder-section ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.page-builder-section li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: #4b5563;
}

.page-builder-section li::marker {
  color: var(--brand-primary, #800000);
  font-weight: 700;
}

.page-builder-section .section-header {
  margin-bottom: 32px;
}

.page-builder-section .section-title {
  font-size: 2rem;
  color: #111827;
  margin-bottom: 12px;
}

.page-builder-section .section-subtitle {
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-builder-section .section-title {
    font-size: 1.6rem;
  }
  
  .page-builder-section .section-subtitle {
    font-size: 1rem;
  }
  
  .page-builder-section .container {
    padding: 0 16px;
  }
}

/* ===== Enhanced Visual Polish ===== */

/* Better section spacing */
.page-builder-section {
  padding: 80px 20px;
}

@media (max-width: 768px) {
  .page-builder-section {
    padding: 60px 16px;
  }
}

/* Enhanced hero section */
.hero-section .hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-section .hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--brand);
}

.hero-section .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-section .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: white;
}

.hero-section .btn-outline-light:hover {
  background: white;
  color: var(--brand-primary, #800000);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Stats section with better cards */
.page-builder-section.stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.page-builder-section.stats .stat-card {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  border: 1px solid rgba(122,12,46,0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section.stats .stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(122,12,46,0.2);
}

.page-builder-section.stats .stat-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--brand-primary, #800000);
  opacity: 0.9;
  display: block;
}

.page-builder-section.stats .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-primary, #800000);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.page-builder-section.stats .stat-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Feature cards with icon glow */
.page-builder-section.features .feature-card {
  background: white;
  border-radius: 16px;
  display: Flex;
  align-items: center;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(122,12,46,0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section.features .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(122,12,46,0.2);
}

.page-builder-section.features .feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(159,0,0,0.1), rgba(159,0,0,0.05));
  color: var(--brand-primary, #800000);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-builder-section.features .feature-card:hover .feature-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(159,0,0,0.15), rgba(159,0,0,0.08));
}

.page-builder-section.features .feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.page-builder-section.features .feature-card p {
  color: #6b7280;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Product cards */
.page-builder-section.products .product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(122,12,46,0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section.products .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(122,12,46,0.2);
}

.page-builder-section.products .card-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-builder-section.products .card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section.products .product-card:hover .card-image-wrapper img {
  transform: scale(1.08);
}

.page-builder-section.products .card-image-wrapper .product-placeholder {
  font-size: 3rem;
  color: #d1d5db;
}

.page-builder-section.products .product-card .card-content {
  padding: 24px;
}

.page-builder-section.products .product-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary, #800000);
  margin-bottom: 8px;
}

.page-builder-section.products .product-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.page-builder-section.products .product-card p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-primary, #800000);
  margin-bottom: 16px;
}

.price-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  display: block;
  margin-bottom: 4px;
}

/* Project cards */
.page-builder-section.projects .project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(122,12,46,0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section.projects .project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(122,12,46,0.2);
}

.page-builder-section.projects .project-image {
  height: 180px;
  overflow: hidden;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-builder-section.projects .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section.projects .project-card:hover .project-image img {
  transform: scale(1.08);
}

.page-builder-section.projects .project-image .project-placeholder {
  font-size: 2.5rem;
  color: #d1d5db;
}

.page-builder-section.projects .project-card-content {
  padding: 24px;
}

.page-builder-section.projects .project-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.page-builder-section.projects .project-card-category {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* CTA section enhancements */
.page-builder-section.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-primary, #800000) 0%, #7A0C2E 50%, #5F0823 100%);
  padding: 80px 20px;
  text-align: center;
  color: white;
  isolation: isolate;
  margin: 0;
}

.page-builder-section.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  animation: ctaShimmer 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.page-builder-section.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.page-builder-section.cta-section .section-header,
.page-builder-section.cta-section .section-title,
.page-builder-section.cta-section .section-subtitle,
.page-builder-section.cta-section .btn {
  position: relative;
  z-index: 1;
}

.page-builder-section.cta-section .section-title {
  color: white;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-builder-section.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.page-builder-section.cta-section .btn-primary {
  background: white;
  color: var(--brand-primary, #800000);
  border-color: white;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.page-builder-section.cta-section .btn-primary:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-builder-section.cta-section .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: white;
  background: transparent;
}

.page-builder-section.cta-section .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* Button improvements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15,23,42,0.1);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary, #800000), #7A0C2E);
  color: white;
  box-shadow: 0 4px 12px rgba(159, 0, 0, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(159, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary, #800000);
  border: 2px solid var(--brand-primary, #800000);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--brand-primary, #800000);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(159, 0, 0, 0.2);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}

/* Section badge styling */
.page-builder-section .section-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(122,12,46,0.1), rgba(122,12,46,0.05));
  color: var(--brand-primary, #800000);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  border: 1px solid rgba(122,12,46,0.15);
}

/* Loading animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-builder-section.is-visible .feature-card,
.page-builder-section.is-visible .product-card,
.page-builder-section.is-visible .project-card,
.page-builder-section.is-visible .value-item,
.page-builder-section.is-visible .industry-item,
.page-builder-section.is-visible .benefit-item,
.page-builder-section.is-visible .stat-card {
  animation: fadeInUp 0.6s ease forwards;
}

/* Smooth image loading */
.page-builder-section img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-builder-section img.loaded {
  opacity: 1;
}

/* Focus states for accessibility */
.page-builder-section a:focus-visible,
.page-builder-section button:focus-visible {
  outline: 2px solid var(--brand-primary, #800000);
  outline-offset: 2px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Card hover animations */
.page-builder-section .feature-card,
.page-builder-section .product-card,
.page-builder-section .project-card,
.page-builder-section .value-item,
.page-builder-section .industry-item,
.page-builder-section .benefit-item,
.page-builder-section .lms-benefit-card,
.page-builder-section .trust-badge,
.page-builder-section .stat-card,
.page-builder-section .testimonial-card,
.page-builder-section .blog-card,
.page-builder-section .gallery-card,
.page-builder-section .faq-item,
.page-builder-section .timeline-item {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section .feature-card:hover,
.page-builder-section .product-card:hover,
.page-builder-section .project-card:hover,
.page-builder-section .value-item:hover,
.page-builder-section .industry-item:hover,
.page-builder-section .benefit-item:hover,
.page-builder-section .lms-benefit-card:hover,
.page-builder-section .trust-badge:hover,
.page-builder-section .stat-card:hover,
.page-builder-section .testimonial-card:hover,
.page-builder-section .blog-card:hover,
.page-builder-section .gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Scroll animations */
.page-builder-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animations */
.page-builder-section .feature-card,
.page-builder-section .product-card,
.page-builder-section .project-card,
.page-builder-section .value-item,
.page-builder-section .industry-item,
.page-builder-section .benefit-item,
.page-builder-section .stat-card,
.page-builder-section .testimonial-card,
.page-builder-section .blog-card,
.page-builder-section .gallery-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-builder-section.is-visible .feature-card,
.page-builder-section.is-visible .product-card,
.page-builder-section.is-visible .project-card,
.page-builder-section.is-visible .value-item,
.page-builder-section.is-visible .industry-item,
.page-builder-section.is-visible .benefit-item,
.page-builder-section.is-visible .stat-card,
.page-builder-section.is-visible .testimonial-card,
.page-builder-section.is-visible .blog-card,
.page-builder-section.is-visible .gallery-card {
  opacity: 1;
  transform: translateY(0);
}

.page-builder-section.is-visible .feature-card:nth-child(1),
.page-builder-section.is-visible .product-card:nth-child(1),
.page-builder-section.is-visible .project-card:nth-child(1),
.page-builder-section.is-visible .value-item:nth-child(1),
.page-builder-section.is-visible .industry-item:nth-child(1),
.page-builder-section.is-visible .benefit-item:nth-child(1),
.page-builder-section.is-visible .stat-card:nth-child(1),
.page-builder-section.is-visible .testimonial-card:nth-child(1),
.page-builder-section.is-visible .blog-card:nth-child(1),
.page-builder-section.is-visible .gallery-card:nth-child(1) { transition-delay: 0.05s; }

.page-builder-section.is-visible .feature-card:nth-child(2),
.page-builder-section.is-visible .product-card:nth-child(2),
.page-builder-section.is-visible .project-card:nth-child(2),
.page-builder-section.is-visible .value-item:nth-child(2),
.page-builder-section.is-visible .industry-item:nth-child(2),
.page-builder-section.is-visible .benefit-item:nth-child(2),
.page-builder-section.is-visible .stat-card:nth-child(2),
.page-builder-section.is-visible .testimonial-card:nth-child(2),
.page-builder-section.is-visible .blog-card:nth-child(2),
.page-builder-section.is-visible .gallery-card:nth-child(2) { transition-delay: 0.1s; }

.page-builder-section.is-visible .feature-card:nth-child(3),
.page-builder-section.is-visible .product-card:nth-child(3),
.page-builder-section.is-visible .project-card:nth-child(3),
.page-builder-section.is-visible .value-item:nth-child(3),
.page-builder-section.is-visible .industry-item:nth-child(3),
.page-builder-section.is-visible .benefit-item:nth-child(3),
.page-builder-section.is-visible .stat-card:nth-child(3),
.page-builder-section.is-visible .testimonial-card:nth-child(3),
.page-builder-section.is-visible .blog-card:nth-child(3),
.page-builder-section.is-visible .gallery-card:nth-child(3) { transition-delay: 0.15s; }

.page-builder-section.is-visible .feature-card:nth-child(4),
.page-builder-section.is-visible .product-card:nth-child(4),
.page-builder-section.is-visible .project-card:nth-child(4),
.page-builder-section.is-visible .value-item:nth-child(4),
.page-builder-section.is-visible .industry-item:nth-child(4),
.page-builder-section.is-visible .benefit-item:nth-child(4),
.page-builder-section.is-visible .stat-card:nth-child(4),
.page-builder-section.is-visible .testimonial-card:nth-child(4),
.page-builder-section.is-visible .blog-card:nth-child(4),
.page-builder-section.is-visible .gallery-card:nth-child(4) { transition-delay: 0.2s; }

.page-builder-section.is-visible .feature-card:nth-child(5),
.page-builder-section.is-visible .product-card:nth-child(5),
.page-builder-section.is-visible .project-card:nth-child(5),
.page-builder-section.is-visible .value-item:nth-child(5),
.page-builder-section.is-visible .industry-item:nth-child(5),
.page-builder-section.is-visible .benefit-item:nth-child(5),
.page-builder-section.is-visible .stat-card:nth-child(5),
.page-builder-section.is-visible .testimonial-card:nth-child(5),
.page-builder-section.is-visible .blog-card:nth-child(5),
.page-builder-section.is-visible .gallery-card:nth-child(5) { transition-delay: 0.25s; }

.page-builder-section.is-visible .feature-card:nth-child(6),
.page-builder-section.is-visible .product-card:nth-child(6),
.page-builder-section.is-visible .project-card:nth-child(6),
.page-builder-section.is-visible .value-item:nth-child(6),
.page-builder-section.is-visible .industry-item:nth-child(6),
.page-builder-section.is-visible .benefit-item:nth-child(6),
.page-builder-section.is-visible .stat-card:nth-child(6),
.page-builder-section.is-visible .testimonial-card:nth-child(6),
.page-builder-section.is-visible .blog-card:nth-child(6),
.page-builder-section.is-visible .gallery-card:nth-child(6) { transition-delay: 0.3s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .page-builder-section,
  .page-builder-section .feature-card,
  .page-builder-section .product-card,
  .page-builder-section .project-card,
  .page-builder-section .value-item,
  .page-builder-section .industry-item,
  .page-builder-section .benefit-item,
  .page-builder-section .stat-card,
  .page-builder-section .testimonial-card,
  .page-builder-section .blog-card,
  .page-builder-section .gallery-card {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ===== Final Polish ===== */

/* Ensure consistent section backgrounds */
.page-builder-section.stats,
.page-builder-section.projects,
.page-builder-section.testimonials,
.page-builder-section.cta-section {
  position: relative;
}

.page-builder-section.stats {
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

.page-builder-section.projects {
  background: #fafafa;
}

.page-builder-section.testimonials {
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
}

/* Subtle section dividers */
.page-builder-section.stats::before,
.page-builder-section.projects::before,
.page-builder-section.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122,12,46,0.1), transparent);
}

/* Enhanced section padding */
.page-builder-section {
  padding: 80px 20px;
}

@media (min-width: 768px) {
  .page-builder-section {
    padding: 100px 20px;
  }
}

/* Better button interactions */
.page-builder-section .btn {
  position: relative;
  overflow: hidden;
}

.page-builder-section .btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.page-builder-section .btn:active::after {
  width: 300px;
  height: 300px;
}

/* Improved focus states */
.page-builder-section a:focus-visible,
.page-builder-section button:focus-visible {
  outline: 2px solid var(--brand-primary, #800000);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth image loading */
.page-builder-section img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-builder-section img.loaded {
  opacity: 1;
}

/* Section header enhancements */
.page-builder-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-builder-section .section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.page-builder-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary, #800000), #ff6200);
  border-radius: 2px;
}

.page-builder-section .section-subtitle {
  font-size: 1.05rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Better spacing for last section before footer */
.page-builder-section:last-of-type {
  margin-bottom: 48px;
}

/* ===== Premium Polish ===== */

/* Smoother reveal timing */
.page-builder-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-builder-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Refined card system */
.page-builder-section .feature-card,
.page-builder-section .product-card,
.page-builder-section .project-card,
.page-builder-section .stat-card,
.page-builder-section .testimonial-card,
.page-builder-section .blog-card,
.page-builder-section .gallery-card,
.page-builder-section .faq-item,
.page-builder-section .timeline-item,
.page-builder-section .value-item,
.page-builder-section .industry-item,
.page-builder-section .benefit-item {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}

.page-builder-section .feature-card:hover,
.page-builder-section .product-card:hover,
.page-builder-section .project-card:hover,
.page-builder-section .stat-card:hover,
.page-builder-section .testimonial-card:hover,
.page-builder-section .blog-card:hover,
.page-builder-section .gallery-card:hover,
.page-builder-section .faq-item:hover,
.page-builder-section .timeline-item:hover,
.page-builder-section .value-item:hover,
.page-builder-section .industry-item:hover,
.page-builder-section .benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.10), 0 2px 8px rgba(15,23,42,0.06);
  border-color: rgba(122,12,46,0.15);
}

/* Staggered children */
.page-builder-section.is-visible .feature-card,
.page-builder-section.is-visible .product-card,
.page-builder-section.is-visible .project-card,
.page-builder-section.is-visible .value-item,
.page-builder-section.is-visible .industry-item,
.page-builder-section.is-visible .benefit-item,
.page-builder-section.is-visible .stat-card,
.page-builder-section.is-visible .testimonial-card,
.page-builder-section.is-visible .blog-card,
.page-builder-section.is-visible .gallery-card,
.page-builder-section.is-visible .faq-item,
.page-builder-section.is-visible .timeline-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-builder-section.is-visible .feature-card,
.page-builder-section.is-visible .product-card,
.page-builder-section.is-visible .project-card,
.page-builder-section.is-visible .value-item,
.page-builder-section.is-visible .industry-item,
.page-builder-section.is-visible .benefit-item,
.page-builder-section.is-visible .stat-card,
.page-builder-section.is-visible .testimonial-card,
.page-builder-section.is-visible .blog-card,
.page-builder-section.is-visible .gallery-card,
.page-builder-section.is-visible .faq-item,
.page-builder-section.is-visible .timeline-item {
  opacity: 1;
  transform: translateY(0);
}

.page-builder-section.is-visible .feature-card:nth-child(1),
.page-builder-section.is-visible .product-card:nth-child(1),
.page-builder-section.is-visible .project-card:nth-child(1),
.page-builder-section.is-visible .value-item:nth-child(1),
.page-builder-section.is-visible .industry-item:nth-child(1),
.page-builder-section.is-visible .benefit-item:nth-child(1),
.page-builder-section.is-visible .stat-card:nth-child(1),
.page-builder-section.is-visible .testimonial-card:nth-child(1),
.page-builder-section.is-visible .blog-card:nth-child(1),
.page-builder-section.is-visible .gallery-card:nth-child(1),
.page-builder-section.is-visible .faq-item:nth-child(1),
.page-builder-section.is-visible .timeline-item:nth-child(1) { transition-delay: 0.04s; }

.page-builder-section.is-visible .feature-card:nth-child(2),
.page-builder-section.is-visible .product-card:nth-child(2),
.page-builder-section.is-visible .project-card:nth-child(2),
.page-builder-section.is-visible .value-item:nth-child(2),
.page-builder-section.is-visible .industry-item:nth-child(2),
.page-builder-section.is-visible .benefit-item:nth-child(2),
.page-builder-section.is-visible .stat-card:nth-child(2),
.page-builder-section.is-visible .testimonial-card:nth-child(2),
.page-builder-section.is-visible .blog-card:nth-child(2),
.page-builder-section.is-visible .gallery-card:nth-child(2),
.page-builder-section.is-visible .faq-item:nth-child(2),
.page-builder-section.is-visible .timeline-item:nth-child(2) { transition-delay: 0.08s; }

.page-builder-section.is-visible .feature-card:nth-child(3),
.page-builder-section.is-visible .product-card:nth-child(3),
.page-builder-section.is-visible .project-card:nth-child(3),
.page-builder-section.is-visible .value-item:nth-child(3),
.page-builder-section.is-visible .industry-item:nth-child(3),
.page-builder-section.is-visible .benefit-item:nth-child(3),
.page-builder-section.is-visible .stat-card:nth-child(3),
.page-builder-section.is-visible .testimonial-card:nth-child(3),
.page-builder-section.is-visible .blog-card:nth-child(3),
.page-builder-section.is-visible .gallery-card:nth-child(3),
.page-builder-section.is-visible .faq-item:nth-child(3),
.page-builder-section.is-visible .timeline-item:nth-child(3) { transition-delay: 0.12s; }

.page-builder-section.is-visible .feature-card:nth-child(4),
.page-builder-section.is-visible .product-card:nth-child(4),
.page-builder-section.is-visible .project-card:nth-child(4),
.page-builder-section.is-visible .value-item:nth-child(4),
.page-builder-section.is-visible .industry-item:nth-child(4),
.page-builder-section.is-visible .benefit-item:nth-child(4),
.page-builder-section.is-visible .stat-card:nth-child(4),
.page-builder-section.is-visible .testimonial-card:nth-child(4),
.page-builder-section.is-visible .blog-card:nth-child(4),
.page-builder-section.is-visible .gallery-card:nth-child(4),
.page-builder-section.is-visible .faq-item:nth-child(4),
.page-builder-section.is-visible .timeline-item:nth-child(4) { transition-delay: 0.16s; }

.page-builder-section.is-visible .feature-card:nth-child(5),
.page-builder-section.is-visible .product-card:nth-child(5),
.page-builder-section.is-visible .project-card:nth-child(5),
.page-builder-section.is-visible .value-item:nth-child(5),
.page-builder-section.is-visible .industry-item:nth-child(5),
.page-builder-section.is-visible .benefit-item:nth-child(5),
.page-builder-section.is-visible .stat-card:nth-child(5),
.page-builder-section.is-visible .testimonial-card:nth-child(5),
.page-builder-section.is-visible .blog-card:nth-child(5),
.page-builder-section.is-visible .gallery-card:nth-child(5),
.page-builder-section.is-visible .faq-item:nth-child(5),
.page-builder-section.is-visible .timeline-item:nth-child(5) { transition-delay: 0.2s; }

.page-builder-section.is-visible .feature-card:nth-child(6),
.page-builder-section.is-visible .product-card:nth-child(6),
.page-builder-section.is-visible .project-card:nth-child(6),
.page-builder-section.is-visible .value-item:nth-child(6),
.page-builder-section.is-visible .industry-item:nth-child(6),
.page-builder-section.is-visible .benefit-item:nth-child(6),
.page-builder-section.is-visible .stat-card:nth-child(6),
.page-builder-section.is-visible .testimonial-card:nth-child(6),
.page-builder-section.is-visible .blog-card:nth-child(6),
.page-builder-section.is-visible .gallery-card:nth-child(6),
.page-builder-section.is-visible .faq-item:nth-child(6),
.page-builder-section.is-visible .timeline-item:nth-child(6) { transition-delay: 0.24s; }

/* Premium hero */
.hero-section .hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-section .hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-section .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: white;
  backdrop-filter: blur(4px);
}

.hero-section .btn-outline-light:hover {
  background: white;
  color: var(--brand-primary, #800000);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Stats premium */
.page-builder-section.stats .stat-card {
  background: white;
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 6px 16px rgba(15,23,42,0.06);
}

.page-builder-section.stats .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.06);
  border-color: rgba(122,12,46,0.18);
}

.page-builder-section.stats .stat-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
  color: var(--brand-primary, #800000);
  opacity: 0.9;
  display: block;
}

.page-builder-section.stats .stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.page-builder-section.stats .stat-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Feature icon polish */
.page-builder-section.features .feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(159,0,0,0.08), rgba(159,0,0,0.03));
  color: var(--brand-primary, #800000);
  font-size: 1.35rem;
  margin-bottom: 18px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}

.page-builder-section.features .feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-3deg);
  background: linear-gradient(135deg, rgba(159,0,0,0.14), rgba(159,0,0,0.06));
}

/* Product image polish */
.page-builder-section.products .card-image-wrapper {
  height: 190px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.page-builder-section.products .product-card:hover .card-image-wrapper img {
  transform: scale(1.06);
}

/* Project image polish */
.page-builder-section.projects .project-image {
  height: 170px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.page-builder-section.projects .project-card:hover .project-image img {
  transform: scale(1.06);
}

/* CTA pulse */
.page-builder-section.cta-section .btn-primary {
  position: relative;
  overflow: hidden;
}

.page-builder-section.cta-section .btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.7s, height 0.7s;
}

.page-builder-section.cta-section .btn-primary:active::after {
  width: 400px;
  height: 400px;
}

/* Typography rhythm */
.page-builder-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-builder-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.page-builder-section p {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 16px;
}

.page-builder-section p:last-child {
  margin-bottom: 0;
}

/* Refined card system */
.page-builder-section .feature-card,
.page-builder-section .product-card,
.page-builder-section .project-card,
.page-builder-section .value-item,
.page-builder-section .industry-item,
.page-builder-section .benefit-item,
.page-builder-section .stat-card,
.page-builder-section .testimonial-card,
.page-builder-section .blog-card,
.page-builder-section .gallery-card,
.page-builder-section .faq-item,
.page-builder-section .timeline-item {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.page-builder-section .feature-card:hover,
.page-builder-section .product-card:hover,
.page-builder-section .project-card:hover,
.page-builder-section .value-item:hover,
.page-builder-section .industry-item:hover,
.page-builder-section .benefit-item:hover,
.page-builder-section .stat-card:hover,
.page-builder-section .testimonial-card:hover,
.page-builder-section .blog-card:hover,
.page-builder-section .gallery-card:hover,
.page-builder-section .faq-item:hover,
.page-builder-section .timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.10), 0 2px 8px rgba(15,23,42,0.06);
  border-color: rgba(122,12,46,0.15);
}

/* Consistent card padding */
.page-builder-section .feature-card,
.page-builder-section .product-card,
.page-builder-section .project-card,
.page-builder-section .value-item,
.page-builder-section .industry-item,
.page-builder-section .benefit-item,
.page-builder-section .stat-card,
.page-builder-section .testimonial-card,
.page-builder-section .blog-card,
.page-builder-section .gallery-card,
.page-builder-section .faq-item,
.page-builder-section .timeline-item {
  padding: 24px;
}

@media (min-width: 768px) {
  .page-builder-section .feature-card,
  .page-builder-section .product-card,
  .page-builder-section .project-card,
  .page-builder-section .value-item,
  .page-builder-section .industry-item,
  .page-builder-section .benefit-item,
  .page-builder-section .stat-card,
  .page-builder-section .testimonial-card,
  .page-builder-section .blog-card,
  .page-builder-section .gallery-card,
  .page-builder-section .faq-item,
  .page-builder-section .timeline-item {
    padding: 28px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .page-builder-section,
  .page-builder-section .feature-card,
  .page-builder-section .product-card,
  .page-builder-section .project-card,
  .page-builder-section .value-item,
  .page-builder-section .industry-item,
  .page-builder-section .benefit-item,
  .page-builder-section .stat-card,
  .page-builder-section .testimonial-card,
  .page-builder-section .blog-card,
  .page-builder-section .gallery-card,
  .page-builder-section .faq-item,
  .page-builder-section .timeline-item {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}


.auth-brand-panel
 {
    height: 95vh;
}
