/* ==========================================================================
   HOMEPAGE BODY & CONTENT STYLES
   ========================================================================== */

/* Main Container Wrapper */
.homepage-main {
  width: 100%;
  background-color: var(--bg-main, #f8fafc);
  color: var(--text-main, #0f172a);
}

/* Base Buttons used in Content */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm, 8px);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary, #1e3a8a);
  color: #ffffff;
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
}

.btn-primary:hover {
  background-color: var(--primary-hover, #1d4ed8);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
}

.btn-secondary {
  background-color: var(--bg-surface, #ffffff);
  color: var(--primary, #1e3a8a);
  border: 1px solid var(--border, #e2e8f0);
}

.btn-secondary:hover {
  background-color: var(--primary-light, #eff6ff);
}

/* Sections Core Layout */
.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main, #0f172a);
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-muted, #334155);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* 1. Hero Section */
.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, var(--primary-light, #eff6ff) 0%, var(--bg-main, #f8fafc) 100%);
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary, #1e3a8a);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted, #334155);
  max-width: 780px;
  margin: 0 auto 2rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* 2. Interactive Study Flashcard Module */
.interactive-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 1.75rem;
  max-width: 750px;
  margin: 0 auto 2rem;
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
}

.card-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.flashcard-box {
  background: var(--primary-light, #eff6ff);
  border: 2px dashed var(--focus-ring, #2563eb);
  border-radius: var(--radius-md, 12px);
  padding: 1.75rem 1.25rem;
  text-align: center;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.flashcard-box p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main, #0f172a);
}

.flashcard-hint {
  font-size: 0.85rem;
  color: var(--text-muted, #334155);
  margin-top: 0.75rem;
}

/* 3. Subjects Grid */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.subject-card {
  background-color: var(--bg-surface, #ffffff);
  border-left: 4px solid var(--secondary, #0f766e);
  border-top: 1px solid var(--border, #e2e8f0);
  border-right: 1px solid var(--border, #e2e8f0);
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 1.5rem;
  border-radius: var(--radius-sm, 8px);
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
}

.subject-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main, #0f172a);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.badge {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--primary-light, #eff6ff);
  color: var(--primary, #1e3a8a);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}

/* 4. Features & Cards Grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm, 8px);
  background-color: var(--primary-light, #eff6ff);
  color: var(--primary, #1e3a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  font-weight: bold;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-main, #0f172a);
}

.card p {
  color: var(--text-muted, #334155);
  font-size: 0.95rem;
}

/* Mobile Responsive Adjustments for Main Body Content */
@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}