/* Reset CSS */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header and Navigation */
.header {
    position: relative;
}

.top-nav {
    background-color: #2c4a7a;
    color: white;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.main-nav {
    background-color: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
    border-top: 1px solid #3a5a8a;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: #2c4a7a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.nav-list a:hover {
    color: #1a365d;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}

/* Center mobile menu on mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        position: static;
        transform: none;
        margin: 0 auto;
        display: none;
    }

    .nav-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #2c4a7a;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .nav-list a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .inscribete-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    button, 
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .close-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.announcement-bar {
    background-color: #408627;
    color: white;
    padding: 0.75rem 2rem;
    text-align: center;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.announcement-bar p {
    margin: 0;
    font-size: 0.9rem;
    text-decoration: underline;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    line-height: 1;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 2rem;
    padding-top: 8rem;
    z-index: 2;
    text-align: left;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.inscribete-btn {
    display: inline-block;
    background-color: #408627;
    color: white;
    border: 2px solid #408627;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
}

.inscribete-btn:hover {
    background-color: transparent;
    color: white;
}



/* Stats Section */
.stats {
    padding: 3rem 1rem;
    background-color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Play Your Way Section */
.play-your-way {
    padding: 3rem 1rem;
    background: linear-gradient(to bottom right, #408627, #4da82f, #2c4a7a);
    position: relative;
    overflow: hidden;
}

.play-your-way::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.05);
}

.play-way-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .play-way-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.play-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.play-header {
    display: inline-block;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
}

.play-header.dark {
    background-color: #333;
}

.play-header.light {
    background-color: white;
    color: #e91e63;
}

.play-header h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.play-intro p {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    line-height: 1.6;
}

.feature-card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 24rem;
    position: relative;
}

.card-image {
    position: relative;
    height: 100%;
    width: 100%;
    transition: opacity 0.5s;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s;
    text-align: center;
}

.card-content h3 {
    color: #e91e63;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-content p {
    color: #555;
    line-height: 1.6;
}

.feature-card:hover .card-image {
    opacity: 0;
}

.feature-card:hover .card-content {
    opacity: 1;
}

/* Gallery Section */
.gallery-preview {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 250px;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.view-more-container {
    text-align: center;
    margin-top: 2rem;
}

.view-more-btn {
    display: inline-block;
    background-color: #2c4a7a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.view-more-btn:hover {
    background-color: #1a365d;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    padding: 1rem;
    z-index: 1001;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive Design */

/* Mobile First - Small screens (up to 480px) */
@media (max-width: 480px) {
    /* Header Navigation */
    .top-nav {
        padding: 0.5rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .nav-left {
        justify-content: center;
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .main-nav {
        padding: 0.75rem 1rem;
        position: relative;
    }

    .nav-container {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        gap: 0;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
    }

    .nav-list.active {
        max-height: 300px;
    }

    .nav-list li {
        border-bottom: 1px solid #eee;
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        font-size: 0.85rem;
        padding: 1rem;
        display: block;
        border-bottom: none;
    }

    .nav-list a:hover {
        background-color: #f8f9fa;
    }

    /* Announcement Bar */
    .announcement-bar {
        padding: 0.4rem 1rem;
    }

    .announcement-content {
        flex-direction: column;
        gap: 0;
    }

    .announcement-bar p {
        font-size: 0.8rem;
        text-align: center;
        padding-right: 0;
        margin: 0;
    }

    .close-btn {
        display: none;
    }

    /* Hero Section */
    .hero {
        height: 400px;
    }

    .hero-content {
        padding: 1rem;
        padding-top: 4rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .inscribete-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Stats Section */
    .stats {
        padding: 2rem 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Play Your Way Section */
    .play-your-way {
        padding: 2rem 1rem;
    }

    .play-way-container {
        gap: 1.5rem;
    }

    .play-header h2 {
        font-size: 1.5rem;
    }

    .play-intro p {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .feature-card {
        height: 20rem;
    }
}

/* Tablets and Small Laptops (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Header Navigation */
    .top-nav {
        padding: 0.75rem 1.5rem;
    }

    .nav-left {
        gap: 1.25rem;
    }

    .main-nav {
        padding: 1rem 1.5rem;
        position: relative;
    }

    .nav-container {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        gap: 0;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
    }

    .nav-list.active {
        max-height: 300px;
    }

    .nav-list li {
        border-bottom: 1px solid #eee;
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        font-size: 0.9rem;
        padding: 1.2rem;
        display: block;
    }

    .nav-list a:hover {
        background-color: #f8f9fa;
    }

    /* Announcement Bar */
    .announcement-bar {
        padding: 0.5rem 1.5rem;
    }

    .announcement-bar p {
        font-size: 0.85rem;
        padding-right: 0;
        margin: 0;
    }

    .close-btn {
        display: none;
    }

    /* Hero Section */
    .hero {
        height: 500px;
    }

    .hero-content {
        padding: 1.5rem;
        padding-top: 6rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Stats Section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Play Your Way Section */
    .play-way-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .feature-card {
        height: 22rem;
    }
}

/* Original mobile rules for larger mobile screens */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .gallery-item img {
        height: 200px;
    }

    /* Additional mobile improvements */
    .play-your-way {
        padding: 2rem 1rem;
    }

    .gallery-preview {
        padding: 2rem 1rem;
    }

    .gallery-preview h2 {
        font-size: 2rem;
    }

    .pricing-container {
        padding: 2rem 1rem;
    }

    .pricing-section h2 {
        font-size: 2rem;
    }

    .pricing-grid {
        gap: 1.5rem;
    }

    .pricing-card {
        margin: 0;
    }

    /* Better table responsiveness */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive table {
        min-width: 600px;
        font-size: 0.8rem;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 0.4rem 0.3rem;
        white-space: nowrap;
    }

    /* Button improvements */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Card improvements */
    .card {
        margin: 0.5rem 0;
    }

    .card-body {
        padding: 1rem;
    }

    /* Better spacing for sections */
    section {
        padding: 2rem 1rem;
    }

    /* Improve readability */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .gallery-item img {
        height: 150px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Reduce font sizes for very small screens */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.85rem;
    }

    /* Better button sizes */
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Compact spacing */
    section {
        padding: 1.5rem 0.5rem;
    }

    .container {
        padding: 0 0.5rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 350px;
    }

    .hero-content {
        padding-top: 2rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .nav-list.active {
        max-height: 200px;
    }

    .main-nav {
        padding: 0.5rem 1rem;
    }

    .announcement-bar {
        padding: 0.5rem 1rem;
    }

    .stats {
        padding: 1.5rem 1rem;
    }

    .play-your-way {
        padding: 1.5rem 1rem;
    }
}
