/*
Theme Name: Reddy - Bootstrap 5 Online shop HTML CSS Template
Theme URI: https://templatejungle.com/
Author: TemplatesJungle
Author URI: https://templatejungle.com/
Description: Reddy - Bootstrap 5 Online shop HTML CSS Template is specially designed product packaged for Online shop by TemplatesJungle.
Version: 1.1
*/

/*--------------------------------------------------------------
This is main CSS file that contains custom style rules used in this template
--------------------------------------------------------------*/

/*------------------------------------*\
    Table of contents
\*------------------------------------*/

/*------------------------------------------------
CSS STRUCTURE:

1. VARIABLES
2. GENERAL TYPOGRAPHY

--------------------------------------------------------------*/
body {
  --heading-font: "Poller One", Roboto, sans-serif;
  --heading-font-weight: 400;
  --heading-color: #E93E4B;
  --heading-line-height: 1.24;
  --swiper-theme-color: #A58C81;
  --swiper-pagination-color: #A58C81;

  /* bootstrap */
  --bs-body-font-family: "Josefin Sans", Roboto, sans-serif;
  --bs-body-font-size: 16px;
  --bs-body-font-weight: 300;
  --bs-body-line-height: 1.5;
  --bs-body-color: #1A1A1A;
  --bs-body-color-rgb: 1.6, 1.6, 1.6;
  --bs-body-bg-rgb: 246, 244, 239;
  --bs-body-bg: #F6F4EF;

  --bs-primary: #E93E4B;
  --bs-secondary: #F6F4EF;
  --bs-black: #000;
  --bs-white: #fff;
  --bs-light: #f8f8f8;
  --bs-dark: #1A1A1A;
  --bs-gray: #9aa1a7;
  --bs-gray-100: #F8F8F8;
  --bs-gray-200: #E8E6E1;
  --bs-gray-300: #DCDAD4;
  --bs-gray-800: #3D3A38;
  --bs-orange: #159345;

  --bs-primary-rgb: 233, 62, 75;
  --bs-secondary-rgb: 246, 244, 239;
  --bs-black-rgb: 17, 17, 17;
  --bs-light-rgb: 241, 241, 240;
  --bs-dark-rgb: 33, 37, 41;

  --bs-link-color: #111;
  --bs-link-color-rgb: 255, 255, 255;
  --bs-link-decoration: underline;
  --bs-link-hover-color: #111;
  --bs-link-hover-color-rgb: 255, 255, 255;

  --bs-border-color: #191919;
  --bs-border-radius: 2rem;

  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3Csymbol xmlns='http://www.w3.org/2000/svg' id='plus' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M19 12.998h-6v6h-2v-6H5v-2h6v-6h2v6h6z'/%3E%3C/symbol%3E");
}

body {
  letter-spacing: 0.03rem;
}

html {
  scroll-padding-top: 150px;
}

section[id],
footer[id] {
  scroll-margin-top: 150px;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-font-weight);
  line-height: var(--heading-line-height);
}

h1.light,
.h1,
h2.light,
.h2,
h3.light,
.h3,
h4.light,
.h4,
h5.light,
.h5,
h6.light,
.h6 {
  color: var(--bs-light);
}

h1,
h2,
h3 {
  margin: 25px 0;
}

h5,
h6 {
  letter-spacing: 1px;
}

h1,
.h1 {
  font-size: 4.125rem;
}

h2,
.h2 {
  font-size: 3.6rem;
}

h3,
.h3 {
  font-size: 2.8rem;
}

h4,
.h4 {
  font-size: 1.8rem;
}

h5,
.h5 {
  font-size: 1.4rem;
}

h6,
.h6 {
  font-size: 1rem;
}

a {
  text-decoration: none;
}

/* container fluid */
.container-fluid {
  max-width: 1800px;
}

@media (min-width: 1600px) {
.container, .container-lg {
    max-width: 1530px;
  }
.container, .container-md {
    max-width: 1200px;
  }
}

/* list group */
.list-group-item {
  --bs-list-group-item-padding-x: 0;
  --bs-list-group-border-width: 0;
}

/* btn */
.btn {
  --bs-btn-border-radius: 0;
}

.btn-primary {
  --bs-btn-color: var(--bs-light);
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: var(--bs-light);
  --bs-btn-hover-bg: var(--bs-dark);
  --bs-btn-hover-border-color: var(--bs-dark);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: var(--bs-light);
  --bs-btn-active-bg: var(--bs-dark);
  --bs-btn-active-border-color: var(--bs-dark);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--bs-light);
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-outline-dark.btn-bg-light {
  --bs-btn-bg: var(--bs-light);
}

.btn-group-lg>.btn, .btn-lg {
  --bs-btn-padding-y: 1rem;
  --bs-btn-padding-x: 2.8rem;
  --bs-btn-font-size: 1.25rem;
}

.btn.btn-shadow {
  box-shadow: 0px 6px 39px 0px rgba(91, 45, 42, 0.20);
}

/* text white */
.text-white {
  --heading-color: var(--bs-light);
  --bs-breadcrumb-item-active-color: var(--bs-light);
  --bs-breadcrumb-divider-color: var(--bs-light);
  --bs-link-color-rgb: var(--bs-light-rgb);
  --bs-link-hover-color-rgb: var(--bs-light-rgb);
}

.text-white .nav-link {
  --bs-nav-link-color: var(--bs-light);
  --bs-nav-link-hover-color: var(--bs-light);
  --bs-nav-link-active-color: var(--bs-light);
  --bs-navbar-active-color: var(--bs-light);
}

/* open-up */
.open-up {
  clip-path: inset(48% 34% 36% 35%);
}
.aos-animate.open-up {
  animation: 1s open-up forwards;
}

@keyframes open-up {
  0% {
    clip-path: inset(48% 34% 36% 35%);
  }

  100% {
    clip-path: inset(0% 0% 0% 0%);
  }
}


/* preloader */
.preloader {
  position: fixed;
  z-index: 99;
  background: var(--bs-dark);
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.8s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.preloader.loaded {
  height: 0;
}

/* navbar */
.navbar.fixed-top {
  transition: background-color 0.6s ease-out;
}

#header {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#header.is-scrolled {
  transform: translateY(-1rem);
}

/* margin */
.my-lg-6 {
  margin-top: 4.5rem!important;
  margin-bottom: 4.5rem!important;
}
.my-lg-7 {
  margin-top: 6.5rem!important;
  margin-bottom: 6.5rem!important;
}
.my-lg-8 {
  margin-top: 8.5rem!important;
  margin-bottom: 8rem!important;
}
.my-lg-9 {
  margin-top: 10.5rem!important;
  margin-bottom: 10rem!important;
}
.my-lg-10 {
  margin-top: 12.5rem!important;
  margin-bottom: 12.5rem!important;
}
.mt-lg-0 {
  margin-top: 0rem!important;
}
.mb-lg-0 {
  margin-bottom: 0rem!important;
}

/* padding top and bottom */
.py-lg-6 {
  padding-top: 4.5rem!important;
  padding-bottom: 4.5rem!important;
}
.py-lg-7 {
  padding-top: 6.5rem!important;
  padding-bottom: 6.5rem!important;
}
.py-lg-8 {
  padding-top: 8.5rem!important;
  padding-bottom: 8rem!important;
}
.py-lg-9 {
  padding-top: 10.5rem!important;
  padding-bottom: 10.5rem!important;
}
.py-lg-10 {
  padding-top: 12.5rem!important;
  padding-bottom: 12.5rem!important;
}
.py-lg-11 {
  padding-top: 14.5rem!important;
  padding-bottom: 14.5rem!important;
}
.py-lg-12 {
  padding-top: 16.5rem!important;
  padding-bottom: 16.5rem!important;
}

/* padding left and right */
.px-lg-6 {
  padding-left: 4.5rem!important;
  padding-right: 4.5rem!important;
}
.px-lg-7 {
  padding-left: 6.5rem!important;
  padding-right: 6.5rem!important;
}
.px-lg-8 {
  padding-left: 8.5rem!important;
  padding-right: 8rem!important;
}
.px-lg-9 {
  padding-left: 10.5rem!important;
  padding-right: 10.5rem!important;
}
.px-lg-10 {
  padding-left: 12.5rem!important;
  padding-right: 12.5rem!important;
}
.px-lg-11 {
  padding-left: 14.5rem!important;
  padding-right: 14.5rem!important;
}
.px-lg-12 {
  padding-left: 16.5rem!important;
  padding-right: 16.5rem!important;
}

/* padding none */
.pt-lg-0 {
  padding-top: 0rem!important;
}
.pb-lg-0 {
  padding-bottom: 0rem!important;
}

/* - Border Radius
------------------------------------------------------------- */ 
.rounded-6 {
  border-radius: 3rem;
}
.rounded-7 {
  border-radius: 4rem;
}
.rounded-8 {
  border-radius: 5rem;
}
.rounded-9 {
  border-radius: 6rem;
}
.rounded-10 {
  border-radius: 7rem;
}
.rounded-11 {
  border-radius: 8rem;
}

/* - Background Color
------------------------------------------------------------- */ 
.bg-orange {
  background-color: var(--bs-orange);
  opacity: 0.9;
}
.bg-white-trans {
  --bs-bg-opacity: 0.6;
  background-color: rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important;
}
.bg-gray-2 {
  background-color: var(--bs-gray-200);
}


/* - Font Family
------------------------------------------------------------- */ 
.heading-font {
  font-family: var(--heading-font);
}
.body-font {
  font-family: var(--bs-body-font-family);
}

/* - Display Header
------------------------------------------------------------- */ 
@media (min-width: 1200px) {
  .display-1 {
     font-size: 3.125rem;
  }
 }

/* - Svg Color
------------------------------------------------------------- */ 
.svg-primary {
  fill: var(--bs-primary);
  color: var(--bs-primary);
}
.svg-secondary {
  fill: var(--bs-secondary);
  color: var(--bs-secondary);
}
.svg-gray-2 {
  fill: var(--bs-gray-200);
  color: var(--bs-gray-200);
}
.svg-link-color {
  color: var(--bs-gray-300);
}
.svg-link-color:hover {
  color: var(--bs-primary);
}


/* - Header
------------------------------------------------------------- */ 
.offcanvas-body .navbar-nav a.nav-link.active,
.offcanvas-body .navbar-nav a.nav-link:hover {
  color: var(--bs-primary);
}


/* - Billboard
------------------------------------------------------------- */ 
#intro .pattern-overlay {
  bottom: -1px;
}

#intro .pattern-overlay,
#footer .pattern-overlay {
  left: 0;
  right: 0;
  width: 100%;
}

#intro .pattern-overlay img,
#footer .pattern-overlay img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.content-box {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}


/* - Featured Products
------------------------------------------------------------- */ 
.product-card .card-detail {
  width: 68%;
  right: 0;
  bottom: -45px;
  left: 0;
  border: 1.5px solid #2c2c2c !important;
  border-radius: 16px !important;

}
#featured-products .swiper {
  overflow-y: visible;
}
#featured-products .swiper-pagination {
  bottom: -60px;
}
.swiper-pagination span.swiper-pagination-bullet {
  width: 16px;
  height: 16px;
  transition: 0.2s ease-in-out;
  background: transparent;
  border: 2px solid var(--bs-gray);
  opacity: var(--swiper-pagination-bullet-inactive-opacity, 1);
}
.swiper-pagination span.swiper-pagination-bullet-active {
  background-color: var(--bs-primary);
  border: 2px solid var(--bs-primary);
}

#featured-products .product-card .cart-concern {
  bottom: 0;
  transition: 0.6s ease-in-out;
  cursor: pointer;
}
#featured-products .product-card:hover .cart-concern {
  bottom: 70px;
}


/* - Testimonials
------------------------------------------------------------- */ 
#testimonials .swiper-pagination {
  bottom: 160px;
}


/* - Catalog CTA
------------------------------------------------------------- */
#catalog-cta .catalog-copy {
  background-color: #fbfaf7;
  padding: 70px 56px;
}

#catalog-cta .catalog-visual {
  background: radial-gradient(circle at 50% 50%, #2fa657 0%, #1e8d48 100%);
  padding: 56px;
}

#catalog-cta .catalog-title {
  font-size: clamp(2.2rem, 3.8vw, 4.25rem);
  line-height: 1.1;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

#catalog-cta .catalog-subtitle {
  font-size: clamp(1.2rem, 1.4vw, 1.9rem);
  letter-spacing: 0.01em;
}

#catalog-cta .catalog-description {
  max-width: 620px;
  color: #5f5f5f;
  margin-left: auto;
  margin-right: auto;
}

#catalog-cta .catalog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  width: min(100%, 500px);
  border-radius: 12px;
  background-color: #199a47;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

#catalog-cta .catalog-button:hover {
  background-color: #14813b;
  color: #ffffff;
}

#catalog-cta .catalog-cover {
  max-width: min(62%, 360px);
  box-shadow: 0 22px 28px rgba(12, 24, 18, 0.38);
}

@media (max-width: 991.98px) {
  #catalog-cta .catalog-copy {
    padding: 48px 28px;
  }

  #catalog-cta .catalog-visual {
    padding: 40px 22px;
  }

  #catalog-cta .catalog-title {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  #catalog-cta .catalog-description {
    font-size: 1.5rem;
  }

  #catalog-cta .catalog-cover {
    max-width: min(75%, 340px);
  }
}


/* - Overview
------------------------------------------------------------- */ 
.video-content .player {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.video-content .player a.play-btn {
  width: 123px;
  height: 123px;
}

@media (min-width: 992px) {
  .overview-section .video-content,
  .overview-section .video-bg,
  .overview-section .overview-image {
    height: 100%;
  }

  .overview-section .overview-image {
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  .overview-section .overview-flag-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  #catalog-cta .video-content,
  #catalog-cta .video-bg,
  #catalog-cta .overview-image {
    height: 100%;
  }

  #catalog-cta .overview-image {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
  }

  /* Catalog CTA: su desktop gli angoli interni devono essere squadrati.
     Il rounding esterno resta a carico di `catalog-cta-wrap.rounded-5.overflow-hidden`. */
  #catalog-cta img.overview-image {
    border-radius: 0 !important;
  }
}


/* - Subscribe
------------------------------------------------------------- */ 
.contact-section {
  padding-bottom: 7rem;
}

.contact-section .contact-intro {
  font-size: 1.35rem;
  color: #222;
  line-height: 1.4;
}

.contact-form .contact-input {
  min-height: 62px;
  border: 0;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: none;
  font-size: 1.5rem;
  color: #2d2d2d;
  padding: 0.9rem 1.25rem;
}

.contact-form-shell {
  position: relative;
}

.contact-form-alert {
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-form-alert.is-visible {
  display: block;
}

.contact-form-alert.is-error {
  background-color: rgba(201, 41, 54, 0.12);
  color: #8c1e28;
}

.contact-form-alert.is-success {
  background-color: rgba(25, 154, 71, 0.12);
  color: #0d6a2f;
}

.contact-field-error {
  min-height: 1.25rem;
  margin-top: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #b42318;
}

.contact-input.is-invalid,
.contact-consent .form-check-input.is-invalid {
  outline: 2px solid rgba(180, 35, 24, 0.18);
  border: 1px solid #b42318;
}

.contact-submit.is-loading {
  opacity: 0.75;
  cursor: wait;
}

.contact-success {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.contact-success-title {
  color: #199a47;
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-success-text {
  margin-bottom: 0;
  font-size: 1.2rem;
  color: #2f2f2f;
}

.contact-form .contact-input::placeholder {
  color: #7b7b7b;
  opacity: 1;
}

.contact-form .contact-textarea {
  min-height: 72px;
  resize: vertical;
}

.contact-consent .form-check {
  padding-left: 1.6rem;
}

.contact-consent .form-check-input {
  margin-left: -1.6rem;
  margin-top: 0.25rem;
  border-color: #2f2f2f;
  border-radius: 2px;
}

.contact-consent .form-check-label {
  font-size: 1.2rem;
  color: #2f2f2f;
  line-height: 1.35;
}

.contact-submit {
  min-height: 60px;
  border: 0;
  border-radius: 10px;
  background-color: #199a47;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.contact-submit:hover {
  background-color: #13803a;
}

@media (max-width: 991.98px) {
  .contact-section .contact-intro {
    font-size: 1.1rem;
  }

  .contact-form .contact-input {
    font-size: 1.2rem;
    min-height: 56px;
  }

  .contact-consent .form-check-label {
    font-size: 1.05rem;
  }

  .contact-field-error,
  .contact-form-alert {
    font-size: 0.95rem;
  }

  .contact-success {
    padding: 2rem 1.5rem;
  }

  .contact-success-text {
    font-size: 1.05rem;
  }

  .contact-submit {
    font-size: 1.05rem;
    min-height: 54px;
  }
}

/* - Footer
------------------------------------------------------------- */ 
#footer .pattern-overlay {
  transform: rotate(180deg);
  top: -60px;
}

.logo {width: 240px; max-width: 90%;}
.logomain {width: 420px; max-width: 90%;}

.featured-title {
  color: #CE2A36;
}


/* - Mobile refinements (max-width: 991.98px)
------------------------------------------------------------- */
@media (max-width: 991.98px) {
  /* Header: logo and menu icon ~20% smaller */
  #header .navbar-brand .logo {
    width: 192px;
    max-width: 72vw;
  }

  #header .navbar-toggler .navbar-icon {
    width: 40px;
    height: 40px;
  }

  /* Hero: shorter block + smaller title so it fits first screen */
  #intro.intro-hero {
    height: min(58vh, 520px) !important;
    min-height: 320px;
  }

  #intro .banner-content {
    padding: 0.85rem 1rem !important;
    max-width: min(94vw, 26.5rem);
  }

  #intro .banner-content h1.display-1 {
    font-size: clamp(1.7rem, 6.2vw, 2.45rem);
    line-height: 1.18;
    margin: 0;
  }

  /* Why choose us: less horizontal padding */
  .overview-section .container-lg {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .overview-section .bg-white-trans {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Overview: quando su mobile i due blocchi si impilano,
     vogliamo angoli arrotondati solo all'esterno del "card" unico. */
  .overview-section .overview-image {
    border-radius: 0 !important;
    border-top-left-radius: var(--bs-border-radius) !important;
    border-top-right-radius: var(--bs-border-radius) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  .overview-section .bg-white-trans {
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: var(--bs-border-radius) !important;
    border-bottom-right-radius: var(--bs-border-radius) !important;
  }

  /* Catalog CTA: stesso comportamento quando su mobile si impilano testo (sopra) + foto (sotto) */
  #catalog-cta .catalog-copy {
    border-radius: 0 !important;
    border-top-left-radius: var(--bs-border-radius) !important;
    border-top-right-radius: var(--bs-border-radius) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  #catalog-cta .video-content {
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: var(--bs-border-radius) !important;
    border-bottom-right-radius: var(--bs-border-radius) !important;
  }

  /* Evita angoli arrotondati “interni” dall'immagine */
  #catalog-cta img.overview-image {
    border-radius: 0 !important;
  }

  /* Products: slightly smaller cards + slider affordance */
  #featured-products .product-swiper {
    padding-bottom: 1.75rem;
  }

  #featured-products .product-card {
    transform: scale(0.88);
    transform-origin: center top;
  }

  #featured-products .product-card .card-detail {
    padding: 0.85rem 1rem !important;
  }

  #featured-products .product-card .card-title {
    font-size: 1.05rem !important;
  }

  #featured-products .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    margin-top: 0.35rem;
    padding-bottom: 0.25rem;
  }

  .product-swiper-hint {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    color: #6b6b6b !important;
  }

  .product-swiper-hint-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .product-swiper-hint-inner::before,
  .product-swiper-hint-inner::after {
    content: "";
    display: inline-block;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    opacity: 0.45;
    border-radius: 1px;
    animation: product-swiper-hint-pulse 1.4s ease-in-out infinite;
  }

  .product-swiper-hint-inner::after {
    animation-delay: 0.35s;
  }

  @keyframes product-swiper-hint-pulse {
    0%,
    100% {
      opacity: 0.25;
      transform: scaleX(0.75);
    }
    50% {
      opacity: 0.85;
      transform: scaleX(1);
    }
  }

  #featured-products .swiper-pagination span.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
  }

  /* Contact: tighter field spacing */
  .contact-section .contact-form .row.g-3 {
    --bs-gutter-y: 0.45rem;
    --bs-gutter-x: 0.45rem;
    margin-bottom: 0.5rem !important;
  }

  .contact-section .contact-form .contact-field-error {
    margin-top: 0.2rem;
    min-height: 1rem;
  }

  .contact-section .contact-consent .form-check.mb-2 {
    margin-bottom: 0.4rem !important;
  }

  .contact-section .contact-consent {
    margin-bottom: 1rem !important;
  }

  #intro .content-box,
  #footer .content-box {
    z-index: 2;
  }

  #intro .pattern-overlay,
  #footer .pattern-overlay {
    z-index: 1;
  }
}

.event-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.event-popup.d-none {
  display: none !important;
}

.event-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.event-popup-close:hover {
  background-color: #f0f0f0;
}

.event-popup-content {
  width: min(96vw, 1200px);
  height: min(92vh, 920px);
  overflow: hidden;
  border-radius: 12px;
  background-color: #fff;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-popup-content img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .event-popup-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .event-popup-content {
    width: min(94vw, 1200px);
    height: min(88vh, 88dvh);
    border-radius: 12px;
    background-color: #fff;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
}

  /* Footer: bottom wave like hero (pattern visible on small screens) + smaller title */
  #footer .pattern-overlay {
    top: 0;
    bottom: auto;
    transform: rotate(180deg);
    z-index: 3;
  }

  #footer .bg-orange {
    padding: 0.65rem 0.85rem !important;
  }

  #footer .content-box h2.display-1 {
    font-size: clamp(1.65rem, 5.8vw, 2.35rem);
    line-height: 1.2;
    margin: 0;
  }
}
