/* === RESET & GLOBAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #f8f9fa;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === HEADER / NAVIGATION === */
.site-header {
  background: white;
  border-bottom: 1px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d6efd;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.nav-link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  color: #495057;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  font-size: 0.95rem;
}

.nav-link:hover {
  background: #e9ecef;
  color: #0d6efd;
}

.nav-link.active {
  background: #0d6efd;
  color: white;
}

/* === MAIN CONTENT === */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* HERO (landing page) */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}
/* HERO FEATURES - FORCED LEFT ALIGNMENT */
.hero-features {
    text-align: left !important;  /* ← Added !important */
    list-style: none;
    max-width: 500px;
    margin: 1rem auto;
    padding: 0;
    color: #495057;
    font-size: 1.05rem;
    line-height: 2;
}

.hero-features li {
    padding-left: 1.8rem;
    position: relative;
}

.hero-features li::before {
    content: "✦";
    color: #0d6efd;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* Topic grid (landing page) */
.section-heading {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.topic-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border-color: #0d6efd;
}

.topic-card-number {
  font-weight: 700;
  color: #0d6efd;
  font-size: 1.2rem;
}

.topic-card-title {
  flex: 1;
  font-weight: 500;
}

.topic-card-arrow {
  color: #adb5bd;
  font-size: 1.1rem;
}

/* TOPIC PAGE */
.topic-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.content-block {
  margin-bottom: 2.5rem;
}

.textbox {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: visible;
  min-height: 80px;
  line-height: 1.7;
}

.image-wrapper {
  margin-bottom: 1.5rem;
  text-align: center;
}

.image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #f1f3f5;
}

.separator {
  border: none;
  border-top: 1px dashed #ced4da;
  margin: 1.8rem 0;
}

/* --- VIDEO PLACEHOLDER --- */
.video-wrapper video {
    display: none;
}

.video-wrapper video.loaded {
    display: block;
}

.video-wrapper .video-placeholder {
    display: block;
    padding: 30px 20px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    color: #888;
    font-size: 1rem;
    border: 1px dashed #ced4da;
}

.video-wrapper .video-placeholder.hidden {
    display: none;
}

/* === FOOTER === */
.site-footer {
  background: white;
  border-top: 1px solid #dee2e6;
  text-align: center;
  padding: 1.2rem;
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: auto;
}



/* === FORCE MEDIA STYLING (3x thicker borders) === */

/* Black border around ALL images - 12px thick */
.image-wrapper img {
    border: 12px solid #000000 !important;
    border-radius: 8px !important;
}

/* Thick blue border around ALL videos - 12px thick */
.image-wrapper video {
    border: 12px solid #0d6efd !important;
    border-radius: 8px !important;
    display: block !important;
}

/* Shadow for both */
.image-wrapper img,
.image-wrapper video {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Hover effect */
.image-wrapper video:hover,
.image-wrapper img:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
    transition: box-shadow 0.3s ease !important;
}