/* Shared styles for static blog pages – mirrors React app design system */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@400;500;600;700&display=swap');

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

/* Base */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ===== WEBINAR BANNER ===== */
.webinar-banner {
  width: 100%;
  background: #0f1729;
  padding: 4px 0;
}
.webinar-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .webinar-banner-inner { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .webinar-banner-inner { padding: 0 2rem; }
}
.webinar-banner a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.webinar-banner a:hover { opacity: 0.9; }
.webinar-banner .wb-date { color: rgba(255,255,255,0.7); }
.webinar-banner .wb-icon { display: none; }
@media (min-width: 640px) { .webinar-banner .wb-icon { display: inline; } }
.webinar-banner svg { width: 1rem; height: 1rem; }

/* ===== NAVBAR ===== */
.site-nav {
  width: 100%;
  padding: 1rem 0;
  background: #fff;
  position: relative;
  z-index: 50;
}
.site-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .site-nav-inner { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .site-nav-inner { padding: 0 2rem; }
}
.site-nav .nav-logo img {
  height: 3rem;
  width: auto;
}
@media (min-width: 768px) {
  .site-nav .nav-logo img { height: 3.5rem; }
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: #E84565; }

/* Courses dropdown */
.courses-dropdown {
  position: relative;
}
.courses-dropdown .dd-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.courses-dropdown .dd-trigger:hover { color: #E84565; }
.courses-dropdown .dd-trigger svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}
.courses-dropdown:hover .dd-trigger svg { transform: rotate(180deg); }
.courses-dropdown .dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  width: 16rem;
  z-index: 100;
}
.courses-dropdown:hover .dd-menu { display: block; }
.dd-menu-inner {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
}
.dd-menu-inner a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.15s;
}
.dd-menu-inner a:hover { background: #f5f5f4; }
.dd-badge {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.dd-badge.flagship { background: #E84565; color: #fff; }
.dd-badge.free, .dd-badge.new { background: #dcfce7; color: #15803d; }
.dd-badge.coming { background: #fef3c7; color: #b45309; }

/* Apply button */
.nav-apply {
  display: none;
  padding: 0.75rem 1.5rem;
  background: #E84565;
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none !important;
  transition: opacity 0.2s;
}
.nav-apply:hover { opacity: 0.9; }
@media (min-width: 768px) {
  .nav-apply { display: inline-flex; }
}

/* Mobile hamburger */
.nav-hamburger {
  display: block;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #1a1a1a;
}
@media (min-width: 768px) {
  .nav-hamburger { display: none; }
}
.nav-hamburger svg { width: 1.5rem; height: 1.5rem; }

/* Mobile menu */
.mobile-menu {
  display: none;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #e5e5e5;
  background: #fff;
}
.mobile-menu.open { display: block; }
@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}
.mobile-menu .mm-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.mobile-menu .mm-courses {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
}
.mobile-menu a:hover { color: #E84565; }

/* ===== PAGE CONTAINER ===== */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}
@media (min-width: 640px) {
  .page-container { padding: 2.5rem 1.5rem 3rem; }
}
@media (min-width: 1024px) {
  .page-container { padding: 2.5rem 2rem 4rem; }
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: #1a1a1a; text-decoration: none; }
.back-link svg { width: 1rem; height: 1rem; }

/* Two-column layout */
.two-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .two-col {
    flex-direction: row;
    gap: 1.5rem;
  }
}
.col-main {
  flex: 1;
  min-width: 0;
}
.col-sidebar {
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .col-sidebar { width: 360px; }
}

/* ===== ARTICLE CONTENT ===== */
.article-content .label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #E84565;
  margin-bottom: 1rem;
}
.article-content h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}
.article-content .subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2.5rem;
}
.article-content .byline {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 2.5rem;
}
.article-content h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}
.article-content p {
  margin-bottom: 1.25rem;
  color: #444;
  font-size: 1.05rem;
}
.article-content .formula {
  text-align: center;
  font-weight: 600;
  color: #1a1a1a;
  margin: 1.5rem 0;
}
.article-content .drop-cap::first-letter {
  float: left;
  font-family: 'Lora', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  margin-right: 0.15em;
  margin-top: 0.05em;
  color: #1a1a1a;
}
.article-content figure {
  margin: 2rem auto;
}
@media (min-width: 768px) {
  .article-content figure { max-width: 70%; margin-left: auto; margin-right: auto; }
}
.article-content figure img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}
.article-content figure.download-preview {
  max-width: 60%;
}
.article-content figure.download-preview img {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
@media (max-width: 767px) {
  .article-content figure.download-preview { max-width: 80%; }
}
.article-content em { font-style: italic; }
.article-content strong { font-weight: 700; color: #1a1a1a; }
.article-content a { color: #E84565; font-weight: 600; text-decoration: none; }
.article-content a:hover { text-decoration: underline; }
.article-content .highlight { color: #1a1a1a; font-weight: 600; }

.article-content ul.learn-list,
.article-content ul.preview-list,
.article-content ul.takeaways {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.article-content ul.learn-list li,
.article-content ul.preview-list li,
.article-content ul.takeaways li {
  margin-bottom: 0.5rem;
  color: #444;
  font-size: 1.05rem;
}
.article-content ul.takeaways li { margin-bottom: 0.75rem; }

.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-content ol li {
  margin-bottom: 1rem;
  color: #444;
  font-size: 1.05rem;
}

/* Video wrapper */
.article-content .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  margin-bottom: 2rem;
}
.article-content .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Download button */
.article-content .download-btn {
  display: inline-block;
  background: #E84565;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  transition: opacity 0.2s;
}
.article-content .download-btn:hover { opacity: 0.9; text-decoration: none; color: #fff; }

/* CTA boxes */
.article-content .cta-box {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #f7f7f5;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}
.article-content .cta-box p { color: #6b7280; margin-bottom: 0; }

/* ===== SIDEBAR ===== */
.sidebar-heading {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
}
.sidebar-card {
  display: flex;
  gap: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 0.625rem;
  text-decoration: none;
  transition: box-shadow 0.2s;
  margin-bottom: 0.75rem;
}
.sidebar-card:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.1); text-decoration: none; }
.sidebar-card .sc-img {
  width: 10rem;
  flex-shrink: 0;
  border-radius: 0.375rem;
  overflow: hidden;
}
.sidebar-card .sc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  display: block;
  transition: transform 0.3s;
}
.sidebar-card:hover .sc-img img { transform: scale(1.05); }
.sidebar-card .sc-text {
  flex: 1;
  min-width: 0;
  padding: 0.125rem 0;
}
.sidebar-card .sc-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.sidebar-card:hover .sc-title { color: #E84565; }
.sidebar-card .sc-desc {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* MBA Essentials CTA card */
.sidebar-cta {
  display: block;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
  background: #f5f5f4;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  transition: background 0.2s;
}
.sidebar-cta:hover { background: #e7e5e4; text-decoration: none; }
.sidebar-cta .cta-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.sidebar-cta .cta-header svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #444;
}
.sidebar-cta .cta-header h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
}
.sidebar-cta .cta-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.sidebar-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: #F43F5D;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0f1729;
  color: #fff;
  padding: 4rem 1.5rem;
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.footer-col-logo img {
  height: 3rem;
  width: auto;
  margin-bottom: 1rem;
}
.footer-col-logo p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-top: 1rem;
}
.footer-grid h4 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.75rem; }
.footer-grid a {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-grid .footer-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
