:root {
    --primary-color: #2c5e2e;
    --secondary-color: #d4af37;
    --accent-color: #a63a3a;
    --text-color: #333333;
    --light-bg: #f5f7f5;
    --white: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --font-primary: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

/* Header adjustments */
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .main-nav ul {
        display: flex;
    }
}

.auth-buttons {
    display: none;
    gap: 10px;
    align-items: center;
}

@media (min-width: 768px) {
    .auth-buttons {
        display: flex;
    }
}

.auth-buttons .btn {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.btn {
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #244b25;
    border-color: #244b25;
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline-white {
    border: 1px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

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

.btn-secondary:hover {
    background-color: #c4a030;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Auth Forms Standard Styles */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    /* Adjust for header/footer */
    padding: 40px 0;
    background-color: var(--light-bg);
}

.auth-box {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-box.register-box {
    max-width: 800px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #666;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}


/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://placehold.co/1920x600/2c5e2e/ffffff?text=Clube+Chabo') center/cover no-repeat;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 1.2rem;
}

@media (min-width: 768px) {
    .form-row.two-cols {
        grid-template-columns: 1fr 1fr;
    }
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-check input {
    width: auto;
    margin: 0;
}

/* Sections Common */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.about-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.about-item:hover {
    transform: translateY(-5px);
}

.about-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 200px;
    background-color: #ddd;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: var(--transition);
}

.gallery-item:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* Benefits */
.benefits {
    background-color: var(--white);
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .benefits-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-card {
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    background: var(--light-bg);
}

.benefit-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Events */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.event-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    min-width: 80px;
}

.event-details {
    padding: 20px;
}

.event-details h3 {
    margin-bottom: 5px;
}

.event-details p {
    color: #666;
    font-size: 0.9rem;
}

/* Testimonials */
.testimonial-slider {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .testimonial-slider {
        grid-template-columns: 1fr 1fr;
    }
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    font-style: italic;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-card cite {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--primary-color);
    font-style: normal;
}

/* Newsletter */
.newsletter {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.newsletter h2 {
    color: var(--white);
}

.newsletter-form {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    width: 300px;
    max-width: 100%;
}

/* Footer */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* ===================================
   Banner Carousel Styles
   =================================== */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Hide mobile carousel on desktop, show desktop carousel */
@media (min-width: 768px) {
    .mobile-carousel {
        display: none;
    }

    .desktop-carousel {
        display: block;
    }
}

/* Hide desktop carousel on mobile, show mobile carousel */
@media (max-width: 767px) {
    .desktop-carousel {
        display: none;
    }

    .mobile-carousel {
        display: block;
    }

    .hero-carousel {
        height: 500px;
    }
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding-top: 150px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .carousel-content {
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.carousel-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 767px) {
    .carousel-content h1 {
        font-size: 2rem;
    }
}

.carousel-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (max-width: 767px) {
    .carousel-content p {
        font-size: 1.1rem;
    }
}

.carousel-content .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
    font-size: 1.1rem;
    padding: 12px 30px;
}

/* Carousel Navigation Buttons */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 4px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

@media (max-width: 767px) {

    .carousel-prev,
    .carousel-next {
        font-size: 2rem;
        padding: 5px 15px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Hide desktop dots on mobile, show mobile dots */
@media (max-width: 767px) {
    .desktop-dots {
        display: none !important;
    }

    .mobile-dots {
        display: flex !important;
    }
}

/* Hide mobile dots on desktop, show desktop dots */
@media (min-width: 768px) {
    .mobile-dots {
        display: none !important;
    }

    .desktop-dots {
        display: flex !important;
    }
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Auth Pages Modern 2-Column Layout
   =================================== */
.auth-page-wrapper {
    display: flex;
    min-height: calc(100vh - 80px); /* Adjust for header if needed */
    background-color: var(--light-bg);
}

.auth-image-side {
    display: none;
    flex: 1;
    background: url('/assets/img/login-bg.png') center/cover no-repeat;
    position: relative;
    box-shadow: inset -10px 0 20px rgba(0,0,0,0.1);
}

.auth-image-side::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(44,94,46,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.auth-image-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: var(--white);
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.auth-image-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.auth-image-content p {
    font-size: 1.2rem;
    line-height: 1.5;
    opacity: 0.9;
}

.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
    .auth-image-side {
        display: block;
    }
    .auth-form-side {
        max-width: 50%;
    }
}