.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
  background-color: transparent;
  width: 100%;
}

.navbar-collapsed {
  display: block; /* Keeps block behavior */
flex-basis: 0%;
flex-grow: 1;

}

.logo-wrapper {
  width: 45%;
}

.main-nav.scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(14, 2, 63, 0.255);
  padding: 0.5rem 0;
}


.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between !important;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
}

.main-nav.scrolled .brand-link {
  color: #0D335E;
}

.brand-logo {
  width: 5rem;
  height: auto;
}

.brand-name {
  color: white;
  transition: color 0.3s ease;
}

.main-nav.scrolled .brand-name {
  color: #0D335E;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.menu-toggle:focus {
  outline: none;
}

.toggle-icon {
  display: block;
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
}

.main-nav.scrolled .toggle-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2813, 51, 94, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-menu {
  display: flex;
  list-style: none;
  justify-content: flex-end;
  margin-bottom: 0;
}

.nav-link {
  color: white;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.main-nav.scrolled .nav-link {
  color: #0D335E;
  border-radius: 4px;
}

.main-nav.scrolled .nav-link:hover {
  background: rgba(13, 51, 94, 0.14);
}

h2 {
  font-size: 24px !important;
  font-weight: bold !important;
  color: #0D335E;
  text-align: center;
  margin-bottom: 30px !important;
}

.p-4 {
  padding: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.hero-text {
  font-size: 40px;
  color: #0D335E;
  text-align: right;
  line-height: normal;
}

/* Hero Section Styles */
.hero-wrapper {
  position: relative;
  height: 100vh;
}


.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
}


.brand-logo {
  width: 5rem;
  height: auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
}

.menu-toggle:focus {
  outline: none;
  box-shadow: none;
}

.toggle-icon {
  display: block;
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
}


/* Hero Content Styles */
.hero-container {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to left, rgba(13, 51, 94, 1) 0%, rgba(13, 51, 94, 0.6) 40%, transparent 100%);
}

.content-container {
  width: 100%;

  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.hero-content-wrapper {
  position: relative;
  min-width: 28rem;
  z-index: 10;
}

.hero-content-box {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: white;
  text-align: right;
}

.hero-subtitle {
  display: block;
  margin-top: 0.5rem;
  color: #3b82f6;
}

.stats-container {
  display: flex;
  justify-content: space-between;

  margin-top: 1rem;
}

.stat-box {
  text-align: right;
}

.stat-number {
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.stat-label i {
  font-size: 1.25rem;
}

.floating-btn {
  position: fixed;
  bottom: 2rem; /* Tailwind's bottom-8 (32px) */
  right: 2rem; /* Tailwind's right-8 (32px) */
  background-color: #0D335E; /* Custom hex color */
  padding: 0.75rem; /* Tailwind's p-3 (12px) */
  border-radius: 9999px; /* Tailwind's rounded-full */
  color: rgba(255, 255, 255, 0.8); /* Tailwind's text-white/80 */
  z-index: 50; /* Tailwind's z-50 */
  transition: color 0.3s ease;

  &:hover {
    color: #ffffff; /* White */
  }
}

.svg-icon {
  width: 24px; /* Equivalent to w-6 */
  height: 24px; /* Equivalent to h-6 */
  stroke: currentColor;
  fill: none;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns */
  gap: 1rem; /* Optional: Adjust spacing between columns */
}

.file-icons {
  height: 1rem; /* h-4 (16px) */
  width: 1rem; /* w-4 (16px) */
  margin-right: 0.5rem; /* mr-2 (8px) */
  color: #0D335E;
}

.file-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px; /* Equivalent to px-3 py-2 */
  font-size: 0.875rem; /* Equivalent to text-sm */
  border: 1px solid #0d335e24;
  border-radius: 0.25rem; /* Equivalent to rounded */
  color: inherit; /* Keeps text color default */
  background-color: transparent;
  transition: background-color 0.3s, border-color 0.3s;

  &:hover {
    background-color: rgba(13, 51, 94, 0.14);

  }

}

.document-column {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
  gap:10px
}

.card {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background: #ffffff;
  padding: 0;
  margin: 10px auto;
}

.cards-wrapper {
  display: flex;
  justify-content: center;
}

.card-content {
  display: flex;
}

.card-content-reverse {
  display: flex;
  flex-direction: row-reverse;
}

.card-title {
  text-align: left;
}

.card-image {
  width: 40%;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the space */
}

.card-text {
  width: 60%;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* This spreads out the content */
}

.card-details {
  font-size: 16px;
}

.downloads {
  margin: 15px 0 30px 0;
  display: flex;
  flex-direction: column;

}

.downloads a {
  text-decoration: none;
  color: #0D335E;
  display: inline-flex;
  align-items: center;

  transition: all 0.2s ease;
}

.downloads i {
  font-size: 14px;
}

.downloads a {
  color: #1a7aad;
}

.downloads .underline-text {
  border-bottom: 2px solid #0d335e00;


}

.downloads a:hover .underline-text {
  border-bottom: 2px solid #0D335E;
  color: #0D335E;

}

.downloads .download-icon {
  font-size: 14px;
  opacity: 0.7;
}

.downloads a:hover .download-icon {
  opacity: 1;
  transform: translateY(2px);
}

.downloads .separator {
  color: #0d335e50;
  margin: 0 8px;
  user-select: none;
}

/* Button Styling */
.card-buttons {
  margin-top: auto; /* Pushes the buttons to the bottom */
  display: flex;
  flex-direction: row;
  gap: 8px;
  width: 100%;
}

.btn.external-link {

  padding: 8px 16px;
  background-color: #0d335e23;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  color: #0D335E;
  flex-grow: 1;

&.btn.external-link:hover {
  background-color: #0D335E;
  color: white;
}

}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}

.download-btn {
  background-color: #cf1a20;
  color: white;
}

.download-btn:hover {
  background-color: #8B0B0F;
}

.external-link {
  background-color: #0D335E;
  color: white;
}

.external-link:hover {
  background-color: #072144;
}

.carousel-indicators {
    position: static;
    margin-top: 1rem;
}

.carousel-indicators [data-bs-target] {
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    text-indent: 0;
    opacity: 1;
}

.sponsor-section {
  margin-top: 7rem;
}

.tournamtes-section {
  margin: 7rem 0;
}

.sponsor-slider-container {
    width: 100%;
    overflow: hidden;
    background: white;
    padding: 40px 0;
    margin-top: 40px;
  }

.sponsor-track {
    display: flex;
    animation: scroll 60s linear infinite;
    width: fit-content;
  }

  .sponsor-slide {
    display: flex;
    gap: 40px;
    padding: 0 20px;
  }

  .sponsor-logo {
    width: 200px;
    height: 100px;
    object-fit: contain;
  }

  .indicator-btn {
    background: transparent;
    color: #0D335E !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 20px;
    border: none !important;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
    text-align: center !important;
  }
  
  .indicator-btn:hover {
    background: #0d335e23;
  }
  
  .indicator-btn.active {
    background: #0D335E;
    color: white !important;

  }

  footer {
    background: linear-gradient(160deg, #0f2b4a 0%, #133d75 50%, #1e4d8b 100%);
    padding: 50px 0;

  }

  .footer-text {
    color: #9CA3AF;
  }

  .footer-bottom {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    padding-top: 1rem; 
    text-align: center;
    color: #9CA3AF;
  }

  .footer-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap:20px;
  }

  .footer-links {
    color: #60a5fa;
    transition: color 0.3s ease;

    &:hover {
      color: #bfdbfe;
    }
  }

  .footer-nav {
    color: #9ca3af;
    transition: color 0.3s ease;
    text-decoration: none;
  
    &:hover {
    color: #ffffff; /* White */
  }
  }

  .footer-socials {
    color: #9ca3af;
    font-size: 1.875rem;
    transition: color 0.3s ease;
    
    &:hover {
      color: #ffffff; /* White */
    }
  }

  .social-wrapper {
    display: flex;
    gap: 1rem; /* Tailwind's space-x-4 (16px) */
    margin-top: 0.75rem;
  }

  .footer-titles {
    font-size: 1.25rem;
    font-weight: 600; 
    color: white;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }



@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Mobile menu styles */
@media (max-width: 991.98px) {
  .main-nav {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .brand-name {
    color: #0D335E;
  }
  .menu-toggle {
    display: block;
  }
  
  .navbar-collapsed:not(.show) {
    display: none !important;
  }
  
  .navbar-collapsed.show {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu {
    flex-direction: column;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link, .main-nav .nav-link {
    color: #0D335E !important;
    display: block;
    padding: 0.5rem 0;
  }
  
  /* For mobile, always show white background */
  .main-nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .brand-link {
    color: #0D335E !important;
  }
  
  .toggle-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(13, 51, 94, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

}

@media (max-width: 768px) {
  .hero-container {
    justify-content: center;
  }
  
  .hero-content-wrapper {
    min-width: 100%;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-label {
    font-size: 0.875rem;
  }
  
  .brand-name {
    color: #0D335E;
  }

  .card-content-reverse {
    flex-direction: column;
  }

  .navbar {
    padding: 0 !important;
  }

  .navbar-collapsed {
    margin-bottom: 12px;
  }

  .hero-container {
    justify-content: center;
  }
  .card-content {
    flex-direction: column; /* This puts the image on top */
  }

  .card-content-topImg {
    flex-direction: column-reverse; /* This puts the image on top */
  }

  .card-image {
    width: 100%;
    max-height: 300px; /* Control the height of images on mobile */
    overflow: hidden;
  }

  .card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  /* Make text section full width */
  .card-text {
    width: 100%;
  }

  .card-title {
    font-size: 20px;
    margin-top: 10px;
  }

  .downloads {
    flex-direction: column;
    align-items: flex-start;
    gap:6px;
  }


  .downloads .separator {
    display: none;
  }

  .card-buttons {
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
  }

  .btn.external-link {
    width: 100%;
  }

  .navbar-brand img {
    width: 80px;
  }
  
  .navbar-brand-text {
    font-size: 1.125rem;
  }
}

@media screen and (max-width: 480px) {

  .stats-container {
    gap: 1rem;
  }
  
  .hero-content-box {
    padding: 1.5rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }

  
  .brand-name {
    color: #0D335E;
    font-size: 1.3rem;
  }

  .card-title {
    font-size: 18px;
  }

  .card-text {
    padding: 15px;
  }

  .downloads {
    margin: 10px 0;
  }

  .navbar-brand img {
    width: 64px;
  }
  
  .navbar-brand-text {
    font-size: 1rem;
  }

  .navbar-title {
    display: none;
  }
}

@media (max-width: 400px) {
  .hero-content-box {
    padding: 1rem;
  }
  
  .stats-container {
    gap: 0.75rem;
  }

  .content-box {
    padding: 32px 16px !important;
  }

  .stats {
    gap: 12px !important;
  }
}
