/* ==========================================================================
   MODERN HEADER & FOOTER STYLES - Eduro.de
   Clean, modern design with smooth animations
   ========================================================================== */

:root {
  --eduro-primary: #DE6B3B;
  --eduro-primary-dark: #c45a2e;
  --eduro-secondary: #F2943C;
  --eduro-gradient: linear-gradient(135deg, #DE6B3B 0%, #F2943C 100%);
  --eduro-gradient-hover: linear-gradient(135deg, #c45a2e 0%, #e0842d 100%);
  --header-bg: rgba(255, 255, 255, 0.95);
  --header-bg-scrolled: rgba(255, 255, 255, 0.98);
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-light: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

#header .header__area {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

#header.scrolled .header__area {
  background: var(--header-bg-scrolled);
  box-shadow: var(--shadow-md);
}

#header .header__area .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

#header .header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 32px;
}

/* Logo */
#header .header__logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

#header .header__logo a:hover {
  transform: scale(1.02);
}

#header .header__logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* Navigation */
#header .header__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

#header .header__nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#header .header__nav ul li a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

#header .header__nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--eduro-gradient);
  border-radius: 2px;
  transition: transform var(--transition-normal);
}

#header .header__nav ul li a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.03);
}

#header .header__nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

#header .header__nav ul li a.active,
#header .header__nav ul li a[class*="active"] {
  color: var(--eduro-primary);
  background: rgba(222, 107, 59, 0.08);
}

#header .header__nav ul li a.active::after,
#header .header__nav ul li a[class*="active"]::after {
  transform: translateX(-50%) scaleX(1);
}

/* Header Buttons */
#header .header__reg__btn {
  display: flex;
  align-items: center;
  gap: 12px;
}

#header .header__reg__btn .btn__header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

/* Login Button - Ghost style */
#header .header__reg__btn .btn__header:first-child {
  color: var(--text-primary);
  background: transparent;
  border: 1.5px solid var(--border-light);
}

#header .header__reg__btn .btn__header:first-child:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* Register Button - Gradient style */
#header .header__reg__btn .btn__header:last-child {
  color: #fff;
  background: var(--eduro-gradient);
  border: none;
  box-shadow: 0 2px 8px rgba(222, 107, 59, 0.3);
}

#header .header__reg__btn .btn__header:last-child:hover {
  background: var(--eduro-gradient-hover);
  box-shadow: 0 4px 16px rgba(222, 107, 59, 0.4);
  transform: translateY(-2px);
}

/* Mobile Menu Button */
#header .full-canva {
  display: none;
}

#header .full-canva .btn-primary {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 10px;
  transition: all var(--transition-fast);
}

#header .full-canva .btn-primary:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--eduro-primary);
  color: var(--eduro-primary);
}

#header .full-canva .btn-primary i {
  font-size: 20px;
}

/* Mobile Offcanvas Menu — custom implementation (Bootstrap 4 JS lacks offcanvas support) */
#offcanvasExample {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  z-index: 1055;
  background: #fff;
  border-right: none;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

#offcanvasExample.show {
  display: flex;
  flex-direction: column;
}

/* Backdrop overlay when offcanvas is open */
#offcanvas-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.45);
}
#offcanvas-backdrop.show {
  display: block;
}

#offcanvasExample .offcanvas-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

#offcanvasExample .offcanvas-header .btn-close {
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

#offcanvasExample .offcanvas-header .btn-close:hover {
  opacity: 1;
}

#offcanvasExample .offcanvas-body {
  padding: 24px;
}

#offcanvasExample .offcanvas-body .dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#offcanvasExample .offcanvas-body .dropdown ul li {
  margin-bottom: 4px;
}

#offcanvasExample .offcanvas-body .dropdown ul li a {
  display: block;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  transition: all var(--transition-fast);
}

#offcanvasExample .offcanvas-body .dropdown ul li a:hover,
#offcanvasExample .offcanvas-body .dropdown ul li a.active {
  color: var(--eduro-primary);
  background: rgba(222, 107, 59, 0.08);
}

#offcanvasExample .offcanvas-body .header__reg__btn {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

#offcanvasExample .offcanvas-body .header__reg__btn .btn__header {
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 15px;
}

/* Logo in offcanvas */
#offcanvasExample .offcanvas-body .offcanvas-logo {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}
#offcanvasExample .offcanvas-body .offcanvas-logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* Language switcher row inside offcanvas */
#offcanvasExample .offcanvas-body .offcanvas-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
#offcanvasExample .offcanvas-body .offcanvas-lang .lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 28px 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-color: #f8f8f8;
}
#offcanvasExample .offcanvas-body .offcanvas-lang .header-que-mob {
  display: flex !important;
}
#offcanvasExample .offcanvas-body .offcanvas-lang .header-que-mob a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #f8f8f8;
  transition: all var(--transition-fast);
}
#offcanvasExample .offcanvas-body .offcanvas-lang .header-que-mob a:hover {
  border-color: var(--eduro-primary);
  background: rgba(222,107,59,.08);
}
#offcanvasExample .offcanvas-body .offcanvas-lang .header-que-mob img {
  width: 16px; height: 16px; opacity: .6;
}

/* Language Switcher */
#header .language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

#header .language-switcher a,
#header .language-switcher button {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

#header .language-switcher a:hover,
#header .language-switcher button:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

#header .language-switcher a.active,
#header .language-switcher button.active {
  color: var(--eduro-primary);
  background: rgba(222, 107, 59, 0.1);
}

/* Responsive - Prevent text wrapping in nav items */
#header .header__nav ul li a {
  white-space: nowrap;
}

#header .btn__header {
  white-space: nowrap;
}

/* Large screens - slight adjustments */
@media (max-width: 1400px) {
  #header .header__right {
    gap: 20px;
  }
  
  #header .header__nav ul {
    gap: 6px;
  }
}

/* Medium-large screens - compact mode */
@media (max-width: 1200px) {
  #header .header__right {
    gap: 16px;
  }
  
  #header .header__nav ul {
    gap: 4px;
  }
  
  #header .header__nav ul li a {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  #header .header__reg__btn {
    gap: 8px;
  }
  
  #header .btn__header {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  #header .header__select__menu {
    gap: 4px;
  }
  
  #header .lang-select {
    font-size: 12px;
  }
}

/* Medium screens - even more compact */
@media (max-width: 1100px) {
  #header .header__right {
    gap: 12px;
  }
  
  #header .header__nav ul {
    gap: 2px;
  }
  
  #header .header__nav ul li a {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  #header .btn__header {
    padding: 9px 14px;
    font-size: 12px;
  }
  
  #header .header-que {
    display: none;
  }
}

/* Switch to mobile navigation */
@media (max-width: 991px) {
  /* Hide desktop-only elements */
  #header .header__nav,
  #header .header__right .header__reg__btn,
  #header .header__select__menu,
  #header .header-que-mob {
    display: none !important;
  }

  /* Container: logo left, hamburger right */
  #header .header__area .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
  }

  /* Logo row — just the logo, no right side */
  #header .header__main {
    padding: 10px 0;
    flex: 1;
    min-width: 0;
    gap: 0;
  }
  #header .header__right {
    display: none !important;
  }

  /* Logo size: safe on all phones */
  #header .header__logo {
    max-width: calc(100vw - 100px);
    overflow: hidden;
  }
  #header .header__logo a {
    display: flex;
    align-items: center;
  }
  #header .header__logo img {
    height: 34px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
  }

  /* Hamburger: right side, no left language clutter */
  #header .full-canva {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
  }

  /* Hamburger button sizing */
  #header .full-canva > .btn-primary {
    padding: 9px 12px;
    border-radius: 10px;
    background: transparent;
    border: 1.5px solid rgba(0,0,0,.10);
    color: var(--text-primary);
    line-height: 1;
  }
  #header .full-canva > .btn-primary i {
    font-size: 20px;
    display: block;
  }
  #header .full-canva > .btn-primary:hover,
  #header .full-canva > .btn-primary:focus {
    background: rgba(222,107,59,.08);
    border-color: var(--eduro-primary);
    color: var(--eduro-primary);
    box-shadow: none;
  }
}

@media (max-width: 576px) {
  #header .header__area .container {
    padding: 0 16px;
  }
  #header .header__logo img {
    height: 30px;
    max-width: 120px;
  }
}

@media (max-width: 380px) {
  #header .header__logo img {
    height: 26px;
    max-width: 100px;
  }
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.site_footer,
.footer {
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
  border-top: 1px solid var(--border-light);
  padding: 64px 0 0;
  margin-top: 80px;
}

.site_footer .container,
.footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.site_footer .row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}

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

@media (max-width: 767px) {
  .site_footer .row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .site_footer .row {
    grid-template-columns: 1fr;
  }
}

.site_footer .footer_item {
  margin-bottom: 24px;
}

.site_footer .footer_item h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  position: relative;
}

.site_footer .footer_item h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--eduro-gradient);
  border-radius: 2px;
}

.site_footer .footer_item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site_footer .footer_item ul li {
  margin-bottom: 10px;
}

.site_footer .footer_item ul li a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site_footer .footer_item ul li a:hover {
  color: var(--eduro-primary);
  transform: translateX(3px);
}

/* Social Links */
.site_footer .footer_item ul.socials-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site_footer .footer_item ul.socials-btn li {
  margin-bottom: 0;
}

.site_footer .footer_item ul.socials-btn li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 18px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.site_footer .footer_item ul.socials-btn li a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.site_footer .footer_item ul.socials-btn li a .socials-icons {
  display: none;
}

/* Facebook */
.site_footer .footer_item ul.socials-btn li a:has(.fa-facebook-official):hover,
.site_footer .footer_item ul.socials-btn li a[href*="facebook"]:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

/* Instagram */
.site_footer .footer_item ul.socials-btn li a:has(.fa-instagram):hover,
.site_footer .footer_item ul.socials-btn li a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: #fff;
}

/* LinkedIn */
.site_footer .footer_item ul.socials-btn li a:has(.fa-linkedin-square):hover,
.site_footer .footer_item ul.socials-btn li a[href*="linkedin"]:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}

/* Horizontal Rule */
.site_footer .horizental-color,
.site_footer hr.horizental-color {
  border: none;
  height: 1px;
  background: var(--border-light);
  margin: 40px 0 24px;
}

/* Copyright */
.site_footer .copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 32px;
}

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

.site_footer .copyright p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
}

@media (max-width: 576px) {
  .site_footer .copyright {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   LANGUAGE SWITCHER STYLES
   ========================================================================== */

#header .header__select__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

#header .header__select__menu > img {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

/* Native select styling */
#header .lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 20px 6px 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  transition: color var(--transition-fast);
}

#header .lang-select:hover {
  color: var(--eduro-primary);
}

#header .lang-select:focus {
  outline: none;
}

#header .lang-select option {
  background: #fff;
  color: var(--text-primary);
  padding: 8px 12px;
}

/* Nice-select plugin override (if used) */
#header .nice-select.lang-select {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  height: auto;
  line-height: 1.4;
  min-width: 60px;
  transition: all var(--transition-fast);
}

#header .nice-select.lang-select:hover {
  border-color: var(--eduro-primary);
}

#header .nice-select.lang-select::after {
  border-color: var(--text-muted);
  right: 12px;
  margin-top: -3px;
}

#header .nice-select.lang-select .current {
  color: var(--text-secondary);
  font-weight: 600;
}

#header .nice-select.lang-select .list {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  margin-top: 8px;
  padding: 6px;
  min-width: 80px;
  overflow: hidden;
}

#header .nice-select.lang-select .option {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all var(--transition-fast);
  min-height: auto;
  line-height: 1.4;
}

#header .nice-select.lang-select .option:hover {
  background: var(--bg-warm);
  color: var(--eduro-primary);
}

#header .nice-select.lang-select .option.selected {
  background: var(--eduro-gradient);
  color: #fff;
  font-weight: 600;
}

#header .nice-select.lang-select .option.selected:hover {
  background: var(--eduro-gradient);
  color: #fff;
}

/* Help icon */
#header .header-que a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

#header .header-que a:hover {
  background: var(--bg-warm);
}

#header .header-que img {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

#header .header-que a:hover img {
  opacity: 0.8;
}

/* ==========================================================================
   FRONTEND FOOTER STYLES (uses different class names)
   ========================================================================== */

.footer .footer-top {
  padding-bottom: 40px;
}

.footer .footer-top .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer .footer-item {
  margin-bottom: 24px;
}

.footer .footer-item h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  position: relative;
}

.footer .footer-item h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--eduro-gradient);
  border-radius: 2px;
}

.footer .footer-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer .footer-item ul li a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer .footer-item ul li a:hover {
  color: var(--eduro-primary);
  transform: translateX(3px);
}

/* Footer Social Links */
.footer .footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.footer .footer-social a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--eduro-primary);
}

.footer .footer-social a img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer .footer-social a:hover img {
  opacity: 1;
}

/* Footer Bottom */
.footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border-light);
}

.footer .footer-bottom h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer .footer-bottom h5 span {
  color: var(--eduro-primary);
}

.footer .footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 576px) {
  .footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer .footer-social {
    justify-content: center;
  }
}
