:root {
  --primary: #DC3545; /* Red based on user's logo */
  --primary-hover: #BB2D3B;
  --secondary: #6C757D;
  --bg: #FFFFFF;
  --surface: #F8F9FA;
  --surface-hover: #E9ECEF;
  --text: #212529;
  --text-muted: #6C757D;
  --accent: #FFC107;
  --border: #DEE2E6;
  --glass: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden !important; /* Critical fix for mobile scroll */
  width: 100% !important;
  position: relative;
}

/* Global overflow fix for all sections */
section, header, footer, div {
  max-width: 100vw;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1300px; /* Slightly wider for PC menu */
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER & NAV */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98); /* Less transparency, less blur needed */
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  transition: var(--transition);
  will-change: padding, background, box-shadow;
}

.header.scrolled {
  background: #fff;
  padding: 8px 0;
  box-shadow: var(--shadow);
}

.header__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  flex-shrink: 0;
  z-index: 1001;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.nav__list {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav__link {
  font-weight: 500;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 30px;
  color: #333;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.nav__link:hover, .nav__link.active {
  color: var(--primary);
  background: rgba(220, 53, 69, 0.05);
}

/* DROPDOWNS */
.nav__dropdown {
  position: relative;
}

.nav__dropdown:hover .dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  min-width: 220px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 9999;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.dropdown-menu li a:hover {
  background: var(--surface);
  color: var(--primary);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline-danger {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-danger:hover {
  background: var(--primary);
  color: #fff;
}

/* FOOTER */
.footer {
  background: #f8f9fa;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  color: #333;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer__logo {
  height: 40px;
  margin-bottom: 25px;
}

.footer__title {
  margin-bottom: 25px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__menu li, .footer__contact li {
  margin-bottom: 12px;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  color: var(--primary);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* MOBILE RESPONSIVE COMPONENTS */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 10px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 1150px) {
  .nav__link {
    padding: 6px 6px;
    font-size: 0.8rem;
  }
}

@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    padding: 80px 30px;
    display: block !important;
    transition: 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav__link {
    font-size: 1.1rem;
    width: 100%;
    padding: 12px 20px;
  }

  .nav__dropdown .dropdown-menu {
    position: static !important;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: var(--surface) !important;
    border: none !important;
    padding-left: 20px !important;
    margin-top: 10px !important;
    width: 100% !important;
  }

  .nav__dropdown.active .dropdown-menu {
    display: block !important;
  }
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-5px);
  color: #fff;
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn .pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.5;
  animation: pulse-green 2s infinite;
  z-index: -1;
}

@keyframes pulse-green {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* HERO NEW & USER STYLES */
.hero-new {
  position: relative;
  background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden; /* Prevent floating cards from causing scroll */
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 0;
}

.text-gradient {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-image-wrapper {
  position: relative;
  padding: 20px;
}

.floating-anim {
  animation: floating 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.floating-card {
  position: absolute;
  background: white;
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 2;
  color: var(--text);
}

.stat-card-1 { top: 10%; right: -20px; }
.stat-card-2 { bottom: 10%; left: -20px; }

/* EVENT CARDS MODERN */
.event-modern-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.event-modern-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.event-modern-card, .hover-up, .program-modern-card {
  will-change: transform, box-shadow;
}

.event-img-top {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.event-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-modern-card:hover .event-img-top img {
  transform: scale(1.1);
}

.event-date {
  position: absolute;
  top: 15px; left: 15px;
  background: white;
  padding: 10px 15px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #dc3545;
}

.event-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
}

/* SWIPER CONTROLS */
.swiper-button-next-custom, .swiper-button-prev-custom {
  width: 50px; height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #dc3545;
}

.swiper-button-next-custom:hover, .swiper-button-prev-custom:hover {
  background: #dc3545;
  color: white;
}

/* ABOUT SECTION */
.about-experience {
  position: absolute;
  bottom: -20px; right: -20px;
  background: #dc3545;
  color: white;
  padding: 30px;
  border-radius: 25px;
  text-align: center;
}

.about-experience .num {
  font-size: 3rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.about-experience .txt {
  font-size: 0.9rem;
  opacity: 0.9;
}

.icon-circle {
  width: 45px; height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-danger-soft { background: rgba(220, 53, 69, 0.1); }

/* PROGRAM CARDS */
.program-modern-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.program-modern-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.1) !important;
}

.program-img {
  height: 200px;
  position: relative;
}

.program-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.program-icon-box {
  position: absolute;
  bottom: -25px; left: 30px;
  width: 60px; height: 60px;
  background: #dc3545;
  color: white;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 5px solid white;
}

/* TESTIMONIALS */
.testimonial-modern-card {
  background: white;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.testimonial-modern-card.active {
  border-color: rgba(220, 53, 69, 0.1);
  background: #fffafa;
}

.testimonial-modern-card:hover {
  border-color: #dc3545;
}

.opacity-20 { opacity: 0.2; }

/* CTA BOX */
.cta-gradient-box {
  background: linear-gradient(135deg, #dc3545 0%, #b52a36 100%);
  box-shadow: 0 30px 60px rgba(220, 53, 69, 0.4);
}

.cta-shape-1 {
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.cta-shape-2 {
  position: absolute;
  bottom: -30px; left: -30px;
  width: 150px; height: 150px;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
}

.hover-up:hover {
  transform: translateY(-5px);
}

section {
  overflow: hidden; /* Global safety for floating elements */
}

/* RESPONSIVE ADAPTATIONS */
@media (max-width: 991px) {
  .hero-new h1 { font-size: 2.8rem; }
  .stat-card-1, .stat-card-2 { display: none; }
}

@media (max-width: 767px) {
  .hero-new { 
    padding: 120px 0 60px;
    text-align: center !important; 
  }
  .hero-new h1 { 
    font-size: 2.4rem; 
    line-height: 1.2;
    margin-bottom: 20px;
  }
  .hero-new .lead {
    font-size: 1.1rem !important;
    margin-bottom: 30px !important;
  }
  .hero-new .d-flex {
    justify-content: center;
    gap: 15px;
  }
  .hero-new .btn {
    width: 100%;
    max-width: 300px;
  }
  .about-experience { 
    position: relative;
    right: 0;
    bottom: 0;
    margin-top: 30px;
    display: inline-block;
    padding: 20px 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer__logo {
    margin: 0 auto 25px;
  }

  .social-links {
    justify-content: center;
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}
