/* public/assets/theme_cruzeiro.css
   Tema institucional - Grupo F Educacional
   - Container padrão alinhado com header e home
   - Header responsivo com menu mobile (hamburger)
   - Banner / Hero / Seções alinhadas
*/

:root{
  --primary: #1E40AF;
  --secondary: #2563EB;

  --bg: #f5f7fb;
  --text: #0f172a;
  --muted: #64748b;

  --card: #ffffff;
  --border: #e5e7eb;

  --shadow: 0 12px 30px rgba(15,23,42,.10);
  --shadow2: 0 10px 24px rgba(15,23,42,.08);

  --radius: 18px;
  --radius-lg: 28px;
}

/* Reset básico */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}
img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

.container{
  width:100%;
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
  padding-left:16px;
  padding-right:16px;
}

/* TOPBAR */
.topbar{
  background: #0b1b33;
  color: rgba(255,255,255,.88);
  font-size: 13px;
}
.topbar a{ color:#dbeafe; font-weight:800; }
.topbar .wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:10px 0;
}
@media (max-width:720px){
  .topbar .wrap{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* HEADER */
.header{
  background:#fff;
  border-bottom: 1px solid rgba(2,6,23,.06);
  position: sticky;
  top:0;
  z-index:50;
}
.header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand img{
  width:auto;
  height:75px;
  object-fit:contain;
}
@media (max-width:720px){
  .brand{ min-width: 0; }
  .brand img{ height:75px; }
}

/* NAV DESKTOP */
.nav{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.nav > a{
  font-weight:900;
  color:#0f172a;
  opacity:.92;
  padding:10px 10px;
  border-radius: 12px;
}
.nav > a:hover{
  background: rgba(37,99,235,.08);
  color: var(--primary);
  opacity: 1;
}

/* CTA buttons */
.nav .cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color:#fff;
  font-weight:950;
  box-shadow: 0 12px 24px rgba(30,64,175,.22);
  white-space:nowrap;
}
.nav .cta:hover{ filter: brightness(.98); }

/* Dropdown */
.dropdown{ position:relative; }
.dropdown button{
  border:0;
  background:transparent;
  font: inherit;
  font-weight:900;
  color:#0f172a;
  opacity:.92;
  padding:10px 10px;
  border-radius:12px;
  cursor:pointer;
}
.dropdown button:hover{
  background: rgba(37,99,235,.08);
  color: var(--primary);
  opacity: 1;
}
.dropdown-menu{
  position:absolute;
  top: 46px;
  right:0;
  width: 260px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow2);
  padding: 10px;
  display:none;
}
.dropdown-menu a{
  display:block;
  padding:10px 10px;
  border-radius: 10px;
  font-weight:850;
  color:#0f172a;
}
.dropdown-menu a:hover{ background: rgba(37,99,235,.08); color: var(--primary); }
.dropdown:hover .dropdown-menu{ display:block; }

/* MOBILE MENU */
.nav-toggle{
  display:none;
  width:42px;
  height:42px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.08);
  background:#fff;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.nav-toggle span{
  width:18px;
  height:2px;
  background:#0f172a;
  display:block;
  position:relative;
}
.nav-toggle span::before,
.nav-toggle span::after{
  content:"";
  width:18px;height:2px;background:#0f172a;
  position:absolute;left:0;
}
.nav-toggle span::before{ top:-6px; }
.nav-toggle span::after{ top:6px; }

/* Painel do menu mobile (inicialmente fechado) */
.nav-mobile{
  display:none;
  border-top: 1px solid rgba(2,6,23,.06);
  padding: 10px 0 14px 0;
}
.nav-mobile .stack{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.nav-mobile a, .nav-mobile button{
  width:100%;
  text-align:left;
  padding:12px 12px;
  border-radius: 14px;
  font-weight:900;
  border:1px solid rgba(2,6,23,.06);
  background:#fff;
}
.nav-mobile .cta{
  justify-content:center;
  text-align:center;
  border:0;
}
.nav-mobile .dropdown-menu{
  position:static;
  display:block;
  width:100%;
  box-shadow:none;
  border:1px solid rgba(2,6,23,.06);
  margin-top:6px;
}
.nav-mobile .dropdown{ width:100%; }
.nav-mobile .dropdown button{ border:1px solid rgba(2,6,23,.06); width:100%; }

/* Breakpoint do header */
@media (max-width:980px){
  .nav{ display:none; }
  .nav-toggle{ display:flex; }
  .header .wrap{ gap:12px; }
}

/* Classe usada via JS no header.php (vamos colocar o JS no header) */
.header.is-open .nav-mobile{ display:block; }

/* HOME LAYOUT */
.home-wrap{ margin-top:18px; }

/* Banner */
.banner-shell{
  width:100%;
  max-width:1200px;
  margin: 0 auto 14px auto;
}
.banner{
  border-radius: 22px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background:#0b1b33;
  position:relative;
}
.banner img{
  width:100%;
  height: 360px;
  object-fit: cover;
}
@media (max-width:720px){
  .banner img{ height: 220px; }
}

/* HERO */
.hero-panel{
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37,99,235,.14);
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(37,99,235,.14), transparent),
    radial-gradient(700px 400px at 90% 30%, rgba(96,165,250,.10), transparent),
    #fff;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  padding:22px;
}
@media (max-width:980px){
  .hero-grid{ grid-template-columns: 1fr; }
}

.h1{
  margin:0;
  font-size:44px;
  line-height:1.05;
  font-weight:950;
  letter-spacing:-1px;
  color: var(--text);
}
@media (max-width:600px){
  .h1{ font-size:34px; }
}
.p{
  color: var(--muted);
  font-size:16px;
  line-height:1.65;
  margin-top:10px;
}
.btns{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(2,6,23,.06);
  font-weight:950;
  cursor:pointer;
  text-decoration:none;
}
.btn.primary{
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  color:#fff;
  border:0;
  box-shadow: 0 12px 24px rgba(30,64,175,.22);
}
.btn.ghost{
  background:#fff;
  color: var(--text);
  border:1px solid var(--border);
}
.btn:hover{ filter: brightness(.99); }

/* Cards */
.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
}
.card.padded{ padding:18px; }

/* Sections */
.section{ margin-top:22px; }
.section h2{
  margin:0 0 14px 0;
  font-size:22px;
  font-weight:950;
  letter-spacing:-.3px;
  color: var(--text);
}

/* Categorias estilo “chips” (igual sua referência) */
.cat-chip-wrap{
  background:#fff;
  border:1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow2);
  padding: 26px 16px;
  text-align:center;
}
.cat-chip-title{
  font-size: 52px;
  font-weight: 950;
  letter-spacing: -1.2px;
  margin: 0;
  color:#0b3a66;
}
@media (max-width:720px){
  .cat-chip-title{ font-size: 34px; }
}
.cat-chip-sub{
  margin-top:10px;
  color: var(--muted);
  font-weight: 800;
}
.cat-chips{
  margin-top:18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}
.cat-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid rgba(15,23,42,.35);
  background: #fff;
  font-weight: 950;
  color: #0f172a;
  transition: all .2s ease;
}
.cat-chip:hover{
  border-color: rgba(37,99,235,.60);
  box-shadow: 0 10px 22px rgba(37,99,235,.12);
  color: var(--primary);
}
.cat-chip.active{
  border-color: transparent;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  color:#fff;
}

/* Destaques grid */
.grid{ display:grid; gap:14px; }
.grid.cols-4{ grid-template-columns: repeat(4,1fr); }
@media (max-width:980px){ .grid.cols-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .grid.cols-4{ grid-template-columns: 1fr; } }

.course{ overflow:hidden; text-decoration:none; }
.course .thumb{
  width:100%;
  height:140px;
  object-fit:cover;
  background:#EEF2FF;
  border-bottom:1px solid var(--border);
}
.course .body{ padding:14px; }
.badges{ display:flex; gap:8px; flex-wrap:wrap; }
.badge{
  font-size:12px;
  font-weight:900;
  color:#334155;
  background:#fff;
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:999px;
}
.course .title{
  margin:10px 0 6px 0;
  font-size:16px;
  font-weight:950;
  letter-spacing:-.2px;
  color: var(--text);
}
.course .meta{ font-size:12px; color: var(--muted); line-height:1.4; }
.course .actions{
  display:flex;
  gap:10px;
  margin-top:12px;
  align-items:center;
  flex-wrap:wrap;
}
.course .actions .link{ font-weight:950; color: var(--primary); }
.course .actions .link:hover{ text-decoration:underline; }


  /* ===============================
   FOOTER INSTITUCIONAL
================================ */

.footer {
  background: linear-gradient(180deg, #0B1F3A, #071A2F);
  color: #fff;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 60px 20px;
}

.footer-col h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  font-size: 14px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.footer-links a:hover {
  text-decoration: underline;
  opacity: 1;
}

.footer-whats {
  display: inline-block;
  margin-top: 18px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* BARRA FINAL */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 16px 0;
}

.footer-bottom-wrap {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.85;
}

/* ===============================
   RESPONSIVO
================================ */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-whats {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-bottom-wrap {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* =========================
   FAIXA INSTITUCIONAL
   ========================= */
.info-strip{
  margin-top: 26px;
  background: #3363D7;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.info-strip .container{
  padding: 22px 16px;
}

.info-strip__title{
  margin: 0 0 14px 0;
  color: #fff;
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -.2px;
  text-align: center;
}

.info-strip__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.info-strip__item{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 10px;
  border-radius: 16px;
}

.info-strip__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  color: #bfe2ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.info-strip__label{
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
  font-size: 14px;
}

/* Responsivo */
@media (max-width: 900px){
  .info-strip__grid{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .info-strip__item{
    justify-content: flex-start;
    max-width: 560px;
    margin: 0 auto;
    background: rgba(255,255,255,.04);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  }
  .info-strip__title{
    font-size: 17px;
  }
}

@media (max-width: 420px){
  .info-strip__icon{
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .info-strip__label{
    font-size: 13px;
  }
}
/* =========================
   BLOCO PARCEIRO / CONSULTOR
   ========================= */

.partner-cta{
  margin: 60px 0;
}

.partner-cta__box{
  background: linear-gradient(
    135deg,
    #25D366 0%,
    #1ebe5d 100%
  );
  border-radius: 26px;
  padding: 46px 36px;
  box-shadow: 0 30px 60px rgba(37,211,102,.35);
  position: relative;
  overflow: hidden;
}

/* detalhe decorativo */
.partner-cta__box::after{
  content:"";
  position:absolute;
  right:-120px;
  top:-120px;
  width:320px;
  height:320px;
  background: rgba(255,255,255,.12);
  border-radius:50%;
}

.partner-cta__content{
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.partner-cta h2{
  margin: 0;
  font-size: 36px;
  font-weight: 950;
  color: #083b1f;
  line-height: 1.1;
}

.partner-cta h2 span{
  color:#ffffff;
}

.partner-cta p{
  margin: 16px 0 26px;
  font-size: 16px;
  line-height: 1.6;
  color: #0b3d21;
  font-weight: 600;
}

.partner-cta__actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary{
  background:#083b1f;
  color:#fff;
  padding:14px 22px;
  border-radius:999px;
  font-weight:900;
  text-decoration:none;
  transition:.25s;
}

.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,.25);
}

.btn-whats{
  background:#fff;
  color:#128C7E;
  padding:14px 22px;
  border-radius:999px;
  font-weight:900;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:8px;
  transition:.25s;
}

.btn-whats:hover{
  transform: translateY(-2px);
  box-shadow:0 12px 26px rgba(0,0,0,.2);
}

/* RESPONSIVO */
@media (max-width: 900px){
  .partner-cta__box{
    padding: 36px 24px;
  }

  .partner-cta h2{
    font-size: 28px;
  }

  .partner-cta p{
    font-size: 15px;
  }
}

@media (max-width: 480px){
  .partner-cta h2{
    font-size: 24px;
  }

  .partner-cta__actions{
    flex-direction: column;
  }

  .btn-primary,
  .btn-whats{
    width:100%;
    justify-content:center;
    text-align:center;
  }
}


