/*------------- PALETA DE CORES E FONTES -------------*/
:root {
  --color-primary: #00AED9;
  --color-primary-light: #66D4EC;
  --color-primary-dark: #008BB0;
  --color-secondary: #313E49;
  --color-secondary-light: #4A5A67;
  --color-secondary-dark: #1F2A32;
  --color-bg: #F5F7F9;
  --color-white: #FFFFFF;
  --color-text: #1F2933;
  --color-text-muted: #6B7280;

  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
}
/* ---------------- RESET ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background: var(--color-white);
  color: var(--color-text);
}

main {
  max-width: 1150px;
  margin: auto;
  padding: 4rem 1.5rem;
}

/* ---------------- SMARTHEAD ---------------- */
.smarthead {
  position: relative;
  height: 360px;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

.smarthead .edu-slides,
.smarthead .edu-slide {
  position: absolute;
  inset: 0;
}

.smarthead .edu-slide {
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  animation: smartFade 18s infinite;
}

.smarthead .s1 { animation-delay: 0s; }
.smarthead .s2 { animation-delay: 6s; }
.smarthead .s3 { animation-delay: 12s; }

@keyframes smartFade {
  0%,100% { opacity: 0.1; }
  10%,30% { opacity: 0.15; }
}

.smarthead .edu-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to right, rgba(8, 18, 30, 0.88), rgba(8, 18, 30, 0.55));
  pointer-events: none;
}

#tech-smart {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
  background: transparent;
}

.smarthead .edu-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  padding-left: 22%;
  top: 60%;
  transform: translateY(-50%);
  color: #ffffff;
}

.smarthead .edu-eyebrow {
  display: block;
  font-size: 14px;
  color: #35c6ff;
  margin-bottom: auto;
}

.smarthead h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
}

.smarthead .edu-breadcrumb {
  font-size: 14px;
  color: #cbd5e1;
}

.smarthead .edu-breadcrumb a {
  margin-top:auto;
  margin-bottom:auto;
  color:#cbd5e1;
  text-decoration:none;
}

.smarthead .edu-breadcrumb a:hover {
  color: #35c6ff;
}

.smarthead .edu-breadcrumb strong {
  color: #ffffff;
  font-weight: 600;
}

@media(max-width:1024px){
  .smarthead {
    height: 280px;
  }
  .smarthead .edu-content {
    padding-left: 10%;
    top: 50%;
    transform: translateY(-50%);
  }
}

.container {
  max-width: 1150px;
  margin: auto;
  padding: 4rem 1.5rem;
}

/* ---------------- FILTROS TOP CENTER ---------------- */
.filters {
  display: flex;
  justify-content: center; 
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-top: 40px;
}

.filter-btn {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-btn:hover {
  background: var(--color-primary-dark); 
  box-shadow: 0 0 1px var(--color-primary);
}

.filter-btn.active {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 0 1px var(--color-primary);
}

/* ---------------- NOTÍCIAS ---------------- */
.news-container {
  display: grid;
  max-width: 1100px;
  margin-top: 20px;
  margin: auto;
  margin-bottom: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.news-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 20px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: 0.4s;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.5s forwards;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-secondary-dark);
}

.news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: 0.3s;
}

.news-card:hover .news-image {
  transform: scale(1.05);
}

.news-tags {
  margin-bottom: 12px;
}

.news-tags span {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-right: 5px;
  margin-bottom: 5px;
  display: inline-block;
}

.news-paragraph {
  font-size: 14px;
  text-align: justify;
  color: var(--color-text-muted);
  margin-bottom: 15px;
}

/* ---------------- BOTÃO MODERNO ---------------- */
.btn {
  background: transparent;
  color: var(--color-primary);
  padding: 10px 0;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.btn::after {
  content: "→";
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn:hover {
  color: var(--color-secondary-dark);
}

.btn:hover::after {
  transform: translateX(5px);
}

.modal {
  display: none;
  position: fixed;
  margin-top: 50px;
  align-items: center;
  justify-content: center;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: var(--color-white);
  margin: 80px auto;
  padding: 35px 30px 40px;
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 22px;
  border-color: #eefaff;
  border-style: solid;
  border-width: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  animation: slideIn 0.4s ease-out;
}

.close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-white);
  background: #00AED9;
  padding: 15px 15px;
  border-radius: 50px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.close:hover {
  background: var(--color-secondary-dark);
  color: var(--color-white);
}

.modal-category {
  text-align: left;
  font-size: 0.60rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-primary);
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 1.2px;
  width: fit-content;
}

.modal-separator {
  display: none;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
}

.modal-separator::before,
.modal-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}

.modal-separator span {
  margin: 0 12px;
  font-weight: 600;
  color: #aaa;
}

.modal-title {
  text-align: left;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-secondary-dark);
  line-height: 1.3;
}

.modal-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  margin: 22px 0;
  transition: transform 0.4s ease;
}

.modal-image:hover {
  transform: scale(1.02);
}

.modal-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.modal-text p {
  margin-bottom: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .modal-content {
    margin: 40px auto;
    padding: 28px 20px 32px;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-image {
    height: 200px;
  }
}

/* ---------------- RESPONSIVIDADE ---------------- */
@media(max-width:1024px){
  .smarthead {
    height: 280px;
  }

  .smarthead .edu-content {
    padding-left: 10%;
    padding-top: 10%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 90%;
  }
}

/* ------------------ 768px (tablets pequenos) ------------------ */
@media(max-width:768px){
  main {
    padding: 3rem 1rem;
  }

  .smarthead {
    height: 220px;
  }

  .smarthead .edu-content {
    padding-left: 5%;
    padding-top: 10%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 90%;
  }

  .smarthead h1 {
    font-size: clamp(24px, 6vw, 40px);
  }

  .smarthead .edu-eyebrow,
  .smarthead .edu-breadcrumb {
    font-size: 12px;
  }

  .modal-content {
    margin: 20% auto;
    padding: 2rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-image {
    height: 200px;
  }
}

/* ------------------ 480px (celulares) ------------------ */
@media(max-width:480px){
  main {
    padding: 2rem 0.8rem;
  }

  .smarthead {
    height: 180px;
  }

  .smarthead .edu-content {
    padding-left: 3%;
    padding-top: 10%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 95%;
  }

  .smarthead h1 {
    font-size: clamp(20px, 7vw, 32px);
  }

  .smarthead .edu-eyebrow,
  .smarthead .edu-breadcrumb {
    font-size: 11px;
  }

  .modal-content {
    margin: 25% auto;
    padding: 1.8rem;
  }
}
