:root {
    /* Light theme (default) */
    --primary-color: #4a6fa5;
    --secondary-color: #6c63ff;
    --accent-color: #ff6b6b;
    --background-color: #ffffff;
    --alt-background-color: #f5f7fa;
    --text-color: #333333;
    --text-light-color: #666666;
    --card-background: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --header-background: #ffffff;
    --header-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --footer-background: #2c3e50;
    --footer-text: #ecf0f1;
    --border-color: #e1e4e8;
}

[data-theme="dark"] {
    --primary-color: #5b8bd0;
    --secondary-color: #8c85ff;
    --accent-color: #ff8585;
    --background-color: #1a1a2e;
    --alt-background-color: #16213e;
    --text-color: #e6e6e6;
    --text-light-color: #b3b3b3;
    --card-background: #242645;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --header-background: #242645;
    --header-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --footer-background: #0f3460;
    --footer-text: #e6e6e6;
    --border-color: #444444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

/* Header */
header {
    background-color: var(--header-background);
    box-shadow: var(--header-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
}

/* Menu com subsecções */
.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-menu > li {
    margin-left: 1.5rem;
    position: relative;
}

.main-menu > li > a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
}

.main-menu > li > a i {
    margin-left: 0.3rem;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.main-menu > li.has-submenu:hover > a i {
    transform: rotate(180deg);
}

.main-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-menu > li > a:hover::after,
.main-menu > li > a:focus::after {
    width: 100%;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--card-background);
    border-radius: 4px;
    box-shadow: var(--card-shadow);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    list-style: none;
}

.submenu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.submenu li a:hover {
    background-color: var(--alt-background-color);
    color: var(--primary-color);
}

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--background-color);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    nav.active {
        left: 0;
    }
    
    .main-menu {
        flex-direction: column;
        padding: 1rem;
    }
    
    .main-menu > li {
        margin: 0 0 0.5rem 0;
        width: 100%;
    }
    
    .main-menu > li > a {
        padding: 0.8rem 0;
        display: flex;
        justify-content: space-between;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        padding: 0 0 0 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .has-submenu.active .submenu {
        max-height: 500px;
    }
    
    .has-submenu > a {
        cursor: pointer;
    }
    
    .has-submenu.active > a i {
        transform: rotate(180deg);
    }
}

.theme-toggle {
    margin-left: 1.5rem;
}

#theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

#theme-toggle-btn:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
}

/* Main Content */
main {
    padding-top: 80px;
}

.section {
    padding: 4rem 0;
    background-color: var(--background-color);
}

.section.alt-bg {
    background-color: var(--alt-background-color);
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-light-color);
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background-color: var(--background-color);
}

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

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light-color);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Courses Section */
.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.course-item {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.course-item h3 {
    color: var(--primary-color);
}

.course-item ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.course-tip {
    background-color: var(--card-background);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    box-shadow: var(--card-shadow);
}

/* Career Section */
.career-paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.career-path {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.career-path h3 {
    color: var(--primary-color);
}

.career-details {
    margin-top: 1rem;
}

.career-skills h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.career-skills ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.career-growth {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    margin-top: 2rem;
}

/* Resources Section */
.resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.resource-category {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.resource-category h3 {
    color: var(--primary-color);
}

.resource-category ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.community-involvement {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    margin-top: 2rem;
}

/* Footer */
footer {
    background-color: var(--footer-background);
    color: var(--footer-text);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--footer-text);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-disclaimer {
    flex: 2;
    min-width: 250px;
}

.footer-disclaimer h3 {
    color: white;
    margin-bottom: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .cards {
        flex-direction: column;
    }
    
    .card {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--background-color);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 2rem;
    }
    
    nav ul li {
        margin: 0 0 1.5rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    #mobile-menu-toggle {
        background: none;
        border: none;
        color: var(--text-color);
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .course-list,
    .career-paths,
    .resources {
        grid-template-columns: 1fr;
    }
}

/* Estilos para as novas secções */

/* Estilos para Análise de Vulnerabilidades */
.vuln-intro, .secure-dev-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.vuln-content, .secure-dev-content {
    flex: 1;
    min-width: 300px;
}

.vuln-image, .secure-dev-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vuln-importance h4, .secure-dev-benefits h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.process-steps, .secure-dev-phases {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step-item, .phase-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.step-item h4, .phase-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.types-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.type-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.type-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.scoring-levels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.level-item {
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.level-item h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.level-item.critical {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
}

.level-item.high {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
}

.level-item.medium {
    background-color: rgba(255, 153, 0, 0.1);
    border-left: 4px solid #ff9900;
}

.level-item.low {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
}

.tools-grid, .resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tool-card, .resource-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover, .resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tool-card h4, .resource-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

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

.beginner-step {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.beginner-step h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Estilos para Desenvolvimento Seguro */
.practices-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.practice-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.practice-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.code-example {
    background-color: var(--code-bg);
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
}

.code-example h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.code-example pre {
    margin: 0;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow-x: auto;
}

.code-example code {
    font-family: 'Courier New', Courier, monospace;
    color: var(--code-color);
}

/* Estilos para Ferramentas Open Source */
.tools-categories {
    margin-top: 2rem;
}

.tools-category {
    margin-bottom: 2.5rem;
}

.tools-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tool-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tool-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.tool-details {
    margin-top: 1rem;
}

.tools-resources {
    margin-top: 3rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tools-resources h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.tools-resources ol {
    padding-left: 1.5rem;
}

.tools-resources li {
    margin-bottom: 0.5rem;
}

/* Estilos para Ataques Comuns */
.attack-types {
    margin-top: 2rem;
}

.attack-category {
    margin-bottom: 2.5rem;
}

.attack-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.attack-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.attack-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.attack-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.attack-details {
    margin-top: 1rem;
}

.attack-example {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

/* Estilos para Legislação e Regulamentação */
.legislation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.legislation-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.legislation-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.compliance-steps {
    margin-top: 2rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.compliance-steps h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Estilos para Laboratório Virtual */
.lab-setup-steps {
    counter-reset: step-counter;
    margin-top: 1.5rem;
}

.lab-step {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1.5rem 3.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.lab-step::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.lab-step h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

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

.lab-resource {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lab-resource:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lab-resource h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Estilos para Tendências Emergentes */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.trend-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.trend-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Estilos para Segurança IoT */
.iot-risks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.risk-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.risk-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.iot-best-practices {
    margin-top: 2rem;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.practice-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.practice-card h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Estilos para Segurança PMEs */
.sme-challenges {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.challenge-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.challenge-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.budget-solutions {
    margin-top: 2rem;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.solution-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.solution-card h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Estilos para Histórico de Ataques */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-lessons {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.timeline-lessons h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Estilos para Entrevistas com Profissionais */
.interview-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.interview-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.interview-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 1.5rem;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.interview-info h4 {
    margin: 0;
    color: var(--primary-color);
}

.interview-info p {
    margin: 0.5rem 0 0;
    color: var(--secondary-text);
}

.interview-question {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.interview-answer {
    margin-bottom: 1rem;
}

/* Estilos para Resposta a Incidentes */
.incident-phases {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 2rem 0;
}

.phase-card {
    flex: 1;
    min-width: 250px;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0.5rem;
    position: relative;
}

.phase-card::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    z-index: 1;
}

.phase-card:last-child::after {
    display: none;
}

.phase-card h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.incident-checklist {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.incident-checklist h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.checklist-item {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.checklist-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Estilos para Segurança para Utilizadores Domésticos */
.home-security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.home-security-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.home-security-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.security-checklist {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.security-checklist h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Estilos para Glossário */
.glossary-search {
    margin-bottom: 2rem;
}

#glossary-search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.glossary-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.glossary-filter {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.glossary-filter:hover {
    background-color: var(--primary-dark);
}

.glossary-filter.active {
    background-color: var(--primary-dark);
}

.glossary-terms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.glossary-term {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.glossary-term h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.term-category {
    font-size: 0.8rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Estilos responsivos para dispositivos móveis */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 20px;
    }
    
    .interview-header {
        flex-direction: column;
        text-align: center;
    }
    
    .interview-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .phase-card::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -20px;
        transform: translateX(50%);
    }
    
    .incident-phases {
        flex-direction: column;
    }
    
    .phase-card {
        margin-bottom: 2rem;
    }
}

/* Quiz Styles */
.quiz-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.quiz {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quiz:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.quiz-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.quiz-header p {
    margin-bottom: 1.5rem;
    color: var(--text-light-color);
}

.quiz-content {
    margin-top: 1.5rem;
}

.quiz-progress {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--alt-background-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light-color);
    text-align: right;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.quiz-option:hover {
    background-color: var(--alt-background-color);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(106, 111, 245, 0.1);
}

.quiz-option.correct {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.quiz-option.incorrect {
    border-color: #F44336;
    background-color: rgba(244, 67, 54, 0.1);
}

.quiz-option input[type="radio"] {
    margin-right: 10px;
}

.quiz-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quiz-next-btn, .quiz-finish-btn {
    background-color: var(--primary-color);
}

.quiz-next-btn:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

.quiz-results {
    text-align: center;
}

.result-score {
    margin: 2rem 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--alt-background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.score-message {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Glossary Styles */
.glossary-search {
    display: flex;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.glossary-search input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    background-color: var(--card-background);
    color: var(--text-color);
}

.glossary-search button {
    padding: 0.8rem 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.glossary-search button:hover {
    background-color: var(--secondary-color);
}

.glossary-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.glossary-filter span {
    margin-right: 0.5rem;
    color: var(--text-light-color);
}

.glossary-filter-btn {
    padding: 0.5rem 0.8rem;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
}

.glossary-filter-btn:hover {
    background-color: var(--alt-background-color);
}

.glossary-filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.glossary-terms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.glossary-term {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glossary-term:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.glossary-term h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.glossary-term p {
    color: var(--text-color);
}

.glossary-no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-light-color);
}

/* Certification Styles */
.certification-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.certification {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary-color);
}

.certification h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.certification p {
    margin-bottom: 1rem;
}

.cert-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    background-color: var(--alt-background-color);
    padding: 1rem;
    border-radius: 4px;
}

.cert-info-item {
    margin-bottom: 0.5rem;
}

.cert-info-item strong {
    color: var(--primary-color);
}

.cert-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.cert-link i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.cert-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive adjustments for new components */
@media (max-width: 768px) {
    .quiz-container,
    .glossary-terms {
        grid-template-columns: 1fr;
    }
    
    .cert-info {
        grid-template-columns: 1fr;
    }
    
    .glossary-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .glossary-filter span {
        margin-bottom: 0.5rem;
    }
}
