@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css');

:root {
  --news-ink: #081b34;
  --news-muted: #506176;
  --news-brand: #13bf78;
  --news-blue: #0c2a53;
  --news-soft: #eef7f3;
  --news-line: #d7e5ef;
}

.float-whatsapp {
  position: fixed;
  width: 58px;
  height: 58px;
  left: 16px;
  bottom: 16px;
  z-index: 1000;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
  transition: transform .18s ease;
}

.float-whatsapp img {
  width: 40px;
  height: 40px;
  display: block;
}

.float-whatsapp:hover {
  transform: scale(1.05);
}

.float-platform {
  position: fixed;
  left: 16px;
  bottom: 86px;
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px 0 8px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 950;
  font-size: .9rem;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(37,99,235,.34), 0 0 0 4px rgba(37,99,235,.13);
}

.float-platform .float-platform-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
}

.float-platform i {
  font-size: 21px;
}

.float-platform:hover {
  color: #fff;
  background: #1d4ed8;
}

.news-hero {
  background: linear-gradient(135deg, #102437 0%, #174866 55%, #0f7f66 100%);
  color: #fff;
  padding: 56px 0 44px;
}

.news-hero span,
.news-detail-head time,
.news-card time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.news-hero h1 {
  max-width: 760px;
  margin: 12px 0 8px;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.news-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: 1.05rem;
}

.news-list-section,
.news-detail {
  padding: 46px 0 70px;
}

.news-search-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--news-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 45, 75, .07);
}

.news-search-bar label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--news-line);
  border-radius: 8px;
  background: #f8fbff;
  color: #0b8f6e;
}

.news-search-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--news-ink);
  font-weight: 800;
}

.news-search-bar button,
.news-search-bar a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--news-blue);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.news-search-bar a {
  border: 1px solid var(--news-line);
  background: #fff;
  color: var(--news-blue);
}

.news-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.news-type-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--news-line);
  border-radius: 999px;
  background: #fff;
  color: var(--news-blue);
  padding: 0 13px;
  font-size: .86rem;
  font-weight: 900;
  text-decoration: none;
}

.news-type-filter a.is-active {
  border-color: transparent;
  background: var(--news-brand);
  color: #06223b;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-card,
.home-news-card {
  overflow: hidden;
  border: 1px solid var(--news-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 45, 75, .08);
}

.news-card-image,
.home-news-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #dcebe6;
  overflow: hidden;
}

.news-featured-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.92);
  color: #0a7a5f;
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(8,27,52,.16);
}

.news-card-image img,
.home-news-cover img,
.news-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-image span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--news-brand);
  font-size: 3rem;
}

.news-card-body,
.home-news-body {
  padding: 20px;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.news-card time,
.news-card-meta span,
.home-news-body span {
  color: #0b8f6e;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card-meta span {
  border-radius: 999px;
  background: #eefbf6;
  padding: 4px 8px;
}

.news-card h2,
.home-news-card h3 {
  margin: 10px 0 10px;
  font-size: 1.15rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.news-card h2 a,
.home-news-card h3 a {
  color: var(--news-ink);
  text-decoration: none;
}

.news-card p,
.home-news-card p {
  margin: 0;
  color: var(--news-muted);
  line-height: 1.45;
}

.news-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.news-card-actions a,
.news-card-actions button,
.news-back-link,
.home-news-all,
.news-detail-actions button,
.news-detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--news-line);
  border-radius: 8px;
  background: #fff;
  color: var(--news-blue);
  padding: 10px 14px;
  font-weight: 900;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
}

.home-news-all {
  border-color: transparent;
  background: var(--news-brand);
  color: #06223b;
}

.news-card-actions .news-card-read-more {
  border: 0;
  background: transparent;
  color: #0b785f;
  padding: 0;
  min-height: 0;
  height: auto;
  border-radius: 0;
  font-size: .92rem;
  font-weight: 950;
}

.news-card-actions .news-card-read-more i {
  font-size: 16px;
}

.news-card-actions .news-card-read-more:hover {
  color: #0f9f73;
}

.news-card-share-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news-card-actions .news-card-share-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  color: #0b4ea2;
  font-size: 0;
}

.news-card-actions .news-card-share-icon i {
  font-size: 21px;
  line-height: 1;
}

.news-card-actions .news-card-share-icon:hover {
  border-color: #1877f2;
  background: #1877f2;
  color: #fff;
}

.news-empty {
  border: 1px solid var(--news-line);
  border-radius: 8px;
  background: #fff;
  padding: 34px;
  display: grid;
  gap: 10px;
  box-shadow: 0 14px 36px rgba(15, 45, 75, .06);
}

.news-empty-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eefbf6;
  color: #0b8f6e;
  font-size: 24px;
}

.news-empty strong {
  font-size: 1.08rem;
}

.news-empty p {
  margin: 0;
  color: var(--news-muted);
}

.news-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.news-empty-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  background: var(--news-brand);
  color: #06223b;
  padding: 0 14px;
  font-weight: 900;
  text-decoration: none;
}

.news-empty-actions a:first-child:not(:only-child) {
  border: 1px solid var(--news-line);
  background: #fff;
  color: var(--news-blue);
}

.news-detail .container {
  max-width: 980px;
}

.news-detail-head {
  margin-top: 24px;
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.news-detail-meta time,
.news-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0b8f6e;
  border: 1px solid rgba(11,143,110,.18);
  border-radius: 999px;
  background: #eefbf6;
  padding: 7px 10px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-detail-head h1 {
  margin: 14px 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .98;
  letter-spacing: 0;
}

.news-detail-head p {
  max-width: 820px;
  color: var(--news-muted);
  font-size: 1.12rem;
}

.news-detail-image {
  margin: 28px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--news-line);
  background: #eaf3ef;
}

.news-detail-body {
  color: #13253c;
  font-size: 1.05rem;
  line-height: 1.72;
}

.news-detail-body p {
  margin: 0 0 18px;
}

.news-detail-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--news-line);
}

.news-related {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--news-line);
}

.news-vote-group,
.news-share-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.news-detail-actions button {
  cursor: pointer;
}

.news-detail-actions button,
.news-detail-actions a {
  position: relative;
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
  flex: 0 0 46px;
}

.news-detail-actions button i,
.news-detail-actions a i {
  font-size: 22px;
}

.news-detail-actions button b {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #0b2b52;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(8, 27, 52, .2);
}

.news-detail-actions button.is-saved {
  border-color: rgba(19, 191, 120, .45);
  background: rgba(19, 191, 120, .13);
}

.home-news-section {
  padding: 48px 0 54px;
  background: var(--home-news-bg, var(--news-soft));
}

.home-news-summary-section {
  border-top: 1px solid rgba(15, 45, 75, .08);
}

.home-news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.home-news-head h2 {
  margin: 10px 0 8px;
  color: var(--news-ink);
  font-size: clamp(1.65rem, 2.4vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.home-news-head p {
  max-width: 640px;
  margin: 0;
  color: var(--news-muted);
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 42px;
}

.home-news-summary-section .home-news-card {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-news-summary-section .home-news-card:not(:nth-last-child(-n+2)) {
  border-bottom: 1px solid rgba(15, 45, 75, .13);
}

.home-news-summary-section .home-news-body {
  min-height: 184px;
  padding: 20px 0 22px;
}

.home-news-summary-section .home-news-body span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #155fa9;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.2;
}

.home-news-summary-section .home-news-body span:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #155fa9;
}

.home-news-summary-section .home-news-card h3 {
  max-width: 560px;
  margin: 10px 0 10px;
  font-size: clamp(1.12rem, 1.5vw, 1.38rem);
  line-height: 1.14;
}

.home-news-summary-section .home-news-card p {
  max-width: 570px;
  min-height: 4.35em;
  color: #596777;
  font-size: .98rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0b785f;
  font-size: .88rem;
  font-weight: 950;
  text-decoration: none;
}

.home-news-read-more:after {
  content: "→";
  font-size: 1rem;
}

.home-news-read-more:hover,
.home-news-card h3 a:hover {
  color: #0f9f73;
}

.home-news-read-more:after {
  content: none;
}

.home-news-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.home-news-share-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-news-share-icon {
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--news-line);
  border-radius: 999px;
  background: #fff;
  color: var(--news-blue);
  padding: 0;
  font-size: 0;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
}

.home-news-share-icon i {
  font-size: 18px;
  line-height: 1;
}

.home-news-share-icon:hover {
  border-color: #0f9f73;
  background: #ecfdf5;
  color: #0b785f;
}

@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .float-whatsapp {
    width: 52px;
    height: 52px;
    left: 14px;
    bottom: 14px;
  }
  .float-whatsapp img {
    width: 36px;
    height: 36px;
  }
  .float-platform {
    display: inline-flex;
    left: 14px;
    bottom: 76px;
  }
  .news-hero {
    padding: 44px 0 34px;
  }
  .news-hero h1 {
    font-size: 2rem;
  }
  .news-list-section,
  .news-detail {
    padding: 28px 0 54px;
  }
  .news-grid,
  .home-news-grid {
    grid-template-columns: 1fr;
  }
  .home-news-section {
    padding: 34px 0 42px;
  }
  .home-news-summary-section .home-news-card:not(:nth-last-child(-n+2)) {
    border-bottom: 0;
  }
  .home-news-summary-section .home-news-card:not(:last-child) {
    border-bottom: 1px solid rgba(15, 45, 75, .13);
  }
  .home-news-summary-section .home-news-body {
    min-height: 0;
    padding: 18px 0;
  }
  .home-news-summary-section .home-news-card p {
    min-height: 0;
  }
  .news-search-bar {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .news-search-bar label {
    min-height: 42px;
  }
  .news-type-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .news-type-filter a {
    flex: 0 0 auto;
  }
  .home-news-head,
  .news-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .news-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .news-card-share-group,
  .home-news-share-group {
    justify-content: flex-start;
  }
  .home-news-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .news-detail-actions {
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
  .news-vote-group,
  .news-share-group {
    display: flex;
    justify-content: center;
    gap: 9px;
  }
  .news-share-group {
    justify-content: center;
  }
  .news-detail-actions button,
  .news-detail-actions a {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
    flex: 0 0 44px;
  }
  .news-detail-actions button i,
  .news-detail-actions a i {
    font-size: 21px;
  }
  .news-detail-actions button b {
    position: absolute;
    right: -4px;
    top: -5px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #0b2b52;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(8, 27, 52, .2);
  }
}
