:root { 
  --red: #e43b2f; 
  --blue: #005a8d; 
}

body { 
  font-family: 'Helvetica Neue', Arial, sans-serif; 
  scroll-behavior: smooth;
  margin: 0;
}

/* --- Sticky Logo --- */
.sticky-logo {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: white;
  text-align: center;
  padding: 15px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.sticky-logo img {
  width: 200px;
  max-width: 80%;
}

/* Fade effect for Bootstrap accordion */
.accordion-collapse {
  transition: opacity 0.3s ease, max-height 0.3s ease;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

.accordion-collapse.show {
  opacity: 1;
  max-height: 2000px; /* high value to allow full content expansion */
}

/* Default button color */
.accordion-button {
  color: var(--blue);
  transition: color 0.3s;
}

/* When open (clicked), turn red) */
.accordion-button:not(.collapsed) {
  color: var(--red);
}

.join-note {
  border: 5px solid var(--red);
  background-color: #fff9d6; /* pale yellow */
  color: #000;
  padding: 15px 20px;
  margin-top: 20px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}


/* --- Main Menu --- */
.main-menu {
  background: white;
  border-top: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 25px;
}

.main-menu a {
  display: inline-block;
  padding: 15px 10px;
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  transition: color 0.3s, border-color 0.3s;
}

.main-menu a i {
  display: none;
}

.main-menu a:hover {
  color: var(--red);
  border-bottom: 2px solid var(--red);
}

/* --- Hero Section --- */
.hero {
  background: var(--red);
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 { 
  font-weight: 700; 
  margin-bottom: 20px; 
}

.section-title { 
  color: var(--blue); 
  font-weight: 700; 
  margin-bottom: 1rem; 
}

.btn-red { 
  background: var(--red); 
  color: white; 
}

.btn-red:hover { 
  background: #c9302c; 
  color: white; 
}

footer {
  background: var(--red);
  color: white;
  padding: 30px 0;
}

.text-justify {
  text-align: justify;
}

/* --- Full Width Image Section --- */
.image-wrapper {
  width: 100%;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.three-images {
  width: 100%;
  padding: 40px 0;
  background: #f8f8f8;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  width: 90%;
  margin: 0 auto;
  gap: 15px;
}

.image-box {
  flex: 1 1 calc(33.333% - 10px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-box img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}


/* --- Two Images Side by Side --- */
.two-images {
  width: 100%;
  overflow: hidden;
}

.image-pair {
  display: flex;
  gap: 0;
}

.new-image-pair img {
  width: 50%;
  height: 850px;
  object-fit: cover;
  display: block;
}


.new-image-pair {
  display: flex;
  flex-wrap: wrap;
}

.new-image-pair img {
  flex: 1 1 50%;
  width: 50%;
  height: auto;
  object-fit: cover;
}

.important-info {
  text-align: center;
  padding: 3rem 1rem;
  background-color: inherit; /* inherits from parent section */
  color: #fff;
  font-family: 'Arial', sans-serif;
}

.important-info h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.important-info h1:nth-child(1) { animation-delay: 0.2s; }
.important-info h1:nth-child(2) { animation-delay: 1.0s; }
.important-info h1:nth-child(3) { animation-delay: 1.8s; }
.important-info h1:nth-child(4) { animation-delay: 2.6s; }
  /* Modal setup */
    .modal-content {
      border: none;
      border-radius: 0;
      background: transparent;
    }

    .modal-dialog {
      max-width: 100%;
      height: 100vh;
      margin: 0;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    /* Responsive image styling */
    .modal-body {
      padding: 0;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .modal-body img {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100vh;
      object-fit: contain; /* keeps the image centered and fully visible */
      transition: opacity 1s ease-in-out;
      opacity: 0;
    }

    /* Fade-in animation */
    .modal.show .modal-body img {
      opacity: 1;
    }

    /* Optional: click anywhere to close */
    .modal {
      cursor: pointer;
    }
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .hero {
    padding: 50px 15px;
  }

	.new-image-pair img {
    flex: 1 1 100%;
    width: 100%;
  }
  .sticky-logo img {
    max-width: 100px;
  }

  /* Mobile bottom menu */
  .main-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
    z-index: 1040;
    border-top: 1px solid rgba(0,0,0,0.1);
	padding-bottom: 10px; /* added padding */

  }

  .main-menu ul {
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 5px 0;
    gap: 0;
  }

  .main-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
  }

  .main-menu a i {
	display:block;
    font-size: 18px;
    margin-bottom: 2px;
  }

  body {
    padding-bottom: 60px; /* space for bottom menu */
  }
	
 .image-pair {
    flex-direction: column;
  }

  .image-pair img {
    width: 100%;
    height: 600px;
  }	
  .image-box {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 30px 10px;
  }

  .sticky-logo img {
    max-width: 100px;
  }
	
	.important-info {
		padding-top:10px !important;
	}
}



/* --- Elegant Useful Links Section --- */
.useful-links {
  padding: 80px 20px;
  background: #fafafa;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.elegant-link {
  display: block;
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px 25px;
  text-decoration: none;
  color: var(--blue);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: all 0.35s ease;
}

.elegant-link:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 6px 20px rgba(228, 59, 47, 0.1);
}

.link-content h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--blue);
  transition: color 0.3s ease;
}

.elegant-link:hover h5 {
  color: var(--red);
}

.link-content p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .elegant-link {
    padding: 20px 15px;
  }
  .link-content h5 {
    font-size: 1rem;
  }
}

/* ---------- DESKTOP 3D WHEEL ---------- */
.wheel-container {
  perspective: 1800px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 750px;
  overflow: hidden;
}

.wheel {
  width: 420px;
  height: 420px;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 80s linear infinite;
}

.wheel img {
  position: absolute;
  width: 300px;
  height: 440px; /* portrait orientation */
  object-fit: cover;
  left: 60px;
  top: -10px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  border: 4px solid #ef7d0b;
}

/* pause on hover */
.wheel-container:hover .wheel {
  animation-play-state: paused;
}

/* distribute 9 images evenly */
.wheel img:nth-child(1) { transform: rotateY(0deg) translateZ(650px); }
.wheel img:nth-child(2) { transform: rotateY(40deg) translateZ(650px); }
.wheel img:nth-child(3) { transform: rotateY(80deg) translateZ(650px); }
.wheel img:nth-child(4) { transform: rotateY(120deg) translateZ(650px); }
.wheel img:nth-child(5) { transform: rotateY(160deg) translateZ(650px); }
.wheel img:nth-child(6) { transform: rotateY(200deg) translateZ(650px); }
.wheel img:nth-child(7) { transform: rotateY(240deg) translateZ(650px); }
.wheel img:nth-child(8) { transform: rotateY(280deg) translateZ(650px); }
.wheel img:nth-child(9) { transform: rotateY(320deg) translateZ(650px); }

@keyframes spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* ---------- MOBILE CAROUSEL ---------- */
/* Mobile Carousel */
#mobileCarousel .carousel-item {
  /*display: flex;*/
  justify-content: center;
  align-items: center;
  min-height: 60vh; /* adjusts for vertical images */
}

/* Make images fully visible without stretching */
#mobileCarousel img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* show entire image */
  border: 4px solid #ef7d0b;
  border-radius: 12px;
  margin: 0 auto;
}