:root {
  /* Color Palette derived from logo.png (Dominant Colors) */
  --primary: hsl(214, 48%, 28%);
  /* Deep slate blue (#1d3453) */
  --primary-light: hsl(280, 50%, 95%);
  /* Soft light slate blue for backgrounds and highlights */
  --primary-dark: hsl(214, 55%, 12%);
  /* Deep dark blue-black for high contrast and footers */
  --accent: #f48665;
  /* Vibrant coral/orange-red (#f48665) */
  --accent-hover: #df6d4b;
  /* Darker coral for hover states */
  --logo-teal: #8cbda8;
  /* Soft sage green from the logo */
  --logo-red: #f28463;
  /* Vibrant coral/red from the logo */
  --logo-purple: #a48fba;
  /* Soft pastel purple from the logo */
  --logo-gold: #fcb758;
  /* Vibrant gold from the logo */
  --text-dark: hsl(214, 30%, 12%);
  /* Tinted dark neutral for typography */
  --text-muted: hsl(214, 15%, 42%);
  --text-light: hsl(214, 25%, 98%);
  --bg-light: hsl(214, 20%, 99%);
  --bg-card: #8cbda8;
  --bg-dark: hsl(214, 30%, 10%);
  --border-color: hsl(214, 15%, 92%);

  /* Typography */
  --font-sans:
    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-title: "Montserrat", sans-serif;

  /* Shadows & Borders */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px hsla(214, 48%, 28%, 0.15);
  --border-radius-sm: 6px;
  --border-radius-sm-f: 6px 6px 0 0;
  --border-radius-sm-l: 0 0 6px 6px;
  --border-radius-md: 12px;
  --border-radius-md-f: 12px 12px 0 0;
  --border-radius-md-l: 0 0 12px 12px;
  --border-radius-lg: 20px;
  --border-radius-lg-f: 20px 20px 0 0;
  --border-radius-lg-l: 0 0 20px 20px;
  --border-radius-xl: 30px;
  --border-radius-xl-f: 30px 30px 0 0;
  --border-radius-xl-l: 0 0 30px 30px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Spacing */
  --section-padding: 80px;
  --header-height: 150px;
  --mobile-header-height: 70px;
  --toolbar-height: 40px;
}

/* --- Core Resets --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-sm);
}

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --- Layout Elements --- */
.container {
  width: 90%;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding) 0;
}

.section-secondary {
  background-color: var(--primary-light);
}

.section-dark {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

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

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

/* Section Title Widget */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-tag {
  font-family: var(--font-title);
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 15px;
}

.section-dark .section-title {
  color: var(--text-light);
}

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

.section-dark .section-desc {
  color: hsl(210, 20%, 80%);
}

/* --- Top Toolbar --- */
.top-toolbar {
  height: var(--toolbar-height);
  background-color: var(--primary-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 101;
}

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

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

/* Translator Switcher */
.lang-switcher {
  position: relative;
}

.lang-trigger {
  background: none;
  border: none;
  color: #036097;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.lang-trigger:hover {
  color: var(--accent);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  margin-top: 10px;
  width: 110px;
  display: none;
  z-index: 200;
  border: 1px solid var(--border-color);
}

.header-right {
  height: var(--header-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding-bottom: 10px;
}

.lang-dropdown.show {
  display: block;
  animation: slideDownFade 0.2s ease;
}

.lang-dropdown li a {
  display: block;
  padding: 8px 12px;
  color: var(--text-dark);
  font-weight: 500;
}

.lang-dropdown li a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.lang-dropdown li:first-child a:hover {
  border-radius: var(--border-radius-sm-f);
}

.lang-dropdown li:last-child a:hover {
  border-radius: var(--border-radius-sm-l);
}

.lang-dropdown li a.active {
  background-color: var(--primary);
  color: var(--text-light);
}

.active-primary {
  border-radius: var(--border-radius-sm-f);
}

.active-last {
  border-radius: var(--border-radius-sm-l);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  color: #036097;
  font-size: 1rem;
  opacity: 0.8;
}

.social-links a:hover {
  opacity: 1;
  color: var(--accent);
  transform: scale(1.15);
}

/* --- Main Header / Navigation --- */
.main-header {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
}

.main-header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

/* Logo styling */
.logo-link {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  height: 80% !important;
  width: auto;
  object-fit: contain;
}

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

.logo-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
}

/* Menu items */
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

}

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 25px;
}

.desktop-nav .nav-menu>li>a {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #036097;
  padding: 8px 0;
  display: block;
  font-size: 0.95rem;
}

.desktop-nav .nav-menu>li>a:hover,
.desktop-nav .nav-menu>li>a.active {
  color: var(--primary);
}

.flex-row2 {
  border-top: 2px solid #df6d4b;
  padding-top: 10px;
  margin-top: 10px;
}



/* Dropdown Menu on Navigation */
.dropdown-parent {
  position: relative;
}

.dropdown-parent:hover .dropdown-menu {
  display: block;
  animation: slideDownFade 0.25s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--accent);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  width: 250px;
  border: 1px solid var(--border-color);
  z-index: 105;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.dropdown-menu li a:hover {
  background-color: var(--primary-light);
}

.dropdown-menu li:first-child a:hover {
  border-radius: var(--border-radius-md-f);
}

.dropdown-menu li:last-child a:hover {
  border-radius: var(--border-radius-md-l);
}

.dropdown-menu li a.active {
  background-color: var(--primary);
  color: var(--primary-light);
}

.active-primary-menu {
  border-radius: var(--border-radius-md-f) !important;
}

.active-last-menu {
  border-radius: var(--border-radius-md-l) !important;
}

/* RTL Dropdown Overrides for Arabic Page */
html[dir="rtl"] .dropdown-menu {
  right: 0;
  left: auto;
}

html[dir="rtl"] .dropdown-menu li a {
  text-align: right;
}

.nav-arrow {
  font-size: 1rem;
  margin-left: 3px;
  transition: var(--transition-fast);
  color: var(--accent-hover) !important;
}

.dropdown-parent:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Store Navigation Button */
.nav-store-btn {
  color: #f3653a !important;
  gap: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;

  padding: 8px 0px;
}

.nav-store-btn:hover {
  color: black !important;
}

.extern-icon {
  font-size: 1rem;
}

/* --- Mobile Menu Drawer --- */
.mobile-menu-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-trigger .bar {
  width: 24px;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.active {
  right: 0px;
  height: 600px;
  border-radius: var(--border-radius-lg);
  top: 90px;
}

.drawer-header {
  height: var(--mobile-header-height);
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-menu>li {
  margin-bottom: 0px;
}

.drawer-menu>li>a {
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.drawer-menu>li>a.active {
  color: var(--primary);
}

.drawer-dropdown-toggle {
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.dropdown-arrow {
  transition: var(--transition-normal);
}

.drawer-dropdown-parent.open .dropdown-arrow {
  transform: rotate(180deg);
}

.drawer-submenu {
  padding-left: 20px;
  display: none;
  margin-top: 5px;
  border-left: 2px solid var(--primary-light);
}

.drawer-dropdown-parent.open .drawer-submenu {
  display: block;
}

.drawer-submenu li a {
  display: block;
  padding: 8px 0;
  font-weight: 500;
  font-size: 0.95rem;
}

.drawer-submenu li a.active {
  color: var(--primary);
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-light);
  border-radius: var(--border-radius-lg-l);
}

.drawer-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.drawer-socials a {
  color: var(--primary);
  font-size: 1.2rem;
}

.drawer-phone {
  text-align: center;
  font-weight: 700;
}

/* --- Hero Slideshow Widget --- */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background-color: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
  min-width: 100%;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.hero-video-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.hero-replay-btn {
  position: relative;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  border: none;
  background-color: rgba(255, 255, 255, 0.96);
  color: var(--primary-dark);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition:
    transform var(--transition-normal),
    background-color var(--transition-normal),
    color var(--transition-normal);
}

.hero-replay-btn:hover,
.hero-replay-btn:focus {
  transform: translateY(-2px);
  background-color: var(--accent);
  color: #fff;
}

.hero-replay-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--primary-dark);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .hero-slider-container {
    min-height: 70vh;
  }

  .hero-video-overlay {
    align-items: center;
    padding: 20px;
  }

  .hero-replay-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    font-size: 0.95rem;
  }
}

/* --- Hero Banner Info --- */
.hero-intro-text {
  max-width: 850px;
  margin: 0 auto;
  font-family: var(--font-title);
  font-size: 1.4rem;
  line-height: 1.7;
  font-weight: 500;
  color: var(--primary-dark);
}

/* --- Interactive Service Cards Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-normal);
  position: relative;
  border: 1px solid var(--border-color);
}

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

.card-img-container {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service-card:hover .card-img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(94, 84, 142, 0.8), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

.service-card:hover .card-overlay {
  opacity: 1;
}

.card-body {
  padding: 25px;
  text-align: center;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card-btn {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 10px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
}

.card-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.02);
}

.grid-span-2 {
  grid-column: span 2;
}

/* --- Video Presentation Zone --- */
.video-section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px auto 0 auto;
  max-width: 800px;
}

.video-thumbnail-card {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.video-thumbnail-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-slow);
}

.video-thumbnail-card:hover img {
  transform: scale(1.03);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(214, 48%, 28%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.play-btn-circle {
  width: 80px;
  height: 80px;
  background-color: var(--accent);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(244, 134, 101, 0.4);
  transition: var(--transition-normal);
  padding-left: 6px;
  /* Adjust centering of triangle */
}

.video-thumbnail-card:hover .play-btn-circle {
  transform: scale(1.15);
  background-color: var(--primary);
  box-shadow: 0 4px 15px hsla(214, 48%, 28%, 0.4);
}

/* Video Modal Styling */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-modal.show {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background-color: #000;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-modal-content video {
  width: 100%;
  height: 100%;
}

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

/* --- Social Feed Row --- */
.feed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.feed-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.iframe-container {
  width: 100%;
  max-width: 500px;
  height: 580px;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Document Grid (Transparency) --- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.doc-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.doc-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.doc-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.doc-download-btn {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.doc-card:hover .doc-download-btn {
  background-color: var(--primary);
  color: var(--text-light);
}

/* --- Team Page Components --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 80px;
}

.team-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-align: center;
  padding: 30px 20px;
  transition: var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-member-img {
  width: 250px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  margin: 20px auto 30px auto;
  box-shadow: var(--shadow-sm);
}

.team-member-name {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.team-member-role {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Technical Team Grid */
.tech-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.tech-team-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 25px 15px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.tech-team-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.tech-team-icon {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  background-color: var(--primary-light);
  object-position: center;
}

.tech-team-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Carousel/Slider (Impulsores de sueños) */
.impulsores-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.impulsores-slider {
  display: flex;
  transition: transform var(--transition-slow);
  width: 100%;
}

.impulsor-slide {
  flex: 0 0 33.333%;
  padding: 0 15px;
  box-sizing: border-box;
}

.impulsor-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  position: relative;
}

.impulsor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--primary);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.slider-arrow-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

.slider-arrow-left {
  left: 10px;
}

.slider-arrow-right {
  right: 10px;
}

/* --- Subpages Banners --- */
.subpage-banner {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.subpage-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(214, 48%, 28%, 0.6);
  z-index: 1;
}

.subpage-banner-content {
  position: relative;
  z-index: 2;
}

.subpage-title {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
}

/* --- Info Split-Column Layout --- */
.info-split-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas: "text col-img";
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.info-split-row.reverse {
  grid-template-columns: 0.85fr 1.15fr;
  grid-template-areas: "col-img text";
}

.info-text-col {
  grid-area: text;
}

.info-img-col {
  grid-area: col-img;
}

.info-text-col h2.section-tag {
  text-align: left;
  margin-bottom: 25px;
  color: var(--primary-dark);
  font-size: 1.8rem;
  font-weight: 800;
  position: relative;
  padding-bottom: 12px;
}

[dir="rtl"] .info-text-col h2.section-tag {
  text-align: right;
}

.info-text-col h2.section-tag::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

[dir="rtl"] .info-text-col h2.section-tag::after {
  left: auto;
  right: 0;
}

.info-text-col p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.info-text-col p:last-child {
  margin-bottom: 0;
}

/* Image Card Styling */
.info-image-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 35px hsla(214, 48%, 28%, 0.12);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
}

.info-image-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px hsla(214, 48%, 28%, 0.18);
}

.info-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  transition: transform var(--transition-slow);
  display: block;
}

.info-image-card:hover img {
  transform: scale(1.04);
}

.info-image-badge {
  position: absolute;
  bottom: 20px;
  inset-inline-start: 20px;
  background: rgba(29, 52, 83, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-light);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
  transition: background var(--transition-fast);
}

.info-image-card:hover .info-image-badge {
  background: var(--accent);
  cursor: pointer;
}

.info-image-badge a {
  color: inherit;
  text-decoration: none;
}

/* responsive */
@media (max-width: 992px) {

  .info-split-row,
  .info-split-row.reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "col-img";
    gap: 35px;
    margin-bottom: 60px;
  }

  .info-text-col h2.section-tag {
    font-size: 1.6rem;
  }

  .info-image-card {
    aspect-ratio: 16 / 10;
  }
}

/* --- Terapias Accordion & Lists --- */
.accordion-item {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: justify;
}

.accordion-header {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  user-select: none;
  transition: var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--primary-light);
}

.accordion-icon {
  transition: var(--transition-normal);
  color: var(--accent);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height var(--transition-normal) ease-out,
    padding var(--transition-normal) ease-out;
}

.title-gratitude {
  display: block;
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
}

.accordion-item.active .accordion-body {
  padding: 0 25px 25px 25px;
  max-height: 1200px;
  /* Adjust maximum height for content */
}

/* --- Image Gallery Grid (Ocio & Verano) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(214, 48%, 28%, 0.4);
  color: var(--text-light);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox overlay styled in CSS */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 80%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Contact & Forms --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
}

.form-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 25px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-light);
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px hsla(214, 48%, 28%, 0.1);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.form-checkbox-label input {
  margin-top: 4px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.form-submit-btn {
  width: 100%;
  background-color: var(--primary-dark);
  color: var(--text-light);
  border: none;
  padding: 14px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.form-submit-btn:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

/* Alert Banners */
.alert {
  padding: 15px 20px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Contact Info & Map card */
.contact-info-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  border: 1px solid var(--border-color);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.info-icon-box {
  width: 45px;
  height: 45px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-content h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-content p,
.info-content a {
  color: var(--text-muted);
}

.info-content a:hover {
  color: var(--primary);
}

.map-wrapper {
  margin-top: 30px;
}

.map-wrapper h4 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.map-card {
  height: 300px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* --- Infinite Sponsors Slider --- */
.sponsors-section {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
}

.sponsors-section-Carrera {
  position: relative;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  margin: auto;
  margin-bottom: 40px;
  background-color: var(--logo-gold);
  box-shadow: 10px 10px 15px var(--accent-hover);
  border-radius: 35px;
  padding-top: 30px;

}

.sponsors-section-Carrera h4 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -50px;
  background-color: var(--logo-blue);
  background-color: var(--logo-gold);
  color: var(--text-dark);
  padding: 15px 20px;
  border-radius: 50px 50px 0 0;
  letter-spacing: 2px;
  width: 40%;
  font-size: 25px;

}

.sponsors-title {
  text-align: center;
  font-family: var(--font-title);
  color: var(--primary-dark);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
  font-weight: 700;
}

.sponsors-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
  width: 85%;
  margin: auto;
}

.sponsor-item {
  width: 150px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
  border-radius: var(--border-radius-sm);
  /* padding: 10px; */
  box-shadow: var(--shadow-sm);
  /* border: 1px solid var(--border-color); */
  transition: var(--transition-fast);
  box-shadow: 1px 1px 5px;
}

.sponsor-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.sponsor-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- Ocio y Deporte Agradecimiento Card (Relieve/Raised) --- */
.sports-thanks-card {
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 35px 40px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-left: 6px solid var(--accent);
  margin-bottom: 50px;
  text-align: center;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.sports-thanks-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.sports-thanks-card .thanks-paragraph {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.sports-thanks-card .thanks-highlight {
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.sports-thanks-card .thanks-quote {
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 18px;
  margin-top: 18px;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* --- Main Footer --- */
.main-footer {
  background-color: var(--logo-purple);
  padding: 60px 0 30px 0;
  border-top: 1px solid var(--border-color);
}

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

.footer-brand .logo-link {
  height: auto;
  display: inline-flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-brand .footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 0;
}

.footer-brand .logo-title {
  color: var(--primary-dark) !important;
  font-size: 1.6rem;
  font-weight: 800;
}

.brand-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 10px;
  max-width: 320px;
}

.footer-nav-col .col-title,
.footer-contact-col .col-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.footer-contact-info li i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.copyright-text {
  margin: 0;
}

.tandem-project-text {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tandem-project-text i {
  color: var(--accent);
  font-size: 0.9rem;
}

.designer-credits {
  margin: 0;
  font-size: 0.8rem;
}

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  color: var(--text-dark);
  font-size: 0.82rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.credits-badge i {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.credits-badge:hover i {
  transform: scale(1.15) rotate(-5deg);
}

.credits-label {
  color: var(--text-muted);
}

.credits-name {
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.credits-sep {
  color: var(--text-muted);
  margin-right: 2px;
}

.credits-and {
  color: var(--text-muted);
  margin: 0 3px;
}

/* --- Privacy Policy Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background-color: var(--bg-card);
  width: 90%;
  max-width: 550px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

.modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.modal-body p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* --- CSS Animations --- */
@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }

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

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  :root {
    --section-padding: 60px;
    --header-height: 90px;
  }

  .desktop-nav {
    display: none;
  }

  .desktop-lang-switcher {
    display: none;
  }

  .header-right {
    display: none;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-middle {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
    margin-bottom: 20px;
  }

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

  .impulsor-slide {
    flex: 0 0 50%;
  }
}

@media (max-width: 1400px) {
  .sponsors-section-Carrera {
    margin-top: 50px;
  }

  .sponsors-section-Carrera h4 {
    width: 65%;
    font-size: 22px;
    top: -45px;
    padding: 12px 18px;
    border-radius: 25px 25px 0 0;
  }
}

@media (max-width: 800px) {
  .subpage-banner {
    height: 180px;
  }

  .subpage-title {
    font-size: 2.2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .grid-span-2 {
    grid-column: span 1;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-middle {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .sponsors-section-Carrera {
    margin-top: 60px;
    padding-top: 50px;
    border-radius: 25px;
  }

  .sponsors-section-Carrera h4 {
    width: 85%;
    font-size: 18px;
    padding: 10px 15px;
    top: -40px;
    border-radius: 25px 25px 0 0;
  }

  .sponsors-list {
    width: 95%;
    gap: 15px;
  }

  .sponsor-item {
    width: 120px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .top-toolbar {
    display: none;
  }

  .contact-form-card,
  .contact-info-card {
    padding: 25px 20px;
  }

  .impulsor-slide {
    flex: 0 0 100%;
  }
}

/* --- Socio Registration Form --- */
.socio-form-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.socio-form-card {
  background-color: #fff;
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.socio-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.socio-form-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 25px;
  margin-bottom: 30px;
}

.socio-main-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.socio-form-section {
  margin-bottom: 35px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
}

.socio-form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 25px;
}

.socio-section-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 10px;
}

.socio-section-title i {
  color: var(--accent);
}

.form-grid-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.col-12 {
  grid-column: span 12;
}

.col-9 {
  grid-column: span 9;
}

.col-8 {
  grid-column: span 8;
}

.col-6 {
  grid-column: span 6;
}

.col-4 {
  grid-column: span 4;
}

.col-3 {
  grid-column: span 3;
}

.required-star {
  color: #d9534f;
  margin-left: 3px;
  font-weight: bold;
}

.admin-field {
  background-color: var(--border-color);
  cursor: not-allowed;
  font-style: italic;
}

/* Collab Frequency Interactive selectors */
.collab-frequency-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.collab-freq-card {
  cursor: pointer;
  position: relative;
}

.collab-freq-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.collab-freq-card .card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  background-color: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  text-align: center;
  gap: 10px;
  height: 100%;
}

.collab-freq-card .card-inner i {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.collab-freq-card .card-inner span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.collab-freq-card:hover .card-inner {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.collab-freq-card input[type="radio"]:checked+.card-inner {
  border-color: var(--accent);
  background-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.collab-freq-card input[type="radio"]:checked+.card-inner i {
  color: var(--accent);
}

/* Amount Selector Grid */
.amount-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.amount-card {
  cursor: pointer;
  position: relative;
  flex-grow: 1;
  text-align: center;
}

.amount-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.amount-card span {
  display: block;
  padding: 12px 15px;
  background-color: var(--bg-light);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: var(--transition-normal);
  color: var(--text-dark);
}

.amount-card:hover span {
  border-color: var(--accent);
}

.amount-card input:checked+span {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.info-block-light {
  background-color: var(--primary-light);
  padding: 15px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  color: var(--primary-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-block-light i {
  color: var(--accent);
  font-size: 1.2rem;
}

/* Bank Direct Debit (IBAN layout) */
.payment-declaration {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.iban-group-container {
  background-color: var(--primary-dark);
  padding: 15px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.iban-fields-flex {
  display: flex;
  gap: 10px;
}

.iban-field-box {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-basis: 0;
}

.iban-field-box.iban-cuenta {
  flex-grow: 2;
}

.iban-label {
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

.iban-input {
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 10px 5px;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-light);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
}

.iban-input:focus {
  background-color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 134, 101, 0.25);
}

.effectiveness-selectors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* President Signature & Footer Info */
.socio-form-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
  text-align: center;
}

.president-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
}

.president-signature .role {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.president-signature .signature-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 5px;
  font-style: italic;
}

.association-legal-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.form-submit-container {
  margin-top: 30px;
}

@media (max-width: 800px) {
  .socio-form-card {
    padding: 25px 20px;
  }

  .metadata-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-grid-layout>div {
    grid-column: span 12 !important;
  }

  .collab-frequency-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkbox-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .iban-fields-flex {
    flex-wrap: wrap;
    gap: 8px;
  }

  .iban-field-box {
    min-width: 22%;
  }

  .iban-field-box.iban-cuenta {
    min-width: 100%;
    margin-top: 5px;
  }
}

/* Supporter Form Specific Styles */
.impulsor-quote-box {
  background-color: var(--primary-light);
  border-left: 4px solid var(--accent);
  padding: 15px 20px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  margin: 20px auto;
  max-width: 600px;
  text-align: center;
}

.impulsor-quote {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-style: italic;
  margin: 0;
}

.impulsor-description-text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 25px auto;
}

/* Checkbox Cards Selector */
.checkbox-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.checkbox-card {
  cursor: pointer;
  position: relative;
}

.checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  background-color: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  text-align: center;
  gap: 10px;
  height: 100%;
}

.checkbox-card-inner i {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.checkbox-card-inner span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.checkbox-card:hover .checkbox-card-inner {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.checkbox-card input[type="checkbox"]:checked+.checkbox-card-inner {
  border-color: var(--accent);
  background-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.checkbox-card input[type="checkbox"]:checked+.checkbox-card-inner i {
  color: var(--accent);
}

/* Custom Form Grid helper classes */
.checkbox-cards-grid.grid-cols-7 {
  grid-template-columns: repeat(7, 1fr);
}

.checkbox-cards-grid.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.collab-frequency-grid.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 800px) {
  .checkbox-cards-grid.grid-cols-7 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {

  .checkbox-cards-grid.grid-cols-7,
  .checkbox-cards-grid.grid-cols-2,
  .collab-frequency-grid.grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* --- Algunos Datos Quote Card --- */
.datos-quote-card {
  margin-bottom: 60px;
  line-height: 1.8;
  font-size: 1.15rem;
  padding: 30px;
  border-left: 5px solid var(--accent);
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
}

[dir="rtl"] .datos-quote-card {
  border-left: none;
  border-right: 5px solid var(--accent);
  border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

/* --- Custom Bar Chart --- */
.chart-section-card {
  background-color: #fff;
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-top: 50px;
  margin-bottom: 50px;
}

@media (max-width: 576px) {
  .chart-section-card {
    padding: 20px 15px 35px 15px;
    /* Extra padding at bottom for absolute labels */
  }
}

.chart-section-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 35px;
  text-align: center;
}

.custom-bar-chart {
  display: flex;
  height: 350px;
  position: relative;
  padding-left: 45px;
  /* Space for Y-axis labels */
  margin-top: 20px;
}

[dir="rtl"] .custom-bar-chart {
  padding-left: 0;
  padding-right: 45px;
}

.chart-y-axis {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 60px;
  /* Align with bars container height */
  width: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

[dir="rtl"] .chart-y-axis {
  left: auto;
  right: 0;
  text-align: left;
}

.chart-bars-container {
  display: flex;
  flex-grow: 1;
  justify-content: space-around;
  align-items: flex-end;
  border-left: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
  height: calc(100% - 60px);
  /* 60px reserved at bottom for absolute labels */
  position: relative;
}

[dir="rtl"] .chart-bars-container {
  border-left: none;
  border-right: 2px solid var(--border-color);
}

.chart-gridlines {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.gridline {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%;
  height: 100%;
  justify-content: flex-end;
  position: relative;
  /* Context for absolute bar-label */
  z-index: 1;
}

.chart-bar-wrapper {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.chart-bar {
  width: 70%;
  max-width: 80px;
  height: 0;
  /* Animated by CSS keyframes */
  border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  animation: growBar 1.2s cubic-bezier(0.1, 1, 0.1, 1) forwards;
}

@keyframes growBar {
  to {
    height: var(--bar-height);
  }
}

.bar-value {
  position: absolute;
  top: -25px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* Colors matching the image chart closely */
.bar-epilepsia {
  background: linear-gradient(180deg, #0066cc, #004499);
}

.bar-discapacidad {
  background: linear-gradient(180deg, #ff6600, #cc4400);
}

.bar-estrabismo {
  background: linear-gradient(180deg, #ffcc99, #ffb366);
}

.bar-auditivas {
  background: linear-gradient(180deg, #cccccc, #aaaaaa);
}

.bar-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.25;
}

@media (max-width: 800px) {
  .chart-bar-col {
    width: 24%;
  }

  .bar-label {
    font-size: 0.75rem;
    width: 130%;
  }
}

@media (max-width: 576px) {
  .custom-bar-chart {
    height: 280px;
    padding-left: 35px;
  }

  [dir="rtl"] .custom-bar-chart {
    padding-left: 0;
    padding-right: 35px;
  }

  .chart-y-axis {
    bottom: 50px;
    width: 30px;
    font-size: 0.75rem;
  }

  .chart-bars-container {
    height: calc(100% - 50px);
  }

  .bar-label {
    font-size: 0.68rem;
    width: 140%;
    line-height: 1.15;
    top: calc(100% + 8px);
  }

  .chart-bar {
    width: 85%;
  }

  .bar-value {
    font-size: 0.8rem;
    top: -20px;
  }
}

/* --- Types of Cerebral Palsy Page --- */
/* Section 2: Topographic Classification */
.topographic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-top: 25px;
}

.topo-card {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 25px 15px;
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.topo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.topo-icon-box {
  background-color: var(--primary-light);
  color: var(--primary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.topo-card:hover .topo-icon-box {
  background-color: var(--accent);
  color: #fff;
}

.topo-card-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.topo-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Section 3: Severity Deck */
.severity-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.severity-card {
  background-color: #fff;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 35px 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.severity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.level-mild::before {
  background-color: var(--primary);
}

.level-moderate::before {
  background-color: #f0ad4e;
}

.level-severe::before {
  background-color: var(--accent);
}

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

.severity-header {
  margin-bottom: 15px;
}

.severity-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 5px;
}

.severity-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

.severity-desc {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.support-requirement {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border-top: 1px dashed var(--border-color);
  padding-top: 15px;
}

.level-mild .support-requirement {
  color: var(--primary);
}

.level-moderate .support-requirement {
  color: #f0ad4e;
}

.level-severe .support-requirement {
  color: var(--accent);
}

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

@media (max-width: 768px) {
  .severity-deck {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

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

/* 3-column Grid Helper for topographic cards */
.topographic-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

/* --- Treatments Page --- */
.trata-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 992px) {
  .trata-intro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.trata-pills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}

.trata-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 30px;
  background-color: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  border: 1px solid var(--border-color);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  font-size: 0.95rem;
  cursor: pointer;
}

.trata-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  color: var(--accent);
}

.trata-pill i {
  font-size: 1.1rem;
}

/* Center grid cards for 2 items in grid-3 */
@media (min-width: 769px) {
  .topographic-grid.grid-3.center-grid-last-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr) !important;
  }

  .topographic-grid.grid-3.center-grid-last-row .topo-card:first-child {
    grid-column: 2 / span 2;
  }

  .topographic-grid.grid-3.center-grid-last-row .topo-card:last-child {
    grid-column: 4 / span 2;
  }
}

/* smooth scroll highlight anchor animation */
.topo-card:target {
  border-color: var(--accent) !important;
  box-shadow: 0 0 15px rgba(230, 92, 92, 0.25) !important;
  transform: translateY(-8px);
  animation: targetHighlight 1.5s ease-out;
}

@keyframes targetHighlight {
  0% {
    box-shadow: 0 0 0 5px rgba(230, 92, 92, 0.45);
  }

  100% {
    box-shadow: 0 0 15px rgba(230, 92, 92, 0.25);
  }
}

/* --- Read More Link --- */
.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition-normal);
  margin-top: auto;
}

.read-more-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

[dir="rtl"] .read-more-link:hover {
  transform: translateX(-4px);
}

