/* ========================================
   SACCM - Modern Design System 2025
   ======================================== */

/* === Variables === */
:root {
  /* Colors */
  --primary: #1655a8;
  --primary-dark: #0b3266;
  --primary-light: #3b7dd6;
  --primary-lighter: #e3f0ff;
  --secondary: #1d8fe3;
  --accent: #ffb800;
  --accent-light: #ffe699;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1655a8 0%, #1d8fe3 100%);
  --gradient-accent: linear-gradient(135deg, #ffb800 0%, #ff8c42 100%);
  --gradient-hero: linear-gradient(
    135deg,
    #0b3266 0%,
    #1655a8 50%,
    #1d8fe3 100%
  );

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --container: 1200px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 64px;
  --spacing-2xl: 96px;

  /* Effects */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-colored: 0 10px 40px rgba(22, 85, 168, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   ANIMATIONS (CENTRALIZADAS)
   ======================================== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* === Container === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}

.header-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: none;
}

.nav-desktop {
  flex: 1;
  display: none;
}

.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  justify-content: center;
}

.nav-link {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-700);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-lighter);
  color: var(--primary);
  font-weight: 600;
}

.header-actions {
  display: none;
  gap: 8px;
  flex-shrink: 0;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-header svg {
  width: 16px;
  height: 16px;
}

.btn-header-primary {
  background: var(--gradient-primary);
  color: var(--white);
}

.btn-header-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-colored);
}

.btn-header-outline {
  background: transparent;
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
}

.btn-header-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-mobile {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-mobile.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.nav-mobile-menu {
  list-style: none;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-700);
  transition: var(--transition);
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  background: var(--primary-lighter);
  color: var(--primary);
}

.nav-mobile-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 12px 0;
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Navigation Sidebar */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85%;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.nav-mobile.active {
  right: 0;
}

/* Mobile Header Inside Nav */
.nav-mobile-header {
  padding: 24px;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-mobile-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-mobile-title {
  font-size: 20px;
  font-weight: 700;
}

/* Mobile Menu */
.nav-mobile-menu {
  flex: 1;
  padding: 20px;
  list-style: none;
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-700);
  transition: var(--transition);
  margin-bottom: 8px;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  background: var(--primary-lighter);
  color: var(--primary);
}

.nav-mobile-link svg {
  flex-shrink: 0;
}

.nav-mobile-link-special {
  background: var(--primary-lighter);
  color: var(--primary);
  font-weight: 600;
}

.nav-mobile-link-danger {
  color: var(--danger);
}

.nav-mobile-link-danger:hover {
  background: #fee2e2;
}

/* Mobile Footer Inside Nav */
.nav-mobile-footer {
  padding: 20px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  text-align: center;
}

.nav-mobile-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--gray-600);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: var(--spacing-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

.hero-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: var(--spacing-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--gray-900);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

.btn-gold {
  background: var(--gradient-accent);
  color: var(--gray-900);
  box-shadow: var(--shadow-colored);
  padding: 16px 32px;
  font-size: 18px;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(255, 184, 0, 0.3);
}

.btn-disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-lighter);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

.section-text {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========================================
   FEATURES
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-md);
}

.feature-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-md);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-sm);
}

.feature-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ========================================
   NEWS CARDS (UNIFIED)
   ======================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.news-img,
.news-img-placeholder {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-img-placeholder {
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.9);
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--gray-900);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.news-date {
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-date::before {
  content: "📅";
  font-size: 12px;
}

.news-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.news-link:hover {
  color: var(--primary-dark);
  gap: 8px;
}

/* ========================================
   CTA
   ======================================== */
.cta {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.cta-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
}

.cta-text {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   CONTENT BOX
   ======================================== */
.content-box {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.content-box h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: var(--spacing-lg) 0 var(--spacing-md);
}

.content-box h2:first-child {
  margin-top: 0;
}

.content-box p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: var(--spacing-md);
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius);
  border-left: 4px solid;
  margin-bottom: var(--spacing-md);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert svg {
  flex-shrink: 0;
}

.alert-info {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #075985;
}

.alert-success {
  background: #d1fae5;
  border-color: var(--success);
  color: #065f46;
}

.alert-error {
  background: #fee2e2;
  border-color: var(--danger);
  color: #991b1b;
}

.alert-warning {
  background: #fef3c7;
  border-color: var(--warning);
  color: #92400e;
}

.alert-danger {
  background: #fee2e2;
  border-color: var(--danger);
  color: #991b1b;
}

/* ========================================
   NOTÍCIAS - PÁGINA INDIVIDUAL
   ======================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span:last-child {
  color: var(--gray-700);
  font-weight: 600;
}

.noticia-single {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.noticia-header {
  margin-bottom: 32px;
}

.noticia-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--gray-900);
  margin: 16px 0;
  line-height: 1.2;
}

.noticia-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-600);
}

.meta-item svg {
  color: var(--primary);
}

.noticia-img-container {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.noticia-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.noticia-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-700);
  margin: 32px 0;
}

.noticia-content p {
  margin-bottom: 20px;
}

.noticia-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 2px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 24px;
}

.noticia-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.noticia-share span {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius);
  color: var(--gray-600);
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.related-news {
  margin-top: 64px;
}

.related-news h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.related-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.related-card img,
.related-placeholder {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-placeholder {
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.related-content {
  padding: 20px;
}

.related-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-light);
  color: var(--gray-900);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.related-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

/* ========================================
   NOTÍCIA DESTAQUE
   ======================================== */
.noticia-destaque {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  margin-bottom: 64px;
  transition: var(--transition);
}

.noticia-destaque:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

.destaque-img-wrapper {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.destaque-img,
.destaque-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destaque-img-placeholder {
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.9);
}

.destaque-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.destaque-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin: 16px 0;
}

.destaque-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.destaque-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--spacing-xl) 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--spacing-md);
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand-title {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-400);
  margin-bottom: var(--spacing-md);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  color: var(--gray-400);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-section h3 {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: 12px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 14px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.footer-links a::before {
  content: "→";
  opacity: 0;
  margin-right: 8px;
  transition: var(--transition);
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-400);
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-md) 0;
  margin-top: var(--spacing-lg);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--gray-500);
}

.footer-dev {
  color: var(--gray-500);
}

.footer-dev a {
  color: var(--accent);
  font-weight: 600;
  transition: var(--transition);
}

.footer-dev a:hover {
  color: var(--accent-light);
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(22, 85, 168, 0.4);
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--spacing-xs);
}

.form-label.required::after {
  content: " *";
  color: var(--danger);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: var(--transition);
  font-family: var(--font);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-lighter);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.form-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 24px 0;
}

.form-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.form-hint {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
}

/* ========================================
   MODALS
   ======================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 22px;
  color: var(--white);
}

.modal-header svg {
  color: var(--white);
}

.modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 24px;
}

.modal-desc {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* ========================================
   PASSWORD STRENGTH VALIDATION
   ======================================== */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: var(--transition);
}

.password-toggle:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.password-strength {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.strength-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.strength-text {
  font-size: 13px;
  font-weight: 600;
  min-width: 60px;
}

.password-requirements {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.requirement {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
  transition: var(--transition);
}

.requirement svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  transition: var(--transition);
}

.requirement.met {
  color: var(--success);
  font-weight: 600;
}

.requirement.met svg {
  color: var(--success);
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.loading {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* ========================================
   SUCCESS CARD
   ======================================== */
.success-card {
  background: #d1fae5;
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 480px) {
  .logo-text {
    display: block;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .header-actions {
    display: flex;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: block;
  }

  .header-actions {
    display: flex;
  }

  .mobile-toggle {
    display: none;
  }

  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .noticia-destaque {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (max-width: 1024px) {
  .noticia-destaque {
    grid-template-columns: 1fr;
  }

  .destaque-img-wrapper {
    min-height: 300px;
  }

  .destaque-content {
    padding: 32px;
  }

  .destaque-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: var(--spacing-xl) 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: var(--spacing-xl) 0;
  }

  .features-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-img,
  .news-img-placeholder {
    height: 180px;
  }

  .news-body {
    padding: 20px;
  }

  .content-box {
    padding: var(--spacing-md);
  }

  .noticia-single {
    padding: 24px;
  }

  .noticia-title {
    font-size: 24px;
  }

  .noticia-content {
    font-size: 16px;
  }

  .noticia-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
  }

  .destaque-img-wrapper {
    min-height: 250px;
  }

  .destaque-content {
    padding: 24px;
  }

  .destaque-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .modal-header,
  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    flex-direction: column-reverse;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .password-requirements {
    font-size: 12px;
  }
}

/* ========================================
   RELATED NEWS CARDS (NOTÍCIAS RELACIONADAS)
   ======================================== */
.related-news {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 2px solid var(--gray-200);
}

.related-news h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
}

/* Related cards usando mesmo estilo de news-card */
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  height: 100%;
  text-decoration: none;
}

.related-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.related-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-placeholder {
  width: 100%;
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.related-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--gray-900);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.related-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-content p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.related-date {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.related-link {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}

.related-link:hover {
  color: var(--primary-dark);
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .related-news {
    margin-top: 48px;
    padding-top: 32px;
  }
}
