/* =========================
   CHAPTERS HERO
========================= */

.chapters-hero {
    background: linear-gradient(rgba(0, 0, 50, 0.6), rgba(0, 0, 50, 0.6)),
                url("icons&logos/banner.jpg") center/cover no-repeat;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.chapters-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.chapters-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* =========================
   CHAPTER CARDS
========================= */

.chapter-list {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chapter-card {
    background: white;
    border-radius: 12px;
    padding: 40px 50px;        
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: 0.3s ease;
    width: 100%;    
    text-align: left;           
}

.chapter-card:hover {
    transform: translateY(-5px);
}

.chapter-card h3 {
    margin-bottom: 10px;
    color: #002855;
}

.chapter-card p {
    color: #555;
}

/* =========================
   DROPDOWN ACTIVITIES - CARD STYLE
========================= */

.chapter-activity {
    margin-top: 20px;
    display: none;
    border-top: 1px solid #eee;
    padding-top: 20px;

    display: none;
    flex-wrap: wrap;
    gap: 20px;
}

.chapter-activity.active {
    display: flex;
}

/* Activity Card */

.activity-item {
    background: #f8f9fb;
    border-radius: 12px;
    overflow: hidden;
    width: 160px;
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Image */

.activity-item img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    background-color: #f0f0f0; /* fundo para preencher espaço vazio */
}

/* Title */

.activity-item span {
    display: block;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #002855;
}

/* =========================
   MODAL POPUP
========================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 999;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.modal-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 15px;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

.chapters-section {
    padding: 80px 40px;
    background-color: #ffffff;
}

.chapters-section h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: #00264d;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}