*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f4f6fb;
    color:#111827;
}

/* HERO */

.n2-hero{
    min-height:360px;
    background:linear-gradient(135deg,#0f172a,#1e293b 60%,#ff8700);
    color:white;
    display:flex;
    align-items:center;
    padding:90px 8% 60px;
    position:relative;
}

.n2-topbar{
    position:absolute;
    top:24px;
    left:8%;
    z-index:5;
}

.n2-logo{
    max-height:72px;
    max-width:220px;
    object-fit:contain;
}

.n2-hero-content{
    max-width:720px;
}

.n2-tag{
    background:#ff8700;
    color:white;
    padding:8px 16px;
    border-radius:999px;
    font-weight:700;
    font-size:13px;
}

.n2-hero h1{
    font-size:44px;
    margin:22px 0 12px;
    line-height:1.05;
}

.n2-hero p{
    font-size:18px;
    color:#e5e7eb;
    max-width:620px;
}

.n2-hero-actions{
    display:flex;
    gap:12px;
    margin-top:24px;
    flex-wrap:wrap;
}

.n2-btn-primary,
.n2-btn-secondary{
    padding:13px 22px;
    border-radius:12px;
    text-decoration:none;
    font-weight:700;
}

.n2-btn-primary{
    background:#ff8700;
    color:white;
}

.n2-btn-secondary{
    background:white;
    color:#0f172a;
}

/* COMBOS */

.n2-combos{
    max-width:1180px;
    margin:-40px auto 30px;
    padding:0 16px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
    position:relative;
    z-index:2;
}

.n2-combo-card{
    background:white;
    border-radius:22px;
    padding:28px;
    border-top:5px solid #ff8700;
    box-shadow:0 15px 40px rgba(15,23,42,.08);
}

.n2-combo-badge{
    display:inline-block;
    background:#fff7ed;
    color:#ea580c;
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}

.n2-combo-card h3{
    margin:15px 0 10px;
    font-size:24px;
}

.n2-combo-card p{
    color:#64748b;
    margin:10px 0 15px;
}

.n2-combo-meta{
    display:flex;
    justify-content:space-between;
    margin:20px 0;
}

.n2-combo-meta small{
    display:block;
    color:#64748b;
}

.n2-combo-meta strong{
    font-size:34px;
    color:#16a34a;
}

.n2-combo-btn{
    display:block;
    background:#ff8700;
    color:white;
    text-align:center;
    text-decoration:none;
    padding:14px;
    border-radius:12px;
    font-weight:700;
}

/* BUSCA */

.catalog-search{
    max-width:1180px;
    margin:0 auto 26px;
    padding:0 16px;
}

.catalog-search form{
    background:white;
    padding:16px;
    border-radius:18px;
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr auto;
    gap:12px;
    box-shadow:0 10px 30px rgba(15,23,42,.08);
}

.catalog-search input,
.catalog-search select{
    border:1px solid #e5e7eb;
    padding:13px;
    border-radius:12px;
    font-size:14px;
}

.catalog-search button{
    background:#0f172a;
    color:white;
    border:0;
    padding:13px 22px;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
}

.n2-area-filter{
    max-width:1180px;
    margin:0 auto 22px;
    padding:0 16px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.n2-area-filter a{
    background:white;
    color:#0f172a;
    text-decoration:none;
    padding:10px 16px;
    border-radius:999px;
    font-weight:700;
    font-size:14px;
    border:1px solid #e5e7eb;
    box-shadow:0 6px 18px rgba(15,23,42,.06);
}

.n2-area-filter a.active,
.n2-area-filter a:hover{
    background:#ff8700;
    color:white;
    border-color:#ff8700;
}

/* CARDS DO CATÁLOGO */

.catalog-grid{
    max-width:1180px;
    margin:0 auto;
    padding:10px 16px 80px;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:20px;
}

.catalog-card{
    background:white;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(15,23,42,.08);
    position:relative;
    transition:.25s;
}

.catalog-card:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 45px rgba(15,23,42,.14);
}

.catalog-image{
    height:150px;
    overflow:hidden;
    background:#e5e7eb;
}

.catalog-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.catalog-body{
    padding:16px;
}

.n2-category{
    display:inline-block;
    background:#eef2ff;
    color:#3730a3;
    padding:5px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
    margin-bottom:10px;
}

.catalog-body h3{
    font-size:17px;
    line-height:1.3;
    min-height:44px;
    margin:0 0 8px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.catalog-body p{
    color:#64748b;
    font-size:13px;
    line-height:1.4;
    min-height:38px;
}

.n2-info{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin:12px 0;
}

.n2-info span{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    padding:5px 8px;
    border-radius:999px;
    font-size:11px;
    color:#475569;
}

.price{
    margin-top:12px;
}

.price small{
    display:block;
    color:#64748b;
    margin-bottom:4px;
    font-size:12px;
}

.price strong{
    display:block;
    color:#16a34a;
    font-size:22px;
    line-height:1.2;
    font-weight:800;
}

.cash-price{
    display:block;
    margin-top:5px;
    color:#64748b;
    font-size:12px;
}

.btn{
    display:block;
    text-align:center;
    background:#ff8700;
    color:white;
    text-decoration:none;
    padding:12px;
    border-radius:12px;
    font-weight:800;
    border:0;
    cursor:pointer;
}

.btn-secondary{
    background:#0f172a;
}

.n2-badge-popular{
    position:absolute;
    top:12px;
    left:12px;
    background:#dc2626;
    color:white;
    padding:6px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
    z-index:2;
}

/* PÁGINA DO CURSO */

.container{
    max-width:1200px;
    margin:40px auto;
    padding:40px;
    background:#fff;
    border-radius:24px;
    box-shadow:0 20px 50px rgba(15,23,42,.08);
}

.hero-img{
    width:100%;
    height:420px;
    object-fit:cover;
    border-radius:20px;
    margin-bottom:30px;
}

h1{
    font-size:42px;
    line-height:1.2;
    margin:0 0 15px;
    color:#0f172a;
}

.course-summary{
    font-size:17px;
    line-height:1.7;
    color:#475569;
    max-width:900px;
}

.course-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:30px;
    align-items:start;
    margin-top:40px;
}

.course-main{
    display:flex;
    flex-direction:column;
    gap:22px;
}

.course-card{
    background:#fff;
    border-radius:22px;
    padding:28px;
    border:1px solid #e5e7eb;
    box-shadow:0 10px 25px rgba(15,23,42,.05);
}

.course-card h2{
    margin-top:0;
    font-size:24px;
    color:#0f172a;
}

.course-card p{
    color:#475569;
    line-height:1.8;
    font-size:16px;
}

.course-sidebar{
    position:relative;
}

.sticky-box{
    position:sticky;
    top:20px;
}

.enroll-box,
.course-price-card{
    background:#fff7ed;
    border:1px solid #fed7aa;
    border-radius:24px;
    padding:28px;
    box-shadow:0 15px 40px rgba(15,23,42,.08);
}

.enroll-box h3,
.course-price-card h3{
    font-size:24px;
    margin-top:0;
}

.enroll-box h4,
.course-price-card h4{
    margin-top:25px;
}

.price-box{
    margin:20px 0;
}

.price-box small{
    display:block;
    color:#64748b;
    font-weight:700;
    margin-bottom:6px;
}

.price-installment{
    font-size:32px;
    font-weight:900;
    color:#16a34a;
    line-height:1.1;
}

.price-cash{
    margin-top:6px;
    color:#64748b;
    font-size:14px;
}

.hours{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:16px 0;
}

.hours button{
    border:2px solid #e5e7eb;
    background:#fff;
    border-radius:12px;
    padding:10px 18px;
    cursor:pointer;
    font-weight:700;
}

.hours button:hover,
.hours button.active{
    background:#ff8700;
    border-color:#ff8700;
    color:#fff;
}

.enroll-btn{
    background:#ff8700;
    color:#fff;
    border:none;
    border-radius:12px;
    padding:14px;
    font-size:16px;
    font-weight:800;
    width:100%;
    margin-top:18px;
}

.sidebar-actions{
    display:grid;
    gap:12px;
    margin-top:18px;
}

.sidebar-actions .btn{
    text-align:center;
}

/* COORDENADOR */

.coordinator-card{
    display:flex;
    align-items:center;
    gap:22px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:22px;
    padding:22px;
}

.coordinator-card img{
    width:120px;
    height:120px;
    object-fit:cover;
    border-radius:50%;
    border:4px solid #fff;
    box-shadow:0 8px 24px rgba(15,23,42,.12);
}

.coordinator-card h3{
    margin:0;
    font-size:24px;
}

.coordinator-card p{
    margin:6px 0 0;
    color:#64748b;
}

.coordinator-links{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:12px;
}

.coordinator-links a{
    background:#ff8700;
    color:#fff;
    padding:8px 12px;
    border-radius:999px;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
}

/* MODAIS */

.modal{
    display:none;
    position:fixed;
    z-index:1000;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(15,23,42,0.72);
    padding:20px;
}

.modal-content{
    background:white;
    margin:5% auto;
    padding:30px;
    width:90%;
    max-width:900px;
    border-radius:22px;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    position:relative;
}

.close{
    position:absolute;
    right:24px;
    top:18px;
    font-size:28px;
    cursor:pointer;
    color:#64748b;
}

.matrix-content{
    max-height:600px;
    overflow:auto;
    line-height:1.9;
    font-size:16px;
    color:#334155;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:20px;
}

.matrix-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

.matrix-table th{
    background:#ff8700;
    color:#fff;
    padding:14px;
    text-align:left;
}

.matrix-table td{
    padding:12px;
    border-bottom:1px solid #e5e7eb;
}

.matrix-table tr:hover{
    background:#f8fafc;
}

.invest-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
}

.invest-card{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    padding:18px;
    border-radius:16px;
}

.invest-card h3{
    margin-top:0;
}

/* FLUTUANTES */

#whatsapp,
#accessibility{
    position:fixed;
    right:22px;
    width:54px;
    height:54px;
    border-radius:50%;
    background:white;
    box-shadow:0 10px 30px rgba(0,0,0,.18);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:20;
}

#whatsapp{
    bottom:24px;
}

#accessibility{
    bottom:90px;
}

#whatsapp img,
#accessibility img{
    width:32px;
    height:32px;
}

/* RESPONSIVO */

@media(max-width:900px){

    .course-layout{
        grid-template-columns:1fr;
    }

    .sticky-box{
        position:static;
    }

    .catalog-search form{
        grid-template-columns:1fr;
    }

    .n2-combo{
        margin:-40px 16px 25px;
        flex-direction:column;
    }
}

@media(max-width:768px){

    .container{
        margin:0;
        border-radius:0;
        padding:22px;
    }

    .hero-img{
        height:240px;
    }

    h1{
        font-size:30px;
    }

    .n2-hero{
        padding:100px 22px 80px;
        min-height:auto;
    }

    .n2-hero h1{
        font-size:34px;
    }

    .n2-hero p{
        font-size:16px;
    }

    .catalog-grid{
        grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    }

    .coordinator-card{
        flex-direction:column;
        align-items:flex-start;
    }

    .modal-content{
        margin:12% auto;
        padding:22px;
    }
}