/* ═══════════════════════════════════════════════════════════
   Dr. Chen's Classroom — Material Theme Custom Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  --fsu-gold: #c8a951;
  --fsu-navy: #0f3460;
  --fsu-dark: #1a1a2e;
}

/* ── Hero Section ──────────────────────────────────────── */
.tx-hero {
  margin: 0;
  padding: 4rem 1rem 6rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.tx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,169,81,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(63,114,175,0.15) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8a951' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0zm40 40h40v40H40z'/%3E%3C/g%3E%3C/svg%3E");
}

.tx-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tx-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200,169,81,0.12);
  border: 1px solid rgba(200,169,81,0.35);
  color: #c8a951;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.tx-hero__title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.5px;
}

.tx-hero__title em {
  font-style: normal;
  color: #c8a951;
}

.tx-hero__subtitle {
  color: #a8c0d6;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tx-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tx-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.tx-hero__link--primary {
  background: #c8a951;
  color: #1a1a2e !important;
}

.tx-hero__link--primary:hover {
  background: #d4b866;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,169,81,0.35);
}

.tx-hero__link--secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff !important;
}

.tx-hero__link--secondary:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* ── Stats Strip ───────────────────────────────────────── */
.tx-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  flex-wrap: wrap;
}

[data-md-color-scheme="slate"] .tx-stats {
  background: #1e2029;
  border-bottom-color: #2d3040;
}

.tx-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 2rem;
  border-right: 1px solid #e8eaed;
  min-width: 120px;
}

[data-md-color-scheme="slate"] .tx-stat {
  border-right-color: #2d3040;
}

.tx-stat:last-child { border-right: none; }

.tx-stat__num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--fsu-navy);
  line-height: 1;
}

[data-md-color-scheme="slate"] .tx-stat__num {
  color: #c8a951;
}

.tx-stat__label {
  font-size: 0.72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.25rem;
}

/* ── Section Headings ──────────────────────────────────── */
.tx-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.tx-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fsu-dark);
  margin: 0 0 0.4rem;
}

[data-md-color-scheme="slate"] .tx-section__title {
  color: #e8eaed;
}

.tx-section__subtitle {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

[data-md-color-scheme="slate"] .tx-section__subtitle {
  color: #a0a8b8;
}

/* ── Course Cards ──────────────────────────────────────── */
.tx-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.tx-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e4ec;
  border-radius: 0.6rem;
  padding: 1.4rem 1.5rem;
  text-decoration: none !important;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

[data-md-color-scheme="slate"] .tx-card {
  background: #1e2029;
  border-color: #2d3040;
}

.tx-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--fsu-navy), #c8a951);
  opacity: 0;
  transition: opacity 0.2s;
}

.tx-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  border-color: #c8a951;
  text-decoration: none !important;
}

.tx-card:hover::after { opacity: 1; }

.tx-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.tx-card__code {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fsu-navy);
  background: #eef2ff;
  padding: 0.2rem 0.6rem;
  border-radius: 0.3rem;
  margin-bottom: 0.6rem;
}

[data-md-color-scheme="slate"] .tx-card__code {
  background: #2d3a5a;
  color: #7eb8f7;
}

.tx-card__title {
  font-size: 0.97rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

[data-md-color-scheme="slate"] .tx-card__title {
  color: #e0e6f0;
}

.tx-card__meta {
  font-size: 0.78rem;
  color: #888;
  margin: 0;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

[data-md-color-scheme="slate"] .tx-card__meta {
  border-top-color: #2d3040;
}

.tx-card__badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: var(--fsu-navy);
  color: #c8a951;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  letter-spacing: 0.5px;
}

/* ── Reading Cards (highlighted) ───────────────────────── */
.tx-card--featured .tx-card__code {
  background: #e8f4e8;
  color: #2d6a2d;
}

[data-md-color-scheme="slate"] .tx-card--featured .tx-card__code {
  background: #1a3a1a;
  color: #7ecf7e;
}

/* ── Feature Grid ──────────────────────────────────────── */
.tx-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  background: #f8f9fa;
  padding: 3rem 1.5rem;
  margin: 0 -1.5rem;
}

[data-md-color-scheme="slate"] .tx-features {
  background: #161820;
}

.tx-feature {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 300px;
}

.tx-feature__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--fsu-navy), #3a7bd5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.tx-feature__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a2e;
}

[data-md-color-scheme="slate"] .tx-feature__title {
  color: #e0e6f0;
}

.tx-feature__text {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

[data-md-color-scheme="slate"] .tx-feature__text {
  color: #a0a8b8;
}

/* ── University Footer Band ────────────────────────────── */
.tx-uni-band {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 3px solid #c8a951;
}

.tx-uni-band img {
  height: 48px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.tx-uni-band a {
  color: #c8a951;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.tx-uni-band a:hover { text-decoration: underline; }

.tx-uni-band p {
  color: #7a8fa8;
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .tx-stats { flex-direction: row; flex-wrap: wrap; }
  .tx-stat { flex: 1 1 50%; border-right: none; border-bottom: 1px solid #e8eaed; }
  .tx-hero { padding: 3rem 1rem 4rem; }
}

/* ── Content Tweaks ────────────────────────────────────── */
.md-content { max-width: 100% !important; }
.md-content__inner > h1:first-child { display: none; }
