/* =========================================
   The Real Estate School — Shared Stylesheet
   ========================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --navy:    #071f3f;
  --navy-dk: #04162d;
  --navy-2:  #0b2d56;
  --gold:    #e8aa2f;
  --gold-lt: #f0b742;
  --gold-dark: #c88918;
  --cream:   #f7f8fb;
  --white:   #FFFFFF;
  --gray-lt: #f7f8fb;
  --gray:    #5e6b7a;
  --text:    #102033;
  --text-lt: #5e6b7a;
  --border:  #e4e8ef;
  --line:    #e4e8ef;
  --radius:  8px;
  --shadow:  0 4px 20px rgba(7,31,63,0.10);
  --shadow-lg: 0 18px 45px rgba(7,31,63,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--navy);
}

p { color: var(--text-lt); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #b8832a;
  border-color: #b8832a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,151,58,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dk);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* --- Navigation (Topbar) --- */
.topbar {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 18px rgba(0,0,0,0.18);
}

.nav-inner {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}
.logo-idaho {
  width: auto;
  height: 110px;
  flex-shrink: 0;
}
.brand-title {
  font-size: 30px;
  line-height: 0.9;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: -1px;
}
.brand-subtitle {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--white);
  text-transform: uppercase;
}
.brand-tagline {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  list-style: none;
}
.nav-links a { opacity: 0.92; }
.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.phone-link {
  font-weight: 800;
  text-align: right;
  line-height: 1.1;
  white-space: nowrap;
}
.phone-link small {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 700;
}

/* Gold button (new design) */
.btn-gold { background: var(--gold); color: #071f3f; }
.btn-gold:hover { background: var(--gold-lt); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dk) 100%);
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: 16px;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
}
.page-hero .gold-line {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 20px;
  border-radius: 2px;
}

/* --- Section Headings --- */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 14px;
}
.section-heading p {
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,0.78);
  padding: 28px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0; }
.bg-cream { background: var(--cream); }
.bg-gray-lt { background: var(--gray-lt); }

.gold-divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  /* Nav */
  .nav-inner { height: auto; padding: 18px 0; flex-wrap: wrap; }
  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  /* General layout */
  .section-pad { padding: 56px 0; }
  .container { padding: 0 16px; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .header-actions { width: 100%; justify-content: space-between; }
  .phone-link { text-align: left; }
  .brand { min-width: unset; }
  .brand-title { font-size: 25px; }
  .section-pad { padding: 40px 0; }
}


/* =========================================
   COURSE PAGES — prelicense.html & ce.html
   ========================================= */

/* --- Two-column course layout --- */
.course-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.course-detail-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 14px;
}

.course-detail h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 16px;
}

.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 18px;
}

/* --- Selling Points --- */
.selling-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 32px;
}

.sp-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

.sp-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.sp-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sp-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
}

.sp-text span {
  font-size: 14px;
  color: var(--text-lt);
  line-height: 1.5;
}

/* --- Instructor Card --- */
.instructor-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 32px 0;
}

.instructor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--navy);
}

.instructor-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.attorney-badge {
  display: inline-block;
  background: rgba(27,58,107,0.08);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 4px;
  width: fit-content;
}

.instructor-info h4 {
  font-size: 18px;
  color: var(--navy);
  margin: 0;
}

.instructor-title {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.instructor-info p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* --- Includes List --- */
.includes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.includes-list li {
  font-size: 15px;
  color: var(--text-lt);
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}

.includes-list li::before {
  content: 'check';
  font-family: 'Material Icons', sans-serif;
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  content: '✓';
}

/* --- Topics Grid --- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.topic-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  text-align: center;
}

/* --- Enroll Sidebar Card --- */
.enroll-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 88px;
}

.enroll-card-header {
  background: var(--navy);
  padding: 24px 28px;
}

.enroll-card-header h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 4px;
}

.enroll-card-header p {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  margin: 0;
}

.enroll-card-body {
  padding: 24px 28px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.detail-row:last-of-type {
  border-bottom: none;
}

.detail-row .label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
  flex-shrink: 0;
}

.detail-row .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
}

.badge-small {
  background: rgba(27,58,107,0.08);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.enroll-cta {
  margin-top: 20px;
  text-align: center;
}

.enroll-cta .btn {
  width: 100%;
  text-align: center;
  display: block;
}

.enroll-note {
  font-size: 13px;
  color: var(--gray);
  margin-top: 10px;
  margin-bottom: 0;
}

.enroll-note a { font-weight: 600; }

/* --- Review Cards (prelicense) --- */
.reviews-strip {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.reviews-strip h3 {
  font-size: 22px;
  margin-bottom: 24px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.review-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-card blockquote {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-lt);
  font-style: italic;
  margin-bottom: 16px;
  border: none;
  padding: 0;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.review-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-author-info strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
}

.review-author-info span {
  font-size: 12px;
  color: var(--gray);
}

/* =========================================
   CE PAGE SPECIFIC
   ========================================= */

/* --- CE Topics Grid --- */
.ce-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.ce-topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.ce-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.ce-topic-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
  font-family: 'Inter', sans-serif;
}

.ce-topic-card p {
  font-size: 12px;
  color: var(--gray);
  margin: 0;
}

/* --- CE Review Block --- */
.ce-review-block {
  background: var(--navy);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 16px;
}

.ce-review-block .review-stars {
  color: var(--gold-lt);
}

.ce-review-block blockquote {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 16px;
  border: none;
  padding: 0;
}

.ce-review-block .review-author-info strong {
  color: var(--white);
}

.ce-review-block .review-author-info span {
  color: rgba(255,255,255,0.55);
}

/* --- Summer Series Section --- */
.summer-section {
  background: var(--cream);
}

.summer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.summer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.summer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.summer-card-top {
  background: var(--navy);
  padding: 22px 24px 20px;
}

.summer-card-month {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-lt);
  margin-bottom: 8px;
}

.summer-card-top h3 {
  color: var(--white);
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
}

.summer-card-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.summer-card-body p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.summer-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.summer-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-lt);
}

.s-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.summer-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-pending {
  background: rgba(201,151,58,0.12);
  color: #9a6a10;
  border: 1px solid rgba(201,151,58,0.35);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dk) 100%);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 14px;
}

.cta-section p {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   RESPONSIVE — course pages
   ========================================= */
@media (max-width: 900px) {
  .course-layout {
    grid-template-columns: 1fr;
  }
  .enroll-card {
    position: static;
  }
  .ce-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sp-item { padding: 14px 16px; }
  .instructor-card { flex-direction: column; align-items: center; text-align: center; }
  .reviews-grid { grid-template-columns: 1fr; }
  .summer-cards { grid-template-columns: 1fr; }
  .ce-topics-grid { grid-template-columns: repeat(2, 1fr); }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
}
