:root {
  --primary: #4d2c7d;
  --primary-dark: #24113f;
  --primary-light: #7f5cc9;
  --accent: #5ec96b;
  --accent-dark: #2f9d52;
  --background: #f5f4f8;
  --surface: #ffffff;
  --surface-alt: #f0edf6;
  --text: #1d1830;
  --muted: #66617a;
  --border: rgba(77, 44, 125, 0.1);
  --shadow: 0 18px 45px rgba(31, 15, 51, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.page-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  width: 260px;
  min-width: 260px;
  height: 100vh;
  padding: 24px 18px 18px;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 20;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-block img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(17, 9, 24, 0.28);
}

.brand-block strong,
.brand-block span {
  display: block;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.brand-block strong {
  font-size: 1.35rem;
}

.brand-block span {
  font-size: 0.72rem;
  color: var(--accent);
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-icon {
  width: 22px;
  display: inline-flex;
  justify-content: center;
  color: var(--accent);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-region {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(94, 201, 107, 0.14);
}

.sidebar-region strong,
.sidebar-region small {
  display: block;
}

.sidebar-region small {
  font-size: 0.7rem;
  opacity: 0.8;
}

.language-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.language-switcher a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  transition: all 0.2s ease;
}

.language-switcher a.is-active,
.language-switcher a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.content-shell {
  width: 100%;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.search-box {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  padding: 14px 0;
  color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(77, 44, 125, 0.15);
  color: var(--primary);
  background: rgba(77, 44, 125, 0.04);
  transition: all 0.2s ease;
}

.pill-link:hover {
  background: rgba(77, 44, 125, 0.08);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}

.user-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(94, 201, 107, 0.18);
}

.main-content {
  display: grid;
  gap: 30px;
  padding: 28px 30px 24px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 30px;
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 52%, #6238ab 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(94, 201, 107, 0.28), transparent 22%);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  box-shadow: 0 16px 26px rgba(37, 130, 71, 0.26);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.hero-image-card {
  position: relative;
  min-height: 300px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.09)), url('../img/home/educacao_polo_golfo.jpeg') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 10, 34, 0.12), rgba(20, 10, 34, 0.62));
}

.hero-card-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(17, 10, 27, 0.44);
  border: 1px solid rgba(255,255,255,0.18);
  color: #ffffff;
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.hero-card-badge strong {
  font-size: 1rem;
}

.hero-card-badge span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
}

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

.hero-metrics div {
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  display: grid;
  gap: 6px;
}

.hero-metrics strong {
  font-size: 1.25rem;
}

.hero-metrics span {
  color: rgba(255,255,255,0.76);
  font-size: 0.75rem;
}

.overview-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(33, 17, 52, 0.03);
}

.overview-strip small,
.overview-strip strong {
  display: block;
}

.overview-strip small {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.overview-strip strong {
  font-size: 1.1rem;
  color: var(--text);
}

.strip-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(77,44,125,0.08), rgba(94,201,107,0.08));
  border: 1px solid rgba(77,44,125,0.1);
  font-weight: 700;
  color: var(--primary);
}

.catalog-section,
.about-section,
.differentials-section,
.news-section,
.support-section,
.cta-section,
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(38, 20, 58, 0.04);
}

.catalog-section,
.about-section,
.differentials-section,
.news-section,
.support-section,
.cta-section,
.detail-panel {
  padding: 28px 26px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
}

.section-header p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.filter-button.is-active,
.filter-button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.course-counter {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 44, 125, 0.08);
  color: var(--primary);
  font-weight: 700;
}

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

.course-card {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #faf8fe 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(38, 20, 58, 0.08);
}

.course-card.hidden {
  display: none;
}

.course-art {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  min-height: 146px;
  padding: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-art.bachelor {
  background: linear-gradient(135deg, rgba(77,44,125,0.95), rgba(52,27,86,0.88));
  color: #ffffff;
}

.course-art.technology {
  background: linear-gradient(135deg, rgba(94,201,107,0.94), rgba(57,157,82,0.92));
  color: #ffffff;
}

.course-body {
  display: grid;
  gap: 12px;
  padding: 16px 16px 0;
}

.course-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.course-badge,
.course-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-bachelors {
  background: rgba(77,44,125,0.1);
  color: var(--primary);
}

.badge-tech {
  background: rgba(94,201,107,0.12);
  color: var(--accent-dark);
}

.course-mode {
  background: rgba(25,21,38,0.04);
  color: var(--muted);
}

.course-body h3 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.course-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.course-footer strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.course-footer a {
  color: var(--primary);
  font-weight: 600;
}

.detail-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, rgba(77,44,125,0.06), rgba(94,201,107,0.08));
}

.detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-copy {
  display: grid;
  gap: 14px;
}

.detail-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.detail-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-list li {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  color: var(--text);
}

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

.about-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: center;
}

.about-image {
  position: relative;
  min-height: 360px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(77,44,125,0.18), rgba(94,201,107,0.28)), url('../img/about/sobre_polo_golfo.jpeg') center/cover no-repeat;
}

.about-badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: rgba(255,255,255,0.8);
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.about-copy {
  display: grid;
  gap: 12px;
}

.about-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.about-stats div {
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(77,44,125,0.02);
}

.about-stats strong,
.about-stats span {
  display: block;
}

.about-stats strong {
  font-size: 1.8rem;
  color: var(--primary);
}

.about-stats span {
  margin-top: 6px;
  color: var(--muted);
}

.differentials-section .section-header {
  margin-bottom: 12px;
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.differential-card {
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #faf8ff);
}

.differential-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 54px;
  border-radius: 16px;
  background: rgba(77,44,125,0.08);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.differential-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.differential-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.news-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.news-image {
  min-height: 180px;
  background-size: cover;
  background-position: center;
}

.news-1 {
  background-image: linear-gradient(135deg, rgba(77,44,125,0.18), rgba(77,44,125,0.1)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=900&q=80');
}

.news-2 {
  background-image: linear-gradient(135deg, rgba(94,201,107,0.18), rgba(94,201,107,0.1)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=900&q=80');
}

.news-3 {
  background-image: linear-gradient(135deg, rgba(77,44,125,0.18), rgba(25,21,38,0.1)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80');
}

.news-copy {
  display: grid;
  gap: 8px;
  padding: 18px 18px 20px;
}

.news-copy span {
  color: var(--primary);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.news-copy h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.news-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.support-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.support-section h2 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
}

.support-section p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, rgba(77,44,125,0.06), rgba(94,201,107,0.08));
}

.cta-copy {
  display: grid;
  gap: 10px;
}

.cta-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.cta-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 30px 34px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(77,44,125,0.04);
  color: var(--primary);
}

.regional-block-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f4f1fb 0%, #ebf7ee 100%);
}

.regional-block {
  width: min(680px, calc(100vw - 32px));
}

.regional-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(77,44,125,0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 30px 26px;
  display: grid;
  gap: 18px;
}

.regional-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.regional-brand img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.regional-brand small,
.regional-brand strong {
  display: block;
}

.regional-brand small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.regional-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.06em;
}

.regional-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.regional-country {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 15px;
  background: rgba(77,44,125,0.04);
  border: 1px solid rgba(77,44,125,0.08);
  border-radius: 16px;
  color: var(--text);
}

.regional-country strong {
  color: var(--primary);
}

.regional-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.regional-actions a {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
}

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

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

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

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 20px 0 40px rgba(21, 14, 30, 0.18);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content-shell {
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-content {
    padding: 18px 16px 22px;
  }

  .hero-section,
  .about-section,
  .detail-panel,
  .support-section,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 22px 20px;
  }

  .section-header,
  .catalog-toolbar,
  .support-section,
  .cta-section,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px 16px;
  }

  .topbar-actions {
    display: none;
  }

  .search-box {
    max-width: none;
    width: 100%;
  }

  .course-grid,
  .differentials-grid,
  .news-grid,
  .about-stats,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .overview-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    padding: 18px 18px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

html[dir='rtl'] body {
  direction: rtl;
}

html[dir='rtl'] .nav-link,
html[dir='rtl'] .sidebar-region,
html[dir='rtl'] .language-switcher,
html[dir='rtl'] .topbar,
html[dir='rtl'] .search-box,
html[dir='rtl'] .topbar-actions,
html[dir='rtl'] .course-topline,
html[dir='rtl'] .course-footer,
html[dir='rtl'] .detail-actions,
html[dir='rtl'] .support-section,
html[dir='rtl'] .cta-section,
html[dir='rtl'] .site-footer {
  direction: rtl;
}

html[dir='rtl'] .hero-copy,
html[dir='rtl'] .hero-panel,
html[dir='rtl'] .detail-copy,
html[dir='rtl'] .about-copy,
html[dir='rtl'] .cta-copy {
  text-align: right;
}

html[dir='rtl'] .topbar {
  flex-direction: row-reverse;
}

html[dir='rtl'] .search-box {
  direction: rtl;
}

html[dir='rtl'] .catalog-toolbar {
  flex-direction: row-reverse;
}

html[dir='rtl'] .course-footer {
  flex-direction: row-reverse;
}

html[dir='rtl'] .detail-list li {
  justify-content: flex-start;
}


.support-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.support-language-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.about-page-section { min-height: calc(100vh - 150px); align-items: stretch; }
.about-page-section h1 { margin: 8px 0 14px; font-size: clamp(2rem, 4vw, 3.4rem); }
.about-content-panel { margin-top: 28px; }

/* Individual course pages */
.course-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
}
.course-page-copy,
.course-page-price-card,
.course-info-card,
.course-content-card,
.course-sticky-card {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(36, 29, 76, .09);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(24, 19, 58, .08);
}
.course-page-copy { padding: 34px; }
.course-page-copy h1 { margin: 12px 0; font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: 1.02; }
.course-page-copy p { max-width: 760px; color: var(--muted); line-height: 1.8; }
.back-link { display: inline-flex; margin-bottom: 14px; color: var(--muted); font-weight: 700; text-decoration: none; }
.course-page-actions { margin-top: 24px; }
.course-page-price-card { padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.course-page-price-card span { color: var(--muted); font-weight: 700; }
.course-page-price-card strong { font-size: 4rem; line-height: 1; margin-top: 8px; }
.course-page-price-card b { font-size: 1.1rem; }
.course-page-price-card small { margin-top: 12px; color: var(--muted); line-height: 1.5; }
.course-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.course-info-card { padding: 22px; min-height: 100px; }
.course-info-card span { display: block; color: var(--muted); font-size: .82rem; font-weight: 700; margin-bottom: 8px; }
.course-info-card strong { display: block; line-height: 1.35; }
.course-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.course-content-main { display: grid; gap: 18px; }
.course-content-card { padding: 28px; }
.course-content-card h2 { margin: 6px 0 14px; }
.course-content-card p { color: var(--muted); line-height: 1.8; }
.course-section-heading { display:flex; justify-content:space-between; gap:20px; align-items:end; margin-bottom: 18px; }
.course-sticky-card { padding: 26px; position: sticky; top: 22px; }
.course-sticky-card h2 { margin: 8px 0 16px; }
.course-sticky-price { margin-bottom: 12px; }
.course-sticky-price strong { font-size: 2.4rem; }
.course-sticky-price span { font-weight: 800; }
.course-sticky-card p { color: var(--muted); line-height: 1.6; }
.button-full { width:100%; justify-content:center; margin-top:10px; }

html[dir='rtl'] .course-page-price-card,
html[dir='rtl'] .course-sticky-card,
html[dir='rtl'] .course-info-card,
html[dir='rtl'] .course-content-card { text-align:right; }
html[dir='rtl'] .course-page-hero { direction:rtl; }
html[dir='rtl'] .course-section-heading { flex-direction:row-reverse; }

@media (max-width: 1000px) {
  .course-page-hero, .course-content-layout { grid-template-columns: 1fr; }
  .course-info-grid { grid-template-columns: repeat(2, 1fr); }
  .course-sticky-card { position: static; }
}
@media (max-width: 640px) {
  .course-page-copy, .course-page-price-card, .course-content-card, .course-sticky-card { padding: 22px; }
  .course-section-heading { align-items:flex-start; flex-direction:column; }
}


/* Course flyer images */
.course-art { overflow: hidden; aspect-ratio: 4 / 5; }
.course-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.course-page-art { width: min(360px, 100%); border-radius: 24px; overflow: hidden; box-shadow: 0 18px 45px rgba(0,0,0,.14); flex: 0 0 auto; }
.course-page-art img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.course-page-hero { display: flex; align-items: center; gap: 40px; }
.course-page-copy { flex: 1 1 auto; }
@media (max-width: 900px) { .course-page-hero { flex-direction: column; align-items: stretch; } .course-page-art { width: min(420px, 100%); margin: 0 auto; } }
[dir="rtl"] .course-page-hero { flex-direction: row-reverse; }
@media (max-width: 900px) { [dir="rtl"] .course-page-hero { flex-direction: column; } }


/* Ajustes visuais — hero de início e cards de cursos */
.hero-image-card {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: clamp(420px, 58vh, 760px);
}

.course-card-image {
  aspect-ratio: 4 / 5;
  max-height: 300px;
  overflow: hidden;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .hero-image-card {
    min-height: 360px;
    background-size: contain !important;
  }

  .course-card-image {
    max-height: 230px;
  }
}

@media (max-width: 480px) {
  .hero-image-card {
    min-height: 300px;
  }

  .course-card-image {
    max-height: 205px;
  }
}
