/* ===== SHARED SUB-PAGE STYLES ===== */
/* Used by free_trial, parent_or_guardian, join_school, resources */

/* Sticky Nav (same as index) */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo span {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--emerald);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--emerald);
}

.nav-links .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* Sub-page Hero */
.subpage-hero {
  padding: 7.5rem 1.5rem 3rem;
  background: linear-gradient(160deg, var(--sun) 0%, var(--gold) 100%);
  text-align: center;
  position: relative;
}

.subpage-hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--background-light));
  pointer-events: none;
}

.subpage-hero .hero-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.subpage-hero img.hero-logo {
  height: 64px;
  margin-bottom: 1rem;
}

.subpage-hero h1 {
  font-size: 2rem;
  color: var(--emerald);
  margin-bottom: 0.5rem;
}

.subpage-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Form Section */
.form-section {
  padding: 3rem 1.5rem 4rem;
  background: var(--background-light);
}

.form-wrapper {
  max-width: 560px;
  margin: 0 auto;
}

.form-wrapper > p {
  text-align: center;
  margin-bottom: 2rem;
}

.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(11, 74, 9, 0.08);
}

.form-card h3:not(:first-child) {
  margin-top: 1.5rem;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 0.75rem;
  background: #fafafa;
}

.form-card input:focus,
.form-card textarea:focus {
  border-color: var(--mustard);
  box-shadow: 0 0 0 3px rgba(247, 184, 1, 0.12);
  outline: none;
  background: #fff;
}

.form-card button {
  width: 100%;
  padding: 0.85rem 1.5rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  border-radius: 10px;
  background: var(--primary-color);
  color: var(--text-dark);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.form-card button:hover {
  background: var(--primary-color-hover);
  transform: translateY(-2px);
}

/* Info Cards (used on parent page) */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.info-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.info-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Divider */
.section-divider {
  text-align: center;
  padding: 1rem 0;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.video-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.video-card iframe {
  width: 100%;
  height: 200px;
  display: block;
}

.video-card .video-info {
  padding: 1.25rem;
}

.video-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.video-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Footer (matching index) */
.footer-new {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-new p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.25rem;
}

.footer-new a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-new a:hover {
  color: var(--mustard);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

/* CTA banner */
.cta-banner {
  padding: 3.5rem 1.5rem;
  background: linear-gradient(160deg, var(--emerald) 0%, #0a3d08 100%);
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.cta-banner .btn.primary {
  box-shadow: 0 4px 16px rgba(247, 184, 1, 0.35);
}

/* ===== Legal / Document pages (privacy, terms, agreements) ===== */
.legal-section {
  padding: 3rem 1.5rem 4rem;
  background: var(--background-light);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content .last-updated {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.legal-content .lead {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(11, 74, 9, 0.1);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--denim);
}

.legal-content p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0 0 1.25rem 0;
  padding-left: 0;
  list-style: none;
}

.legal-content ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-content ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--teal);
  font-weight: 700;
}

.legal-content ul li strong {
  color: var(--text-dark);
}

.legal-content a {
  color: var(--denim);
  font-weight: 600;
}

.legal-content hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 2.5rem 0;
}

.legal-contact {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.legal-contact p {
  margin-bottom: 0.35rem;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

/* Agreement cards (user agreements page) */
.agreement-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}

.agreement-card .agreement-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.agreement-card .agreement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sun), var(--gold));
  font-size: 1.35rem;
  flex-shrink: 0;
}

.agreement-card h2 {
  border: none;
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
}

.agreement-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.agreement-card p:last-child {
  margin-bottom: 0;
}

.agreement-card .agreement-quote {
  background: var(--background-light);
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  font-style: italic;
  color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 248, 246, 0.98);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .subpage-hero h1 {
    font-size: 1.65rem;
  }
}

@media (max-width: 500px) {
  .subpage-hero {
    padding: 6.5rem 1rem 2rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Blog index ===== */
.blog-section {
  padding: 2.5rem 1.5rem 4rem;
  background: var(--background-light);
}

.blog-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.blog-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.blog-search-wrap input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 100px;
  font-size: 0.98rem;
  font-family: 'Inter', sans-serif;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-search-wrap input:focus {
  border-color: var(--mustard);
  box-shadow: 0 0 0 3px rgba(247, 184, 1, 0.12);
  outline: none;
}

.blog-search-wrap .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.5;
  pointer-events: none;
}

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

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.blog-card > a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-banner {
  height: 130px;
  background: var(--banner, linear-gradient(135deg, var(--sun), var(--gold)));
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-banner span {
  font-size: 3rem;
}

.blog-card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--emerald);
  background: rgba(11, 74, 9, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.7rem;
}

.blog-card-body h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-meta {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.blog-card-meta span + span::before {
  content: "\00B7";
  margin: 0 0.4rem;
  opacity: 0.6;
}

.blog-no-results {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 2rem 0;
}

/* ===== Blog article ===== */
.article-hero .hero-inner {
  max-width: 720px;
}

.article-hero h1 {
  font-size: 2.1rem;
  line-height: 1.25;
}

.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.article-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.article-meta span + span::before {
  content: "\00B7";
  margin: 0 0.45rem;
  opacity: 0.6;
}

.article-section {
  padding: 3rem 1.5rem 1rem;
  background: var(--background-light);
}

.article-back {
  max-width: 720px;
  margin: 0 auto 1.75rem;
}

.article-back a {
  color: var(--denim);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.article-back a:hover {
  text-decoration: underline;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content .article-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.article-content p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--emerald);
}

.article-content h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--denim);
}

.article-content ul {
  margin: 0 0 1.5rem;
  padding-left: 0;
  list-style: none;
}

.article-content ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.article-content ul li strong {
  color: var(--text-dark);
}

.article-content blockquote {
  margin: 1.75rem 0;
  padding: 1.1rem 1.4rem;
  background: #fff;
  border-left: 4px solid var(--mustard);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.article-content blockquote p {
  margin-bottom: 0;
  font-size: 1.02rem;
  color: var(--text-dark);
}

.article-content hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 2.5rem 0;
}

.article-content a {
  color: var(--denim);
  font-weight: 600;
}

@media (max-width: 500px) {
  .article-hero h1 {
    font-size: 1.55rem;
  }

  .article-content h2 {
    font-size: 1.3rem;
  }
}
