/* ===================================================
   Universidad de Salamanca — Formación Deportiva
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --red:        #CC0000;
  --red-dark:   #a00000;
  --red-deeper: #780000;
  --red-faint:  #fff5f5;
  --gold:       #C9963A;
  --gold-light: #fdf7ee;
  --gold-dark:  #a8791f;
  --dark:       #111111;
  --text:       #2c2c2c;
  --muted:      #6b7280;
  --border:     #e5e7eb;
  --light:      #f9f9f9;
  --white:      #ffffff;
  --green:      #15803d;
  --green-bg:   #f0fdf4;
  --gray:       #9ca3af;
  --gray-bg:    #f3f4f6;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TOP BAR ---- */

.top-bar {
  background: var(--red-deeper);
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  padding: 7px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.4px;
}

.top-bar a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transition: color 0.2s;
}

.top-bar a:hover { color: #fff; text-decoration: none; }

/* ---- HEADER ---- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover { text-decoration: none; }

.logo-badge {
  width: 42px;
  height: 42px;
  background: var(--red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; }

.logo-text .university {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.logo-text .program {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  margin-top: 3px;
}

/* ---- NAVIGATION ---- */

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 7px;
  transition: all 0.18s;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--red-faint);
  color: var(--red);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--red);
  font-weight: 600;
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  padding: 6px 8px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

/* ---- HERO (index) ---- */

.hero {
  background: linear-gradient(140deg, var(--red-deeper) 0%, var(--red) 65%, #d33 100%);
  color: var(--white);
  padding: 80px 24px 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025' fill-rule='evenodd'%3E%3Cpath d='M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm0-2c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm33.414-6l5.95-5.95L45.95.636 40 6.586 34.05.636 32.636 2.05 38.586 8l-5.95 5.95 1.414 1.414L40 9.414l5.95 5.95 1.414-1.414L41.414 8zM40 48c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm0-2c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zM9.414 40l5.95-5.95-1.414-1.414L8 38.586l-5.95-5.95L.636 34.05 6.586 40l-5.95 5.95 1.414 1.414L8 41.414l5.95 5.95 1.414-1.414L9.414 40z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero .container { position: relative; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.88);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.13;
  margin-bottom: 20px;
  max-width: 680px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p {
  font-size: 17.5px;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.65;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
}

/* ---- SECTION UTILITIES ---- */

.section { padding: 64px 24px; }

.section-header { margin-bottom: 40px; }

.section-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.section-divider {
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin-top: 14px;
  border-radius: 2px;
}

/* ---- BADGES ---- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid transparent;
}

.badge-open {
  background: var(--green-bg);
  color: var(--green);
  border-color: rgba(21,128,61,0.2);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(21,128,61,0.4); }
  50%       { opacity: 0.7; transform: scale(0.88); box-shadow: 0 0 0 4px rgba(21,128,61,0); }
}

.badge-soon {
  background: var(--gray-bg);
  color: var(--muted);
  border-color: var(--border);
}

.badge-edition {
  background: var(--gold-light);
  color: var(--gold-dark);
  border-color: rgba(201,150,58,0.22);
}

/* ---- FEATURED COURSE (index) ---- */

.featured-course {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(0,0,0,0.07);
  margin-bottom: 52px;
}

.featured-course-header {
  background: linear-gradient(140deg, var(--red-deeper) 0%, var(--red) 100%);
  color: var(--white);
  padding: 36px 40px 28px;
  position: relative;
  overflow: hidden;
}

.featured-course-header::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.featured-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.featured-course-header .badge-open {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

.featured-course-header .badge-open .badge-dot { background: #4ade80; }

.featured-course-header .badge-edition {
  background: rgba(201,150,58,0.18);
  color: var(--gold);
  border-color: rgba(201,150,58,0.3);
}

.featured-course-header h2 {
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}

.featured-course-header .subtitle {
  font-size: 15.5px;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
}

.featured-date-bar {
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 40px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.82);
  display: flex;
  align-items: center;
  gap: 10px;
}

.featured-date-bar strong { color: #fff; }

.featured-course-body {
  display: grid;
  grid-template-columns: 1fr 310px;
}

.featured-course-main {
  padding: 36px 40px;
  border-right: 1px solid var(--border);
}

.featured-course-main h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 600;
}

.module-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 28px;
}

.module-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.module-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--red-faint);
  border: 1px solid rgba(204,0,0,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  margin-top: 1px;
  font-family: 'Playfair Display', Georgia, serif;
}

.module-list li p {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.45;
  padding-top: 5px;
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(204,0,0,0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}

.btn-secondary:hover {
  background: var(--red-faint);
  color: var(--red);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  font-size: 13px;
  padding: 8px 16px;
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  text-decoration: none;
}

/* ---- FEATURED SIDEBAR ---- */

.featured-course-sidebar {
  padding: 32px 28px;
  background: var(--light);
  display: flex;
  flex-direction: column;
}

.price-block { margin-bottom: 24px; flex: 1; }

.price-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.price-item:last-child { border-bottom: none; }

.price-item .label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.price-item .amount {
  font-size: 21px;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Playfair Display', Georgia, serif;
  white-space: nowrap;
}

.price-item.highlight-price {
  background: var(--red-faint);
  border-radius: 7px;
  padding: 10px 8px;
  margin: 0 -8px;
  border-bottom: none;
}

.price-item.highlight-price .amount { color: var(--red); }

.sidebar-cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

.sidebar-note {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

/* ---- COURSE GRID (other two) ---- */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}

.course-card-header {
  background: linear-gradient(135deg, #262626 0%, #1a1a1a 100%);
  padding: 28px 28px 22px;
  color: var(--white);
}

.course-card-header .badges {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.course-card-header .badge-soon {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.12);
}

.course-card-header .badge-edition {
  background: rgba(201,150,58,0.14);
  color: var(--gold);
  border-color: rgba(201,150,58,0.25);
}

.course-card-header h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.course-card-body {
  padding: 22px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-modules { flex: 1; }

.course-card-modules h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
}

.module-preview {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 8px;
}

.module-preview li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.4;
}

.module-preview li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

.course-card-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--light);
}

.next-edition-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---- INFO STRIP ---- */

.info-strip {
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 46px;
  height: 46px;
  background: var(--red-faint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  border: 1px solid rgba(204,0,0,0.1);
}

.info-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  font-family: 'DM Sans', sans-serif;
}

.info-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---- FOOTER ---- */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 52px 24px 30px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 22px;
}

.footer-brand .logo-badge {
  background: var(--red);
  margin-bottom: 10px;
}

.footer-brand .university {
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}

.footer-brand .program {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  color: var(--white);
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.2;
}

.footer-brand p {
  font-size: 13px;
  margin-top: 14px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
}

.footer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-links a {
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
  transition: color 0.18s;
}

.footer-nav-links a:hover { color: var(--white); text-decoration: none; }

.footer-contact-email {
  color: var(--white) !important;
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-contact-email:hover { color: var(--gold) !important; text-decoration: none; }

.footer-contact-note {
  font-size: 12.5px;
  margin-top: 10px;
  line-height: 1.55;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  color: rgba(255,255,255,0.3);
  transition: color 0.18s;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.6); text-decoration: none; }

/* ========================================
   COURSE PAGE STYLES
   ======================================== */

.course-hero {
  background: linear-gradient(140deg, var(--red-deeper) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 52px 24px 48px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 26px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.65);
  transition: color 0.18s;
}

.breadcrumb a:hover { color: #fff; text-decoration: none; }

.breadcrumb .sep { opacity: 0.4; font-size: 10px; }

.course-hero-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.course-hero-badges .badge-open {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.course-hero-badges .badge-open .badge-dot { background: #4ade80; }

.course-hero-badges .badge-soon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}

.course-hero-badges .badge-edition {
  background: rgba(201,150,58,0.18);
  color: var(--gold);
  border-color: rgba(201,150,58,0.3);
}

.course-hero h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.1;
}

.course-hero .lead {
  font-size: 16.5px;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  font-weight: 300;
  line-height: 1.65;
}

/* Course layout */

.course-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1fr 316px;
  gap: 52px;
  align-items: start;
}

.course-main-col { min-width: 0; }

/* Program section */

.content-section { margin-bottom: 52px; }

.content-section h2 {
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 6px;
}

.content-section .section-divider { margin-bottom: 24px; }

.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.18s;
}

.module-card:hover { border-color: rgba(204,0,0,0.2); }

.module-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}

.module-num-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Playfair Display', Georgia, serif;
}

.module-num-badge.sm { font-size: 10px; }

.module-card-header h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
}

.module-card-body {
  padding: 0 22px 16px 74px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* Professors */

.professors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 16px;
}

.professor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.18s;
}

.professor-card:hover { border-color: rgba(201,150,58,0.4); }

.professor-avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--red-faint);
  border: 1px solid rgba(204,0,0,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  flex-shrink: 0;
}

.professor-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 3px;
  line-height: 1.3;
}

.professor-title {
  font-size: 11.5px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.professor-role {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Sidebar */

.course-sidebar { position: sticky; top: 90px; }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  margin-bottom: 18px;
}

.sidebar-card-header {
  padding: 15px 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--red);
}

.sidebar-card-header.dark { background: var(--dark); }

.sidebar-card-body { padding: 18px 20px; }

.sidebar-row {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.sidebar-row:last-child { border-bottom: none; }

.sidebar-row .sr-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 78px;
  padding-top: 1px;
}

.sidebar-row .sr-value {
  color: var(--dark);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
}

.price-table { width: 100%; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.price-row:last-child { border-bottom: none; }

.price-row .pt-label {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.price-row .pt-amount {
  font-size: 21px;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Playfair Display', Georgia, serif;
  white-space: nowrap;
}

.price-row.highlight {
  margin: 4px -4px;
  padding: 10px 4px;
  background: var(--red-faint);
  border-radius: 7px;
  border-bottom: none;
}

.price-row.highlight .pt-amount { color: var(--red); }

.payment-note {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.enroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
  margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
}

.enroll-btn:hover {
  background: var(--red-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(204,0,0,0.28);
}

.enroll-note {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.coming-soon-box {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 22px;
  text-align: center;
}

.coming-soon-box .cs-icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.coming-soon-box h3 {
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 8px;
}

.coming-soon-box p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.coming-soon-box a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red);
}

/* General info strip (course pages) */

.general-info {
  background: var(--light);
  border-top: 1px solid var(--border);
  padding: 44px 24px;
}

.general-info .info-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ---- RESPONSIVE ---- */

@media (max-width: 960px) {
  .featured-course-body {
    grid-template-columns: 1fr;
  }
  .featured-course-main {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .course-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .course-sidebar { position: static; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px 16px;
    gap: 2px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 10px 14px; }
  .nav-cta { margin-left: 0; margin-top: 6px; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }

  .top-bar-left { display: none; }

  .featured-course-header { padding: 24px; }
  .featured-date-bar { padding: 10px 24px; }
  .featured-course-main { padding: 24px; }
  .featured-course-sidebar { padding: 24px; }

  .hero { padding: 56px 24px 44px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 27px; }
  .courses-grid { grid-template-columns: 1fr; }
  .professors-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; gap: 24px; }
  .course-layout { padding: 36px 20px; }
}
