/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/
:root {
  /* Colori base moderni */
  --white-color:                  #ffffff;
  --primary-color:                #22c55e;
  --primary-dark:                 #16a34a;
  --primary-light:                #4ade80;
  --secondary-color:              #0f172a;
  --secondary-light:              #1e293b;
  --section-bg-color:             #f8fafc;
  --custom-btn-bg-color:          linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --custom-btn-bg-hover-color:    linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  --dark-color:                   #0f172a;
  --p-color:                      #64748b;
  --link-hover-color:             #22c55e;
  
  /* Colori con trasparenza */
  --primary-alpha-10:             rgba(34, 197, 94, 0.1);
  --primary-alpha-20:             rgba(34, 197, 94, 0.2);
  --shadow-color:                 rgba(15, 23, 42, 0.1);
  --shadow-color-lg:              rgba(15, 23, 42, 0.15);

  --body-font-family:             'DM Sans', sans-serif;

  /* Tipografia responsive */
  --h1-font-size:                 clamp(2.5rem, 5vw, 4rem);
  --h2-font-size:                 clamp(2rem, 4vw, 3rem);
  --h3-font-size:                 clamp(1.5rem, 3vw, 2rem);
  --h4-font-size:                 clamp(1.25rem, 2.5vw, 1.75rem);
  --h5-font-size:                 clamp(1.125rem, 2vw, 1.5rem);
  --h6-font-size:                 1.25rem;
  --p-font-size:                  clamp(1rem, 1.5vw, 1.125rem);
  --menu-font-size:               1rem;
  --btn-font-size:                0.9375rem;

  /* Border radius moderni */
  --border-radius-large:          2rem;
  --border-radius-medium:         1.25rem;
  --border-radius-small:          0.75rem;

  --font-weight-normal:           400;
  --font-weight-medium:           500;
  --font-weight-semibold:         600;
  --font-weight-bold:             700;
  
  /* Transizioni smooth */
  --transition-fast:              0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:              0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:              0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Ombre moderne */
  --shadow-sm:                    0 1px 2px 0 var(--shadow-color);
  --shadow-md:                    0 4px 6px -1px var(--shadow-color);
  --shadow-lg:                    0 10px 15px -3px var(--shadow-color-lg);
  --shadow-xl:                    0 20px 25px -5px var(--shadow-color-lg);
}

body {
  background-color: var(--white-color);
  font-family: var(--body-font-family);
  scroll-behavior: smooth;
  overflow-x: hidden;
}


/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
  line-height: 1.3;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

h2 {
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
  line-height: 1.75;
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
  line-height: 1.75;
}

a, 
button {
  touch-action: manipulation;
  transition: all var(--transition-base);
}

a {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  position: relative;
}

a:hover {
  color: var(--link-hover-color);
  transform: translateY(-1px);
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

/* Smooth scroll */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}


/*---------------------------------------
  SECTION               
-----------------------------------------*/
.section-bg {
  background-color: var(--section-bg-color);
  position: relative;
}

.section-padding {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.section-overlay {
  content: "";
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.25) 100%);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

::selection {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Fade-in animations for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}


/*---------------------------------------
  CUSTOM BUTTON               
-----------------------------------------*/
.custom-btn {
  background: var(--custom-btn-bg-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-semibold);
  line-height: normal;
  transition: all var(--transition-base);
  padding: 0.875rem 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.custom-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--custom-btn-bg-hover-color);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.custom-btn:hover {
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.custom-btn:hover::before {
  opacity: 1;
}

.custom-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.custom-border-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.custom-border-btn::before {
  background: var(--primary-color);
}

.custom-border-btn:hover {
  border-color: var(--primary-color);
  color: var(--white-color);
}

.custom-btn-bg-white {
  border-color: var(--white-color);
  color: var(--white-color);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.custom-btn-bg-white::before {
  background: rgba(255, 255, 255, 0.2);
}

.custom-btn-bg-white:hover {
  background: rgba(255, 255, 255, 0.2);
}

.custom-btn-group .link {
  color: var(--white-color);
  font-weight: var(--font-weight-medium);
  position: relative;
  padding-bottom: 0.25rem;
}

.custom-btn-group .link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--link-hover-color);
  transition: width var(--transition-base);
}

.custom-btn-group .link:hover::after {
  width: 100%;
}

.custom-btn-group .link:hover {
  color: var(--link-hover-color);
  transform: none;
}


/*---------------------------------------
  NAVIGATION BAR & OFFCANVAS              
-----------------------------------------*/
.offcanvas {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 2rem;
  backdrop-filter: blur(20px);
}

.offcanvas.offcanvas-end {
  border-left: 0;
}

.offcanvas-header .btn-close {
  transition: all var(--transition-base);
}

.offcanvas-header .btn-close:hover {
  transform: rotate(90deg);
}

.offcanvas svg {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
}

.sticky-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 999;
}

.sticky-wrapper.is-sticky .navbar {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar {
  background: transparent;
  z-index: 99;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  transition: all var(--transition-base);
}

.navbar-brand,
.navbar-brand:hover {
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  color: var(--dark-color);
  transition: transform var(--transition-base);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar .navbar-brand,
.navbar .navbar-brand:hover {
  color: var(--white-color);
}

.navbar .navbar-brand-image {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(34, 197, 94, 0.3));
}

.navbar-brand-image {
  width: 48px;
  height: 48px;
  transition: all var(--transition-base);
}

.navbar-brand:hover .navbar-brand-image {
  filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(34, 197, 94, 0.6));
}

.navbar-brand-text {
  line-height: normal;
  margin-left: 0.75rem;
}

.navbar-brand-text small {
  display: block;
  font-size: 0.625rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.navbar-expand-lg .navbar-nav .nav-link {
  border-radius: var(--border-radius-medium);
  margin: 0.5rem;
  padding: 0.625rem 1rem;
  position: relative;
  overflow: hidden;
}

.navbar-expand-lg .navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--link-hover-color);
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.navbar-expand-lg .navbar-nav .nav-link:hover::before,
.navbar-expand-lg .navbar-nav .nav-link.active::before {
  width: 80%;
}

.navbar-nav .nav-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  transition: all var(--transition-base);
}

.navbar-nav .nav-link.active, 
.navbar-nav .nav-link:hover {
  color: var(--link-hover-color);
  background: rgba(34, 197, 94, 0.1);
}

.navbar .dropdown-menu {
  background: var(--white-color);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
  border: 0;
  display: inherit;
  opacity: 0;
  min-width: 9rem;
  margin-top: 20px;
  padding: 13px 0 10px 0;
  transition: all 0.3s;
  pointer-events: none;
}

.navbar .dropdown-menu::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 15px solid var(--white-color);
  position: absolute;
  top: -10px;
  left: 10px;
}

.navbar .dropdown-item {
  display: inline-block;
  color: var(--p-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  position: relative;
  white-space:nowrap; overflow-y:scroll; overflow-x:hidden;
}

.navbar .dropdown-item.active, 
.navbar .dropdown-item:active,
.navbar .dropdown-item:focus, 
.navbar .dropdown-item:hover {
  background: transparent;
  color: var(--link-hover-color);
}

.navbar .dropdown-toggle::after {
  content: "\f282";
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-size: var(--copyright-font-size);
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  left: 2px;
  border: 0;
}

@media screen and (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    opacity: 1;
    margin-top: 0;
    pointer-events: auto;
  }
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  width: 30px;
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--white-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--white-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}


/*---------------------------------------
  HERO        
-----------------------------------------*/
.hero-section {
  background-image: url('../assets/montaggioStrutture/5.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: clamp(6rem, 12vh, 10rem);
  padding-bottom: clamp(6rem, 12vh, 10rem);
  height: 100vh;
  min-height: 670px;
  margin-bottom: -90px;
  display: flex;
  align-items: center;
}

.hero-50 {
  height: auto;
  min-height: 540px;
  margin-bottom: -100px;
}

.hero-50 .container + svg {
  transform: rotate(180deg);
}

.hero-section .ratio {
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-section svg {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  transition: all var(--transition-slow);
}

.hero-section > svg {
  top: 0;
}

.hero-section .container + svg {
  top: auto;
  bottom: -1px;
}

.hero-section .row {
  position: relative;
  z-index: 22;
}

.hero-section h2 {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-section .custom-btn-group {
  animation: fadeInUp 1.2s ease-out;
}


/*---------------------------------------
  BACKGROUND IMAGE SECTION        
-----------------------------------------*/
.image-1 {
  background-image: url('../assets/allaccioPannelli/6.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: -70px;
}
.image-2 {
  background-image: url('../assets/montaggioStrutture/6.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: -70px;
}
.image-3 {
  background-image: url('../assets/opereCivili/2.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: -70px;
}
.image-4 {
  background-image: url('../assets/montaggioAssemblaggioCabine/3.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: -70px;
}
.image-5 {
  background-image: url('../assets/inpiantiElettrici/2.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: -70px;
}
.image-6 {
  background-image: url('../assets/recinzioni/8.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: -70px;
}
.image-7 {
  background-image: url('../assets/videoSorveglianza/3.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: -70px;
}

.section-bg-image .container + svg {
  transform: rotate(180deg);
  position: relative;
  bottom: -1px;
  z-index: 2;
}

.section-bg-image-block {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-medium);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
  animation: fadeInUp 0.8s ease-out;
}

.section-bg-image-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.section-bg-image-block h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.section-bg-image-block p {
  color: var(--p-color);
  line-height: 1.8;
}

.section-bg-image-block .input-group {
  background-color: var(--white-color);
  border-radius: var(--border-radius-large);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.section-bg-image-block .input-group:focus-within {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.section-bg-image-block .input-group-text {
  background-color: transparent;
  border: 0;
  color: var(--primary-color);
}

.section-bg-image-block input[type="email"] {
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
  color: var(--dark-color);
}

.section-bg-image-block input[type="email"]:focus {
  box-shadow: none;
  outline: none;
}

.section-bg-image-block button[type="submit"] {
  background-color: var(--primary-color);
  border: 0;
  border-radius: var(--border-radius-large) !important;
  color: var(--white-color);
  max-width: 150px;
}


/*---------------------------------------
  ABOUT SECTOIN              
-----------------------------------------*/
.about-section {
  padding-bottom: 70px;
}

.member-block-image-wrap {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
}

.member-block-image-wrap:hover .member-block-image {
  transform: scale(1.2);
}

.member-block-image-wrap:hover .social-icon {
  opacity: 1;
}

.member-block-image-wrap .social-icon {
  background-color: var(--white-color);
  border-radius: var(--border-radius-large);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.5s;
  padding: 15px 20px;
  width: auto;
}

.member-block-image {
  transition: all 0.3s;
}

.member-block-info {
  padding: 10px;
}

.member-block-info h4,
.member-block-info p {
  margin-bottom: 0;
}


/*---------------------------------------
  CUSTOM BLOCK              
-----------------------------------------*/
.custom-block {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
  transition: all var(--transition-base);
}

.custom-block-bg {
  background: var(--white-color);
  box-shadow: var(--shadow-sm);
}

.custom-block-bg:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.custom-block-date-wrap {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: var(--border-radius-medium);
  text-align: center;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md);
}

.custom-block-date {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
}

.custom-block-image-wrap {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.custom-block-image-wrap:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.custom-block-image-wrap:hover .custom-block-image {
  transform: scale(1.1);
}

.custom-block-image-wrap:hover .custom-block-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.custom-block-image {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-block-image-wrap .custom-block-date-wrap,
.custom-block-image-wrap .custom-btn-wrap {
  position: absolute;
  bottom: 0;
}

.custom-block-image-wrap .custom-block-date-wrap {
  border-radius: 0;
  left: 0;
  width: 50%;
  padding: 12.30px 20px;
}

.custom-block-image-wrap .custom-btn-wrap {
  right: 0;
  width: 50%;
}

.custom-block-image-wrap .custom-btn  {
  border-radius: 0;
  display: block;
  padding: 15px 20px;
}

.custom-block-info {
  padding-top: 10px;
}

.custom-block-image-wrap + .custom-block-info {
  padding-top: 20px;
}

.custom-block-span {
  color: var(--secondary-color);
  font-weight: var(--font-weight-bold);
  min-width: 110px;
  margin-right: 10px;
}

.custom-block-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  color: var(--white-color);
  width: 70px;
  height: 70px;
  line-height: 70px;
  text-align: center;
  font-size: var(--h3-font-size);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.custom-block-icon:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: var(--white-color);
  transform: translate(-50%, -50%) scale(1.15);
}


/*---------------------------------------
  EVENTS SECTION            
-----------------------------------------*/
.events-section.section-bg .container > .row {
  margin-right: 5px;
  margin-left: 5px;
}

.events-section.section-bg .container > .row .row {
  margin: auto;
}

.events-listing-section {
  margin-bottom: 100px;
}

.events-detail-section .custom-block-info {
  padding: 40px 60px;
}

.events-detail-info {
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius-medium);
  padding: 50px 25px;
}

.events-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-medium);
}


/*---------------------------------------
  MEMBERSHIP SECTION            
-----------------------------------------*/
.membership-section .container {
  position: relative;
  z-index: 2;
}

.table-responsive {
  border-radius: var(--border-radius-medium);
}

.table-responsive tbody, 
.table-responsive td, 
.table-responsive tfoot, 
.table-responsive th, 
.table-responsive thead, 
.table-responsive tr {
  border: 0;
}

.table-responsive thead tr {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.table-responsive thead th {
  padding: 22px 16px !important;
}

.table-responsive tbody tr:nth-child(even) {
  background-color: var(--section-bg-color);
}

.table>:not(caption)>*>* {
  padding: 18px 16px;
}

.table-responsive .bi-check-circle-fill {
  color: var(--primary-color);
}

.table-responsive .bi-x-circle-fill {
  color: var(--custom-btn-bg-hover-color);
}

.membership-form {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-medium);
  padding: 35px;
}

.membership-form .form-floating>textarea {
  border-radius: var(--border-radius-medium);
  height: 100px;
}


/*---------------------------------------
  CONTACT               
-----------------------------------------*/
.contact-form .form-floating>textarea {
  border-radius: var(--border-radius-medium);
  height: 120px;
}

.contact-info {
  position: relative;
}

.contact-info-item {
  background: var(--secondary-color);
  border-radius: var(--border-radius-medium);
  position: absolute;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.contact-info-body {
  padding: 20px 30px;
}

.contact-info-body strong,
.contact-info-item a {
  color: var(--white-color);
}

.contact-info-footer {
  background-color: var(--custom-btn-bg-hover-color);
  padding: 10px 20px;
  transition: all 0.3s;
}

.contact-info-footer:hover {
  background-color: var(--custom-btn-bg-color);
}

.contact-info-footer a {
  display: block;
  font-weight: var(--font-weight-bold);
}


/*---------------------------------------
  SITE FOOTER            
-----------------------------------------*/
.site-footer {
  position: relative;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: 200px;
  background: linear-gradient(180deg, var(--white-color) 0%, var(--section-bg-color) 100%);
}

.site-footer .container {
  position: relative;
  z-index: 2;
}

.site-footer svg {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  pointer-events: none;
  opacity: 0.7;
}

.site-footer-title {
  color: var(--secondary-color);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
}

.site-footer p {
  color: var(--p-color);
  line-height: 1.8;
}

.site-footer p span {
  font-weight: var(--font-weight-semibold);
  color: var(--secondary-color);
  margin-right: auto;
}

.site-footer a {
  color: var(--p-color);
  transition: all var(--transition-base);
}

.site-footer a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}


/*---------------------------------------
  CUSTOM FORM               
-----------------------------------------*/
.custom-form .form-control {
  border-radius: var(--border-radius-medium);
  border: 2px solid #e2e8f0;
  box-shadow: none;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  outline: none;
  transition: all var(--transition-base);
  font-size: var(--p-font-size);
}

.custom-form .form-control:focus,
.custom-form .form-control:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-alpha-10);
  transform: translateY(-2px);
}

.custom-form .form-control::placeholder {
  color: #94a3b8;
}

.form-floating>label {
  padding-left: 1.25rem;
  color: var(--p-color);
}

.custom-form button[type="submit"] {
  background: var(--custom-btn-bg-color);
  border: none;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-base);
  margin-bottom: 0;
  padding: 1rem 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.custom-form button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--custom-btn-bg-hover-color);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.custom-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.custom-form button[type="submit"]:hover::before {
  opacity: 1;
}
.custom-form button[type="submit"]:focus {
  background: var(--custom-btn-bg-hover-color);
  border-color: transparent;
}

.header-form {
  position: relative;
}

.header-form .form-control {
  padding-left: 42px;
}

.header-form-icon {
  width: 24px;
  position: absolute;
  top: 0;
  margin: 12px;
  margin-left: 15px;
}


/*---------------------------------------
  SOCIAL ICON               
-----------------------------------------*/
.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon-item {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  background: var(--secondary-color);
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  display: block;
  margin-right: 5px;
  text-align: center;
  width: 35px;
  height: 35px;
  line-height: 36px;
  transition: background 0.2s, color 0.2s;
}

.social-icon-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
}


/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
@media screen and (max-width: 991px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .navbar {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
  }

  .navbar-nav .dropdown-menu {
    position: relative;
    left: 0.625rem;
    opacity: 1;
    pointer-events: auto;
    max-width: 155px;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .navbar-expand-lg .navbar-nav {
    padding-top: 1rem;
    padding-bottom: 0.625rem;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    margin: 0.5rem 0;
    padding: 0.75rem 1rem;
  }

  .hero-section {
    position: relative;
    top: 82px;
    margin-bottom: 82px;
    min-height: 600px;
  }

  .events-listing-section {
    margin-bottom: 3rem;
  }

  .events-detail-section .custom-block-info {
    padding: 2.5rem;
  }

  .events-detail-info {
    padding: 2rem 1.5rem;
  }

  .contact-info-item {
    width: 60%;
  }

  .events-detail-section .contact-info-item {
    width: 70%;
  }

  .section-bg-image {
    margin-bottom: 0;
  }

  .section-bg-image-block {
    padding: 2rem;
  }

  .site-footer {
    padding-top: 2rem;
    padding-bottom: 100px;
  }

  /* Better mobile spacing */
  .custom-block-image-wrap {
    margin-bottom: 1.5rem;
  }

  .custom-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

@media screen and (max-width: 480px) {
  .navbar-brand {
    font-size: var(--p-font-size);
  }

  .navbar-brand-image {
    width: 36px;
    height: 36px;
  }

  .section-bg-image-block {
    padding: 1.5rem;
  }

  .contact-info-item {
    width: 80%;
  }

  .hero-section {
    min-height: 500px;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .custom-btn-group {
    flex-direction: column;
    gap: 1rem;
  }

  .custom-btn-group .custom-btn,
  .custom-btn-group .link {
    width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 360px) {
  .custom-btn {
    font-size: 0.813rem;
    padding: 0.625rem 1rem;
  }

  .section-bg-image-block {
    padding: 1.25rem;
  }
}

/*---------------------------------------
  MODERN ANIMATIONS & UTILITIES          
-----------------------------------------*/

/* Scroll animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse animation for attention */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Utility classes for animations */
.animate-on-scroll {
  opacity: 0;
  transition: all var(--transition-slow);
}

.animate-on-scroll.animated {
  opacity: 1;
}

.fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

/* Stagger animations for lists */
.stagger-animation > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* Modern focus styles */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: var(--border-radius-small);
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
