* {
  --primary-color: #C62828;
  --primary-color-rgb: 198, 40, 40;
  --secondary-color: #E53935;
  --secondary-color-rgb: 229, 57, 53;
}

.shadow-soft {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.shadow-soft:hover {
  box-shadow: 0 8px 30px rgba(198,40,40,0.12);
  transform: translateY(-4px);
}

.fs-28 {
  font-size: 28px;
}

.fs-24 {
  font-size: 24px;
}

.fs-40 {
  font-size: 40px;
}

.cols-2 {
  columns: 2;
  column-gap: 20px;
}

.cols-2 li {
  break-inside: avoid;
}

.btn-main-line {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid #C62828;
  color: #C62828;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
}

.btn-main-line:hover {
  background: #C62828;
  color: #fff;
}

.btn-main-line span {
  position: relative;
  z-index: 2;
}

.accordion-item {
  border: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 8px;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(198,40,40,0.06);
  color: #C62828;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(198,40,40,0.2);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C62828'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

@media (min-width: 993px) {
  #mainmenu > li > ul.mega {
    position: fixed !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    padding: 20px 0 !important;
    top: 80px;
    visibility: hidden;
    opacity: 0;
    overflow: visible !important;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background: none !important;
    box-shadow: none !important;
  }

  header:not(.header-mobile) #mainmenu > li:hover > ul.mega {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
    transform: translateY(0);
  }
}

#mainmenu > li > ul.mega > li {
  padding: 0;
}

#mainmenu > li > ul.mega .mega-inner {
  display: flex;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  max-width: 880px;
  margin: 0 auto;
  backdrop-filter: blur(20px);
}

#mainmenu > li > ul.mega .mega-links {
  flex: 1;
  padding: 30px 35px;
  display: flex;
  gap: 10px;
}

#mainmenu > li > ul.mega .mega-col {
  flex: 1;
  min-width: 180px;
}

#mainmenu > li > ul.mega .mega-col h6 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

#mainmenu > li > ul.mega .mega-col ul {
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  box-shadow: none !important;
  display: block !important;
  width: 100% !important;
}

#mainmenu > li > ul.mega .mega-col ul li {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

#mainmenu > li > ul.mega .mega-col ul li a {
  display: flex;
  align-items: center;
  padding: 9px 14px !important;
  font-size: 14px;
  color: #444 !important;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  font-weight: 500;
  background: none !important;
  gap: 12px;
}

#mainmenu > li > ul.mega .mega-col ul li a i {
  font-size: 15px;
  color: #C62828;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(198,40,40,0.07);
  border-radius: 8px;
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin: 0 !important;
}

#mainmenu > li > ul.mega .mega-col ul li a:hover {
  background: rgba(198,40,40,0.05) !important;
  color: #C62828 !important;
  transform: translateX(4px);
}

#mainmenu > li > ul.mega .mega-col ul li a:hover i {
  background: #C62828;
  color: #fff;
  transform: scale(1.05);
}

#mainmenu > li > ul.mega .mega-visual {
  width: 280px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

#mainmenu > li > ul.mega .mega-visual .mega-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}

#mainmenu > li > ul.mega .mega-visual .mega-slide.active {
  opacity: 1;
}

#mainmenu > li > ul.mega .mega-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(198,40,40,0.7) 0%, rgba(183,28,28,0.4) 50%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

#mainmenu > li > ul.mega .mega-visual .mega-visual-content {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  z-index: 2;
  color: #fff;
}

#mainmenu > li > ul.mega .mega-visual .mega-visual-content h5 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 700;
}

#mainmenu > li > ul.mega .mega-visual .mega-visual-content p {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}

#mainmenu > li > ul.mega .mega-visual .mega-visual-content a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #fff;
  color: #C62828 !important;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#mainmenu > li > ul.mega .mega-visual .mega-visual-content a:hover {
  background: #C62828;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198,40,40,0.3);
}

#mainmenu > li > ul.mega .mega-visual .mega-visual-content a::after {
  content: '\2192';
  font-size: 14px;
  transition: transform 0.3s ease;
}

#mainmenu > li > ul.mega .mega-visual .mega-visual-content a:hover::after {
  transform: translateX(3px);
}

.pre-footer-cta {
  background: linear-gradient(135deg, #C62828 0%, #B71C1C 50%, #8E0000 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.pre-footer-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.pre-footer-cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.pre-footer-cta h3 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 12px;
}

.pre-footer-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin-bottom: 0;
}

.pre-footer-cta .btn-white {
  display: inline-block;
  padding: 12px 35px;
  background: #fff;
  color: #C62828;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.pre-footer-cta .btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.pre-footer-info {
  background: #1a1a2e;
  padding: 50px 0;
}

.pre-footer-info .info-card {
  text-align: center;
  padding: 25px 15px;
}

.pre-footer-info .info-card i {
  font-size: 32px;
  color: #C62828;
  margin-bottom: 15px;
  display: block;
}

.pre-footer-info .info-card h5 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 8px;
}

.pre-footer-info .info-card p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin: 0;
}

@media (max-width: 992px) {
  #mainmenu > li > ul.mega .mega-inner {
    flex-direction: column;
    max-width: 100%;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
  }
  #mainmenu > li > ul.mega .mega-visual {
    display: none !important;
  }
  #mainmenu > li > ul.mega .mega-links {
    flex-direction: column;
    gap: 8px;
    padding: 5px 0 !important;
  }
  #mainmenu > li > ul.mega .mega-col {
    min-width: auto;
  }
  #mainmenu > li > ul.mega .mega-col h6 {
    font-size: 10px;
    margin-bottom: 6px;
    padding-bottom: 5px;
    color: #C62828;
  }
  #mainmenu > li > ul.mega .mega-col ul li a {
    padding: 6px 8px !important;
    font-size: 13px;
    color: #333 !important;
  }
  #mainmenu > li > ul.mega .mega-col ul li a i {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  #mainmenu > li > ul.mega .mega-col ul li a:hover {
    transform: none;
  }

  footer .widget h5 {
    cursor: pointer;
    position: relative;
    padding-right: 25px;
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  footer .widget h5::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 12px;
    transition: transform 0.3s ease;
    color: rgba(255,255,255,0.5);
  }

  footer .widget h5.active::after {
    transform: rotate(180deg);
  }

  footer .widget > ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding-top: 0;
  }

  footer .widget h5.active + ul {
    max-height: 500px;
    padding-top: 12px;
  }
}
