* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #1f2933;
}

h1, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: #0f172a;
}


html, body {
  width: 100%;
  height: 100%;
}



/* ===============================
   ESCALA TIPOGRÁFICA
================================ */
h1 {
  font-size: 32px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
}

/* ===============================
   ESPAÇAMENTO DE SEÇÕES
================================ */
section {
  padding: 80px 0;
}

section.light {
  background-color: var(--white);
}

section.soft {
  background-color: var(--blue-light);
}


/* ===============================
   GRID PADRÃO
================================ */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}


/* ===============================
   CARDS
================================ */
.card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 10px;
}


/* ===============================
   ACESSIBILIDADE
================================ */

a:focus,
button:focus {
  outline: 2px dashed var(--blue-secondary);
  outline-offset: 4px;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}


/* ===============================
   RESPONSIVIDADE GLOBAL
================================ */

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }


  
}
.hero {
  position: relative;
  height: calc(100vh - var(--header-height));
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: #0a1e3c99;
}


    .hero-content {
  position: relative;
  max-width: 800px;
  text-align: center;
  color: var(--white);
  z-index: 1;
}

    .hero-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

    .hero {
  padding-top: 80px; /* altura real do header */
}


  .hero {
    padding: 80px 20px;
  }

.img-responsive {
  width: 100%;
  border-radius: 6px;
}


.cta-final {
  background-color: var(--blue-primary);
  color: var(--white);
}

.cta-final h2,
.cta-final p {
  color: var(--white);
}


.btn-primary {
  display: inline-block;

  background-color: #1e88e5; /* azul confiável e educacional */
  color: #ffffff;

  padding: 16px 36px;
  border-radius: 6px;

  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  text-decoration: none;
  border: none;
  cursor: pointer;

 transition: background-color 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;

}

.btn-primary:hover {
  background-color: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.4);
}

.hero-content a.btn-primary {
  margin-top: 10px;
}

/* ===============================
   SECÇÃO SOBRE 
================================ */
.about-preview {
  padding: 100px 20px;
  background-color: #f7faff; /* azul muito claro */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 50px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.about-preview h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0a2540;
  margin-bottom: 20px;
}


.about-preview p {
  font-size: 1rem;
  line-height: 1.7;
  color: #5f6f81;
  margin-bottom: 15px;
}

.img-responsive {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .about-preview {
    padding: 70px 20px;
    text-align: center;
  }

  .about-preview img {
    margin-top: 30px;
  }
}

/* ===============================
   SECÇÃO DE DESTAQUE 
================================ */


.highlights {
  padding: 80px 20px;
  background-color: #ffffff;
}

.highlights .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.highlight-card {
  padding: 30px 20px;
}

.highlight-card h3 {
  font-size: 3rem;
  font-weight: 700;
  color: #1e88e5;
  margin-bottom: 10px;
}

.highlight-card p {
  font-size: 0.95rem;
  color: #5f6f81;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.highlight-card {
  background: #ffffff;
  padding: 35px 25px;
  border-radius: 10px;

  border: 1px solid #e6eef6;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.highlight-card h3::after {
  content: "+";
  font-size: 1.5rem;
  margin-left: 4px;
}



@media (max-width: 900px) {
  .highlights .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .highlight-card h3 {
    font-size: 2.5rem;
  }
}

/* ===============================
   SECÇÃO DE CURSOS
================================ */



.courses-preview {
  padding: 80px 0;
}

.courses-preview h2 {
  text-align: center;
  margin-bottom: 50px;
}

.courses-preview .card {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.courses-preview .card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: #0a1e3c;
}

.courses-preview .card p {
  color: #555;
  line-height: 1.6;
}

.courses-preview .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}



.courses-preview .card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.courses-preview .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.courses-preview .container {
  max-width: 1280px;
}

.course-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* imagem ocupa todo o topo */
.card-image {
  height: 230px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* corpo */
.card-body {
  padding: 22px;
  border-top: 1px solid #e6edf4;
}

/* tag */
.card-tag {
  display: inline-block;
  background: rgba(36, 102, 150, 0.12);
  color: #246696;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* título */
.card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #0f2a44;
}

/* texto */
.card-body p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5f73;
}

/* CTA */
.card-cta {
  font-size: 14px;
  font-weight: 500;
  color: #246696;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.course-card:hover .card-cta {
  text-decoration: underline;
}

/* card inteiro clicável */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Scroll Reveal Base */


/* ===============================
   SECÇÃO DE INSTALAÇÕES
================================ */



.instalacoes {
  padding: 100px 0;
  background: #f7f9fc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.instalacoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

.instalacoes-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  background: #e5e7eb;
}

.instalacoes h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #0a2a4a;
  text-align: center;
}

/* ===============================
   SECÇÃO DE INSTALAÇÕES 2
================================ */


.instalacoes {
  padding: 100px 0;
  background: #f7f9fc;
}

.instalacoes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.instalacao-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 320px;
}

.instalacao-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instalacao-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 60, 0.55);
  color: #ffffff;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 24px;
  transition: opacity 0.4s ease;
}

.instalacao-overlay h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.instalacao-overlay p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.instalacao-item:hover .instalacao-overlay {
  opacity: 0;
}

/* ===============================
   SECÇÃO DE ATUALIZAÇÕES
================================ */


.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  border-radius: 14px;
  background: #ffffff;
  transition: transform .3s ease, box-shadow .3s ease;
}

.news-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-image {
  height: 190px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-content {
  padding: 22px 22px 26px;
}

.news-date {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  display: block;
  margin-bottom: 10px;
}

.news-content h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #111;
}

.news-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-image img {
  transition: transform .4s ease;
}

.news-cta {
  margin-top: 48px;
  text-align: center;
}

/* ===============================
   SECÇÃO DE CTA
================================ */


.cta-final {
  position: relative;
  padding: 120px 24px;
  text-align: center;
  color: #ffffff;

  background-image: url("assets\img\cta.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



.cta-final .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}


.cta-final h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.cta-final p {
  font-size: 1.05rem;
  margin-bottom: 32px;
  color: rgba(255,255,255,.9);
}

.cta-final .btn-primary {
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

@media (max-width: 768px) {
  .cta-final {
    padding: 90px 20px;
  }
}


/* ===============================
   SECÇÃO DE INSTITUIÇÃO
================================ */


.institutional {
  padding: 100px 0;
  background: #ffffff;
}

.institutional-header {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.institutional-header h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #0a2a4a;
  margin-bottom: 16px;
}

.institutional-header p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

.institutional-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.institutional-card {
  padding: 36px 32px;
  border-radius: 14px;
  background: #f7f9fc;
}

.institutional-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #123a63;
  margin-bottom: 14px;
}

.institutional-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

/* Responsivo */
@media (max-width: 900px) {
  .institutional-grid {
    grid-template-columns: 1fr;
  }
}
/* ===============================
   SECÇÃO DE FOOTER
================================ */

.footer {
  background: #0a2a4a;
  color: #ffffff;
  padding-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;

  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.95rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,.85);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}


/* ===============================
   PAGINA DE NOTICIAS
================================ */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.post-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.post-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.06);
}

.post-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #246696;
}

.post-content h3 {
  font-size: 18px;
  line-height: 1.4;
  color: #102a43;
  margin: 0;
}

.post-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #5f6f81;
  margin: 0;
}

.post-date {
  margin-top: auto;
  font-size: 12px;
  color: #8a99a8;
}

@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}
