/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Dark background */
    color: #f0f0f0; /* Light text */
    line-height: 1.6;
}

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

h1, h2, h3 {
    color: #ff6600; /* Orange accent */
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
}

a {
    color: #ff9933; /* Lighter orange for links */
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
header {
    background-color: #111111; /* Slightly darker header */
    padding: 15px 0;
    border-bottom: 3px solid #ff6600;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
}

#logo-img {
    height: 50px;
    margin-right: 15px;
}

header h1 {
    margin: 0;
    font-size: 1.5em; /* Adjusted for longer text */
    color: #ff6600;
}

header nav a {
    color: #f0f0f0;
    margin-left: 15px; /* Slightly reduced margin for more items */
    font-size: 1.0em; /* Slightly reduced font size */
    padding: 5px 8px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

header nav a:hover, header nav a.active {
    background-color: #ff6600;
    color: #111111;
}

/* Hero Section */
#hero {
    background: url('hero_background.png') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

#hero::before { /* Overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative; /* To be on top of the overlay */
    z-index: 1;
    max-width: 700px;
}

.hero-content h2 {
    font-size: 2.8em; /* Adjusted */
    margin-bottom: 20px;
    color: #fff; /* White for hero title for contrast */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.2em; /* Adjusted */
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ff6600;
    color: #111111;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
    margin-top: 10px; /* Added margin for buttons in content */
}

.btn:hover {
    background-color: #ff9933;
    color: #000;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #ff6600;
    color: #111111;
}
.btn-primary:hover {
    background-color: #e65c00;
}


/* Main Content Sections */
main section {
    padding: 60px 0;
    border-bottom: 1px solid #333; /* Separator line */
}

main section:last-child {
    border-bottom: none;
}

/* Event Grid (Calendário) */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: #222;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Ensure button stays at bottom */
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card h3 {
    font-size: 1.5em;
    margin: 15px;
    color: #ff9933;
}

.event-card p {
    margin: 0 15px 10px;
    font-size: 0.95em;
    color: #ccc;
    flex-grow: 1; /* Allow description to take space */
}

.event-card .event-date, .event-card .event-location {
    font-weight: bold;
    color: #ddd;
}

.event-card .btn {
    display: block;
    width: calc(100% - 30px);
    margin: 15px auto; /* Center button if width is not 100% */
    text-align: center;
}

/* Resultados Section */
#resultados {
    background-color: #202020; /* Slightly different bg for distinction */
    padding: 40px 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}
#resultados h2{
    margin-bottom: 30px;
}
.results-category {
    background-color: #2a2a2a;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 5px solid #ff6600;
}
.results-category h3 {
    margin-top: 0;
    color: #ff9933;
    font-size: 1.6em;
}
.results-category ol {
    list-style: none;
    padding-left: 0;
}
.results-category ol li {
    background-color: #333;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    color: #ddd;
    font-size: 1.05em;
    display: flex;
    justify-content: space-between;
}
.results-category ol li span:first-child {
    font-weight: bold;
    color: #ffc300;
}


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

.gallery-item img {
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    border: 2px solid #444;
}

.gallery-item img:hover {
    transform: scale(1.05);
    opacity: 0.8;
    border-color: #ff6600;
}

/* Regulamento Section */
#regulamento article {
    background-color: #252525;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #ff6600;
}
#regulamento h3 {
    color: #ff9933;
    margin-top: 20px;
    font-size: 1.4em;
}
#regulamento h3:first-of-type {
    margin-top: 0;
}
#regulamento p {
    margin-bottom: 15px;
    color: #ccc;
    line-height: 1.7;
}

/* Campeões Section */
#campeoes .champions-year {
    background-color: #2a2a2a;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 5px;
    border-left: 5px solid #ff6600;
}
#campeoes h3 {
    margin-top: 0;
    color: #ff9933;
    font-size: 1.6em;
}
#campeoes ul {
    list-style: none;
    padding-left: 0;
}
#campeoes ul li {
    background-color: #333;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    color: #ddd;
    font-size: 1.05em;
}
#campeoes ul li strong {
    color: #ffc300; 
}


/* Sobre Section */
#sobre { /* Was #about */
    text-align: center;
}

#sobre p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    color: #ddd;
}
.about-image { /* Renamed from #about .about-image for consistency */
    max-width: 500px;
    margin: 20px auto;
    border-radius: 10px;
    border: 3px solid #ff6600;
}


/* Footer */
footer {
    background-color: #111111;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    border-top: 3px solid #ff6600;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #ff9933;
}
footer a:hover {
    color: #fff;
}

.social-links img {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.2s;
}
.social-links img:hover {
    transform: scale(1.2);
}


/* Responsive adjustments */
@media (max-width: 992px) { /* Adjust breakpoint for nav */
    header .container {
        flex-direction: column;
    }
    header nav {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap; /* Allow nav items to wrap */
        justify-content: center;
    }
    header nav a {
        margin: 5px 8px; /* Adjust margin for wrapped items */
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    h2 {
        font-size: 2em;
    }
    .event-grid {
        grid-template-columns: 1fr; /* Stack event cards on smaller screens */
    }
    .results-category ol li {
        flex-direction: column; /* Stack results items on small screens */
        align-items: flex-start;
    }
    .results-category ol li span:first-child {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3em;
    }
    header nav a {
        font-size: 0.9em;
        padding: 4px 6px;
    }
     .hero-content h2 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 1.0em;
    }
     h2 {
        font-size: 1.8em;
    }
    h3 {
        font-size: 1.4em;
    }
    .results-category h3, #campeoes h3 {
        font-size: 1.3em;
    }
    #regulamento h3 {
        font-size: 1.2em;
    }
}