/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.space {
    margin-bottom: 16px;
    /* espaço entre parágrafos */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #fafafa;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --labc-blue: #1e40af;
    --labc-green: #059669;
    --primary: #1e40af;
    --primary-glow: #3b82f6;
    --secondary: #f1f5f9;
    --accent: #059669;
    --muted: #64748b;
    --muted-foreground: #64748b;
    --background: #fafafa;
    --card: #fafafa;
    --border: #e2e8f0;
    --gradient-hero: linear-gradient(135deg, #1e40af 0%, #059669 100%);
    --gradient-accent: linear-gradient(135deg, #059669 0%, #1e40af 100%);
    --shadow-elegant: 0 10px 30px -10px rgba(30, 64, 175, 0.3);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.4);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu {
    display: flex;
    flex-direction: row;
    background: transparent;
    position: static;
    width: auto;
    border: none;
    border-radius: 0;
    padding: 0;
    z-index: auto;
}


/* Animations */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
    opacity: 0;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-img {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    margin-top: 20px;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--labc-blue);
    margin: 0;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--labc-green);
    margin: 0;
}

.nav {
    display: flex;
    gap: 32px;

}

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--labc-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--labc-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-button {
    background: var(--labc-green);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cta-button:hover {
    background: #047857;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    padding: 15px;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-top: 20px;
}

/* coloca texto à esquerda e imagem à direita */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 2;
}

/* bloco de texto */
.hero-text {
    flex: 1;
    text-align: left;
}

/* título */
.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;

    background: linear-gradient(45deg, #ffffff, #e0f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

/* descrição */
.hero-description {
    font-size: 1.25rem;
    margin-bottom: 32px;
    max-width: 600px;
    opacity: 0.9;
}

/* imagem */
.hero-image {
    width: 50%;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

/* mobile: empilha */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image {
        max-width: 90%;
        margin-top: 24px;
    }
}


/* bloco1-image: imagem do bloco 1 */
.bloco1-image {
    width: 70%;
}

.bloco1-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 50px;
    color: green;
    text-align: center;
}

.bloco1-description {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 50px;
    color: green;
    text-align: center;
    padding-inline-end: 50px;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: white;
    color: var(--labc-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-cta {
    background: white;
    color: var(--labc-green);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Main Content */
.main-content {
    gap: 40px;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: 2fr 1fr;
    }

    .professors-section,
    .cta-section {
        grid-column: 1 / -1;
    }
}

/* Bento Cards */
.onlycard {

    border-radius: 24px;
    margin-top: 40px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    height: 100%;
}

.onlycard:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* Bento Cards */
.bento-card {
    background: var(--card);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    height: 100%;
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* Bento Cards material */

.bento-materials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
}

.bento-card-material {
    background: var(--card);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 350px;
    flex: 1 1 300px;
}

@media (max-width: 800px) {
    .bento-materials-grid {
        flex-direction: column;
        gap: 24px;
    }

    .bento-card-material {
        min-width: 0;
        max-width: 100%;
    }
}


.bento-card-material:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}




/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon {
    background: var(--labc-blue);
}

.schedule-icon {
    background: var(--labc-green);
}

.professors-icon {
    background: var(--labc-blue);
}

.icon {
    width: 20px;
    height: 20px;
    color: white;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--labc-blue);
    margin: 0;
}

/* Course Content */
.course-info {
    margin-bottom: 32px;
}

.course-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--labc-blue);
    margin-bottom: 16px;
}

.course-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.course-duration,
.course-format,
.course-level {
    background: var(--labc-green);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.course-format {
    background: var(--labc-blue);
}

.course-level {
    background: var(--muted);
}

/* Modules */
.modules {
    margin-bottom: 32px;
}

.module {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.module:hover {

    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.module-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--labc-blue);
    margin: 0;
    /* tira margem padrão do h3 */
}

.module-sub-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--labc-green);
    margin: 0;
    /* tira margem padrão do h3 */
}

.module-row {
    display: flex;
    /* coloca tudo em linha */
    align-items: center;
    /* alinha verticalmente */
    justify-content: space-between;
    /* distribui o espaço */
    gap: 15px;
    /* espaço entre os itens */
}

.module-duration {
    background: var(--labc-green);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    align-self: flex-end;
    /* corrigido de 'right' para 'flex-end' */
    margin-right: 8px;
}

.module-data {
    background: var(--labc-blue);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    align-self: flex-end;
    /* corrigido de 'right' para 'flex-end' */
    margin-right: 8px;

}

.module-topics {
    list-style: none;
}

.module-topics li {
    padding: 4px 0;
    color: var(--muted-foreground);
    position: relative;
    padding-left: 16px;
}

.module-topics li::before {
    content: '•';
    color: var(--labc-green);
    position: absolute;
    left: 0;
}

/* Benefits */
.benefits-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--labc-blue);
    margin-bottom: 16px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--secondary);
    transition: var(--transition-smooth);
}

.benefit:hover {
    background: var(--labc-green);
    color: white;
    transform: translateY(-1px);
}

.benefit-icon {
    width: 24px;
    height: 24px;
    color: var(--labc-green);
}

.benefit:hover .benefit-icon {
    color: white;
}

/* Schedule */
.schedule-info {
    margin-bottom: 24px;
}

.schedule-dates {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.date-item {
    text-align: center;
}

.date-label {
    display: block;
    font-size: 14px;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}

.date-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--labc-blue);
}

.schedule-classes {
    margin-bottom: 24px;
}

.class-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid;

}

.class-item.presencial {
    background: rgba(30, 64, 175, 0.05);
    border-left-color: var(--labc-blue);
}

.class-item.online {
    background: rgba(5, 150, 105, 0.05);
    border-left-color: var(--labc-green);
}

.class-details2 {
    text-align: right;
    flex-direction: column;
    gap: 4px;
}

.class-day {
    font-weight: 600;
    color: var(--labc-blue);


}

.class-data {
    font-weight: 600;
    color: var(--labc-blue);
    margin-bottom: 4px;
    margin-left: 15px;

}


.class-details {
    text-align: right;
}

.class-time {
    font-weight: 500;
    color: var(--labc-blue);

}

.class-type {
    font-size: 14px;
    color: var(--muted-foreground);

}

.schedule-location {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.location-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--labc-blue);
}

.location-icon {
    width: 16px;
    height: 16px;
    color: var(--labc-green);
}

.location-address {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Professors */
.professors-description {
    color: var(--muted-foreground);
    margin-bottom: 32px;
    font-size: 16px;
}

.professors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.professor-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: fade-in 0.6s ease-out forwards;
    opacity: 0;
}

.professor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--labc-blue);
}

.professor-photo-container {
    position: relative;
    margin-bottom: 16px;
}

.professor-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.professor-card:hover .professor-photo {
    transform: scale(1.05);
}

.professor-rating-badge {
    position: absolute;
    top: -4px;
    right: calc(50% - 52px);
    background: #fbbf24;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.professor-rating-badge svg {
    width: 12px;
    height: 12px;
    color: white;
    fill: white;
}

.professor-name {
    font-size: 18px;
    font-weight: 700;
    color: gray;
    margin-bottom: 4px;
    transition: var(--transition-smooth);
}

.professor-card:hover .professor-name {
    color: var(--primary);
}

.professor-title {
    color: var(--labc-green);
    font-weight: 500;
    margin-bottom: 12px;
}

.professor-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted-foreground);
    font-size: 14px;
    margin-bottom: 12px;
}

.professor-location svg {
    width: 12px;
    height: 12px;
    color: var(--labc-green);
}

.professor-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: var(--muted-foreground);
    margin-bottom: 16px;
}

.professor-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.professor-rating svg {
    width: 12px;
    height: 12px;
    color: #fbbf24;
    fill: #fbbf24;
}

.professor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.specialty-tag {
    background: rgba(5, 150, 105, 0.1);
    color: var(--labc-green);
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.specialty-more {
    background: var(--secondary);
    color: var(--muted-foreground);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* CTA Section */
.cta-card {
    background: var(--gradient-accent);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 512px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
    justify-items: center;
    /* centraliza colunas */
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        justify-items: center;
        /* centraliza conteúdo em desktop */
    }
}

.footer-brand {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .footer-brand {
        grid-column: 1;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-logo-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--labc-blue);
    margin: 0;
}

.footer-logo-subtitle {
    font-size: 14px;
    color: var(--labc-green);
    margin: 0;
}

.footer-description {
    color: var(--muted-foreground);
    max-width: 384px;
}

.footer-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--labc-blue);
    margin-bottom: 16px;
}

.footer-contact-info {
    color: var(--muted-foreground);
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-info p {
    margin-bottom: 8px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--labc-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    color: var(--muted-foreground);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fade-in 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fade-in 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.modal-professor-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-professor-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-professor-name {
    font-size: 20px;
    color: var(--labc-blue);
    margin: 0;
}

.modal-professor-title {
    font-size: 16px;
    color: var(--labc-green);
    font-weight: 500;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--secondary);
    color: var(--labc-blue);
}

.modal-body {
    padding: 24px;
}

.professor-bio {
    color: var(--muted-foreground);
    margin-bottom: 24px;
    line-height: 1.6;
}

.professor-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-foreground);
    font-size: 14px;
    margin-bottom: 24px;
}

.professor-section {
    margin-bottom: 24px;
}

.professor-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--labc-blue);
    margin-bottom: 12px;
}

.professor-section-title svg {
    width: 16px;
    height: 16px;
}

.specialties-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-badge {
    background: rgba(5, 150, 105, 0.1);
    color: var(--labc-green);
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.education-list,
.experience-list {
    list-style: none;
}

.education-list li,
.experience-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted-foreground);
}

.education-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--labc-green);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.experience-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--labc-blue);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 908px) {
    .nav {
        display: none;
    }

    .header-content {
        justify-content: space-between;
    }

    .hero {
        padding: 48px 0;
        margin-bottom: 32px;
    }

    .main-content {
        padding: 48px 0;
    }

    .bento-card {
        padding: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .course-title {
        font-size: 20px;
    }

    .cta-title {
        font-size: 32px;
    }

    .professors-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .modal-header,
    .modal-body {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .bento-grid {
        gap: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .schedule-dates {
        flex-direction: column;
        gap: 16px;
    }

    .class-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

.modules .module {
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.modules .module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-weight: 500;
}

.modules .module-header::after {
    content: '🔻';
    font-size: 1rem;
    margin-left: 1rem;
    transition: transform 0.3s;
}

.modules .module.active .module-header::after {
    transform: rotate(-180deg);
}

.modules .module-topics {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 1.5rem;
    background: #fafbfc;
}

.modules .module.active .module-topics {
    max-height: 750px;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

/* ===== Desktop-first (padrão: menu visível) ===== */
.menu-toggle {
    display: none;
    /* escondido por padrão, só aparece no mobile */
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Nav visível por padrão (desktop) */
.nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    width: auto;
    padding: 0;
}

/* caso tenha um wrapper .menu dentro de .nav */
.nav .menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

/* ===== Mobile overrides ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    /* Logo BC menor no mobile (todas as páginas que usam este CSS) */
    a[href="contato.html"] img[alt="Contato"],
    img[alt="Contato"] {
        height: 35px !important;
    }

    /* Esconde o nav por padrão no mobile */
    .nav {
        display: none;
        position: absolute;
        top: calc(60px + 30px);
        /* desce mais para não cobrir logos */
        right: 0;
        background: white;
        flex-direction: column;
        width: 220px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        z-index: 1100;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    /* Quando tiver a classe active, mostra o nav no mobile */
    .nav.active {
        display: flex;
    }

    /* Dentro do menu, itens em coluna no mobile */
    .nav .menu {
        flex-direction: column;
        gap: 8px;
    }
}

/* Evita scroll do body quando o menu mobile está aberto */
body.no-scroll {
    overflow: hidden;
}


/* =================================================
   MATERIAL DIDÁTICO PAGE STYLES
   ================================================= */

/* Hero Small */
.hero-small {
    background: var(--gradient-hero);
    padding: 48px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-small .hero-content {
    position: relative;
    z-index: 2;
}

.hero-small h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(45deg, #ffffff, #e0f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-small p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Material Cards Styling - Following Students Page Pattern */
.materials-section {
    grid-column: 1 / -1;
}

.materials-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    line-height: 1.6;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.material-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.material-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px -5px hsl(var(--shadow) / 0.3);
    border-color: hsl(var(--primary));
}

.material-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.material-icon {
    width: 15px;
    height: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.material-icon.video-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.pdf-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-icon.article-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.material-icon.resource-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.material-icon svg {
    width: 15px;
    height: 15px;
}

.material-info {
    flex: 1;
    min-width: 0;
}

.material-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.material-category {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.material-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    margin-bottom: 1rem;
}

.material-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.material-author {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.badge {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge.file-size {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

/* Material Modal Styling */
.modal-material-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-material-icon {
    width: 10px;
    height: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-variant, var(--primary))));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.modal-material-icon svg {
    width: 10px;
    height: 10px;
}

.material-details-section {
    margin: 1.5rem 0;
}

.material-details-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.material-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: hsl(var(--muted) / 0.3);
    border-radius: 8px;
}

.detail-item strong {
    font-weight: 600;
    color: hsl(var(--foreground));
    min-width: 80px;
}

.resources-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.resources-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
}

.resources-list li:last-child {
    border-bottom: none;
}

.material-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
}

.materials-icon {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-variant, var(--primary))));
}

/* Help Section */
.help-section {
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(30, 64, 175, 0.05) 100%);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    margin-top: 64px;
}

.help-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--labc-blue);
    margin-bottom: 16px;
}

.help-content p {
    color: var(--muted-foreground);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation Updates for Materials Page */


.nav-brand h2 {
    color: var(--labc-blue);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-link.active {
    color: var(--labc-blue);
    font-weight: 600;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Mobile Navigation for Materials Page */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--labc-blue);
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 48px;
        transition: var(--transition-smooth);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Search Input for Materials Page */
.search-input {
    margin-top: 24px;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive adjustments for Material Page */
@media (max-width: 768px) {
    .material-grid {
        grid-template-columns: 1fr;
    }

    .hero-small {
        padding: 32px 0;
    }

    .material-section {
        margin-bottom: 48px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .help-section {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .material-card {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .badge {
        align-self: flex-start;
    }
}

.class-item {
    flex-direction: column;
    gap: 8px;
    text-align: center;
}