/*
  Theme Name: SiteKrafter-Pro
  Theme URI: https://sitekrafter.com
  Version: 6.1.4
  Template: Divi
  Author: Mak
  Author URI: https://diviuniversity.com
  Description: SiteKrafter Pro helps you build websites faster, with better structure, consistency, and scalability.
  Website: https://sitekrafter.com
*/

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Typography */
  --font-base-size: 62.5%; /* 10px */
  
  /* Font Families */
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  --font-tertiary: 'Montserrat', sans-serif;
  --font-monospace: 'Courier New', monospace;
  
  /* Primary Colors */
  --primary: #1E2EDE;
  --primary-dark: #141E90;
  --primary-light: #5D69E9; /* Add a lighter shade */
  --primary-bg: #1E2EDE;    /* Very light bg version */
  
  /* Accent Colors */
  --accent: #C30938;
  --accent-dark: #9C072C;
  --accent-light: #EA0B43;  /* Add a lighter shade */
  --accent-bg: #C30938;     /* Very light bg version */
  
  /* Status Colors */
  --success: #65FF5D;
  --success-light: #9DFF98;
  --warning: #DEF300;
  --warning-light: #F7FFA0;
  --error: #FF6F6F;
  --error-light: #FF9F9F;
  --info: #8FBAFF;
  --info-light: #BDD1F2;
  
  /* Neutral Shades */
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --white: #FFFFFF;
  --black: #000000;
  
  /* Text Color Variables */
  --text-dark: var(--gray-900);
  --text-medium: var(--gray-700);
  --text-light: var(--gray-100);
  --text-white: var(--white);
  
  /* Typography Scale */
  --text-xs: clamp(1rem, calc(0.5vw + 0.9rem), 1.25rem);
  --text-s: clamp(1.25rem, calc(0.6vw + 1.1rem), 1.56rem);
  --text-m: clamp(1.56rem, calc(0.8vw + 1.4rem), 1.95rem);
  --text-l: clamp(1.95rem, calc(1vw + 1.7rem), 2.44rem);
  --text-xl: clamp(2.44rem, calc(1.2vw + 2rem), 3.05rem);
  --text-2xl: clamp(3.05rem, calc(1.5vw + 2.5rem), 3.81rem);
  --text-3xl: clamp(3.81rem, calc(1.8vw + 3rem), 4.77rem);
  --text-4xl: clamp(4.77rem, calc(2vw + 3.6rem), 5.96rem);
  
  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;
  
  /* Spacing */
  --spacing-xs: clamp(0.5rem, 1vw, 0.81rem);
  --spacing-s: clamp(0.81rem, 2vw, 1.31rem);
  --spacing-m: clamp(1.31rem, 3vw, 2.11rem);
  --spacing-l: clamp(2.11rem, 5vw, 3.42rem);
  --spacing-xl: clamp(3.42rem, 7vw, 5.53rem);
  
  /* Shadows */
  --shadow-s: 0px 1px 2px rgba(0, 0, 0, 0.05), 0px 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-m: 0px 4px 6px rgba(0, 0, 0, 0.05), 0px 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-l: 0px 10px 15px rgba(0, 0, 0, 0.05), 0px 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0px 20px 25px rgba(0, 0, 0, 0.05), 0px 10px 10px rgba(0, 0, 0, 0.1);
  --shadow-inset: inset 0px 1px 3px rgba(0, 0, 0, 0.1);
  
  /* Section Padding */
  --sec-padding-s: clamp(3.8rem, 7vw, 6.2rem) clamp(2.4rem, 5vw, 4rem);
  --sec-padding-m: clamp(6.2rem, 9vw, 10rem) clamp(4rem, 6.5vw, 6.5rem);
  --sec-padding-l: clamp(10rem, 11vw, 16.2rem) clamp(6.5rem, 7.5vw, 10.5rem);
  --sec-padding-hero: clamp(16.2rem, 13vw, 26.2rem) clamp(10.5rem, 9vw, 16.8rem);
  
  /* Border Radius */
  --radius-xs: clamp(0.4rem, 0.4vw, 0.5rem);
  --radius-s: clamp(0.5rem, 0.5vw, 0.63rem);
  --radius-m: clamp(0.63rem, 0.6vw, 0.78rem);
  --radius-l: clamp(0.78rem, 0.7vw, 0.98rem);
  --radius-xl: clamp(0.98rem, 0.8vw, 1.22rem);
  --radius-full: 999rem;
  
  /* Heading Sizes */
  --heading-4xl: clamp(8rem, calc(5vw + 6rem), 20rem);
  --heading-3xl: clamp(6.4rem, calc(4.5vw + 5rem), 16rem);
  --heading-2xl: clamp(5.12rem, calc(3.8vw + 4rem), 12.8rem);
  --heading-xl: clamp(4.1rem, calc(3vw + 3.2rem), 10.24rem);
  --heading-l: clamp(3.28rem, calc(2.5vw + 2.5rem), 8.19rem);
  --heading-m: clamp(2.62rem, calc(2vw + 2rem), 6.55rem);
  --heading-s: clamp(2.1rem, calc(1.5vw + 1.6rem), 5.24rem);
  
  /* Transitions */
  --transition-fast: 0.1s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Define accessibility variables */
  --focus-outline-width: 3px;
  --focus-color: #f90;
  --focus-outline-offset: 2px;
  --focus-shadow: 0 0 0 3px rgba(255, 153, 0, 0.4);
  
  /* Responsive Breakpoints */
  --breakpoint-xs: 480px;  /* Extra small devices */
  --breakpoint-sm: 768px;  /* Small devices (tablets) */
  --breakpoint-md: 992px;  /* Medium devices (desktops) */
  --breakpoint-lg: 1200px; /* Large devices (large desktops) */
  --breakpoint-xl: 1440px; /* Extra large devices */
  --breakpoint-2xl: 1920px; /* 2K displays */
  --breakpoint-4k: 3840px; /* 4K displays */
  
  /* Container Widths */
  --container-xs: 100%;
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-2xl: 1320px;
  
  /* Grid Spacing */
  --grid-gap: var(--spacing-m); 
  
}

/* Editor Overides */
.et-db #et-boc .et-l .et-fb-modal--with-header-dropdown .et-fb-font-icon-filter,
.et-db #et-boc .et-l .et-fb-modal--with-header-dropdown .et-fb-options-filter {
  top: 0;
  margin-top: 0;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-m);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: var(--line-height-normal);
}

/* === Background Colors === */
.bg-primary { background-color: var(--primary); }
.bg-primary-dark { background-color: var(--primary-dark); }
.bg-primary-light { background-color: var(--primary-light); }
.bg-primary-bg { background-color: var(--primary-bg); }

.bg-accent { background-color: var(--accent); }
.bg-accent-dark { background-color: var(--accent-dark); }
.bg-accent-light { background-color: var(--accent-light); }
.bg-accent-bg { background-color: var(--accent-bg); }

/* Body Text Colors */
.text-dark { color: var(--text-dark); }
.text-medium { color: var(--text-medium); }
.text-light { color: var(--text-light); }
.text-white { color: var(--text-white); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

/* Neutral Background Colors */
.bg-white { background-color: var(--white); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-300 { background-color: var(--gray-300); }
.bg-gray-400 { background-color: var(--gray-400); }
.bg-gray-500 { background-color: var(--gray-500); }
.bg-gray-600 { background-color: var(--gray-600); }
.bg-gray-700 { background-color: var(--gray-700); }
.bg-gray-800 { background-color: var(--gray-800); }
.bg-gray-900 { background-color: var(--gray-900); }
.bg-black { background-color: var(--black); }

/* Heading Text Colors */
.heading-dark { color: var(--text-dark); }
.heading-medium { color: var(--text-medium); }
.heading-light { color: var(--text-light); }
.heading-white { color: var(--text-white); }
.heading-primary { color: var(--primary); }
.heading-accent { color: var(--accent); }

html {
  font-size: var(--font-base-size);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html:focus-within {
  scroll-behavior: smooth;
}


h1, h2, h3, h4, h5, h6 {
  text-rendering: optimizelegibility;
}

.hide {
  display: none;
}

/* Heading Scale */
.sk h1 {
  font-size: var(--text-4xl);
  line-height: var(--line-height-tight);
  letter-spacing: -1px;
  font-weight: 800;
}

.sk h2 {
  font-size: var(--text-3xl);
  line-height: 1.15em;
  font-weight: 700;
}

.sk h3 {
  font-size: var(--text-2xl);
  line-height: var(--line-height-snug);
  font-weight: 700;
}

.sk h4 {
  font-size: var(--text-xl);
  line-height: 1.25em;
  font-weight: 600;
}

.sk h5 {
  font-size: var(--text-l);
  line-height: 1.3em;
  font-weight: 600;
}

.sk h6 {
  font-size: var(--text-m);
  line-height: 1.35em;
  font-weight: 600;
}

/* Text Elements */
.sk p, .sk a, .sk li {
  font-size: var(--text-m);
  line-height: clamp(2.38rem, calc(2.38rem + ((1vw - 0.48rem) * 0.3386)), 2.8rem);
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-wrap: balance;
}

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--spacing-s);
  max-width: var(--container-lg);
}


/* Content Container */
.sk-content {
  font-size: var(--text-m);
  line-height: clamp(2.38rem, calc(2.38rem + ((1vw - 0.48rem) * 0.3386)), 2.8rem);
  max-width: 70ch;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

/* Advanced Typography */
.richtext {
  font-feature-settings: 'liga' 1, 'kern' 1;
  font-kerning: normal;
  hanging-punctuation: first;
}

/* Richtext */

.richtext p + p {
  margin-top: var(--spacing-m);
}

.richtext blockquote {
  font-style: italic;
  border-left: 3px solid var(--primary);
  padding-left: var(--spacing-m);
  margin-left: 0;
  margin-right: 0;
}

.richtext ul, .richtext ol {
  padding-left: var(--spacing-l);
}

.richtext li + li {
  margin-top: var(--spacing-xs);
}


/* Removed Margings for better spacing control */
.et_pb_text {
  margin: 0 !important;
}

.no-padding {
  padding: 0 !important;
}

/* Removed Margings for better spacing control */
button, .et_pb_button {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Custom Headings */
.heading-4xl {
  font-size: var(--heading-4xl);
  letter-spacing: -1px;
  line-height: clamp(7.2rem, calc(7.2rem + ((1vw - 0.48rem) * 6.2)), 12rem);
  text-wrap: balance;
}

.heading-3xl {
  font-size: var(--heading-3xl);
  letter-spacing: -1px;
  line-height: clamp(7.2rem, calc(7.2rem + ((1vw - 0.48rem) * 6.2)), 12rem);
  text-wrap: balance;
}

.heading-2xl {
  font-size: var(--heading-2xl);
  letter-spacing: -1px;
  line-height: clamp(6rem, calc(6rem + ((1vw - 0.48rem) * 5)), 10rem);
  text-wrap: balance;
}

.heading-xl {
  font-size: var(--heading-xl);
  letter-spacing: -1px;
  line-height: clamp(5rem, calc(5rem + ((1vw - 0.48rem) * 4)), 8.5rem);
  text-wrap: balance;
}

.heading-l {
  font-size: var(--heading-l);
  line-height: clamp(4.2rem, calc(4.2rem + ((1vw - 0.48rem) * 3.386)), 7.2rem);
  letter-spacing: -1px;
  text-wrap: balance;
}

.heading-m {
  font-size: var(--heading-m);
  letter-spacing: 0px;
  line-height: 1.3;
  text-wrap: balance;
}

.heading-s {
  font-size: var(--heading-s);
  letter-spacing: 0px;
  line-height: 1.4;
  text-wrap: balance;
}

/* Font Weights */
.font-100 { font-weight: 100; }
.font-200 { font-weight: 200; }
.font-300 { font-weight: 300; }
.font-400 { font-weight: 400; }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.font-900 { font-weight: 900; }

/* Text Sizes */
.text-xs { font-size: var(--text-xs); line-height: 1.4; }
.text-s { font-size: var(--text-s); line-height: 1.5; }
.text-m { font-size: var(--text-m); line-height: 1.6; }
.text-l { font-size: var(--text-l); line-height: 1.6; }
.text-xl { font-size: var(--text-xl); line-height: 1.6; }
.text-2xl { font-size: var(--text-2xl); line-height: 1.6; }
.text-3xl { font-size: var(--text-3xl); line-height: 1.6; }
.text-4xl { font-size: var(--text-4xl); line-height: 1.6; }

/* Text Utilities */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.italic { font-style: italic; }
.cross-out { text-decoration: line-through; }
.letter-spacing { letter-spacing: 2px; }

/* Alignment */
.left { text-align: left !important; }
.center { text-align: center !important; }
.right { text-align: right !important; }
.justify { text-align: justify !important; }

/* Notices */
.notice, .warning, .success, .error {
  font-size: 1.6rem;
  padding: 2rem;
  max-width: 65ch;
  border-radius: var(--radius-xs);
  line-height: 1.5;
  margin: 1rem 0;
}

.notice {
  background-color: var(--info-light);
}

.warning {
  background-color: var(--warning-light);
}

.success {
  background-color: var(--success-light);
}

.error {
  background-color: var(--error-light);
}

/* Gap Sizes */
.gap-0 { gap: 0; }
.gap-xs { gap: var(--spacing-xs); }
.gap-s { gap: var(--spacing-s); }
.gap-m { gap: var(--spacing-m); }
.gap-l { gap: var(--spacing-l); }
.gap-xl { gap: var(--spacing-xl); }

/* Margins */
/* Extra Small */
.mt-xs { margin-top: var(--spacing-xs) !important; }
.mb-xs { margin-bottom: var(--spacing-xs) !important; }

/* Small */
.mt-s { margin-top: var(--spacing-s) !important; }
.mb-s { margin-bottom: var(--spacing-s) !important; }

/* Medium */
.mt-m { margin-top: var(--spacing-m) !important; }
.mb-m { margin-bottom: var(--spacing-m) !important; }

/* Large */
.mt-l { margin-top: var(--spacing-l) !important; }
.mb-l { margin-bottom: var(--spacing-l) !important; }

/* Extra Large */
.mt-xl { margin-top: var(--spacing-xl) !important; }
.mb-xl { margin-bottom: var(--spacing-xl) !important; }


/* Paddings */

.no-padding {
  padding: 0 !important;
}

/* Extra Small */
.pad-xs { padding: var(--spacing-xs) !important; }

/* Small */
.pad-s { padding: var(--spacing-s) !important; }

/* Medium */
.pad-m { padding: var(--spacing-m) !important; }

/* Large */
.pad-l { padding: var(--spacing-l) !important; }

/* Extra Large */
.pad-xl { padding: var(--spacing-xl) !important; }


/* Responsive Sections */

/* Large Section */
.sec-l { padding: var(--sec-padding-l) !important; }

/* Hero Section */
.sec-hero { padding: var(--sec-padding-hero) !important; }

/* Medium Section */
.sec-m { padding: var(--sec-padding-m) !important; }

/* Small Section */
.sec-s { padding: var(--sec-padding-s) !important; }

/* Fullscreen Section - Centers Content */
.sec-full {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh; /* Dynamic viewport height */
  width: 100%;
  padding: var(--sec-padding-s) !important;
}

/* Border Radius */
.rad-xs { border-radius: var(--radius-xs) !important; }
.rad-s { border-radius: var(--radius-s) !important; }
.rad-m { border-radius: var(--radius-m) !important; }
.rad-l { border-radius: var(--radius-l) !important; }
.rad-xl { border-radius: var(--radius-xl) !important; }
.rad-full { border-radius: var(--radius-full) !important; } /* Fully Rounded */

/* Shadow System */
.shadow-s {
  box-shadow: var(--shadow-s);
}

.shadow-m {
  box-shadow: var(--shadow-m);
}

.shadow-l {
  box-shadow: var(--shadow-l);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

.shadow-inset {
  box-shadow: var(--shadow-inset);
}

.shadow-none { box-shadow: none; }


/* Interactive States */
.hover-dark:hover {
  filter: brightness(80%);
  transition: filter var(--transition-normal);
}

.hover-opacity:hover {
  opacity: 0.8;
  transition: opacity var(--transition-normal);
}

.hover-border:hover {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-xs);
  transition: border var(--transition-fast);
}

.hover-scale:hover {
  transform: scale(1.05);
  transition: transform var(--transition-normal);
}

.hover-shadow:hover{
  box-shadow: var(--shadow-m);
  transition: box-shadow var(--transition-normal);
}

.hover-glow:hover {
  box-shadow: 0 0 10px var(--primary-light);
  transition: box-shadow var(--transition-normal);
}

/* ================== */
/* FLEXBOX            */
/* ================== */

.flexbox {
  display: flex;
  flex: 1 1 0;
  gap: 2rem;
}

.flex { display: flex; }
.inline-flex { display: inline-flex; }

.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }

.flex-row-reverse { flex-direction: row-reverse; }
.flex-col-reverse { flex-direction: column-reverse; }

/* align items vertical */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.items-baseline { align-items: baseline; }

/* justify content horizontal */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

/* align self (per item) */
.self-auto { align-self: auto; }
.self-start { align-self: flex-start; }
.self-center { align-self: center; }
.self-end { align-self: flex-end; }
.self-stretch { align-self: stretch; }

/* flex wrap */
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }

/* flex grow|shrink|basis */
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }

@media (min-width: var(--breakpoint-sm)) {
  .sm\:flex-col { flex-direction: column; }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: var(--breakpoint-md)) {
  .md\:flex-col { flex-direction: column; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
}

@media (min-width: var(--breakpoint-lg)) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:justify-end { justify-content: flex-end; }
}

/* Rows */
/* Narrow Row (70ch max-width) */
.row-narrow {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Full Width Row */
.row-full {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.row-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
}

.row-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

/* Rows with Paadding Sizes */
.row-pad-xs { padding: var(--spacing-xs) 0 !important; }
.row-pad-s  { padding: var(--spacing-s) 0 !important; }
.row-pad-m  { padding: var(--spacing-m) 0 !important; }
.row-pad-l  { padding: var(--spacing-l) 0 !important; }
.row-pad-xl { padding: var(--spacing-xl) 0 !important; }


/* ================== */
/* CSS GRID           */
/* ================== */

/* Grid Container */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

/* Grid Columns */
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Auto Grid */
.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Responsive Fallback for smaller screens */
@media (max-width: var(--breakpoint-xs)) {
  .grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}


/* Auto Grid: Adapts based on space */
.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: var(--breakpoint-xs)) {
  .grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Column Spanning */
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-full { grid-column: 1 / -1; } /* Full width */

/* Row Spanning */
.row-span-2 { grid-row: span 2; }
.row-span-3 { grid-row: span 3; }
.row-span-4 { grid-row: span 4; }
.row-span-5 { grid-row: span 5; }
.row-span-6 { grid-row: span 6; }
.row-span-full { grid-row: 1 / -1; } /* Full height */


/* Ensure Divi Modules Stretch Properly */
.et_pb_module {
  width: 100%; /* Ensures modules take full grid width */
  height: 100%; /* Ensures row-spanned modules stretch */
}

/* Bento Grid Container */
.grid-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive Columns */
  grid-auto-rows: 200px; /* Default row height */
  gap: var(--spacing-l);
}

/* Bento Items */
.bento-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-l);
  background-color: var(--gray-100);
  border-radius: var(--radius-m);
  font-size: var(--text-m);
  font-weight: bold;
}

/* Custom Layout Helpers */
.bento-lg { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-full { grid-column: 1 / -1; grid-row: span 2; }

/* Flexbox */


/* =================== */
/* BUTTON BASE STYLES */
/* =================== */
.button-pri {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-s) var(--spacing-m); /* Uses spacing variables */
  font-size: var(--text-m);
  font-weight: 500;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

/* Secondary Button */
.button-acc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-s) var(--spacing-m); /* Uses spacing variables */
  font-size: var(--text-m);
  font-weight: 500;
  color: var(--white);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

.button-outline-acc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-s) var(--spacing-m); /* Uses spacing variables */
  font-size: var(--text-m);
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

.button-outline-pri {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-s) var(--spacing-m); /* Uses spacing variables */
  font-size: var(--text-m);
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

/* Outline Button */
.button-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.button-outline:hover {
  background: var(--accent);
  color: var(--white);
}

/* Ghost (Minimal) Button */
.button-ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  border: none;
}

.button-ghost:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

/* Text-Only Button */
.button-text {
  background: none;
  color: var(--accent);
  padding: var(--spacing-xs);
  box-shadow: none;
}

.button-text:hover {
  text-decoration: underline;
}

/* Link Button */
.button-link {
  background: none;
  color: var(--accent);
  text-decoration: underline;
  padding: var(--spacing-xs);
}

.button-link:hover {
  color: var(--accent-dark);
}

.button:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: var(--focus-outline-offset);
  box-shadow: var(--focus-shadow);
}

.button-sec:focus-visible,
.button-outline:focus-visible,
.button-ghost:focus-visible,
.button-text:focus-visible,
.button-link:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: var(--focus-outline-offset);
  box-shadow: var(--focus-shadow);
}



/* ================== */
/* ACCESSIBILITY      */
/* ================== */

/* General Focus Styles - Removed redundant transition */
:focus-visible {
  outline: 3px solid rgba(0, 123, 255, 0.8);
  outline-offset: 3px;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* Skip Navigation */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 10px;
  background: #007bff;
  color: white;
  padding: 10px 15px;
  font-size: 1.4rem;
  text-decoration: none;
  border-radius: 5px;
  z-index: 1000;
  transition: top 0.3s ease-in-out;
}

.skip-nav:focus {
  top: 10px;
  outline: 3px solid yellow;
}

/* Button Styles */
.button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: #007bff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.button:focus,
.button:hover {
  background: #0056b3;
  outline: 3px solid rgba(255, 255, 255, 0.6);
}

/* Dropdown Navigation */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: #007bff;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: none;
  min-width: 150px;
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: #007bff;
  color: #fff;
}

.dropdown-toggle:focus + .dropdown-menu,
.dropdown-menu:focus-within {
  display: block;
}

/* Modal Accessibility */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  display: none;
  z-index: 1000;
}

.modal.open {
  display: block;
}

.modal:focus {
  outline: 3px solid #007bff;
}

/* Keyboard Navigation Enhancements */
.keyboard-nav :focus {
  outline: 3px solid rgba(0, 123, 255, 0.8);
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.keyboard-nav a:focus,
.keyboard-nav button:focus,
.keyboard-nav input:focus {
  outline: 3px solid rgba(0, 123, 255, 0.8);
}

/* Accessible Forms */
input, select, textarea {
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1.4rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #007bff;
  outline: 3px solid rgba(0, 123, 255, 0.8);
}

/* Close Modal with Keyboard */
.close-btn {
  background: red;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.close-btn:focus {
  outline: 3px solid rgba(255, 255, 255, 0.6);
}

/* ================== */
/* EDITOR OVERRIDES */
/* ================== */
.et-db #et-boc .et-l .et-fb-modal--with-header-dropdown .et-fb-font-icon-filter,
.et-db #et-boc .et-l .et-fb-modal--with-header-dropdown .et-fb-options-filter {
  top: 0;
  margin-top: 0;
}





