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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #121212;
    color: #e0e0e0;
}

header {
    background: rgba(18, 18, 18, 0.8);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav .logo:hover {
    color: #ffa500;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: #ffa500;
    border-bottom-color: #ffa500;
}

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

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

#atividades {
    padding: 5rem 2rem;
    text-align: center;
    background-color: #181818;
}

#atividades h2 {
    font-size: 2.8rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    color: #fff;
}

#atividades h2::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 4px;
    background: #ffa500;
    bottom: -15px;
    left: 15%;
    border-radius: 2px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 165, 0, 0.2);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid #ffa500;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #ffa500;
}

.card-content p {
    font-size: 1rem;
    color: #ccc;
    flex-grow: 1;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex; /* Use flex to make card fill the link */
    flex-direction: column;
}

.card-link .card {
    height: 100%; /* Make card fill the link height */
}

footer {
    text-align: center;
    padding: 2rem;
    background: #121212;
    margin-top: 2rem;
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Detail Page Styles */
.detail-page-body {
    padding-top: 80px; /* Height of the fixed header */
}

.detail-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.detail-container .detail-header {
    text-align: center;
    margin-bottom: 2rem;
}

.detail-header h1 {
    font-size: 3rem;
    color: #ffa500;
    margin-bottom: 1rem;
}

.detail-header p {
    font-size: 1.2rem;
    color: #ccc;
    font-style: italic;
}

.detail-content h2 {
    font-size: 2rem;
    color: #ffa500;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 165, 0, 0.3);
    padding-bottom: 0.5rem;
}

.detail-content p, .detail-content ul {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #ccc;
}

.detail-content ul {
    list-style-type: '✓';
    list-style-position: inside;
    padding-left: 1rem;
}

.detail-content li {
    margin-bottom: 0.5rem;
    padding-left: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #ffa500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.back-link-container {
    text-align: center;
    margin-top: 3rem;
}

.back-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #ffa500;
    color: #121212;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background-color: #ffc966;
}

@media(max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    nav ul {
       display: none;
    }
    nav {
        justify-content: center;
    }
}

@media(max-width: 576px) {
    #atividades {
        padding: 4rem 1rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}
