:root {
  --color-primary: #17324d;
  --color-secondary: #2f83c5;
  --color-accent: #f08b33;
  --color-accent-strong: #d95d18;
  --color-text-dark: #24384b;
  --color-text-light: #ecf3f9;
  --color-background: #f4f7fb;
  --color-surface: #ffffff;
  --color-border: rgba(23, 50, 77, 0.1);
  --font-family: Arial, Helvetica, sans-serif;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
  --box-shadow: 0 16px 44px rgba(18, 44, 69, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-dark);
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(47, 131, 197, 0.08), transparent 30%),
    linear-gradient(180deg, #f7faff 0%, #f3f6fa 100%);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.main-header {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  padding: var(--spacing-md) 0;
  box-shadow: 0 10px 30px rgba(23, 50, 77, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo img {
  height: 60px;
  display: block;
}

.menu-toggle {
  display: none;
}

.main-nav-list {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
}

.main-nav-list a {
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: 700;
  padding: 10px 14px;
  transition: color 0.25s ease, background-color 0.25s ease;
  border-radius: 999px;
}

.main-nav-list a:hover,
.main-nav-list a[aria-current='page'] {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}

.submenu {
  position: relative;
}

.submenu .submenu-itens {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background-color: var(--color-surface);
  box-shadow: var(--box-shadow);
  border-radius: 16px;
  z-index: 1001;
  padding: 8px 0;
  min-width: 220px;
  border: 1px solid rgba(47, 131, 197, 0.18);
}

.submenu:hover .submenu-itens {
  display: block;
}

.submenu-itens a {
  display: block;
  width: 100%;
  border-radius: 0;
}

.hero-student {
  padding: 54px 0 34px;
}

.hero-student-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.hero-copy {
  background: linear-gradient(145deg, #17324d 0%, #2f83c5 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--box-shadow);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c5e6ff;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

.hero-text {
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.hero-btn-primary {
  background: #ffffff;
  color: var(--color-primary);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-panel {
  display: flex;
}

.status-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--box-shadow);
}

.status-card strong {
  display: block;
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.status-card p {
  color: #4e6578;
}

.status-list {
  list-style: none;
  margin-top: 18px;
}

.status-list li + li {
  margin-top: 10px;
}

.portal-section,
.support-section {
  padding: 26px 0 64px;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.section-head h2,
.support-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.12;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-head p,
.support-card p,
.support-card li {
  color: #567084;
}

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

.portal-card,
.support-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.portal-card-media {
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 50, 77, 0.08);
}

.portal-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #ffffff;
  padding: 12px 14px;
  display: block;
}

.portal-card-body {
  padding: 24px;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 131, 197, 0.1);
  color: var(--color-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.portal-card h3 {
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.portal-card p {
  color: #567084;
}

.portal-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.portal-link,
.support-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.portal-link {
  background: rgba(47, 131, 197, 0.09);
  color: var(--color-primary);
}

.portal-link-primary,
.support-cta {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: #ffffff;
}

.support-card {
  padding: 26px;
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-card ul {
  padding-left: 18px;
}

.support-card li + li {
  margin-top: 8px;
}

.support-cta {
  margin-top: 18px;
}

.main-footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.main-footer address {
  font-style: normal;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.main-footer a {
  color: #9bd0ff;
  text-decoration: none;
}

.main-footer a:hover {
  text-decoration: underline;
}

.whatsapp-button {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-button img {
  width: 32px;
  height: 32px;
}

@media (max-width: 991px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .hero-student-grid,
  .portal-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px;
  }

  .portal-card-body,
  .support-card,
  .status-card {
    padding: 22px;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .logo img {
    height: 52px;
  }

  .menu-toggle {
    display: block;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px 0;
  }

  .main-nav-list {
    display: none;
  }

  .main-nav-list.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    background-color: var(--color-primary);
    padding: var(--spacing-md) 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .main-nav-list.is-open a {
    color: var(--color-text-light);
    width: 100%;
    padding: var(--spacing-md);
    text-align: center;
    border-radius: 0;
  }

  .main-nav-list.is-open a:hover {
    background-color: var(--color-secondary);
  }

  .main-nav-list.is-open .submenu:hover .submenu-itens {
    display: none;
  }

  .main-nav-list.is-open .submenu .submenu-itens {
    display: block;
    position: static;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.18);
    border: none;
    padding: 0;
    margin-top: 12px;
  }

  .hero-student {
    padding-top: 36px;
  }

  .hero-copy {
    border-radius: 22px;
    padding: 22px 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
  }

  .portal-card,
  .support-card,
  .status-card {
    border-radius: 20px;
  }

  .portal-card-media img {
    padding: 10px 12px;
  }

  .portal-card-body,
  .support-card,
  .status-card {
    padding: 18px;
  }

  .portal-card h3 {
    font-size: 1.25rem;
  }

  .whatsapp-button {
    width: 56px;
    height: 56px;
    bottom: 18px;
    right: 18px;
  }
}
