* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.primeira-cor {
    color: #007bff;
}

.header {
    background-color: #000d97;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header .logo {
    display: flex;
    align-items: center;
}

.header .logo img {
    height: 85px;
    margin-right: 15px;
}

.header h1 {
    font-size: 1.2em;
    font-weight: 600;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #028ACD;
}
.logout-link {
    text-decoration: none !important; 
    color: white !important;
    margin-left: 30px !important; 
    background-color: #000d97; 
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 1em !important;
    font-weight: 600;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.logout-link:hover {
    background-color: #0056b3; 
    color: white; 
    text-decoration: none !important;
}

.tabs {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 40px;
}

.tab-button {
    background-color: #4e48ff;
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 0 8px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.tab-button.active {
    background-color: #0800FF;
}

.tab-button:hover {
    background-color: #040083;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px 30px; 
    padding-bottom: 50px;
}

 .card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid  #0800FF; 
 }


.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card:before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: -20px; 
    left: 45%;
    transform: translateX(-50%);
    z-index: 10;
    
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid white; 
    
    filter: drop-shadow(0 -2px 1px rgba(0, 0, 0, 0.05));
}

.card-header {
    background-color: #e9e9e9;
    padding: 15px 20px;
    border-bottom: 1px solid #e9e9e9;
}

.card-header h2 {
    font-size: 1.3em;
    text-align: center;
    font-weight: 600;
    color: #292929;
}

.card-content {
    padding: 25px 20px 15px 20px;
    text-align: center;
    flex-grow: 1;
}

.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.card-content h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #333;
}

.card-content p {
    font-size: 0.95em;
    color: #666;
}

.card-footer {
    padding: 15px 20px;
    background-color: #e9e9e9;
    border-top: 1px solid #e9e9e9;
    text-align: center;
}

.details-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.details-button:hover {
    background-color: #0056b3;
}

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 25px 40px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    font-size: 0.9em;
}

.social-links {
    display: flex;
    align-items: center;
}

.social-links a {
    margin-left: 15px;
    text-decoration: none;
    color: white;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ccc;
}

.social-links img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px;
    }

    .header h1 {
        font-size: 1.5em;
        margin-top: 10px;
    }

    .nav-menu {
        margin-top: 15px;
    }

    .nav-menu a {
        margin: 0 10px;
    }
    
    .logout-link {
        margin-top: 0 !important;
        margin-left: 10px !important;
        padding: 8px 15px;
        font-size: 1.2em !important;
        white-space: nowrap;
    }
    
    .tabs {
        margin-top: 20px;
    }
    
    .tab-button {
        margin: 5px;
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .cards-container {
        gap: 30px; 
        grid-template-columns: 1fr;
    }

    .card {
        margin-top: 0; 
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .card:before {
        display: none; 
    }

    .footer {
        flex-direction: column;
        padding: 20px;
    }

    .footer p {
        margin-bottom: 15px;
        order: 2;
    }

    .social-links {
        flex-direction: row; 
        justify-content: center;
        margin-bottom: 15px;
        order: 1;
    }

    .social-links a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.3em;
    }

    .tab-button {
        font-size: 0.9em;
    }

    .logout-link{
        font-size: 1.3em;
    }
}