/* Custom Theme Overrides for NLC Palestine */
@import url('/fonts/cairo.ttf');

/* Fix Header Visibility and Positioning */
.theme-main-menu {
  position: relative;
  z-index: 999;
}

.main-header-area {
  padding: 15px 0;
  transition: all 0.3s ease;
}

.main-header-area.sticky-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  animation: slideDown 0.3s ease;
}

/* Header Animation */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Menu Styling */
.menu-list > li > a {
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
  align-items: center;
  justify-content: space-between;
  display: inline-block;
  position: relative;
  display: flex;
  font-size: 1rem;

  /* Remove any default background */
  background: none !important;
}

/* English (LTR) menu spacing and styling improvements */
[dir="ltr"] .menu-list > li > a {
  padding: 12px 10px !important;
  margin: 0 8px;
  letter-spacing: 0.5px;
}

/* Arabic (RTL) menu spacing improvements */
[dir="rtl"] .menu-list > li > a {
  padding: 12px 10px !important;
  margin: 0 8px;
  letter-spacing: 0.5px;
}

/* Better hover effects for English (LTR) - no boxy background */
[dir="ltr"] .menu-list > li > a:hover {
  color: #e63312 !important;
  /* Red color */
  transform: translateY(-1px);
  text-shadow: 0 2px 4px rgba(230, 51, 18, 0.3);
  background: none !important;
  /* Ensure no background */
}

/* Better hover effects for Arabic (RTL) - no boxy background */
[dir="rtl"] .menu-list > li > a:hover {
  color: #e63312 !important;
  /* Red color */
  transform: translateY(-1px);
  text-shadow: 0 2px 4px rgba(230, 51, 18, 0.3);
  background: none !important;
  /* Ensure no background */
}

/* English (LTR) Subtle underline effect */
[dir="ltr"] .menu-list > li > a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #e63312;
  /* Red color */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

[dir="ltr"] .menu-list > li > a:hover::after {
  width: 80%;
}

/* Arabic (RTL) Subtle underline effect */
[dir="rtl"] .menu-list > li > a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #e63312;
  /* Red color */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

[dir="rtl"] .menu-list > li > a:hover::after {
  width: 80%;
}

/* Force remove any template default hover backgrounds */
.menu-list > li > a:hover,
.menu-list > li > a:focus,
.menu-list > li > a:active {
  background-color: transparent !important;
  background-image: none !important;
  background: none !important;
}

/* Responsive navbar improvements for medium screens */
@media (min-width: 992px) and (max-width: 1400px) {
  /* Reduce menu item padding and font size */
  .menu-list > li > a {
    padding: 8px 6px !important;
    margin: 0 4px;
  }

  /* Reduce header padding */
  .main-header-area {
    padding: 10px 0;
  }
}

/* Additional responsive improvements for very narrow screens */
@media (min-width: 992px) and (max-width: 1200px) {
  /* Further reduce menu spacing */
  .menu-list > li > a {
    padding: 6px 4px !important;
    margin: 0 2px;
  }
}

/* Specific fix for very narrow screens (like 1706.67×3235.4) */
@media (min-width: 992px) and (max-width: 1750px) {
  /* Ultra-compact navbar for very narrow screens */
  .main-header-area {
    padding: 5px 0;
  }

  .menu-list > li > a {
    padding: 4px 3px !important;
    margin: 0 1px;
  }

  /* Reduce gaps between elements */
  .col-md-auto.d-flex.align-items-center.justify-content-end {
    gap: 4px;
  }

  .col-md-auto.d-flex.align-items-center.justify-content-end .me-3 {
    margin-right: 0.25rem !important;
  }

  /* Ensure all elements stay in one line */
  .main-header-area .container-fluid .row {
    align-items: center;
    justify-content: space-between;
  }

  /* Make the right side more compact */
  .col-md-auto.col-6.d-flex.align-items-center.justify-content-end {
    flex-shrink: 0;
    min-width: 0;
  }

  /* Ensure language switcher and coming soon don't wrap */
  .dropdown,
  .donation-placeholder {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* Ensure proper spacing between navbar elements */
@media (min-width: 992px) {
  .col-md-auto.d-flex.align-items-center.justify-content-end {
    gap: 8px;
  }

  .col-md-auto.d-flex.align-items-center.justify-content-end .me-3 {
    margin-right: 0.5rem !important;
  }

  /* Ensure navbar row doesn't wrap unnecessarily */
  .main-header-area .row {
    flex-wrap: nowrap;
  }

  /* Make menu container more flexible */
  .col-md-auto.d-flex.align-items-center.justify-content-end.d-lg-inline-block.d-none {
    flex: 1;
    min-width: 0;
  }

  /* Ensure menu items don't wrap */
  .menu-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }

  /* Prevent text overflow in menu items */
  .menu-list > li > a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Logo Area */
.logo-area {
  display: flex;
  height: 100%;
  align-items: center;
}

.logo-area img {
  width: auto;
}

/* Preloader Styling */
#preloader {
  background: linear-gradient(135deg, #1c5326 0%, #6cac53 100%);
}

#ctn-preloader {
  background: transparent;
}

.letters-loading {
  color: #fff;
  font-size: 80px;
  font-weight: bold;
  margin: 0 10px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Hero Section Background */
.theme-banner-three {
  position: relative;
  background: #f8f9fa;
  overflow: hidden;
}

.slider-wrapper {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
  padding: 60px 0 80px;
  min-height: 55vh;
  max-height: 55vh;
}

.slider-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.slider-wrapper .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: -40px;
}

.hero-content .main-title {
  color: #fff !important;
  font-size: 60px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .main-title .highlight {
  color: #ffd700;
}

.hero-content p {
  color: #fff !important;
  font-size: 20px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content .ht-btn {
  background: #1c5326;
  color: #fff;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

/* Removed conflicting hover animation - using template animation */

/* Section Backgrounds */
.feedback-section-three {
  background: #fff;
  position: relative;
}

.ht-feature-section-three {
  background: #f8f9fa;
}

/* Feature Image Responsive Styling */
.feature-img {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-img img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.feature-img:hover img {
  transform: scale(1.05);
}

/* Responsive adjustments for feature image */
@media (max-width: 991px) {
  .feature-img {
    margin-top: 2rem;
  }

  .feature-img img {
    max-height: 400px;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .feature-img img {
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  .feature-img img {
    max-height: 250px;
  }

  /* Feature items mobile adjustments */
  .feature-item {
    margin-bottom: 1.5rem;
  }

  .feature-item .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
  }

  .feature-item .content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .feature-item .content p {
    font-size: 0.9rem;
  }
}

.ht-counter-section-three {
  background-size: cover !important;
  background-position: center !important;
  position: relative;
}

.ht-counter-section-three::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 83, 38, 0.9);
  z-index: 1;
}

.ht-counter-section-three .container {
  position: relative;
  z-index: 2;
}

.counter-item {
  color: #fff;
}

.counter-item .icon {
  font-size: 50px;
  margin-bottom: 20px;
  color: #ffd700;
}

.counter-item h2 {
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}

.counter-item p {
  color: #fff;
  font-size: 18px;
}

/* CTA Section */
.ht-cta-section-three {
  background: linear-gradient(135deg, #1c5326 0%, #6cac53 100%);
  color: #fff;
}

.cta-content h2 {
  color: #fff;
  font-size: 42px;
  margin-bottom: 20px;
}

.cta-content p {
  color: #fff;
  font-size: 18px;
  margin-bottom: 30px;
}

.cta-content .ht-btn {
  background: #fff;
  color: #1c5326;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

/* Removed conflicting hover animation - using template animation */

/* Footer with Wheat SVG Background */
.footer-seven {
  background-color: var(--nlc-primary-green) !important;
  color: var(--nlc-yellow);
  padding: 60px 0 30px;
  position: relative;
  border-top: 1px solid var(--nlc-yellow);
  overflow: hidden;
}

/* Left side wheat - bottom positioned */
.footer-seven::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 20px;
  width: 600px;
  height: 450px;
  background-image: url("/images/wheat-01.svg");
  background-size: contain;
  background-position: left bottom;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 1;
}

/* Right side wheat - bottom positioned */
.footer-seven::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -80px;
  width: 400px;
  height: 300px;
  background-image: url("/images/w2-01.svg");
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 1;
}

/* Ensure footer content stays above wheat background */
.footer-seven .container {
  position: relative;
  z-index: 2;
}

/* Ensure all footer text and links have readable contrast */
.footer-seven,
.footer-seven p,
.footer-seven li,
.footer-seven h3,
.footer-seven h4,
.footer-seven h5 {
  color: var(--nlc-yellow);
}

.footer-seven a {
  color: var(--nlc-yellow);
  text-decoration: none;
}

.footer-seven a:hover,
.footer-seven a:focus {
  color: var(--nlc-orange);
  text-decoration: none;
}

.footer-logo img {
  max-width: 180px;
  margin-bottom: 20px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 32px;
}

.footer-menu li {
  margin: 0;
}

.footer-seven .footer-menu li a {
  color: var(--nlc-yellow) !important;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.3s ease;
  display: block;
}

.footer-seven .footer-menu li a:hover {
  color: var(--nlc-orange) !important;
  text-decoration: none;
}

.social-links {
  text-align: center;
  margin-bottom: 30px;
}

.social-links a {
  display: inline-block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  background: var(--nlc-yellow);
  color: var(--nlc-primary-green);
  border-radius: 50%;
  margin: 0 8px;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--nlc-orange);
  color: var(--nlc-white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(230, 51, 18, 0.35);
}

.copyright-text {
  text-align: center;
  color: var(--nlc-yellow);
  padding-top: 30px;
  font-size: 14px;
}

.copyright-text p {
  margin: 0;
  line-height: 1.6;
}

/* Scroll to Top Button */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #1c5326;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTopBtn:hover {
  background: #6cac53;
  transform: translateY(-5px);
}

/* Mobile Menu Button */
.mobile-menu-btn a {
  color: #333;
  font-size: 24px;
}

/* Language Switcher */
.d-flex.align-items-center.me-3 {
  margin-right: 20px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .hero-content .main-title {
    font-size: 40px;
  }

  .main-menu {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block !important;
  }

  .footer-menu {
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* Mobile responsive footer wheat */
@media (max-width: 768px) {
  /* Adjust footer wheat SVGs for mobile */
  .footer-seven::before {
    width: 380px;
    height: 280px;
    bottom: -15px;
    left: -80px;
    opacity: 0.3;
  }

  .footer-seven::after {
    width: 250px;
    height: 200px;
    bottom: -15px;
    right: -50px;
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  .hero-content .main-title {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .slider-wrapper {
    padding: 100px 0 60px;
    min-height: 400px;
  }

  /* Feature section mobile adjustments */
  .ht-feature-section-three {
    padding: 60px 0 40px;
  }

  .feature-content .section-title .title {
    font-size: 28px;
  }

  .feature-content .section-title .text {
    font-size: 14px;
  }
}

/* Offcanvas Mobile Menu Styles */
.offcanvas#offcanvasMenu {
  width: 85vw;
  max-width: 380px;
  border: none;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 11000;
  /* above sticky header */
}

.offcanvas#offcanvasMenu .offcanvas-header {
  border-bottom: 1px solid #eee;
}

.mobile-nav .mobile-nav-link {
  padding: 14px 8px;
  border-bottom: 1px solid #f2f2f2;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, padding 0.2s ease;
}

.mobile-nav .mobile-nav-link:hover {
  background: #f8f5ff;
  color: #1c5326;
}

.mobile-nav .mobile-nav-link i {
  color: #bbb;
}

.mobile-menu-btn .theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #e9e9e9;
  background: #fff;
}

/* Backdrop above page content but below drawer */
.offcanvas-backdrop {
  z-index: 10990;
}

/* Direction-aware hover padding */
html[dir="ltr"] .mobile-nav .mobile-nav-link:hover {
  padding-left: 18px;
}

html[dir="rtl"] .mobile-nav .mobile-nav-link:hover {
  padding-right: 18px;
}

/* Donation placeholder next to language switcher */
.donation-placeholder {
  background: linear-gradient(135deg, #f2f2f7 0%, #e9e9ef 100%);
  color: #6c6c80;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 1rem;
  border: 1px dashed #c9c9d6;
  cursor: default;
  user-select: none;
}

.donation-placeholder i {
  color: var(--nlc-orange);
}

/* Newsletter subscribe */
.newsletter-subscribe .newsletter-email {
  min-width: 260px;
}

.newsletter-subscribe .newsletter-btn {
  padding: 0.75rem 1rem;
}

/* Align subscribe to side and compress footprint */
.footer-seven .newsletter-subscribe form {
  justify-content: center;
}

@media (min-width: 992px) {
  .footer-seven .newsletter-subscribe form {
    justify-content: flex-end;
    /* ltr: right, rtl will be adjusted below */
  }

  html[dir="rtl"] .footer-seven .newsletter-subscribe form {
    justify-content: flex-start;
    /* rtl: left */
  }
}

/* Footer form theming for green background */
.footer-seven .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--nlc-yellow);
  color: var(--nlc-yellow);
}

.footer-seven .form-control::placeholder {
  color: rgba(255, 204, 0, 0.7);
}

.footer-seven .form-floating > label {
  color: var(--nlc-yellow);
}

.footer-seven .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--nlc-orange);
  color: var(--nlc-yellow);
  box-shadow: 0 0 0 0.25rem rgba(230, 51, 18, 0.15);
}

/* Override any conflicting newsletter button styles to use the working nlc-theme.css version */
.footer-seven .newsletter-btn.btn-primary {
  background: var(--nlc-yellow) !important;
  border-color: var(--nlc-yellow) !important;
  color: var(--nlc-primary-green) !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.footer-seven .newsletter-btn.btn-primary:hover {
  background: var(--nlc-orange) !important;
  border-color: var(--nlc-orange) !important;
  color: var(--nlc-white) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(230, 51, 18, 0.3) !important;
}

/* =================================================================== */
/* DROPDOWN MENU SYSTEM - SINGLE UNIFIED APPROACH */
/* =================================================================== */

/* Remove ALL CSS-generated arrows to avoid conflicts */
.menu-list > .menu-item > a::before,
.menu-list > .menu-item > a::after,
.menu-list .menu-item > a::before,
.menu-list .menu-item > a::after {
  content: none !important;
  display: none !important;
}

/* Base menu item styling */
.menu-list .menu-item {
  position: relative;
  align-items: center;
  display: flex;
  justify-content: space-between;
}

/* Submenu styling - Reduced gap to prevent hover breaks */
.menu-list .submenu {
  display: none;
  position: absolute;
  background: #ffffff;
  padding: 8px;
  margin-top: 90px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.12);
  border: 1px solid #ecebf3;
  min-width: 220px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Add invisible bridge to prevent hover break */
.menu-list .menu-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  /* Bridge the gap */
  background: transparent;
  z-index: 9998;
}

/* Submenu pointer/arrow */
.menu-list .submenu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #ecebf3;
  border-top: 1px solid #ecebf3;
  transform: rotate(45deg);
}

html[dir="rtl"] .menu-list .submenu::before {
  left: auto;
  right: 24px;
}

/* Show submenu on hover - Keep it open when hovering over submenu itself */
.menu-list .menu-item:hover > .submenu,
.menu-list .menu-item:focus-within > .submenu,
.menu-list .submenu:hover,
.menu-list .submenu:focus-within {
  display: flex !important;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Ensure submenu stays visible when moving mouse over it */
.menu-list .menu-item:hover,
.menu-list .menu-item:focus-within {
  position: relative;
}

.menu-list .menu-item:hover > .submenu,
.menu-list .menu-item:focus-within > .submenu {
  display: flex !important;
  flex-direction: column;
}

/* Submenu items */
.menu-list .submenu .menu-item > a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 16px;
  color: #333 !important;
  white-space: nowrap;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Ensure submenu items stack vertically */
.menu-list .submenu .menu-item {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

.menu-list .submenu .menu-item > a:hover,
.menu-list .submenu .menu-item > a:focus {
  background-color: #f5f1ff;
  color: #1c5326 !important;
  text-decoration: none;
}

/* =================================================================== */
/* ANIMATED CARET SYSTEM (C# Generated) */
/* =================================================================== */

/* Base styling for the animated caret */
.menu-list > .menu-item .menu-caret {
  font-size: 14px;
  margin-left: 6px;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* RTL adjustments */
html[dir="rtl"] .menu-list > .menu-item .menu-caret {
  margin-left: 0;
  margin-right: 6px;
}

/* Animated caret on hover - Smooth rotation with scale and color change */
.menu-list .menu-item:hover > a .menu-caret,
.menu-list .menu-item:focus-within > a .menu-caret {
  transform: rotate(180deg) scale(1.1);
  opacity: 1;
  color: #e63312;
  /* Red color */
}

/* Staggered animation for submenu items appearing */
.menu-list .submenu .menu-item {
  opacity: 0;
  transform: translateX(-10px);
  animation: submenu-slide-in 0.3s ease forwards;
}

.menu-list .submenu .menu-item:nth-child(1) {
  animation-delay: 0.05s;
}

.menu-list .submenu .menu-item:nth-child(2) {
  animation-delay: 0.1s;
}

.menu-list .submenu .menu-item:nth-child(3) {
  animation-delay: 0.15s;
}

.menu-list .submenu .menu-item:nth-child(4) {
  animation-delay: 0.2s;
}

.menu-list .submenu .menu-item:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes submenu-slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* RTL adjustments for submenu animations */
html[dir="rtl"] .menu-list .submenu .menu-item {
  transform: translateX(10px);
}

@keyframes submenu-slide-in-rtl {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

html[dir="rtl"] .menu-list .submenu .menu-item {
  animation-name: submenu-slide-in-rtl;
}

/* =================================================================== */
/* ALTERNATIVE ANIMATION STYLES (Optional) */
/* =================================================================== */

/* Bouncy Animation - Add 'bounce-style' class to menu-caret */
.menu-caret.bounce-style {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-item:hover > a .menu-caret.bounce-style,
.menu-item:focus-within > a .menu-caret.bounce-style {
  transform: rotate(180deg) scale(1.2);
  opacity: 1;
  color: #e63312;
}

/* Elastic Animation - Add 'elastic-style' class to menu-caret */
.menu-caret.elastic-style {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s ease, color 0.3s ease;
}

.menu-item:hover > a .menu-caret.elastic-style,
.menu-item:focus-within > a .menu-caret.elastic-style {
  transform: rotate(180deg) scale(1.15);
  opacity: 1;
  color: #e63312;
}

/* Pulse Animation - Add 'pulse-style' class to menu-caret */
.menu-caret.pulse-style {
  transition: all 0.3s ease;
}

.menu-item:hover > a .menu-caret.pulse-style,
.menu-item:focus-within > a .menu-caret.pulse-style {
  transform: rotate(180deg);
  opacity: 1;
  color: #e63312;
  animation: caret-pulse 0.6s ease-out;
}

@keyframes caret-pulse {
  0% {
    transform: rotate(0deg) scale(1);
  }

  25% {
    transform: rotate(45deg) scale(1.3);
  }

  50% {
    transform: rotate(90deg) scale(1.1);
  }

  75% {
    transform: rotate(135deg) scale(1.2);
  }

  100% {
    transform: rotate(180deg) scale(1.1);
  }
}
