/* Global Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #F5F9FF;
  color: #1E3A5F;
  line-height: 1.6;
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

html {
  overflow-y: auto;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}

section {
  overflow: hidden;
}

div {
  overflow: visible;
}

p {
  text-align: justify;
}

picture img {
  display: block;
  overflow: hidden;
  border-radius: 50%;
}

.login-btn-custom {
  background-color: #000; /* Golden */
  color: #000000;            /* Black text */
  border-radius: 72px;
  padding: 10px 20px;
  font-weight: 600;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2); /* Bottom right shadow */
  transition: all 0.3s ease-in-out;
  border: none;
}

.login-btn-custom:hover {
  box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.4); /* Intensified shadow */
  transform: translateY(-2px);
  text-decoration: none;
  color: #000000;  
}

.city-bg-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 300px;           /* ✅ width updated */
  height: 200px;          /* ✅ height updated */
  font-weight: 600;
  font-size: 1.25rem;
  color: #007ACC;
  border: 2px solid #007ACC;
  border-radius: 0.5rem;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.city-bg-button span {
  background-color: rgba(255, 255, 255, 0.75);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 2;
  font-weight: 600;
  color: #007ACC;
}

.city-bg-button:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.city-border-box {
  width: 1200px;
  border: 2px solid #007ACC;  /* Blue thin border */
  border-radius: 12px;        /* Curved edges */
  padding: 30px 20px;         /* Some inner space */
  background-color: #f8f9fa;  /* Keep it light to contrast */
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.05); /* Optional soft shadow */
}

body.dark-mode {
  background-color: #1e1e2f;
  color: #e0e0f0;
}

a {
  color: #007ACC;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: #1A8DCC;
}
body.dark-mode a {
  color: #90caf9;
}

/* Animate on Scroll */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
[data-animate].animate {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar Styles */
.navbar-custom {
  background-color: #007ACC;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

body.dark-mode .navbar-custom {
  background-color: #2a2a3b;
}

.navbar-custom .nav-link,
.navbar-custom .navbar-brand {
  color: white !important;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}
.navbar-custom .nav-link::after,
.navbar-custom .navbar-brand::after {
  content: none;
}
.navbar-custom .nav-link:hover,
.navbar-custom .navbar-brand:hover {
  transform: scale(1.05);
  font-weight: 600;
}

.dropdown-menu {
  background: #ffffff;
  border-radius: 8px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  animation: fadeSlideDown 0.3s ease-out;
  min-width: 180px;
  overflow: hidden;
}
.dropdown-item {
  padding: 12px 18px;
  color: #1E3A5F;
  font-weight: 500;
  transition: all 0.25s ease;
}
.dropdown-item:hover {
  background-color: #E6F4FF;
  color: #007ACC;
  padding-left: 22px;
}
body.dark-mode .dropdown-menu {
  background-color: #2c2c3c;
}
body.dark-mode .dropdown-item {
  color: #e0e0f0;
}
body.dark-mode .dropdown-item:hover {
  background-color: #3a3a4a;
  color: #90caf9;
}
@keyframes fadeSlideDown {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px; /* offset for fixed header */
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  padding-top: 20px;
  padding-bottom: 20px;
}

.hero-section h1,
.hero-section p {
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.hero-section p {
  font-weight: 500;
  font-size: 24px;
}

/* Responsive helper to avoid horizontal scroll */
img, video, iframe, .container, .row, section, footer, header {
  max-width: 100vw;
  overflow-x: hidden;
}

.city-border-box {
  width: 95%; /* previously 1200px */
  max-width: 1600px; /* optional upper limit for ultra-wide screens */
  margin: 0 auto;
  border: 2px solid #007ACC;
  border-radius: 12px;
  padding: 40px 30px;
  background-color: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.08);
}

.city-bg-button {
  width: 450px;   /* previously 300px */
  height: 300px;  /* previously 200px */
  font-size: 1.35rem;
}

.d-flex.overflow-auto {
  scroll-behavior: smooth;
}

#search-form {
  transition: all 0.3s ease-in-out;
}

#search-form input {
  border-radius: 20px;
  padding-left: 10px;
  border: 1px solid #ccc;
}

/* Optional smooth fade for dropdown */
.dropdown-menu {
  display: none;
  opacity: 0;
  transition: all 0.2s ease-in-out;
  margin-top: 0;
}
.dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(2px);
}

/* Homepage Blocks */
.featured-products,
.shop-by-category,
.blog-teasers,
.testimonials,
.trust-builders,
.newsletter-section {
  margin: 0;
  padding: 0 20px;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #007ACC;
}
body.dark-mode .section-title {
  color: #90caf9;
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.card-img-top {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.page-offset-top .card {
  box-shadow: none !important;
}

/* Event Card Styling */
.event-card {
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  background-color: white;
}
.event-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}
.event-card .card-img-top {
  border-radius: 12px 12px 0 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.event-card:hover .card-img-top {
  transform: scale(1.03);
}
.card-img-wrapper {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

/* Animate on Scroll */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
[data-animate].animate {
  opacity: 1;
  transform: translateY(0);
}

/* Adjust top padding to account for fixed navbar */
.page-offset-top {
  padding-top: 100px; /* Enough space to clear navbar */
}

/* Image Styling */
.event-detail-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Wrapper to limit image overflow */
.event-image-wrapper {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  max-height: 450px;
}

/* Add to Cart Button */
.add-to-cart-btn {
  background-color: #28a745;
  color: white;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: none;
}
.add-to-cart-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Additional animated classes for flair */
.animate-slide-in {
  animation: slideInUp 0.8s ease forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Events Page */
.event-section img,
.club-section img,
.venue-partner-section img {
  width: 100%;
  border-radius: 10px;
}
.faq-item {
  margin-bottom: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
body.dark-mode .faq-item {
  background-color: #2c2c3c;
}

/* Sessions Page */
.book-cover {
  width: 100%;
  max-width: 200px;
  margin: auto;
}
.session-post {
  margin-bottom: 30px;
}

/* Communities */
.community-section img {
  width: 100%;
  border-radius: 8px;
}

/* Refer & Earn */
.referral-section img {
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 10px;
}
.step-box {
  background-color: white;
  padding: 1rem;
  border-left: 4px solid #29A0E3;
  border-radius: 6px;
  margin-bottom: 1rem;
}
body.dark-mode .step-box {
  background-color: #2c2c3c;
  border-left-color: #90caf9;
}

/* Campaign */
.campaign-section img,
.campaign-section video {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* About Us */
.about-us-section img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* Contact Us */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: #fff;
  color: #1E3A5F;
}
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: #2c2c3c;
  color: #e0e0f0;
  border-color: #444;
}
.contact-form button {
  background-color: #29A0E3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.contact-form button:hover {
  background-color: #007ACC;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 122, 204, 0.2);
}

.faq-box {
  width: 1200px;
  border-radius: 20px;
  background-color: #f8f9fa;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

@media (max-width: 820px) {
  .faq-box {
    width: 95%;
  }
}

.accordion-button {
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 10px !important;
}

.accordion-button:not(.collapsed) {
  background-color: #e6f4ff;
  color: #007ACC;
}

.accordion-button::after {
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.accordion-body {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.community-feed .card {
  border-radius: 12px;
}

.community-feed textarea {
  resize: none;
}

.community-feed .card-footer {
  border-top: 1px solid #eaeaea;
}

.community-feed .card-header img,
.community-feed .card-footer img {
  border: 2px solid #eee;
}

/* Footer */
footer {
  background-color: #F5F9FF;
  color: #1E3A5F;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
  border-top: 1px solid #ddd;
}
footer h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #007ACC;
}
footer a {
  color: #1E3A5F;
  text-decoration: none;
  transition: all 0.3s ease;
}
footer a:hover {
  color: #007ACC;
  text-decoration: underline;
}
footer .form-control {
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}
footer .btn {
  font-size: 0.9rem;
}
body.dark-mode footer {
  background-color: #1e1e2f;
  color: #e0e0f0;
  border-top: 1px solid #444;
}
body.dark-mode footer h6,
body.dark-mode footer a {
  color: #90caf9;
}
body.dark-mode footer .form-control {
  background-color: #2c2c3c;
  color: #e0e0f0;
  border-color: #444;
}
body.dark-mode footer .btn {
  background-color: #007ACC;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 10px;
  }
  .hero-section h1 {
    font-size: 1.5rem;
  }
  .card-img-top {
    aspect-ratio: 1 / 1;
    height: auto;
  }
  .dropdown-menu {
    position: static !important;
    float: none;
    box-shadow: none;
    animation: none;
    transform: none !important;
    margin-top: 10px;
  }
  footer .row > div {
    margin-bottom: 2rem;
  }
}

.text-glow {
  text-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 0 10px rgba(255,255,255,0.1);
}

.text-shadow-dark {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Splash Screen */
#splash-screen {
  position: fixed;
  z-index: 9999;
  background: radial-gradient(circle at center, #00bfff, #0099ff, #0066cc);
  background-size: 400% 400%;
  animation: splashGradient 5s ease infinite;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-poppers-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes splashGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.splash-inner {
  text-align: center;
  animation: fadeInZoom 1s ease-in-out;
  width: 400px;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

.splash-logo-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #fff;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 30px rgba(0, 191, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Prevent logo from overflowing the circle */
  animation: popFade 1s ease-in-out;
  z-index: 1;
}

@keyframes popFade {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.splash-logo {
  width: 50%;
  height: 50%;
  border-radius: 50%;
  object-fit: cover;
  animation: pulse 2s infinite ease-in-out;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes fadeInZoom {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

body.splash-active {
  overflow: hidden;
}

/* Scrollable Row for Events */
.events-scroll-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 5px 20px;
  -webkit-overflow-scrolling: touch;
}

.events-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.events-scroll-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}
