/* =============================
   Notícias e Recrutamento
   ============================= */

/* HERO DAS PÁGINAS */
.internal-hero {
  background: linear-gradient(135deg, #e5eefc, #edf2f9);
  padding: 80px 0;
  text-align: center;
  margin-top: 30px;
}

.internal-hero h1 {
  font-size: 3em;
  font-weight: 800;
  color: #222;
}

.internal-hero p {
  color: #444;
  font-size: 18px;
  max-width: 700px;
  margin: 10px auto 0 auto;
}


/* ==============================
   PÁGINA DE NOTÍCIAS
   ============================== */

.internal-hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #eef4fb, #f7f9fc);
}

.internal-hero h1 {
    font-size: 4em;
    margin-top: 16px;
}

.internal-hero p {
    font-size: 18px;
    max-width: 600px;
    margin: auto;
    color: #555;
}

/* GRID */
.news-grid-section {
    padding: 100px 0;
    background: #ffffff;
}

.news-grid {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* CARD */
.news-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: .3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
}

/* THUMB */
.news-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.home-news-card h3,
.news-card .news-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    max-height: calc(2 * 1.25em);
}



.news-excerpt {
    font-size: 15px;
    color: #555;
    margin: 0 20px 25px;
    line-height: 1.6;
}

.news-card {
    display: flex;
    flex-direction: column;
}

.news-excerpt {
    flex-grow: 1;
}

.news-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.1);
}


/* LINK */
.news-card a {
    text-decoration: none;
    color: inherit;
}

/* MOBILE */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .internal-hero h1 {
        font-size: 2.8em;
    }
}

.news-grid-section {
  padding: 60px 0;
}

.news-grid {
  width: 90%;
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-thumb img {
  width: 100%;
  border-radius: 12px;
}

.news-excerpt {
  color: #444;
}

/* =============================
   RECRUTAMENTO
   ============================= */

.recruit-section {
  padding: 60px 0;
}

.recruit-wrapper {
  width: 90%;
  max-width: 900px;
  margin: auto;
}

.recruit-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.recruit-box h3 {
  color: #005bab;
  font-size: 22px;
}

.recruit-box p {
  color: #444;
  font-size: 16px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .internal-hero h1 {
    font-size: 2.3em;
  }
}

/* ==============================
   RECRUTAMENTO
   ============================== */

.recruit-section {
  padding: 100px 0;
  background: #ffffff;
}

.recruit-wrapper {
  max-width: 900px;
  margin: auto;
}

.recruit-item {
  padding: 40px 0;
  border-bottom: 1px solid #eaeaea;
}

.recruit-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 8px;
}

.recruit-title {
  font-size: 2em;
  margin-bottom: 15px;
}

.recruit-excerpt {
  font-size: 17px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 15px;
}

.recruit-link {
  font-weight: 600;
  color: #0073e6;
  text-decoration: none;
}

.recruit-link:hover {
  text-decoration: underline;
}

.no-recruit {
  font-size: 18px;
  color: #666;
  text-align: center;
  padding: 60px 0;
}

/* ==========================
   ÚLTIMOS VÍDEOS (YouTube)
   ========================== */


.videos-container {
  width: 90%;
  max-width: 1200px;
  margin-left: 117px;
}

.videos-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 30px;
  margin: auto;
}

/* Main large video (left) */
.videos-grid .main-video {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 260px;
}

/* Right column: small stacked videos */
.videos-grid .side-videos {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}

/* Thumbnails */
.yt-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.yt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.yt-card .thumb-sm {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}

.yt-card .meta {
  flex: 1;
}

.yt-card h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #0b3a66;
}

.yt-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* botão Ver canal */
.home-news-more {
  text-align: center;
  margin-top: 18px;
}

/* Loading */
.videos-loading {
  padding: 40px;
  text-align: center;
  color: #666;
}

/* Modal */
.yt-modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(6, 10, 14, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.yt-modal[aria-hidden="false"] {
  display: flex;
}

.yt-modal-inner {
  width: 90%;
  max-width: 900px;
  background: #000;
  border-radius: 8px;
  position: relative;
  padding: 12px;
}

.yt-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.yt-modal-content iframe {
  width: 100%;
  height: 56vw; /* 16:9 reactive with viewport */
  max-height: 540px;
  border: 0;
}

/* FULL WIDTH para a seção de vídeos */
.home-videos {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background: linear-gradient(135deg, #e1eaf8b9 0%, #edf4fcd2 100%);
  padding: 80px 0;
}

/* Responsivo */
@media (max-width: 900px) {
  .videos-grid {
    grid-template-columns: 1fr;
    
  }
  .videos-grid .side-videos {
    grid-template-rows: 1fr 1fr;
  }
  .yt-modal-content iframe {
    height: 50vh;
    max-height: 360px;
  }

  .videos-container {
    margin:auto;
  }

 .home-news-more {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-left: 0px;
 }
}