/* Enable smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

section {
    scroll-margin-top: 80px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-family: 'Barlow Semi Condensed', Sans-serif;
    font-size: 45px;
    font-weight: 600;
    font-style: bold;
    text-transform: uppercase;
    font-style: italic;
    margin: 0;
    padding: 0;
}

h2, h3 {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Bar */
nav {
    background: #1e3664;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav .logo-img {
    height: 70px;
    width: auto;
}

/* Hamburger Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f4c10f;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 1rem;
        opacity: 0;
        transform: translateY(-10px);
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    background: url('img/main.jpg') no-repeat center center/cover;
    color: #fff;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
}

/* Hero Button */
.hero-button {
    display: inline-block;
    background: #1e3664;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-button:hover {
    background: #dc062a;
    color: #fff;
    border-color: #dc062a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Info Section */
.info {
    padding: 4rem 0;
    background: #f9f9f9;
}

.info h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-item i {
    margin-bottom: 1rem;
    color: #333;
}

.info-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    font-size: 1rem;
    color: #666;
}

.steps-hiw {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

/* Carousel Section */
.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 400px; /* Adjusted for mobile */
    margin: 2rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

/* Show 1 image on mobile, 3 on tablet, 5 on desktop */
.carousel-slide {
    flex: 0 0 100%; /* Mobile: 1 image */
    box-sizing: border-box;
    padding: 0 5px;
    height: 100%;
}

@media (min-width: 600px) {
    .carousel-slide {
        flex: 0 0 50%; /* Tablet: 2 images */
    }
}

@media (min-width: 900px) {
    .carousel-slide {
        flex: 0 0 33.33%; /* Small desktop: 3 images */
    }
}

@media (min-width: 1200px) {
    .carousel-slide {
        flex: 0 0 20%; /* Large desktop: 5 images */
    }
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1%;
}

/* Navigation Buttons */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev::before {
    content: "\f104";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px;
}

.carousel-next::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 33.33%;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        flex: 0 0 50%;
    }
}

/* About Section */
.about {
    padding: 4rem 0;
    background: #fff;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #666;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background: #f9f9f9;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.how-it-works h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.how-it-works p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Tab Buttons */
.tab-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Hover state (desktop) */
.tab-button:hover {
    background: #dc062a;
    border-color: #dc062a;
    color: #fff;
}

/* Active state (applies to both desktop & mobile) */
.tab-button.active {
    background: #1e3664;
    color: #fff;
    border-color: #333;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Ensure active tab stays highlighted on mobile */
    .tab-button.active {
        background: #1e3664 !important;
        color: #fff !important;
    }

    /* Disable hover effects on touch devices (optional) */
    @media (hover: none) {
        .tab-button:hover {
            background: #fff;
            color: #333;
        }
        .tab-button.active:hover {
            background: #1e3664 !important;
            color: #fff !important;
        }
    }
}

/* Tab Content */
.tab-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: flex;
    gap: 2rem;
    align-items: top;
}

.tab-text {
    flex: 1;
    text-align: justify;
}

.tab-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: left;
}

.tab-text p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.tab-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tab-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tab-pane.active {
        flex-direction: column;
        text-align: center;
    }

    .tab-text {
        text-align: left;
    }

    .tab-text h3 {
        text-align: center;
    }

    .tab-image {
        margin-top: 1rem;
    }
}

/* Inscription Section */
.inscription {
    padding: 4rem 0;
    background: #fff;
    text-align: center;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem auto;
    flex-wrap: wrap;
}

.pricing-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e3664;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #dc062a;
    margin: 1rem 0;
}

.benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.benefits li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits i {
    color: #4CAF50;
}

.register-button {
    display: inline-block;
    background: #1e3664;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.register-button:hover {
    background: #dc062a;
}

.register-button i {
    margin-left: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: #f9f9f9;
    text-align: center;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 2rem auto;
    max-width: 600px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.contact-item i {
    color: #1e3664;
}

.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1rem;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .contact-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Footer */
footer {
    background: #1e3664;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

footer p {
    margin: 0;
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel {
        height: 300px;
    }
}

/* Sponsors Section */
.sponsors {
    padding: 4rem 0;
    background: #fff;
    text-align: center;
}

.sponsors h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.sponsors-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.sponsors-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.sponsors-track img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sponsors-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sponsors-track {
        gap: 1.5rem;
    }
    
    .sponsors-track img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .sponsors-track {
        gap: 1rem;
    }
    
    .sponsors-track img {
        height: 50px;
    }
}


/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.modal-image {
  max-height: 80vh;
  max-width: 90vw;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.modal-close:hover {
  transform: scale(1.2);
}

/* Make existing tab images clickable */
.tab-image img {
  cursor: pointer;
  transition: transform 0.2s;
}

.tab-image img:hover {
  transform: scale(1.02);
}