@media (prefers-color-scheme: dark) {
    strong {
        /* Vermelho Carrefour para destaque de texto no modo escuro */
        color: rgb(72, 146, 236);
    }
}

:root {
    /* Cor Primária: Azul Marinho (para barra de navegação, etc.) */
    --md-primary-fg-color: rgb(72, 146, 236);
    /* Cor de Destaque (Accent): Vermelho Carrefour (para links, botões) */
    --md-accent-fg-color: rgb(204, 0, 0);
}


/* Força quebra de linha dentro de blocos de código */
pre code {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Top level tabs - Active State */
.md-tabs__item--active .md-tabs__link,
.md-tabs__link--active {
    color: #ffaf47 !important;
    opacity: 1;
}

/* Dropdown / Nav items - Active State */
.md-nav__item--active>.md-nav__link,
.md-nav__link--active {
    color: #FF7043 !important;
}

/* Underline for active tab */
.md-tabs__item--active .md-tabs__link::after,
.md-tabs__link--active::after {
    background-color: #FF7043 !important;
}

/* --- Landing Page Styles (Professional / Harmonious Theme) --- */

.lp-hero {
    text-align: center;
    padding: 6rem 1rem;
    /* Imagem de fundo com overlay gradiente suave para garantir leitura */
    background-image: linear-gradient(135deg, rgba(33, 150, 243, 0.85), rgba(13, 71, 161, 0.9)), url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    color: white;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.lp-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.lp-hero h2 {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9) !important;
    letter-spacing: 0.5px;
}

.lp-cta {
    font-size: 1.1rem !important;
    padding: 0.8rem 2.5rem !important;
    background-color: var(--md-accent-fg-color) !important;
    /* Vermelho Carrefour */
    color: white !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.lp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.25);
    background-color: #ff3333 !important;
    /* Ligeiramente mais claro no hover */
}

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

.lp-card {
    background: var(--md-default-bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Sombra suave */
    text-decoration: none !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    color: var(--md-default-fg-color) !important;
    position: relative;
    overflow: hidden;
}

/* Identificador visual no topo do card (opcional) */
.lp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--md-primary-fg-color);
    /* Azul do tema */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.lp-card:hover::before {
    opacity: 1;
}

.lp-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--md-primary-fg-color) !important;
    font-weight: 600;
}

.lp-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.9;
    /* Transição suave para o ícone */
    transition: transform 0.3s ease;
}

.lp-card:hover .lp-icon {
    transform: scale(1.1);
}

.lp-instructor {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background-color: var(--md-default-bg-color--lightest);
    /* Fundo sutil */
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lp-instructor strong {
    font-size: 1.2rem;
    color: var(--md-primary-fg-color);
    margin-bottom: 0.5rem;
}