/*
Theme Name: tfs (WPConvert)
Theme URI: https://wpconvert.ai
Author: WPConvert.ai
Author URI: https://wpconvert.ai
Description: This theme was automatically generated from your original site design using WPConvert.ai. It preserves your layout, colors, typography, header, footer, and page content, and makes it editable in WordPress.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpconvert
Tags: landing page, responsive, custom header, custom footer
*/

/* External Stylesheets - @import statements MUST come before any CSS rules */
@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* CSS Variables */
:root {
}

/* Inline Styles */

/* Extracted CSS from page */
:root {
  --primary: #bc360a;
  --primary-light: #db572f;
  --primary-dark: #722d19;
  --primary-hover: #a02e08;
  --accent: #ea9629;
  --accent-dark: #d4841c;
  --accent-light: #fdf3e1;
  --font-title: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --bg-main: #f7f5e7;
  --bg-card: #ffffff;
  --bg-card-hover: #fdfbf4;
  --text-main: #141412;
  --text-light: #5a4a3a;
  --border-color: #e8e5ce;
  --shadow-sm:
    0 4px 6px -1px rgba(34, 14, 16, 0.07), 0 2px 4px -1px rgba(34, 14, 16, 0.04);
  --shadow-md:
    0 10px 15px -3px rgba(34, 14, 16, 0.08),
    0 4px 6px -2px rgba(34, 14, 16, 0.04);
  --shadow-lg:
    0 20px 25px -5px rgba(34, 14, 16, 0.1),
    0 10px 10px -5px rgba(34, 14, 16, 0.05);
  --glass-bg: rgba(255, 251, 244, 0.82);
  --glass-border: rgba(234, 218, 166, 0.5);
  --glass-blur: 14px;
}
html.theme-dark {
  --bg-main: #1a0f0a;
  --bg-card: #2b1a12;
  --bg-card-hover: #3a2318;
  --text-main: #f7f5e7;
  --text-light: #c9b89a;
  --border-color: #4a2e1e;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(26, 15, 10, 0.82);
  --glass-border: rgba(188, 54, 10, 0.2);
  --primary-light: #e8704a;
  --accent-light: #3a2010;
}
* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color var(--transition-smooth),
    color var(--transition-smooth);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}
a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0px auto;
  padding: 0px 24px;
}
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-3-1 {
  grid-template-columns: 2.5fr 1fr;
}
.text-center {
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-header {
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  margin: 8px 0px 0px;
  border-radius: 2px;
}
.section-header.text-center h2::after {
  margin: 8px auto 0px;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-primary {
  background-color: var(--primary-light);
  color: rgb(255, 255, 255) !important;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background-color: transparent;
  border-color: var(--primary-light);
  color: var(--text-main);
}
.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  color: rgb(255, 255, 255) !important;
}
.btn-full {
  width: 100%;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}
.main-header {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition:
    background-color var(--transition-smooth),
    padding var(--transition-smooth),
    box-shadow var(--transition-smooth);
  padding: 20px 0px;
}
.main-header.scrolled {
  padding: 12px 0px;
  box-shadow: var(--shadow-sm);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-symbol {
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-dark)
  );
  color: rgb(255, 255, 255);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary-light);
  background-color: var(--border-color);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
  background-color: var(--border-color);
}
.sun-icon {
  display: block;
  width: 20px;
  height: 20px;
}
.moon-icon {
  display: none;
  width: 20px;
  height: 20px;
}
html.theme-dark .sun-icon {
  display: none;
}
html.theme-dark .moon-icon {
  display: block;
}
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border-width: medium;
  border-style: none;
  border-color: currentcolor;
  border-image: initial;
  cursor: pointer;
  z-index: 1100;
}
.mobile-menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}
.hero-section {
  position: relative;
  padding: 160px 0px 100px;
  background-color: var(--primary-dark);
  color: rgb(255, 255, 255);
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-overlay {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(219, 87, 47, 0.35) 0%,
    rgba(114, 45, 25, 0.97) 70%
  );
  z-index: 1;
}
.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: rgb(255, 255, 255);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-content .highlight {
  color: var(--accent);
}
.hero-lead {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 580px;
}
.hero-badge {
  background-color: var(--accent);
  color: rgb(255, 255, 255);
  margin-bottom: 20px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
}
.hero-ctas .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgb(255, 255, 255);
}
.hero-ctas .btn-secondary:hover {
  background-color: rgb(255, 255, 255);
  color: var(--primary-dark) !important;
}
.hero-quick-search {
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
}
.hero-quick-search h3 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.search-box-wrapper {
  position: relative;
  display: flex;
  margin-bottom: 16px;
}
.search-box-wrapper input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.search-box-wrapper input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: rgba(188, 54, 10, 0.22) 0px 0px 0px 3px;
}
.search-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-light);
  border-width: medium;
  border-style: none;
  border-color: currentcolor;
  border-image: initial;
  border-radius: 6px;
  color: rgb(255, 255, 255);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}
.search-btn:hover {
  background-color: var(--primary-hover);
}
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  align-items: center;
}
.quick-tags span {
  color: var(--text-light);
}
.quick-tags a {
  background-color: var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}
.quick-tags a:hover {
  background-color: var(--primary-light);
  color: rgb(255, 255, 255);
}
.dashboard-section {
  padding: 80px 0px;
  background-color: var(--bg-main);
}
.dashboard-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-light);
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tab-btn:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}
.tab-btn.active {
  background-color: var(--primary-light);
  color: rgb(255, 255, 255);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
  animation: fadeIn var(--transition-smooth);
}
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background-color: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentcolor;
}
.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}
.service-link,
.service-btn {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-light);
  cursor: pointer;
  background: none;
  border-width: medium;
  border-style: none;
  border-color: currentcolor;
  border-image: initial;
  display: inline-flex;
  align-items: center;
}
.service-link:hover,
.service-btn:hover {
  color: var(--accent);
}
.news-events-section {
  padding: 80px 0px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.news-grid {
  margin-top: 24px;
}
.news-card {
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.news-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.news-card:hover .news-image img {
  transform: scale(1.05);
}
.news-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background-color: var(--primary-light);
  color: rgb(255, 255, 255);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}
.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: block;
}
.news-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.news-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}
.read-more {
  font-weight: 600;
  font-size: 0.9rem;
}
.events-area {
  padding-left: 20px;
  border-left: 1px solid var(--border-color);
}
.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0px 32px;
}
.event-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.event-item:hover {
  border-color: var(--primary-light);
  background-color: var(--bg-card);
  transform: translateX(4px);
}
.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: rgb(255, 255, 255);
  border-radius: 6px;
  width: 50px;
  height: 50px;
  font-family: var(--font-title);
  flex-shrink: 0;
}
.event-date-badge .day {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}
.event-date-badge .month {
  font-size: 0.7rem;
  text-transform: uppercase;
}
.event-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.event-info .time {
  font-size: 0.8rem;
  color: var(--text-light);
}
.event-detail-box {
  background-color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px;
  position: relative;
  display: none;
  animation: fadeIn var(--transition-fast);
}
.event-detail-box.active {
  display: block;
}
.close-detail-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border-width: medium;
  border-style: none;
  border-color: currentcolor;
  border-image: initial;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}
.event-detail-box h5 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 4px;
  padding-right: 16px;
}
.event-detail-box .detail-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 8px;
}
.event-detail-box p {
  font-size: 0.875rem;
  color: var(--text-main);
}
.profile-section {
  padding: 80px 0px;
  background-color: var(--bg-main);
}
.certificates-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.cert-badge {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  flex: 1 1 220px;
}
.cert-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-light);
  margin-bottom: 4px;
}
.cert-desc {
  font-size: 0.8rem;
  color: var(--text-light);
}
.filter-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-light);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  background-color: var(--border-color);
}
.filter-btn.active {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: rgb(255, 255, 255);
}
.offering-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.offering-card.hide {
  display: none;
}
.off-color {
  height: 4px;
  width: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
}
.off-color.mint {
  background-color: rgb(0, 208, 132);
}
.off-color.languages {
  background-color: rgb(6, 147, 227);
}
.off-color.creative {
  background-color: rgb(235, 29, 254);
}
.off-color.ganztag {
  background-color: var(--accent);
}
.offering-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  margin-top: 8px;
}
.offering-card p {
  font-size: 0.875rem;
  color: var(--text-light);
}
.downloads-section {
  padding: 80px 0px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}
.download-search-bar {
  max-width: 600px;
  margin: 0px auto 40px;
  position: relative;
}
.download-search-bar input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 1.05rem;
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.download-search-bar input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: rgba(91, 117, 143, 0.2) 0px 0px 0px 3px;
}
.search-indicator {
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--text-light);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.download-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-smooth);
}
.download-card.hide {
  display: none;
}
.download-card:hover {
  border-color: var(--primary-light);
  background-color: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.file-type {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: rgb(255, 255, 255);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.download-info {
  flex-grow: 1;
}
.download-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.download-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 4px;
}
.file-meta {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 500;
}
.download-action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.download-action-btn:hover {
  background-color: var(--primary-light);
  color: rgb(255, 255, 255);
}
.download-action-btn svg {
  width: 20px;
  height: 20px;
}
.no-results-msg {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-size: 1.1rem;
}
.main-footer {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
  padding: 80px 0px 0px;
  color: var(--text-main);
}
.footer-grid {
  margin-bottom: 60px;
}
.footer-col h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}
.school-info p {
  font-size: 1rem;
  margin-bottom: 8px;
}
.contact-details {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-light);
}
.contact-details svg {
  color: var(--primary-light);
  flex-shrink: 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}
.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}
.form-success-msg {
  display: none;
  background-color: rgb(219, 240, 230);
  border: 1px solid rgb(61, 143, 102);
  color: rgb(28, 74, 51);
  padding: 10px;
  border-radius: 6px;
  font-size: 0.875rem;
  text-align: center;
}
html.theme-dark .form-success-msg {
  background-color: rgb(23, 54, 38);
  border: 1px solid rgb(46, 107, 77);
  color: rgb(184, 224, 204);
}
.form-success-msg.active {
  display: block;
  animation: fadeIn var(--transition-fast);
}
.school-bus-col p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.foerderverein-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.foerderverein-box h4 {
  margin-bottom: 8px;
  color: var(--primary-light);
}
.foerderverein-box p {
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.foerderverein-ctas {
  display: flex;
  gap: 8px;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0px;
  font-size: 0.875rem;
  color: var(--text-light);
}
.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal-links {
  display: flex;
  list-style: none;
  gap: 20px;
}
.footer-legal-links a {
  color: var(--text-light);
}
.footer-legal-links a:hover {
  color: var(--primary-light);
}
.modal-overlay {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}
.modal-overlay.active .modal-card {
  transform: translateY(0px);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border-width: medium;
  border-style: none;
  border-color: currentcolor;
  border-image: initial;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color var(--transition-fast);
}
.modal-close:hover {
  color: var(--accent);
}
.modal-card h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  padding-right: 24px;
}
.modal-body {
  font-size: 0.95rem;
  color: var(--text-light);
}
.modal-body h3 {
  font-size: 1.15rem;
  margin: 20px 0px 8px;
  color: var(--text-main);
}
.modal-body ul {
  list-style-position: inside;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-cta-box {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}
@media (max-width: 992px) {
  .grid-3-1 {
    grid-template-columns: 1fr;
  }
  .events-area {
    padding-left: 0px;
    border-left-width: medium;
    border-left-style: none;
    border-left-color: currentcolor;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    margin-top: 20px;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-section {
    padding: 120px 0px 60px;
    min-height: auto;
  }
  .hero-content h1 {
    font-size: 2.75rem;
  }
}
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .main-navigation {
    position: fixed;
    top: 0px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 100px 32px;
    z-index: 1050;
    transition: right var(--transition-smooth);
  }
  .main-navigation.active {
    right: 0px;
  }
  .nav-links {
    flex-direction: column;
    gap: 16px;
  }
  .nav-link {
    font-size: 1.15rem;
    display: block;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }
  .section-header h2 {
    font-size: 1.75rem;
  }
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}

/* From styles.css */
/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   TFS Brand Colors – based on theodor-fliedner-schule.org (Twenty Thirteen theme)
   ========================================================================== */

:root {
  /* === TFS Primary Brand Colors (warm red-brown palette) === */
  /* Headings / buttons: #bc360a red-brown, dark brown #722d19, deep #220e10  */
  --primary: #bc360a; /* Classic TFS red-brown */
  --primary-light: #db572f; /* Medium orange-red (hover / accents) */
  --primary-dark: #722d19; /* Deep brown (hero, dark areas) */
  --primary-hover: #a02e08; /* Darker shade of primary for hover states */

  /* === TFS Accent Colors (warm amber / orange) === */
  --accent: #ea9629; /* Light orange / warm amber */
  --accent-dark: #d4841c;
  --accent-light: #fdf3e1; /* Very pale amber tint for icon BGs */

  /* === TFS Typography – matching Twenty Thirteen theme === */
  --font-title: 'Bitter', Georgia, 'Times New Roman', serif; /* Headings */
  --font-body:
    'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif; /* Body */

  /* === Borders & Shadows === */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* === Light Mode Settings (warm off-white / beige TFS palette) === */
  --bg-main: #f7f5e7; /* TFS off-white background */
  --bg-card: #ffffff;
  --bg-card-hover: #fdfbf4; /* Slightly warm white card hover */
  --text-main: #141412; /* Near-black text (#dark-gray) */
  --text-light: #5a4a3a; /* Warm medium brown for subtitles */
  --border-color: #e8e5ce; /* TFS beige border (--light-brown approx) */
  --shadow-sm:
    0 4px 6px -1px rgba(34, 14, 16, 0.07), 0 2px 4px -1px rgba(34, 14, 16, 0.04);
  --shadow-md:
    0 10px 15px -3px rgba(34, 14, 16, 0.08),
    0 4px 6px -2px rgba(34, 14, 16, 0.04);
  --shadow-lg:
    0 20px 25px -5px rgba(34, 14, 16, 0.1),
    0 10px 10px -5px rgba(34, 14, 16, 0.05);
  --glass-bg: rgba(255, 251, 244, 0.82);
  --glass-border: rgba(234, 218, 166, 0.5);
  --glass-blur: 14px;
}

/* Dark Mode Overrides – warm dark brown tones instead of generic dark-blue */
html.theme-dark {
  --bg-main: #1a0f0a; /* Very dark warm brown */
  --bg-card: #2b1a12; /* Dark brown card */
  --bg-card-hover: #3a2318;
  --text-main: #f7f5e7; /* Off-white text */
  --text-light: #c9b89a; /* Warm tan for secondary text */
  --border-color: #4a2e1e;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(26, 15, 10, 0.82);
  --glass-border: rgba(188, 54, 10, 0.2);

  --primary-light: #e8704a; /* Brighter in dark mode for legibility */
  --accent-light: #3a2010; /* Dark amber tint for icons in dark mode */
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color var(--transition-smooth),
    color var(--transition-smooth);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utilities */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-3-1 {
  grid-template-columns: 2.5fr 1fr;
}

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

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  margin: 8px 0 0 0;
  border-radius: 2px;
}

.section-header.text-center h2::after {
  margin: 8px auto 0 auto;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary-light);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--primary-light);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition:
    background-color var(--transition-smooth),
    padding var(--transition-smooth),
    box-shadow var(--transition-smooth);
  padding: 20px 0;
}

.main-header.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-dark)
  );
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-light);
  background-color: var(--border-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--border-color);
}

.sun-icon {
  display: block;
  width: 20px;
  height: 20px;
}
.moon-icon {
  display: none;
  width: 20px;
  height: 20px;
}

html.theme-dark .sun-icon {
  display: none;
}
html.theme-dark .moon-icon {
  display: block;
}

/* Hamburger Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 160px 0 100px 0;
  background-color: var(--primary-dark);
  color: #ffffff;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(219, 87, 47, 0.35) 0%,
    rgba(114, 45, 25, 0.97) 70%
  );
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-content .highlight {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-badge {
  background-color: var(--accent);
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.hero-ctas .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.hero-ctas .btn-secondary:hover {
  background-color: #ffffff;
  color: var(--primary-dark) !important;
}

/* Hero Quick Search Box */
.hero-quick-search {
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
}

.hero-quick-search h3 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  margin-bottom: 16px;
}

.search-box-wrapper input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.search-box-wrapper input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(188, 54, 10, 0.22);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-light);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.search-btn:hover {
  background-color: var(--primary-hover);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  align-items: center;
}

.quick-tags span {
  color: var(--text-light);
}

.quick-tags a {
  background-color: var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.quick-tags a:hover {
  background-color: var(--primary-light);
  color: #ffffff;
}

/* ==========================================================================
   PORTALS & DASHBOARD SECTION
   ========================================================================== */

.dashboard-section {
  padding: 80px 0;
  background-color: var(--bg-main);
}

.dashboard-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-light);
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

.tab-btn.active {
  background-color: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn var(--transition-smooth);
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background-color: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link,
.service-btn {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-light);
  cursor: pointer;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
}

.service-link:hover,
.service-btn:hover {
  color: var(--accent);
}

/* ==========================================================================
   NEWS & EVENTS SECTION
   ========================================================================== */

.news-events-section {
  padding: 80px 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.news-grid {
  margin-top: 24px;
}

.news-card {
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.news-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background-color: var(--primary-light);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: block;
}

.news-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.news-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Events Area */
.events-area {
  padding-left: 20px;
  border-left: 1px solid var(--border-color);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 32px 0;
}

.event-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.event-item:hover {
  border-color: var(--primary-light);
  background-color: var(--bg-card);
  transform: translateX(4px);
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: #ffffff;
  border-radius: 6px;
  width: 50px;
  height: 50px;
  font-family: var(--font-title);
  flex-shrink: 0;
}

.event-date-badge .day {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.event-date-badge .month {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.event-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.event-info .time {
  font-size: 0.8rem;
  color: var(--text-light);
}

.event-detail-box {
  background-color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px;
  position: relative;
  display: none;
  animation: fadeIn var(--transition-fast);
}

.event-detail-box.active {
  display: block;
}

.close-detail-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.event-detail-box h5 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 4px;
  padding-right: 16px;
}

.event-detail-box .detail-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 8px;
}

.event-detail-box p {
  font-size: 0.875rem;
  color: var(--text-main);
}

/* ==========================================================================
   SCHOOL PROFILE SECTION
   ========================================================================== */

.profile-section {
  padding: 80px 0;
  background-color: var(--bg-main);
}

.certificates-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.cert-badge {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  flex: 1 1 220px;
}

.cert-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.cert-desc {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Interactive Fächer/AG area */
.filter-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-light);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--border-color);
}

.filter-btn.active {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: #ffffff;
}

.offering-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.offering-card.hide {
  display: none;
}

.off-color {
  height: 4px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.off-color.mint {
  background-color: #00d084;
}
.off-color.languages {
  background-color: #0693e3;
}
.off-color.creative {
  background-color: #eb1dfe;
}
.off-color.ganztag {
  background-color: var(--accent);
}

.offering-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  margin-top: 8px;
}

.offering-card p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ==========================================================================
   DOWNLOADS SECTION
   ========================================================================== */

.downloads-section {
  padding: 80px 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.download-search-bar {
  max-width: 600px;
  margin: 0 auto 40px auto;
  position: relative;
}

.download-search-bar input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 1.05rem;
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.download-search-bar input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(91, 117, 143, 0.2);
}

.search-indicator {
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--text-light);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.download-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-smooth);
}

.download-card.hide {
  display: none;
}

.download-card:hover {
  border-color: var(--primary-light);
  background-color: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.file-type {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-info {
  flex-grow: 1;
}

.download-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.download-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.file-meta {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 500;
}

.download-action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.download-action-btn:hover {
  background-color: var(--primary-light);
  color: #ffffff;
}

.download-action-btn svg {
  width: 20px;
  height: 20px;
}

.no-results-msg {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ==========================================================================
   FOOTER & CONTACT
   ========================================================================== */

.main-footer {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 0 0;
  color: var(--text-main);
}

.footer-grid {
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.school-info p {
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact-details {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.contact-details svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

.form-success-msg {
  display: none;
  background-color: hsl(150, 40%, 90%);
  border: 1px solid hsl(150, 40%, 40%);
  color: hsl(150, 45%, 20%);
  padding: 10px;
  border-radius: 6px;
  font-size: 0.875rem;
  text-align: center;
}

html.theme-dark .form-success-msg {
  background-color: hsl(150, 40%, 15%);
  border: 1px solid hsl(150, 40%, 30%);
  color: hsl(150, 40%, 80%);
}

.form-success-msg.active {
  display: block;
  animation: fadeIn var(--transition-fast);
}

.school-bus-col p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.foerderverein-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.foerderverein-box h4 {
  margin-bottom: 8px;
  color: var(--primary-light);
}

.foerderverein-box p {
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.foerderverein-ctas {
  display: flex;
  gap: 8px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--text-light);
}

.footer-legal-links a:hover {
  color: var(--primary-light);
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--accent);
}

.modal-card h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  padding-right: 24px;
}

.modal-body {
  font-size: 0.95rem;
  color: var(--text-light);
}

.modal-body h3 {
  font-size: 1.15rem;
  margin: 20px 0 8px 0;
  color: var(--text-main);
}

.modal-body ul {
  list-style-position: inside;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-cta-box {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 992px) {
  .grid-3-1 {
    grid-template-columns: 1fr;
  }

  .events-area {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    margin-top: 20px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-section {
    padding: 120px 0 60px 0;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }
}

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

  .download-grid {
    grid-template-columns: 1fr;
  }

  /* Navigation layout changes to overlay slide */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 100px 32px;
    z-index: 1050;
    transition: right var(--transition-smooth);
  }

  .main-navigation.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 16px;
  }

  .nav-link {
    font-size: 1.15rem;
    display: block;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Animations when menu is open */
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

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

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Source extracted CSS */

/* From styles.css */
/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   TFS Brand Colors – based on theodor-fliedner-schule.org (Twenty Thirteen theme)
   ========================================================================== */

:root {
  /* === TFS Primary Brand Colors (warm red-brown palette) === */
  /* Headings / buttons: #bc360a red-brown, dark brown #722d19, deep #220e10  */
  --primary: #bc360a; /* Classic TFS red-brown */
  --primary-light: #db572f; /* Medium orange-red (hover / accents) */
  --primary-dark: #722d19; /* Deep brown (hero, dark areas) */
  --primary-hover: #a02e08; /* Darker shade of primary for hover states */

  /* === TFS Accent Colors (warm amber / orange) === */
  --accent: #ea9629; /* Light orange / warm amber */
  --accent-dark: #d4841c;
  --accent-light: #fdf3e1; /* Very pale amber tint for icon BGs */

  /* === TFS Typography – matching Twenty Thirteen theme === */
  --font-title: 'Bitter', Georgia, 'Times New Roman', serif; /* Headings */
  --font-body:
    'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif; /* Body */

  /* === Borders & Shadows === */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* === Light Mode Settings (warm off-white / beige TFS palette) === */
  --bg-main: #f7f5e7; /* TFS off-white background */
  --bg-card: #ffffff;
  --bg-card-hover: #fdfbf4; /* Slightly warm white card hover */
  --text-main: #141412; /* Near-black text (#dark-gray) */
  --text-light: #5a4a3a; /* Warm medium brown for subtitles */
  --border-color: #e8e5ce; /* TFS beige border (--light-brown approx) */
  --shadow-sm:
    0 4px 6px -1px rgba(34, 14, 16, 0.07), 0 2px 4px -1px rgba(34, 14, 16, 0.04);
  --shadow-md:
    0 10px 15px -3px rgba(34, 14, 16, 0.08),
    0 4px 6px -2px rgba(34, 14, 16, 0.04);
  --shadow-lg:
    0 20px 25px -5px rgba(34, 14, 16, 0.1),
    0 10px 10px -5px rgba(34, 14, 16, 0.05);
  --glass-bg: rgba(255, 251, 244, 0.82);
  --glass-border: rgba(234, 218, 166, 0.5);
  --glass-blur: 14px;
}

/* Dark Mode Overrides – warm dark brown tones instead of generic dark-blue */
html.theme-dark {
  --bg-main: #1a0f0a; /* Very dark warm brown */
  --bg-card: #2b1a12; /* Dark brown card */
  --bg-card-hover: #3a2318;
  --text-main: #f7f5e7; /* Off-white text */
  --text-light: #c9b89a; /* Warm tan for secondary text */
  --border-color: #4a2e1e;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(26, 15, 10, 0.82);
  --glass-border: rgba(188, 54, 10, 0.2);

  --primary-light: #e8704a; /* Brighter in dark mode for legibility */
  --accent-light: #3a2010; /* Dark amber tint for icons in dark mode */
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color var(--transition-smooth),
    color var(--transition-smooth);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utilities */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-3-1 {
  grid-template-columns: 2.5fr 1fr;
}

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

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  margin: 8px 0 0 0;
  border-radius: 2px;
}

.section-header.text-center h2::after {
  margin: 8px auto 0 auto;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary-light);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--primary-light);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition:
    background-color var(--transition-smooth),
    padding var(--transition-smooth),
    box-shadow var(--transition-smooth);
  padding: 20px 0;
}

.main-header.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-dark)
  );
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-light);
  background-color: var(--border-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--border-color);
}

.sun-icon {
  display: block;
  width: 20px;
  height: 20px;
}
.moon-icon {
  display: none;
  width: 20px;
  height: 20px;
}

html.theme-dark .sun-icon {
  display: none;
}
html.theme-dark .moon-icon {
  display: block;
}

/* Hamburger Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 160px 0 100px 0;
  background-color: var(--primary-dark);
  color: #ffffff;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(219, 87, 47, 0.35) 0%,
    rgba(114, 45, 25, 0.97) 70%
  );
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-content .highlight {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-badge {
  background-color: var(--accent);
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.hero-ctas .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.hero-ctas .btn-secondary:hover {
  background-color: #ffffff;
  color: var(--primary-dark) !important;
}

/* Hero Quick Search Box */
.hero-quick-search {
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
}

.hero-quick-search h3 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  margin-bottom: 16px;
}

.search-box-wrapper input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.search-box-wrapper input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(188, 54, 10, 0.22);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-light);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.search-btn:hover {
  background-color: var(--primary-hover);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  align-items: center;
}

.quick-tags span {
  color: var(--text-light);
}

.quick-tags a {
  background-color: var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.quick-tags a:hover {
  background-color: var(--primary-light);
  color: #ffffff;
}

/* ==========================================================================
   PORTALS & DASHBOARD SECTION
   ========================================================================== */

.dashboard-section {
  padding: 80px 0;
  background-color: var(--bg-main);
}

.dashboard-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-light);
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

.tab-btn.active {
  background-color: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn var(--transition-smooth);
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background-color: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link,
.service-btn {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-light);
  cursor: pointer;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
}

.service-link:hover,
.service-btn:hover {
  color: var(--accent);
}

/* ==========================================================================
   NEWS & EVENTS SECTION
   ========================================================================== */

.news-events-section {
  padding: 80px 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.news-grid {
  margin-top: 24px;
}

.news-card {
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.news-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background-color: var(--primary-light);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: block;
}

.news-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.news-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Events Area */
.events-area {
  padding-left: 20px;
  border-left: 1px solid var(--border-color);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 32px 0;
}

.event-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.event-item:hover {
  border-color: var(--primary-light);
  background-color: var(--bg-card);
  transform: translateX(4px);
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: #ffffff;
  border-radius: 6px;
  width: 50px;
  height: 50px;
  font-family: var(--font-title);
  flex-shrink: 0;
}

.event-date-badge .day {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.event-date-badge .month {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.event-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.event-info .time {
  font-size: 0.8rem;
  color: var(--text-light);
}

.event-detail-box {
  background-color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px;
  position: relative;
  display: none;
  animation: fadeIn var(--transition-fast);
}

.event-detail-box.active {
  display: block;
}

.close-detail-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.event-detail-box h5 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 4px;
  padding-right: 16px;
}

.event-detail-box .detail-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 8px;
}

.event-detail-box p {
  font-size: 0.875rem;
  color: var(--text-main);
}

/* ==========================================================================
   SCHOOL PROFILE SECTION
   ========================================================================== */

.profile-section {
  padding: 80px 0;
  background-color: var(--bg-main);
}

.certificates-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.cert-badge {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  flex: 1 1 220px;
}

.cert-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.cert-desc {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Interactive Fächer/AG area */
.filter-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-light);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--border-color);
}

.filter-btn.active {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: #ffffff;
}

.offering-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.offering-card.hide {
  display: none;
}

.off-color {
  height: 4px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.off-color.mint {
  background-color: #00d084;
}
.off-color.languages {
  background-color: #0693e3;
}
.off-color.creative {
  background-color: #eb1dfe;
}
.off-color.ganztag {
  background-color: var(--accent);
}

.offering-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  margin-top: 8px;
}

.offering-card p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ==========================================================================
   DOWNLOADS SECTION
   ========================================================================== */

.downloads-section {
  padding: 80px 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.download-search-bar {
  max-width: 600px;
  margin: 0 auto 40px auto;
  position: relative;
}

.download-search-bar input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 1.05rem;
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.download-search-bar input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(91, 117, 143, 0.2);
}

.search-indicator {
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--text-light);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.download-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-smooth);
}

.download-card.hide {
  display: none;
}

.download-card:hover {
  border-color: var(--primary-light);
  background-color: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.file-type {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-info {
  flex-grow: 1;
}

.download-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.download-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.file-meta {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 500;
}

.download-action-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.download-action-btn:hover {
  background-color: var(--primary-light);
  color: #ffffff;
}

.download-action-btn svg {
  width: 20px;
  height: 20px;
}

.no-results-msg {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ==========================================================================
   FOOTER & CONTACT
   ========================================================================== */

.main-footer {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 0 0;
  color: var(--text-main);
}

.footer-grid {
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.school-info p {
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact-details {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.contact-details svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

.form-success-msg {
  display: none;
  background-color: hsl(150, 40%, 90%);
  border: 1px solid hsl(150, 40%, 40%);
  color: hsl(150, 45%, 20%);
  padding: 10px;
  border-radius: 6px;
  font-size: 0.875rem;
  text-align: center;
}

html.theme-dark .form-success-msg {
  background-color: hsl(150, 40%, 15%);
  border: 1px solid hsl(150, 40%, 30%);
  color: hsl(150, 40%, 80%);
}

.form-success-msg.active {
  display: block;
  animation: fadeIn var(--transition-fast);
}

.school-bus-col p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.foerderverein-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.foerderverein-box h4 {
  margin-bottom: 8px;
  color: var(--primary-light);
}

.foerderverein-box p {
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.foerderverein-ctas {
  display: flex;
  gap: 8px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--text-light);
}

.footer-legal-links a:hover {
  color: var(--primary-light);
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--accent);
}

.modal-card h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  padding-right: 24px;
}

.modal-body {
  font-size: 0.95rem;
  color: var(--text-light);
}

.modal-body h3 {
  font-size: 1.15rem;
  margin: 20px 0 8px 0;
  color: var(--text-main);
}

.modal-body ul {
  list-style-position: inside;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-cta-box {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 992px) {
  .grid-3-1 {
    grid-template-columns: 1fr;
  }

  .events-area {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    margin-top: 20px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-section {
    padding: 120px 0 60px 0;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }
}

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

  .download-grid {
    grid-template-columns: 1fr;
  }

  /* Navigation layout changes to overlay slide */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 100px 32px;
    z-index: 1050;
    transition: right var(--transition-smooth);
  }

  .main-navigation.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 16px;
  }

  .nav-link {
    font-size: 1.15rem;
    display: block;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Animations when menu is open */
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

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

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}

/* WordPress-specific styles */
.wp-block-group {
  margin-bottom: 1rem;
}

.wp-block-image {
  margin-bottom: 1rem;
}

.wp-block-button {
  margin-bottom: 1rem;
}

/* CRITICAL: Reset WordPress default constraints that break layouts */
/* WordPress adds default max-width to containers which breaks original layouts */
.entry-content,
.site-content,
.content-area {
  max-width: none !important;
  width: 100% !important;
}

/* EC-CONTAIN-001: Only override .container / section max-width when the site's
   own CSS does NOT define them. Tailwind and Bootstrap sites intentionally set
   .container { max-width: … } — blasting it with !important breaks every section. */
section,
.section {
  max-width: none !important;
}

/* EC-ANIM-008 / EC-ANIM-009: Scroll-reveal utilities (.scroll-fade-up etc.) start at opacity:0
   and transition to visible when an IntersectionObserver adds .visible (injected in functions.php).
   Carousels inside scroll-reveal wrappers must be forced visible immediately so Embla can measure. */
.scroll-fade-up:has([aria-roledescription='carousel']),
.scroll-fade-up:has([data-wpconvert-blog-filter-bar]),
.scroll-fade-left:has([aria-roledescription='carousel']),
.scroll-fade-right:has([aria-roledescription='carousel']),
.scroll-scale-in:has([aria-roledescription='carousel']) {
  opacity: 1 !important;
  transform: none !important;
}

/* EC-SCROLL-001: Auto-scroll marquee CSS (always included - lightweight, no-op if no marquee elements) */

/* EC-SCROLL-001: Auto-scroll gallery marquee animation */
/* Replaces React requestAnimationFrame/scrollLeft with pure CSS animation */
.wpconvert-marquee-container {
  overflow: hidden !important;
}
.wpconvert-marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: wpconvert-marquee 30s linear infinite;
}
@keyframes wpconvert-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* Pause on hover for accessibility */
.wpconvert-marquee-container:hover .wpconvert-marquee-track {
  animation-play-state: paused;
}
/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .wpconvert-marquee-track {
    animation: none;
    overflow-x: auto;
  }
}

/* EC-ANIM-011: Frozen Framer Motion infinite float/pulse animations replaced with CSS keyframes.
   4 float variants with staggered durations and amplitudes, plus a pulse variant. */
@keyframes wpconvert-float-1 {
  0%,
  100% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(8px);
  }
}
@keyframes wpconvert-float-2 {
  0%,
  100% {
    transform: translateY(6px);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes wpconvert-float-3 {
  0%,
  100% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(12px);
  }
}
@keyframes wpconvert-float-4 {
  0%,
  100% {
    transform: translateY(10px);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes wpconvert-pulse {
  0%,
  100% {
    scale: 1;
  }
  50% {
    scale: 1.05;
  }
}
@keyframes wpconvert-float-tilt {
  0%,
  100% {
    transform: translateY(0%) rotate(0deg);
  }
  50% {
    transform: translateY(4%) rotate(-2deg);
  }
}
.wpconvert-float-1 {
  animation: wpconvert-float-1 5s ease-in-out infinite;
}
.wpconvert-float-2 {
  animation: wpconvert-float-2 6s ease-in-out infinite 0.5s;
}
.wpconvert-float-3 {
  animation: wpconvert-float-3 5.5s ease-in-out infinite 1s;
}
.wpconvert-float-4 {
  animation: wpconvert-float-4 6.5s ease-in-out infinite 1.5s;
}
.wpconvert-pulse {
  animation: wpconvert-pulse 4s ease-in-out infinite;
}
.wpconvert-float-tilt {
  animation: wpconvert-float-tilt 6s ease-in-out infinite;
}
/* EC-ANIM-011c: z-0 override for centered pulse cards whose z-10 was demoted */
.wpconvert-pulse.z-0 {
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .wpconvert-float-1,
  .wpconvert-float-2,
  .wpconvert-float-3,
  .wpconvert-float-4,
  .wpconvert-pulse,
  .wpconvert-float-tilt {
    animation: none;
  }
}

/* WPConvert Tabs Component CSS */

/* WPConvert Tabs Component */
.wpconvert-tabs {
  max-width: 64rem;
  margin: 0 auto;
}

.wpconvert-tab-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .wpconvert-tab-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .wpconvert-tab-nav {
    grid-template-columns: repeat(6, 1fr);
  }
}

.wpconvert-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpconvert-tab-btn:hover {
  border-color: hsl(var(--primary) / 0.5);
  color: hsl(var(--foreground));
}

.wpconvert-tab-btn.active {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.wpconvert-tab-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.5rem;
}

.wpconvert-tab-icon svg {
  width: 100%;
  height: 100%;
}

.wpconvert-tab-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.wpconvert-tab-viewport {
  position: relative;
  display: flex;
  align-items: center;
}

.wpconvert-tab-content {
  flex: 1;
  position: relative;
}

.wpconvert-tab-panel {
  display: none;
  padding: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(
    135deg,
    hsl(var(--card)) 0%,
    hsl(var(--muted) / 0.3) 100%
  );
  border: 1px solid hsl(var(--border));
  text-align: center;
  animation: wpconvert-tab-fade-in 0.3s ease;
}

.wpconvert-tab-panel.active {
  display: block;
}

@keyframes wpconvert-tab-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wpconvert-tab-icon-large {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
  padding: 1rem;
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpconvert-tab-icon-large svg {
  width: 100%;
  height: 100%;
  color: hsl(var(--primary));
}

.wpconvert-tab-title {
  font-family: var(--font-display, inherit);
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .wpconvert-tab-title {
    font-size: 1.875rem;
  }
}

.wpconvert-tab-description {
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.wpconvert-tab-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.wpconvert-tab-arrow:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.wpconvert-tab-prev {
  left: -1rem;
}

@media (min-width: 640px) {
  .wpconvert-tab-prev {
    left: -1.5rem;
  }
}

.wpconvert-tab-next {
  right: -1rem;
}

@media (min-width: 640px) {
  .wpconvert-tab-next {
    right: -1.5rem;
  }
}

.wpconvert-tab-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.wpconvert-tab-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: hsl(var(--muted-foreground) / 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpconvert-tab-dot:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}

.wpconvert-tab-dot.active {
  background: hsl(var(--primary));
  width: 2rem;
  border-radius: 0.375rem;
}

/* EC-MSTEP-001: Multi-step form wizard CSS */

/* EC-MSTEP-001: Multi-step form wizard */
.wpconvert-multistep-form {
  width: 100%;
}
.wpconvert-step-panel {
  display: none;
}
.wpconvert-step-panel.active {
  display: block;
  animation: wpconvert-step-fade-in 0.25s ease;
}
@keyframes wpconvert-step-fade-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.wpconvert-step-progress-fill {
  transition: width 0.4s ease-out;
}
/* Signature canvas */
canvas[data-wpc-sig-init] {
  width: 100%;
  min-height: 150px;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 1rem;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

/* EC-CALC-001: Interactive calculator CSS */

/* EC-CALC-001: Interactive calculator */
[data-wpc-calc] input[type='range'] {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
[data-wpc-calc] input[type='range']:focus {
  outline: none;
}
[data-wpc-calc] [data-wpc-calc-toggle].wpc-calc-toggle-active {
  opacity: 1;
}
[data-wpc-calc] [data-wpc-calc-toggle]:not(.wpc-calc-toggle-active) {
  opacity: 0.6;
}

/* CRITICAL FIX: Ensure gradient overlays respect their default hidden state */
/* NOTE: The main fix is in cleanHtmlContent() which corrects captured hover states */
/* These CSS rules are a FALLBACK to ensure overlays stay hidden if any slip through */

/* Keep gradient overlays hidden - they're decorative hover effects */
.group [class*='absolute'][class*='inset-0'][class*='bg-gradient'].opacity-0 {
  opacity: 0 !important;
}

/* Keep bottom accent bars hidden by default */
.group [class*='absolute'][class*='bottom-0'][class*='bg-gradient'].scale-x-0 {
  transform: scaleX(0) !important;
}

/* Reset WordPress default margins that break spacing */
.entry-content > *:first-child,
.site-content > *:first-child {
  margin-top: 0 !important;
}

/* EC-DARK-001: In dark-themed sites (html.dark), containers with explicit bg-white
   backgrounds need dark text. The .dark scope sets --foreground to a light color,
   making text invisible on white cards. Reset to :root-scope (light) variable values. */
.dark .bg-white,
.dark [class*='bg-white'] {
  --foreground: 222.2 84% 4.9%;
  --muted-foreground: 215.4 16.3% 46.9%;
  color: hsl(222.2 84% 4.9%);
}
.dark .bg-white .text-foreground,
.dark [class*='bg-white'] .text-foreground,
.dark .bg-white [class*='text-foreground'],
.dark [class*='bg-white'] [class*='text-foreground'] {
  color: hsl(222.2 84% 4.9%);
}

/* Navigation Menu Styling - Universal for all dropdown patterns */
/* Reset ALL menu items */
.menu-item,
li.menu-item,
li.menu-item-type-post_type,
li.menu-item-type-custom,
li.menu-item-object-page,
li.menu-item-has-children {
  position: relative;
  list-style: none !important;
  margin: 0;
}

/* CRITICAL: Top-level menu MUST be horizontal - Maximum specificity */
/* NOTE: nav ul#wpconvert-primary-ul is NOT included here to avoid conflicting with .main-nav styling */
/* EC-NAV-095: Do NOT set gap here. A fixed gap with !important (previously 0.25rem, briefly 2rem) overrides
   menus.json ulClasses / Tailwind (e.g. gap-8) and breaks diverse nav densities. Spacing comes from ulClasses. */
header ul#wpconvert-primary-ul,
#wpconvert-primary-ul,
#wpconvert-primary-ul.menu,
ul#wpconvert-primary-ul.menu,
ul.menu:not(.submenu):not(.sub-menu) {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

/* CRITICAL: Preserve original .main-nav styling for static sites - MUST come AFTER generic rules */
/* MAXIMUM specificity with header prefix ensures this overrides ALL other rules */
header nav.main-nav ul#wpconvert-primary-ul,
header .main-nav ul#wpconvert-primary-ul,
nav.main-nav ul#wpconvert-primary-ul,
.main-nav #wpconvert-primary-ul,
.main-nav ul#wpconvert-primary-ul {
  /* Inherit the original .main-nav ul styles */
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

/* Preserve original .main-nav link styling */
header nav.main-nav ul#wpconvert-primary-ul a,
header .main-nav ul#wpconvert-primary-ul a,
nav.main-nav ul#wpconvert-primary-ul a,
.main-nav #wpconvert-primary-ul a,
.main-nav ul#wpconvert-primary-ul a {
  text-decoration: none;
  font-weight: 500;
}

/* CRITICAL: Top-level items MUST be inline - Maximum specificity for ALL WordPress classes */
/* NOTE: nav ul#wpconvert-primary-ul > li is NOT included to avoid conflicting with .main-nav */
header ul#wpconvert-primary-ul > li,
#wpconvert-primary-ul > li,
#wpconvert-primary-ul > li.menu-item,
#wpconvert-primary-ul > li.menu-item-type-post_type,
#wpconvert-primary-ul > li.menu-item-type-custom,
#wpconvert-primary-ul > li.menu-item-object-page,
#wpconvert-primary-ul > li.menu-item-object-custom,
#wpconvert-primary-ul > li.menu-item-has-children,
#wpconvert-primary-ul > li.current-menu-item,
#wpconvert-primary-ul > li.current_page_item,
#wpconvert-primary-ul > li.current-menu-ancestor,
#wpconvert-primary-ul.menu > li,
ul.menu:not(.submenu):not(.sub-menu) > li,
body #wpconvert-primary-ul > li {
  display: inline-block !important;
  position: relative !important;
  flex-shrink: 0 !important;
  list-style: none !important;
  margin: 0 !important;
  vertical-align: middle !important;
  float: none !important;
  width: auto !important;
  clear: none !important;
}

/* Top-level links maintain their button appearance */
#wpconvert-primary-ul > .menu-item > a {
  /* Keep original classes for styling */
}

/* Hide submenus by default with high z-index - CRITICAL for all sites */
.menu-item.menu-item-has-children > .submenu,
.menu-item.menu-item-has-children > .sub-menu,
.menu-item-has-children > ul,
li.menu-item-has-children > ul {
  display: none !important; /* Important to override inline-flex and other display classes */
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: white !important;
  min-width: 200px !important;
  max-width: 500px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  z-index: 9999 !important; /* Higher than content */
  padding: 0.5rem 0 !important;
  list-style: none !important;
  margin: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.375rem !important;
}

/* Show on hover/focus - Maximum specificity to override everything */
.menu-item.menu-item-has-children:hover > .submenu,
.menu-item.menu-item-has-children:hover > .sub-menu,
.menu-item.menu-item-has-children:hover > ul,
.menu-item.menu-item-has-children:focus-within > .submenu,
.menu-item.menu-item-has-children:focus-within > .sub-menu,
.menu-item.menu-item-has-children:focus-within > ul,
li.menu-item-has-children:hover > ul,
li.menu-item-has-children:focus-within > ul {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Force submenu items to display as block - Override ALL WordPress and utility classes */
.submenu li,
.submenu .menu-item,
.submenu .menu-item-type-post_type,
.submenu .menu-item-type-custom,
.submenu .menu-item-object-page,
.submenu .menu-item-object-custom,
.submenu .current-menu-item,
.submenu .current_page_item,
ul.sub-menu li,
ul.sub-menu .menu-item,
body .submenu li {
  display: block !important;
  width: 100% !important;
  position: relative !important;
  flex-direction: column !important;
  list-style: none !important;
  float: none !important;
  clear: both !important;
}

.submenu .menu-item a,
.submenu a,
ul.sub-menu a {
  display: block !important;
  width: 100% !important;
  padding: 0.5rem 1rem !important;
  white-space: nowrap !important;
  text-align: left !important;
}

/* Override ANY utility classes that could break submenu layout */
.submenu .menu-item.inline-flex,
.submenu .menu-item.flex,
.submenu .menu-item.grid,
.submenu li.inline-flex,
.submenu li.flex,
.submenu li.grid,
.submenu .inline-flex,
.submenu .flex,
.submenu .grid {
  display: block !important;
  flex-direction: column !important;
}

.submenu .menu-item a.inline-flex,
.submenu .menu-item a.flex,
.submenu .menu-item a.grid,
.submenu a.inline-flex,
.submenu a.flex,
.submenu a.grid {
  display: block !important;
}

/* Ensure submenu container is vertical */
.submenu,
ul.sub-menu {
  flex-direction: column !important;
  display: block !important;
}

/* FLAT NAV ACTIVE STATE - For React/Vite sites converted to wp_nav_menu() */
/* EC-NAV-010: Dynamic current page highlighting */
/* The .wpconvert-active-link class is added by WPConvert_Flat_Menu_Walker to current page links */
.wpconvert-active-link {
  /* Default active styling - will be enhanced by extracted classes if available */
  font-weight: 600;
}

/* EC-NAV-010: When active link has text-primary class, override any text-foreground from base */
/* This ensures the active item shows the highlighted color (text-primary = green/brand color) */
a.wpconvert-active-link.text-primary,
.current-menu-item > a.text-primary,
.current_page_item > a.text-primary {
  color: hsl(var(--primary)) !important;
}

/* EC-NAV-010: Ensure inactive items don't get active color */
/* Links WITHOUT wpconvert-active-link should use text-foreground */
nav a.text-foreground:not(.wpconvert-active-link):not(.text-primary) {
  color: hsl(var(--foreground)) !important;
}

/* Also style current-menu-item for flat navs */
.current-menu-item > a,
.current_page_item > a,
a.current-menu-item,
a.wpconvert-active-link {
  /* The actual active styling comes from extracted activeLinkClasses */
  /* These are fallback styles if extraction doesn't provide specific classes */
}

/* Flat nav submenu styling */
.wpconvert-flat-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
  padding: 0.5rem 0;
  display: none;
  z-index: 9999;
}

.wpconvert-flat-submenu a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

/* EC-NAV-140: Large flat dropdowns flow into two columns (mega-style) without extra walker markup */
.wpconvert-flat-submenu--mega-cols-2 {
  min-width: min(640px, 92vw);
  column-count: 2;
  column-gap: 2.5rem;
  padding: 0.75rem 1.25rem !important;
}
.wpconvert-flat-submenu--mega-cols-2 > a {
  white-space: normal !important;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
/* Show flat submenu when parent <li> hovers (wp_nav_menu wraps items in li.menu-item-has-children) */
li.menu-item-has-children:hover > .wpconvert-flat-submenu,
li.menu-item-has-children:focus-within > .wpconvert-flat-submenu {
  display: block !important;
}

/* Hide Radix UI viewport containers and similar dropdown containers - Universal */
[data-radix-navigation-menu-viewport],
[class*='viewport'][data-state='open'],
[class*='popover'][data-state='open'],
.radix-navigation-menu-viewport,
nav > div[class*='absolute'][class*='top-full'] {
  display: none !important;
  visibility: hidden !important;
}

/* EC-DIALOG-001: Hide Radix Sheet/Dialog overlays and panels that survive into converted themes */
/* These are interactive React components captured in open state during snapshot */
[role='dialog'][class*='fixed'],
[data-radix-dialog-content][class*='fixed'],
div[data-state='open'][class*='fixed'][class*='inset-0'][class*='bg-black'],
div[data-state='open'][class*='fixed'][class*='inset-0'][class*='backdrop'] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .menu-item.menu-item-has-children > .submenu {
    position: static;
    box-shadow: none;
  }
}

/* CRITICAL: Ensure header and navigation are above hero/content sections */
/* Only apply relative positioning if nav is NOT sticky/fixed/absolute */
/* Exclude #wpconvert-mobile-nav — it must stay position:fixed as an overlay */
/* EC-NAV-190: Also exclude position:absolute overlay headers (Tailwind
   "absolute" utility class) — common in hero-overlay navbars (e.g.
   svg-to-site-magic-main: <header class="absolute inset-x-0 top-6 z-30 ...">).
   Without this exclusion, the !important rule below forces the absolute
   overlay header into normal flow, taking up its full height and pushing
   the hero section down by ~80px (visible as a white band above the navbar). */
header:not([class*='sticky']):not([class*='fixed']):not([class*='absolute']),
.site-header:not([class*='sticky']):not([class*='fixed']):not(
    [class*='absolute']
  ),
nav:not([class*='sticky']):not([class*='fixed']):not([class*='absolute']):not(
    #wpconvert-mobile-nav
  ),
[role='banner']:not([class*='sticky']):not([class*='fixed']):not(
    [class*='absolute']
  ),
[role='navigation']:not([class*='sticky']):not([class*='fixed']):not(
    [class*='absolute']
  ):not(#wpconvert-mobile-nav) {
  position: relative !important;
  z-index: 1000 !important;
}

/* Preserve sticky/fixed positioning for navs that have it */
/* CRITICAL: Ensure sticky/fixed actually works - add explicit CSS for common patterns */
nav[class*='sticky'],
nav[class*='fixed'],
header nav[class*='sticky'],
header nav[class*='fixed'],
header[class*='sticky'],
header[class*='fixed'],
.site-header[class*='sticky'],
.site-header[class*='fixed'] {
  z-index: 1000 !important; /* Keep z-index for visibility */
}

/* Explicit sticky positioning support - ensures it works even without Tailwind CSS loaded */
/* Only apply if sticky class is present and no explicit position override */
nav.sticky,
nav[class*='sticky']:not([style*='position']),
header nav.sticky,
header nav[class*='sticky']:not([style*='position']),
header.sticky,
header[class*='sticky']:not([style*='position']) {
  position: sticky !important;
}

/* Explicit fixed positioning support - ensures it works even without Tailwind CSS loaded */
nav.fixed,
nav[class*='fixed']:not([style*='position']),
header nav.fixed,
header nav[class*='fixed']:not([style*='position']),
header.fixed,
header[class*='fixed']:not([style*='position']) {
  position: fixed !important;
}

/* Common Tailwind patterns: sticky top-0, fixed top-0 */
nav[class*='sticky'][class*='top-0'],
nav[class*='fixed'][class*='top-0'],
header nav[class*='sticky'][class*='top-0'],
header nav[class*='fixed'][class*='top-0'],
header[class*='sticky'][class*='top-0'],
header[class*='fixed'][class*='top-0'] {
  top: 0 !important;
}

/* Fixed navs typically need full width */
nav[class*='fixed'][class*='w-full'],
nav[class*='fixed'][class*='top-0'],
header nav[class*='fixed'][class*='w-full'],
header nav[class*='fixed'][class*='top-0'],
header[class*='fixed'][class*='w-full'],
header[class*='fixed'][class*='top-0'] {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* Ensure hero and main content respect header z-index */
section[class*='hero'],
.hero,
main,
.site-main {
  position: relative;
  z-index: 1;
}

/* Theme-specific overrides */
/* Only apply relative if not sticky/fixed */
.site-header:not([class*='sticky']):not([class*='fixed']) {
  position: relative;
}

.site-main {
  margin-top: 0;
  padding-top: 0;
  min-height: 60vh;
}

/* Remove gap between fixed navbar and first content (white band under header).
 * Use :first-of-type (not :first-child): WP templates often have a whitespace text node
 * between <div id="primary"> and <section>, so section is never :first-child and rules
 * would silently fail (EC-NAV-086 follow-up). */
.site-main > section:first-of-type,
.site-main > div:first-of-type > section:first-of-type {
  margin-top: 0;
}

/* EC-NAV-086: Fixed nav + full-viewport hero (Tailwind min-h-screen) — React/Vite SPAs
 * stack the hero at document top with fixed nav overlaid; body/main background shows through
 * any empty band under the bar. Pull the first min-h-screen hero up by the header bar height
 * (--wpconvert-header-bar-height from header.php EC-NAV-100; fallback 4rem) so background layers
 * align with the original SPA.
 * Only on front-page template (body.front-page); skip sections with explicit pt-* / mt-* utilities.
 * :first-of-type required: newline/whitespace between #primary and hero <section> breaks :first-child. */
body.front-page
  .site-main
  #primary
  > section.min-h-screen:first-of-type:not([class*='pt-']):not([class*='mt-']),
body.front-page
  .site-main
  > div:first-of-type
  > section.min-h-screen:first-of-type:not([class*='pt-']):not([class*='mt-']) {
  /* Logged out: --wp-admin--admin-bar--height is unset → 0px. Logged in: WP sets 32px / 46px (782px). */
  margin-top: calc(
    -1 * var(--wpconvert-header-bar-height, 4rem) -
      var(--wp-admin--admin-bar--height, 0px)
  );
}

/* EC-NAV-089: Admin bar is fixed at top:0; in-flow content gets html { margin-top } but fixed nav does not,
 * so the site navbar sits under #wpadminbar. Offset primary fixed nav; exclude full-screen mobile drawer. */
body.admin-bar nav.fixed.top-0:not(#wpconvert-mobile-nav),
body.admin-bar nav.fixed[class*='top-0']:not(#wpconvert-mobile-nav) {
  top: var(--wp-admin--admin-bar--height, 32px) !important;
}

/* EC-NAV-087: Merged / blog / legacy CSS often sets body { padding-top: 5rem+ } as “clearance”
 * for fixed headers. With a fixed overlay nav, that padding does NOT move the bar — it only
 * pushes <main> down while body background shows through → white/cream band (~nav height) under
 * the bar. Stay Boost ships this in bundled style.css; EC-NAV-086 margin alone cannot cancel it. */
body.front-page {
  padding-top: 0 !important;
}

.site-footer {
  margin-top: auto;
}

/* EC-TW4-001: WordPress default style overrides */

body {
  line-height: 1.6;
}
body.wp-admin {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
}
/* EC-BTN-104: :where() = 0 specificity so Tailwind text-* utilities always win over these resets.
   Plain "a:hover { color: inherit }" can outrank .text-white on links (0,2,0 vs 0,1,0) and wash out hero CTAs. */
:where(a) {
  color: inherit;
  text-decoration: none;
}
:where(a:hover) {
  color: inherit;
}
/* EC-CSS-001: Long-hand padding-left/right (NOT shorthand 'padding: 0 20px') so
 * compound selectors like .container.hero-grid (which sets padding-top: 74px)
 * keep their vertical padding. The shorthand resets ALL four sides at the same
 * specificity, which on Dabster Labs caused the hero badge to slide under the
 * fixed 74px nav. Horizontal gutter (20px each side) unchanged; vertical
 * defaults to the browser's 0 — same effective behavior for sites that do not
 * set padding-top via another selector. */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
:where(button, .btn) {
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
input,
textarea,
select {
  font-family: inherit;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}

/* Grid Layout & Sidebar Preservation - Ensures Bootstrap and other grid systems work properly */
.grid-layout-container {
  width: 100%;
  max-width: 100%;
}

/* Preserve Bootstrap row structure */
.grid-layout-container .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

/* Ensure Bootstrap columns work */
.grid-layout-container [class*='col-'] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Bootstrap column widths - responsive */
@media (min-width: 768px) {
  .grid-layout-container .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .grid-layout-container .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .grid-layout-container .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .grid-layout-container .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .grid-layout-container .col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  .grid-layout-container .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Mobile stacking for sidebars */
@media (max-width: 767px) {
  .grid-layout-container [class*='col-'] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Sidebar styling */
.grid-layout-container aside,
.grid-layout-container [class*='sidebar'] {
  padding: 20px;
}

/* CRITICAL: Disable popups marked by WPConvert - Universal for ALL popup libraries */
/* This targets ONLY popups we've marked, regardless of the library used */
/* Users can re-enable by overriding this CSS in Customizer → Additional CSS */
[data-wpconvert-popup-disabled='true'] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
  position: absolute !important;
  left: -99999px !important;
  transform: scale(0) !important;
}

/* Also hide child elements of disabled popups (for nested structures) */
[data-wpconvert-popup-disabled='true'] * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Disable popup overlay backgrounds (universal) */
[data-wpconvert-popup-disabled='true'].overlay,
[data-wpconvert-popup-disabled='true'][class*='overlay'],
[data-wpconvert-popup-disabled='true'][class*='backdrop'],
[data-wpconvert-popup-disabled='true'][class*='bg'] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* CRITICAL: Tailwind Font Override - ensure custom fonts take precedence over Tailwind CDN */
/* Tailwind CDN generates CSS dynamically that can override static CSS, so we use !important */
/* No custom font classes detected */

/* EC-NAV-162b: Site CSS sets position:fixed on header — override WPConvert base relative reset.
   Non-Tailwind sites define fixed positioning in their stylesheet, not as a utility class.
   EC-NAV-197: selector includes :not([class*='absolute']) so specificity (0,4,0) ties the
   EC-NAV-190 safety-net; source-order then makes this override win the !important cascade. */
header:not([class*='sticky']):not([class*='fixed']):not([class*='absolute']) {
  position: fixed !important;
  z-index: 1000 !important;
}

/* EC-ANIM-008b / EC-ANIM-009: carousel-only override — scroll-reveal elements animate via IO in functions.php */
.scroll-fade-up:has([aria-roledescription='carousel']),
.scroll-fade-up:has([data-wpconvert-blog-filter-bar]),
.scroll-fade-left:has([aria-roledescription='carousel']),
.scroll-fade-right:has([aria-roledescription='carousel']),
.scroll-scale-in:has([aria-roledescription='carousel']) {
  opacity: 1 !important;
  transform: none !important;
}
