/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --primary: #8B1A2B;
  --primary-dark: #6B1420;
  --primary-light: #A52238;
  --primary-foreground: #FFFFFF;
  
  /* Background & Surface */
  --background: #FFFFFF;
  --background-dark: #1A1A2E;
  --background-darker: #12121F;
  --surface: #F5F5F7;
  --surface-dark: #1E1E32;
  
  /* Text */
  --foreground: #1A1A2E;
  --foreground-light: #6B7280;
  --foreground-dark: #E5E5E5;
  --muted: #9CA3AF;
  
  /* Borders */
  --border: #E5E7EB;
  --border-dark: #2D2D44;
  
  /* Misc */
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1rem;
  z-index: 100;
  position: relative;
}

.announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.announcement-bar p {
  font-size: 0.875rem;
  line-height: 1.5;
}

.announcement-bar strong {
  font-weight: 600;
}

.announcement-bar .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  margin: 0 0.5rem;
  vertical-align: middle;
}

.announcement-bar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary-foreground);
  transition: opacity 0.2s;
  white-space: nowrap;
}

.announcement-bar a:hover {
  opacity: 0.85;
}

/* ===== HEADER / NAVBAR ===== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.navbar-logo img {
  height: 52px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 1rem;
  height: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link .chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.nav-item:hover .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: background-color 0.15s, color 0.15s;
}

.dropdown-link:hover {
  background: var(--surface);
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  background: #F3F4F6;
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--primary);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  color: var(--foreground);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
  z-index: 200;
  padding: 1.5rem;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-nav-close {
  padding: 0.5rem;
  color: var(--foreground);
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
}

.mobile-nav-submenu {
  display: none;
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}

.mobile-nav-submenu.open {
  display: block;
}

.mobile-nav-submenu a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--foreground-light);
}

/* ===== HERO CAROUSEL ===== */
.hero-section {
  position: relative;
  background: var(--primary);
  color: var(--primary-foreground);
  overflow: hidden;
}

.hero-slide {
  display: none;
  min-height: 520px;
}

.hero-slide.active {
  display: flex;
  flex-direction: column-reverse;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  width: 100%;
  z-index: 2;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 26, 43, 0.85);
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-text h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.hero-dot.active {
  background: #FFFFFF;
}

.hero-arrows {
  display: flex;
  gap: 0.5rem;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  transition: var(--transition);
  cursor: pointer;
}

.hero-arrow:hover {
  background: var(--surface);
}

.hero-arrow svg {
  width: 16px;
  height: 16px;
}

/* ===== PROGRAMS SECTION ===== */
.programs-section {
  padding: 4rem 1rem;
  background: var(--background);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.section-subtitle {
  text-align: center;
  color: var(--foreground-light);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
}

/* Tabs */
.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.25rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.tab-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background: transparent;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow);
}

.tab-btn:not(.active):hover {
  background: rgba(0,0,0,0.05);
}

/* Program Cards */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.program-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.program-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.program-card:hover img {
  transform: scale(1.05);
}

.program-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #FFFFFF;
}

.program-card-overlay h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.program-card-overlay p {
  font-size: 0.875rem;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.program-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: #FFFFFF;
  align-self: flex-end;
  transition: opacity 0.2s;
}

.program-card-link:hover {
  text-decoration: underline;
}

.program-card-link svg {
  width: 16px;
  height: 16px;
}

.view-all-btn {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ===== POSTULATION SECTION ===== */
.postulation-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
}

.postulation-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.postulation-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 26, 43, 0.85);
  z-index: 1;
}

.postulation-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.modalities-side {
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  padding: 1.5rem 1rem 0;
  overflow: hidden;
}

.modalities-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.modality-card {
  text-align: center;
}

.modality-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid #FFFFFF;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.modality-card p {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  max-width: 140px;
  opacity: 0.9;
}

.models-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1;
  margin-top: 1rem;
  position: relative;
}

.models-image-wrapper img {
  max-height: 520px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: -6px;
}

/* Lead Form */
.lead-form-card {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
}

.lead-form-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.lead-form-card .subtitle {
  font-size: 0.875rem;
  color: var(--foreground-light);
  margin-bottom: 1.5rem;
}

/* Radio Group / Modality Selector in form */
.modality-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--surface);
  padding: 0.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.modality-radio {
  display: none;
}

.modality-label {
  display: block;
  text-align: center;
  padding: 0.5rem 0.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--foreground);
}

.modality-radio:checked + .modality-label {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow);
}

.modality-label:hover {
  background: rgba(0,0,0,0.05);
}

.modality-radio:checked + .modality-label:hover {
  background: var(--primary-dark);
}

/* Form Fields */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group select {
  height: 36px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 26, 43, 0.15);
}

.form-group input::placeholder {
  color: var(--muted);
}

.form-submit {
  margin-top: 1rem;
}

.form-submit .btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
}

/* ===== WHY UPRIT SECTION ===== */
.why-section {
  padding: 5rem 1rem;
  background: var(--background-dark);
  color: var(--foreground-dark);
}

.why-section .section-title {
  color: #FFFFFF;
}

.why-section .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: var(--radius);
  color: #FFFFFF;
}

.why-icon svg {
  width: 22px;
  height: 22px;
}

.why-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.why-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* ===== ABOUT UNIVERSITY SECTION ===== */
.about-section {
  position: relative;
  padding: 5rem 1rem;
  overflow: hidden;
  min-height: 420px;
}

.about-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 26, 43, 0.88);
  z-index: 1;
}

.about-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  max-width: 800px;
  margin: 0 auto;
}

.about-content .script-title {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 1rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}

.about-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

.about-feature p {
  font-size: 0.85rem;
  opacity: 0.85;
}

.about-cta {
  margin-top: 2.5rem;
}

/* ===== PLATFORMS SECTION ===== */
.platforms-section {
  padding: 4rem 1rem;
  background: var(--background);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.platform-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.platform-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: var(--radius);
  color: #FFFFFF;
}

.platform-icon svg {
  width: 24px;
  height: 24px;
}

.platform-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.platform-info p {
  font-size: 0.8rem;
  color: var(--foreground-light);
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  transition: gap 0.2s;
}

.platform-link:hover {
  gap: 8px;
  text-decoration: underline;
}

.platform-link svg {
  width: 14px;
  height: 14px;
}

/* ===== BLOG / NEWS SECTION ===== */
.blog-section {
  padding: 4rem 1rem;
  background: var(--background-dark);
  color: var(--foreground-dark);
}

.blog-section .section-title {
  color: #FFFFFF;
  text-align: left;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.blog-tag {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.2s;
}

.blog-tag:hover,
.blog-tag.active {
  color: #FFFFFF;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.blog-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.25rem;
}

.blog-card-body .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.blog-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-card-body p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card-footer a {
  font-size: 0.8rem;
  color: var(--primary-light);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-footer a:hover {
  text-decoration: underline;
}

.blog-view-all {
  text-align: center;
  margin-top: 2rem;
}

.blog-view-all a {
  font-size: 0.875rem;
  color: var(--primary-light);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== AUTHORITIES SECTION ===== */
.authorities-section {
  position: relative;
  padding: 4rem 1rem;
  overflow: hidden;
}

.authorities-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.authorities-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 26, 43, 0.9);
  z-index: 1;
}

.authorities-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
}

.authorities-content .section-title {
  color: #FFFFFF;
}

.authorities-content .section-subtitle {
  color: rgba(255,255,255,0.8);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: 5rem 1rem;
  background: var(--background);
}

.testimonials-section .section-title {
  margin-bottom: 0.75rem;
}

.testimonials-section .section-subtitle {
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}

.testimonial-info p {
  font-size: 0.8rem;
  color: var(--foreground-light);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: #FBBF24;
  color: #FBBF24;
}

.testimonial-card blockquote {
  font-size: 0.875rem;
  color: var(--foreground-light);
  line-height: 1.6;
  font-style: italic;
}

/* ===== FAQ SECTION ===== */
.faq-section { padding: 5rem 1rem; background-color: #1A1A2E !important; color: #E5E5E5 !important; }

.faq-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.faq-left h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.faq-left p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.faq-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.faq-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-dark);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #FFFFFF;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: rgba(255,255,255,0.5);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ===== NEWS BANNER ===== */
.news-banner {
  padding: 3rem 1rem;
  background: var(--background-darker);
  color: #FFFFFF;
  text-align: center;
}

.news-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.news-banner p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.news-banner a {
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 1rem;
}

/* ===== FOOTER ===== */
.main-footer {
  background: var(--background-darker);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1rem 1rem;
  border-top: 1px solid var(--border-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-dark);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-certifications img {
  height: 40px;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-links-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-section li a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-links-section li a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding: 1.5rem 0 0;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #FFFFFF;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6); }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
  
  .hero-slide.active {
    flex-direction: row;
  }
  
  .hero-content {
    width: 50%;
    padding: 3rem 4rem;
    padding-top: 4rem;
  }
  
  .hero-image-wrapper {
    width: 50%;
    height: auto;
    min-height: 520px;
  }
  
  .hero-text h2 {
    font-size: 2.25rem;
  }
  
  .postulation-content {
    grid-template-columns: 1fr 1fr;
    padding: 4rem 1rem;
  }
  
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .programs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-features {
    grid-template-columns: 1fr 1fr;
  }
  
  .faq-content {
    grid-template-columns: 2fr 3fr;
  }
  
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }
  
  .platforms-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .modality-selector {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .navbar-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-nav {
    display: flex;
  }
  
  .hero-section {
    margin-top: 72px;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .platforms-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .modality-selector {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .announcement-bar .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .platforms-grid {
    grid-template-columns: 1fr;
  }
  
  .modalities-row {
    gap: 0.5rem;
  }
  
  .tabs-list {
    justify-content: center;
  }
  
  .hero-text h2 {
    font-size: 1.5rem;
  }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 89;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ===== NAVBAR LOGO DARK VERSION ===== */
.navbar-logo .logo-dark {
  display: block;
}

.navbar-logo .logo-light {
  display: none;
}

/* ===== LOADING SHIMMER ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== NUMBER COUNTER ANIMATION ===== */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Testimonials Sliders */
.testimonials-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}
.testimonials-slider {
  display: flex;
  gap: 2rem;
  width: max-content;
}
.slider-right {
  animation: scrollMarqueeRight 30s linear infinite;
}
.slider-left {
  animation: scrollMarqueeLeft 30s linear infinite;
}
.testimonials-slider:hover {
  animation-play-state: paused;
}
.testimonials-slider .testimonial-card {
  width: 350px;
  flex-shrink: 0;
  margin-bottom: 0;
}
@keyframes scrollMarqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scrollMarqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Platforms Hover Effect */
.platform-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--border);
}
.platform-card:hover, .platform-card:active {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(139, 26, 43, 0.2), 0 8px 10px -6px rgba(139, 26, 43, 0.1);
  border-color: rgba(139, 26, 43, 0.3);
}

/* Authorities Distribution */
.authorities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important; /* Force 3 columns in a row */
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .authorities-grid {
    grid-template-columns: 1fr !important;
  }
}

/* News Section Layout Fixes */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}
.blog-card {
  display: flex;
  flex-direction: column;
}
.blog-card-body {
  flex-grow: 1;
}
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Professionals Position Fix */
.models-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1;
  position: relative;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.models-image-wrapper img {
  max-height: 520px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 0 !important;
  transform: translateY(1px); /* ensure perfectly flush */
}
.postulation-content {
  align-items: stretch;
}

/* Guarantee space between logos in case gap fails */
.partner-logo {
  padding: 0 2rem !important;
  box-sizing: content-box;
}

/* Fix professionals positioning by removing padding from container */
.postulation-content {
  padding-bottom: 0 !important;
}
.lead-form-wrapper {
  margin-bottom: 4rem;
}
.models-image-wrapper {
  margin-bottom: -1px !important; /* ensure it's completely flush, covering any sub-pixel gaps */
}

/* Restore form bottom spacing */
.lead-form-card {
  margin-bottom: 4rem !important;
}

/* Fix Convenios Section spacing and logo size */
.partners-section {
  padding: 6rem 1rem !important; /* Sufficient top/bottom space */
}
.partners-carousel-wrapper {
  padding: 0 !important;
}
.partner-logo {
  padding: 0 !important;
  margin: 0 3rem !important; /* Space between logos */
  width: 200px !important; /* Keep logos large */
  height: 100px !important;
}

/* ===== NEWS SECTION OVERHAUL ===== */
.news-section {
  padding: 4rem 1rem;
  background-color: var(--background);
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
.news-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.news-header a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}
.news-header a:hover {
  color: #a81c33;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.news-image {
  height: 200px;
  overflow: hidden;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.news-card:hover .news-image img {
  transform: scale(1.05);
}
.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-date {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  display: block;
}
.news-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}
.news-content p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-margin: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}
.news-readmore {
  display: inline-block;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}
.news-readmore:hover {
  text-decoration: underline;
}

/* Fix Convenios Visibility and Height */
.partners-section {
  padding: 3rem 1rem !important; /* Normal height */
}
.partners-carousel-wrapper {
  overflow: hidden !important;
  width: 100% !important;
  position: relative;
  min-height: 120px;
}
.partners-carousel {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: max-content !important;
  animation: scrollMarquee 20s linear infinite;
}

/* ===== MEGA MENU ===== */
.nav-item.has-mega-menu {
  /* No position: relative so the mega-menu is positioned relative to the closest positioned ancestor (usually the header or body) */
}

/* Ensure the header isn't hiding the dropdown overflow */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fafafa;
  border-top: 2px solid var(--primary);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 90;
  padding: 3rem 0;
  pointer-events: none;
}

.nav-item.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.mega-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mega-col ul li a {
  color: #4b5563; /* Subtle gray for items */
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  line-height: 1.4;
  display: block;
}

.mega-col ul li a:hover {
  color: var(--primary);
}

/* Ensure .navbar allows the mega menu to span full width */
.navbar {
  position: static;
}
.navbar-nav {
  position: static;
}

/* MEGA MENU OVERRIDES */
.nav-item.has-mega-menu {
  position: static !important;
}

.mobile-group-title {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  padding: 0 1.5rem;
  opacity: 0.8;
}

.mobile-nav-submenu .mobile-group-title:first-child {
  margin-top: 0.5rem;
}

/* ===== AULA VIRTUAL DASHBOARD ===== */
.dashboard-body {
  background-color: var(--surface);
}

.dashboard-container {
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 992px) {
  .dashboard-container {
    grid-template-columns: 1fr;
  }
}

/* Card General Style */
.dash-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Profile Card */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
  margin-bottom: 1rem;
}
.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
.profile-career {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.profile-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #ecfdf5;
  color: #059669;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.profile-info-list {
  width: 100%;
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.profile-info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.profile-info-label {
  color: var(--muted-foreground);
  font-weight: 500;
}
.profile-info-value {
  color: var(--foreground);
  font-weight: 600;
}

/* Academic History */
.dash-card-title {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cycle-section {
  margin-bottom: 2rem;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.cycle-header {
  background: #f3f4f6;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.cycle-title {
  font-weight: 700;
  color: var(--foreground);
  font-size: 1.1rem;
}
.cycle-average {
  font-weight: 700;
  color: var(--primary);
  background: #fee2e2;
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
}
.cycle-table {
  width: 100%;
  border-collapse: collapse;
}
.cycle-table th, .cycle-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cycle-table th {
  background: var(--background);
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.cycle-table td {
  background: var(--background);
  font-size: 0.95rem;
  color: var(--foreground);
}
.cycle-table tr:last-child td {
  border-bottom: none;
}
.grade-passed {
  color: #059669;
  font-weight: 700;
}
.grade-failed {
  color: var(--primary);
  font-weight: 700;
}

/* User Menu Header */
.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.user-menu img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.user-menu-info {
  display: flex;
  flex-direction: column;
}
.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--foreground);
}
.user-role {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.logout-btn {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}
.logout-btn:hover {
  background: var(--surface);
  color: var(--primary);
}
/* =========================================
   CAREER PAGE (Arquitectura y Urbanismo)
========================================= */
.career-main {
  background-color: var(--background);
}

.career-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 400px;
  background-color: #7a1128; /* Dark red matching the image */
  color: white;
  overflow: hidden;
}

.career-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
}

.career-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.career-hero-overlay {
  position: absolute;
  top: 0;
  left: -20%;
  width: 120%;
  height: 100%;
  background: linear-gradient(90deg, #7a1128 60%, transparent 100%);
}

.career-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 4rem 2rem;
}

.career-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .career-hero {
    flex-direction: column-reverse;
  }
  .career-hero-bg {
    position: relative;
    width: 100%;
    height: 250px;
  }
  .career-hero-overlay {
    display: none;
  }
  .career-hero-content {
    padding: 2rem 1.5rem;
  }
}

.career-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  padding: 4rem 1.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .career-layout {
    grid-template-columns: 1fr;
  }
}

/* LEFT COLUMN */
.career-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.career-intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.career-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  list-style: none;
}

/* CURRICULUM */
.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cycle-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.cycle-card h4 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.cycle-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.cycle-card ul {
  list-style: none;
}

.cycle-card ul li {
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


@media (max-width: 768px) {
  .curriculum-grid {
    grid-template-columns: 1fr;
  }
}

/* OPPORTUNITIES */
.opp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.opp-card {
  background-color: var(--primary);
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.opp-card::before {
  content: "🎯";
  font-size: 1.5rem;
}

/* TEACHERS */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.teacher-card {
  text-align: center;
}

.teacher-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* FAQ */
.career-faq .faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.career-faq .faq-item summary {
  padding: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  background: #fafafa;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.career-faq .faq-item summary::-webkit-details-marker {
  display: none;
}

.career-faq .faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.25rem;
}

.career-faq .faq-item[open] summary::after {
  content: "-";
}

.career-faq .faq-item p {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

/* STICKY SIDEBAR */
.career-sidebar {
  position: sticky;
  top: 100px; /* Offset for header */
}

.sticky-form-container {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

.sticky-form-header {
  background-color: #8c152d; /* slightly different red */
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.sticky-form-header h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.sticky-form-header p {
  font-weight: bold;
  font-size: 1.25rem;
}

.sticky-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sticky-form h5 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.sticky-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sticky-form input,
.sticky-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafafa;
  font-family: inherit;
  font-size: 0.95rem;
}

.terms-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
/* NEW CURRICULUM SLIDER CSS */
.curriculum-nav {
  display: flex;
  gap: 0.5rem;
}
.curriculum-nav button {
  background: white;
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: bold;
  color: var(--primary);
}
.curriculum-nav button:hover {
  background: var(--accent);
}
.curriculum-slider-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 1rem 0;
}
#curriculum-slider {
  display: flex; /* Override previous grid */
  transition: transform 0.3s ease-in-out;
  gap: 1.5rem;
}
#curriculum-slider .cycle-card {
  min-width: calc(50% - 0.75rem); /* Show 2 cards at a time */
  flex-shrink: 0;
}
@media (max-width: 768px) {
  #curriculum-slider .cycle-card {
    min-width: 100%; /* Show 1 card at a time on mobile */
  }
}

