* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

:root {
    --dark-bg: #1c1a1a;
    --light-bg: #ffffff;
    --btn-dark: #2c3e50; 
    --btn-hover: #1a252f;
    --text-btn: #ffffff;
    --text-main: #333333;
    --text-black: #000000;
    --accent-color: #0056b3;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: var(--text-main);
    line-height: 1.6;
}

/* Header */
.header {
    background-color: var(--dark-bg);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo { height: 50px; }

.list ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

.list a {
    text-decoration: none;
    color: #bbb;
    padding: 8px 15px;
    font-weight: 500;
    transition: 0.3s;
}

.list a:hover, .list a.active {
    color: white;
}

.list a.active {
    color: white;
    border-bottom: 3px solid var(--accent-color);
    border-radius: 0;
}

/* Layout Principal */
.main {
    padding: 40px 1%; 
    max-width: 1600px; 
    margin: 0 auto;
}

.tittle-container {
    text-align: center;
    margin-bottom: 40px;
}

.tittle-container h1 {
    color: var(--text-black);
    font-size: 2rem;
}

/* Grid dos Cards */
.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px;
    align-items: start;
}

/* Estilo do Card */
.card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-img {
    width: 100%;
    height: 150px; 
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.card-header h2 {
    color: var(--text-black);
    font-size: 1.2rem; 
    margin-bottom: 15px;
    min-height: 3rem;
    text-align: center;
}

/* Colunas Internas */
.card-content {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.column {
    flex: 1;
}

.column h3 {
    font-size: 0.95rem;
    color: var(--text-black);
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    text-align: center;
}

/* Estilização dos Botões */
.button {
    background-color: var(--btn-dark); 
    color: var(--text-btn); 
    padding: 8px 4px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    
}

.button:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #777;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

/* Parte da responsividade */
.list ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Telas médias (Tablets e Laptops pequenos) */
@media (max-width: 1300px) {
    .main {
        padding: 40px 3%; 
    }

    .cards-wrapper {
    
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
        gap: 20px;
    }
}

/* Telas pequenas (celulares) */
@media (max-width: 768px) {
    /* Ajuste do Header */
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 20px 5%;
    }

    .list ul {
        gap: 10px;
    }

    .list a {
        padding: 8px 10px;
        font-size: 0.95rem;
    }

    /* Ajuste do Título Principal */
    .tittle-container {
        margin-bottom: 30px;
    }

    .tittle-container h1 {
        font-size: 1.5rem; 
        padding: 0 15px;
    }

    /* Ajuste dos Cards */
    .cards-wrapper {
        grid-template-columns: 1fr; /* 1 card por linha */
        gap: 25px; 
        padding: 0 10px; 
    }

    .card {
        padding: 20px; 
    }

    .card-img {
        height: 180px; 
    }

    .card-header h2 {
        min-height: auto; 
        margin-bottom: 15px;
    }

    
    .card-content {
        flex-direction: column; 
        gap: 20px;
    }

    .column h3 {
        font-size: 1.1rem;
        padding-bottom: 8px;
    }

    .button {
        padding: 12px 8px; 
        font-size: 0.9rem; 
        margin-bottom: 10px;
    }
}

/* Telas MUITO pequenas, menor que isso já é um relogio*/
@media (max-width: 480px) {
    .tittle-container h1 {
        font-size: 1.3rem;
    }
    
   
    .list ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 5px;
    }
    
    .list li {
        width: 100%;
        text-align: center;
    }
    
    .list a {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Separador sutil */
    }

    .list a.active {
        border-bottom: 3px solid var(--accent-color);
    }
}