/* RC Plane Lab Beginners Lounge — style.css
   Colors matched to rcplanelab.com (Gumbo theme)
   Blue: #21759b | Nav: #222 | Body: #fff | Font: Lato */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #21759b;
  --blue-dk:   #1a5e7a;
  --blue-lt:   #e8f4f8;
  --nav:       #222222;
  --topbar:    #1a1a1a;
  --black:     #1a1a1a;
  --dark:      #333333;
  --mid:       #555555;
  --light:     #888888;
  --border:    #dddddd;
  --bg:        #ffffff;
  --bg-alt:    #f7f7f7;
  --hdr-h:     62px;
  --max-w:     1100px;
}

html { font-size: 16px; }
body { font-family: 'Lato', Arial, sans-serif; font-size: 16px; line-height: 1.6;
       color: var(--dark); background: var(--bg); overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dk); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { font-family: 'Lato', Arial, sans-serif; font-weight: 700;
               line-height: 1.2; color: var(--black); margin-bottom: .45em; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--black); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ── BUTTONS ── */
.btn { display: inline-block; font-family: 'Lato', Arial, sans-serif;
       font-size: 13px; font-weight: 700; text-transform: uppercase;
       letter-spacing: .08em; padding: 10px 22px; border-radius: 3px;
       border: 2px solid transparent; cursor: pointer;
       text-decoration: none !important; transition: all .15s; line-height: 1; }
.btn-blue  { background: var(--blue);    color: #fff !important; border-color: var(--blue); }
.btn-blue:hover  { background: var(--blue-dk); border-color: var(--blue-dk); color: #fff !important; }
.btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.13); border-color: #fff; }
.btn-outline { background: transparent; color: var(--dark) !important; border-color: #aaa; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue) !important; }
.btn-sm { font-size: 11px; padding: 6px 14px; }

/* ── TOPBAR ── */
.topbar { background: var(--topbar); color: rgba(255,255,255,.65);
          font-size: 12px; padding: 5px 20px; }
.topbar-inner { max-width: var(--max-w); margin: 0 auto;
                display: flex; justify-content: space-between;
                align-items: center; flex-wrap: wrap; gap: 4px; }
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar-right { display: flex; gap: 14px; }

/* ── HEADER ── */
.site-header { background: var(--nav); position: sticky; top: 0; z-index: 300;
               height: var(--hdr-h); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header.scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hdr-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
             height: 100%; display: flex; align-items: center;
             justify-content: space-between; gap: 12px; }

/* Logo */
.site-logo { display: flex; align-items: center; gap: 9px;
             text-decoration: none !important; flex-shrink: 0; }
.logo-img  { width: 42px; height: 42px; object-fit: contain; border-radius: 3px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-site { font-size: 16px; font-weight: 700; color: #fff;
             text-transform: uppercase; letter-spacing: .05em; }
.logo-sub  { font-size: 10px; font-weight: 400; color: #7bc8e2;
             letter-spacing: .14em; text-transform: uppercase; }

/* Nav */
.main-nav ul { list-style: none; display: flex; gap: 2px; }
.main-nav ul li a { font-size: 12px; font-weight: 700; text-transform: uppercase;
                    letter-spacing: .06em; color: rgba(255,255,255,.82) !important;
                    padding: 6px 11px; border-radius: 2px;
                    text-decoration: none !important; display: block;
                    transition: color .12s, background .12s; white-space: nowrap; }
.main-nav ul li a:hover,
.main-nav ul li a.active { color: #fff !important; background: rgba(255,255,255,.11); }
.nav-yt { color: #7bc8e2 !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px;
             background: none; border: 1px solid rgba(255,255,255,.3);
             border-radius: 3px; padding: 7px 8px; cursor: pointer; flex-shrink: 0; }
.hamburger span { display: block; width: 20px; height: 2px; background: #fff;
                  transition: transform .22s, opacity .22s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav { display: none; position: fixed; top: var(--hdr-h); left: 0; right: 0;
              background: #2a2a2a; z-index: 299; padding: 8px 0 16px;
              box-shadow: 0 8px 24px rgba(0,0,0,.4);
              border-top: 1px solid rgba(255,255,255,.1); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 12px 24px; font-size: 15px; font-weight: 700;
                text-transform: uppercase; letter-spacing: .05em;
                color: rgba(255,255,255,.85) !important; text-decoration: none !important;
                border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-nav a:hover { background: rgba(255,255,255,.07); color: #fff !important; }
.mobile-nav a:last-child { border-bottom: none; }

/* ── SEARCH ── */
.site-search { padding: 7px 20px; background: var(--bg-alt);
               border-bottom: 1px solid var(--border); }
.search-inner { max-width: var(--max-w); margin: 0 auto;
                display: flex; gap: 8px; align-items: center; }
.search-label { font-size: 11px; color: var(--light); font-weight: 700;
                text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.search-wrap  { position: relative; flex: 1; max-width: 380px; }
.search-input { width: 100%; padding: 6px 13px; border: 1px solid var(--border);
                border-radius: 3px; font-family: 'Lato', Arial, sans-serif;
                font-size: 13px; outline: none; transition: border-color .15s; background: #fff; }
.search-input:focus { border-color: var(--blue); }
.search-results { background: #fff; border: 1px solid var(--border); border-radius: 3px;
                  box-shadow: 0 4px 18px rgba(0,0,0,.10); max-height: 300px;
                  overflow-y: auto; position: absolute; top: calc(100% + 4px);
                  left: 0; width: 100%; z-index: 400; display: none; }
.search-results a { display: block; padding: 9px 13px; font-size: 13px; color: var(--dark) !important;
                    border-bottom: 1px solid var(--border); text-decoration: none !important; }
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--blue-lt); color: var(--blue) !important; }
.search-results a strong { color: var(--blue); }
.search-results.visible { display: block; }

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--border);
              padding: 7px 20px; font-size: 12px; color: var(--light); }
.bc-inner { max-width: var(--max-w); margin: 0 auto; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span.sep { margin: 0 5px; }

/* ── COURSE NAV BAR ── */
.course-nav { background: var(--bg-alt); border-bottom: 1px solid var(--border);
              overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.course-nav::-webkit-scrollbar { display: none; }
.course-nav-inner { max-width: var(--max-w); margin: 0 auto;
                    display: inline-flex; min-width: 100%; padding: 0 20px; }
.course-nav a { font-size: 11px; font-weight: 700; text-transform: uppercase;
                letter-spacing: .04em; color: var(--light); text-decoration: none !important;
                padding: 10px 11px; border-bottom: 3px solid transparent;
                white-space: nowrap; flex-shrink: 0;
                transition: color .12s, border-color .12s; display: inline-block; }
.course-nav a:hover { color: var(--dark); border-bottom-color: var(--border); }
.course-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ── HERO ── */
.page-hero { background: #2a2a2a; padding: 42px 20px 48px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0;
                     background: linear-gradient(135deg,rgba(33,117,155,.2) 0%,transparent 55%); }
.hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase;
           letter-spacing: .2em; color: #7bc8e2; margin-bottom: 10px; display: block; }
.page-hero h1 { font-size: clamp(1.7rem,4vw,2.7rem); color: #fff;
                margin-bottom: 12px; line-height: 1.1; }
.page-hero p  { font-size: 1rem; color: rgba(255,255,255,.76); max-width: 660px; line-height: 1.7; }

/* Home hero */
.home-hero { background: #2a2a2a; padding: 60px 20px 68px; position: relative; overflow: hidden; }
.home-hero::before { content: ''; position: absolute; inset: 0;
                     background: linear-gradient(135deg,rgba(33,117,155,.22) 0%,transparent 55%); }
.home-hero h1 { font-size: clamp(2rem,5vw,3.6rem); color: #fff; margin-bottom: 14px; line-height: 1.05; }
.home-sub { font-size: 1.05rem; color: rgba(255,255,255,.76); max-width: 640px;
            line-height: 1.72; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── PAGE BODY ── */
.page-body-wrap { background: var(--bg); }
.page-body { display: flex; gap: 38px; max-width: var(--max-w); margin: 0 auto;
             padding: 34px 20px 52px; align-items: flex-start; }
.page-content { flex: 1; min-width: 0; }
.page-sidebar { width: 262px; flex-shrink: 0; }

/* Content typography */
.page-content h2 { font-size: 1.5rem; margin: 28px 0 10px; color: var(--black); }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 1.1rem; margin: 20px 0 7px; color: var(--black); }
.page-content h4 { font-size: 1rem; margin: 14px 0 5px; }
.page-content p  { color: var(--dark); line-height: 1.78; margin-bottom: 1em; }
.page-content ul,
.page-content ol { padding-left: 22px; margin-bottom: 1em; }
.page-content li { margin-bottom: 7px; line-height: 1.65; color: var(--dark); }
.page-content li strong { color: var(--black); }
.page-content a { color: var(--blue); }
.page-content a:hover { color: var(--blue-dk); text-decoration: underline; }
.page-content hr { border: none; border-top: 1px solid var(--border); margin: 26px 0; }

/* ── CALLOUTS ── */
.callout { border-left: 5px solid; border-radius: 3px; padding: 13px 17px;
           margin: 18px 0; font-size: 14.5px; line-height: 1.65; }
.callout p { margin: 0; line-height: 1.65; font-size: 14.5px; }
.callout strong { display: block; margin-bottom: 3px; font-size: 15px; }
.callout-tip  { background: #fffbe5; border-color: #e8c000; }
.callout-tip strong  { color: #7a5f00; }
.callout-warn { background: #fff8e1; border-color: #e8a000; }
.callout-warn strong { color: #7a4a00; }
.callout-info { background: var(--blue-lt); border-color: var(--blue); }
.callout-info strong { color: var(--blue-dk); }
.callout-ok   { background: #eafaf1; border-color: #27ae60; }
.callout-ok strong   { color: #1a6b3a; }

/* ── SIDEBAR ── */
.sidebar-box { background: var(--bg-alt); border: 1px solid var(--border);
               border-top: 4px solid var(--blue); border-radius: 3px;
               padding: 15px; margin-bottom: 16px; }
.sidebar-box h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em;
                  margin-bottom: 10px; color: var(--black); }
.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box ul li { margin-bottom: 5px; }
.sidebar-box ul li a { font-size: 13px; color: var(--blue); text-decoration: none; }
.sidebar-box ul li a:hover { text-decoration: underline; }
.sidebar-box ul li a.active { font-weight: 700; color: var(--dark); pointer-events: none; }
.sidebar-box p { font-size: 13px; color: var(--mid); line-height: 1.6; }

/* ── PROGRESS TRACKER ── */
.progress-box { background: var(--blue-lt); border: 1px solid var(--blue);
                border-top: 4px solid var(--blue); border-radius: 3px;
                padding: 13px 15px; margin-bottom: 16px; }
.progress-box h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em;
                   color: var(--blue-dk); margin-bottom: 9px; }
.prog-bar-wrap { background: #c5dfe9; border-radius: 20px; height: 8px;
                 margin-bottom: 6px; overflow: hidden; }
.prog-bar-fill { background: var(--blue); height: 8px; border-radius: 20px;
                 transition: width .4s ease; width: 0%; }
.prog-label { font-size: 12px; color: var(--blue-dk); margin-bottom: 9px; }
.prog-lessons { list-style: none; padding: 0; max-height: 230px; overflow-y: auto; }
.prog-lessons li { display: flex; align-items: center; gap: 7px; padding: 4px 0;
                   font-size: 12px; border-bottom: 1px solid rgba(33,117,155,.12); }
.prog-lessons li:last-child { border: none; }
.prog-check { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--blue);
              flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.prog-lessons li.done .prog-check { background: var(--blue); border-color: var(--blue); }
.prog-lessons li.done .prog-check::after { content: '✓'; font-size: 9px; color: #fff; font-weight: 700; }
.prog-lessons li a { color: var(--dark); text-decoration: none; font-size: 12px; }
.prog-lessons li a:hover { color: var(--blue); text-decoration: underline; }
.prog-lessons li.current a { font-weight: 700; color: var(--blue); }
.continue-btn { display: block; text-align: center; margin-top: 9px; font-size: 12px;
                font-weight: 700; color: var(--blue); background: #fff;
                border: 1px solid var(--blue); border-radius: 3px; padding: 7px 10px;
                text-decoration: none !important; transition: background .13s, color .13s; }
.continue-btn:hover { background: var(--blue); color: #fff !important; }

/* ── PREV / NEXT ── */
.lesson-nav { display: flex; justify-content: space-between; gap: 12px;
              margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border);
              flex-wrap: wrap; }
.lesson-nav a { display: flex; flex-direction: column; flex: 1; min-width: 120px;
                text-decoration: none !important; border: 1px solid var(--border);
                border-radius: 3px; padding: 12px 14px;
                transition: border-color .13s, background .13s; }
.lesson-nav a:hover { border-color: var(--blue); background: var(--blue-lt); }
.ln-label { font-size: 10px; font-weight: 700; text-transform: uppercase;
            letter-spacing: .09em; color: var(--light); margin-bottom: 4px; }
.ln-title { font-size: 14px; font-weight: 700; color: var(--dark); }
.lesson-nav .next { text-align: right; }

/* ── INDEX CARDS ── */
.about-band { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 34px 20px; }
.about-band h2 { font-size: 1.45rem; margin-bottom: 8px; }
.about-band p { color: var(--mid); line-height: 1.78; max-width: 760px; margin-bottom: 16px; }
.about-badges { display: flex; gap: 22px; flex-wrap: wrap; }
.ab-item { display: flex; align-items: center; gap: 9px; }
.ab-item span { font-size: 1.4rem; }
.ab-item strong { display: block; font-size: 13px; color: var(--black); }
.ab-item p { font-size: 12px; color: var(--mid); margin: 0; }
.lessons-band { padding: 40px 20px; background: var(--bg); }
.lessons-band h2 { font-size: 1.45rem; margin-bottom: 6px; }
.section-sub { color: var(--mid); margin-bottom: 20px; line-height: 1.65; }
.cta-band { background: var(--nav); padding: 40px 20px; }
.cta-band h2 { font-size: 1.45rem; color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.72); max-width: 560px; line-height: 1.7; margin-bottom: 20px; }
.index-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 16px; margin-top: 18px; }
.index-card { display: block; border: 1px solid var(--border); border-top: 4px solid var(--blue);
              border-radius: 3px; padding: 16px; text-decoration: none !important;
              background: var(--bg); color: var(--dark) !important;
              transition: transform .14s, box-shadow .14s; }
.index-card:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(0,0,0,.08); }
.card-num { font-size: 2rem; font-weight: 700; color: #e4e4e4; line-height: 1; margin-bottom: 4px; }
.index-card h3 { font-size: .95rem; color: var(--black); margin-bottom: 6px;
                 text-transform: uppercase; letter-spacing: .03em; }
.index-card p { font-size: 13px; color: var(--mid); line-height: 1.6; margin: 0; }
.card-cta { display: block; margin-top: 9px; font-size: 12px; font-weight: 700; color: var(--blue); }

/* ── PRODUCT / RECOMMENDATION CARDS ── */
.product-card { border: 1px solid var(--border); border-radius: 4px; padding: 20px;
                margin: 16px 0; position: relative; background: var(--bg); }
.product-card.featured { border: 2px solid var(--blue); }
.prod-badge { position: absolute; top: -10px; left: 16px; background: var(--blue);
              color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase;
              letter-spacing: .10em; padding: 3px 11px; border-radius: 2px; }
.product-card h3 { font-size: 1.15rem; margin: 0 0 9px; }
.product-card p { font-size: 14px; color: var(--mid); line-height: 1.65; margin-bottom: 11px; }
.prod-specs { list-style: none; padding: 0; margin: 0 0 12px;
              display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.prod-specs li { font-size: 13px; color: var(--mid); }
.prod-specs li strong { color: var(--dark); }

/* ── TERMS / GLOSSARY ── */
.term-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
             gap: 11px; margin: 13px 0; }
.term-card { background: var(--bg-alt); border: 1px solid var(--border);
             border-left: 4px solid var(--blue); border-radius: 3px; padding: 11px 14px; }
.term-word { display: block; font-size: 1rem; font-weight: 700; color: var(--blue);
             text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.term-card p { font-size: 13px; color: var(--mid); line-height: 1.55; margin: 0; }

/* ── BADGE GRID (RTF/BNF etc) ── */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
              gap: 11px; margin: 13px 0; }
.badge-card { background: var(--bg-alt); border: 1px solid var(--border);
              border-radius: 3px; padding: 14px 16px; }
.rc-badge { display: inline-block; background: var(--blue); color: #fff; font-size: 10px;
            font-weight: 700; letter-spacing: .10em; text-transform: uppercase;
            padding: 3px 9px; border-radius: 2px; margin-bottom: 7px; }
.badge-card strong { display: block; font-size: 14px; margin-bottom: 5px; color: var(--black); }
.badge-card p { font-size: 13px; color: var(--mid); margin: 0; line-height: 1.55; }

/* ── CHECKLIST ── */
.check-list { list-style: none; padding: 0; margin: 13px 0; }
.check-list li { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0;
                 border-bottom: 1px solid var(--border); font-size: 14.5px;
                 line-height: 1.55; color: var(--dark); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: '\2610'; font-size: 1.05rem; color: var(--blue);
                         flex-shrink: 0; margin-top: 1px; }

/* ── COMPARE TABLE ── */
.compare-table { width: 100%; border-collapse: collapse; margin: 13px 0; font-size: 13.5px; }
.compare-table th { background: var(--nav); color: #fff; font-weight: 700;
                    text-align: left; padding: 9px 13px; }
.compare-table td { padding: 9px 13px; border-bottom: 1px solid var(--border); color: var(--dark); }
.compare-table tr:nth-child(even) td { background: var(--bg-alt); }
.compare-table .yes   { color: #27ae60; font-weight: 700; }
.compare-table .no    { color: #c0392b; }
.compare-table .maybe { color: #d68910; }

/* ── DECISION TREE ── */
.decision-tree { border: 1px solid var(--border); border-radius: 4px;
                 background: var(--bg-alt); padding: 18px; margin: 16px 0; }
.decision-tree h3 { font-size: .9rem; color: var(--blue-dk); margin-bottom: 12px;
                    text-transform: uppercase; letter-spacing: .04em; }
.d-row { display: flex; align-items: stretch; margin-bottom: 8px;
         border-radius: 3px; overflow: hidden; border: 1px solid var(--border); }
.d-if   { background: var(--blue); color: #fff; padding: 9px 13px; font-size: 13px;
          font-weight: 700; min-width: 150px; flex-shrink: 0; display: flex; align-items: center; }
.d-arr  { background: var(--blue-dk); color: #fff; padding: 9px 7px; font-size: 13px;
          display: flex; align-items: center; }
.d-then { background: #fff; padding: 9px 13px; font-size: 13px; color: var(--dark);
          display: flex; align-items: center; flex: 1; }
.d-then a { color: var(--blue); font-weight: 700; }

/* ── TROUBLE CARDS ── */
.trouble-grid { display: grid; gap: 13px; margin: 16px 0; }
.trouble-card { border: 1px solid var(--border); border-left: 5px solid var(--blue);
                border-radius: 3px; padding: 15px 17px; background: var(--bg); }
.trouble-card h3 { font-size: .98rem; color: var(--black); margin-bottom: 7px; }
.trouble-card p,
.trouble-card li { font-size: 13.5px; color: var(--mid); line-height: 1.65; }
.trouble-card ol,
.trouble-card ul { padding-left: 19px; margin: 7px 0 0; }
.trouble-card li { margin-bottom: 4px; }

/* ── GLOSSARY ── */
.gloss-alpha { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0 22px; }
.gloss-alpha a { font-size: 13px; font-weight: 700; color: var(--blue);
                 padding: 3px 9px; border: 1px solid var(--blue); border-radius: 3px;
                 text-decoration: none !important; transition: background .12s; }
.gloss-alpha a:hover { background: var(--blue); color: #fff !important; }
.gloss-section { margin-bottom: 22px; }
.gloss-letter { font-size: 1.3rem; font-weight: 700; color: var(--blue);
                border-bottom: 2px solid var(--blue); padding-bottom: 3px; margin-bottom: 10px; }
.gloss-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 9px; }
.gloss-item { background: var(--bg-alt); border: 1px solid var(--border);
              border-left: 4px solid var(--blue); border-radius: 3px; padding: 9px 13px; }
.gloss-term { display: block; font-size: .95rem; font-weight: 700; color: var(--blue);
              text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.gloss-item p { font-size: 13px; color: var(--mid); line-height: 1.5; margin: 0; }

/* ── FAQ ── */
.faq-list { margin: 13px 0; }
.faq-item { border: 1px solid var(--border); border-radius: 3px; margin-bottom: 9px; overflow: hidden; }
.faq-q { background: var(--bg-alt); padding: 13px 17px; font-weight: 700;
         font-size: 15px; color: var(--black); cursor: pointer;
         display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-q:hover { background: var(--blue-lt); color: var(--blue); }
.faq-icon { font-size: 1.1rem; color: var(--blue); flex-shrink: 0;
            transition: transform .2s; font-style: normal; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 13px 17px; font-size: 14px; color: var(--mid); line-height: 1.7;
         display: none; border-top: 1px solid var(--border); background: #fff; }
.faq-a.visible { display: block; }
.faq-a p { margin: 0; }

/* ── STORY CARDS ── */
.story-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
              gap: 16px; margin: 16px 0; }
.story-card { border: 1px solid var(--border); border-radius: 4px; padding: 18px;
              background: var(--bg); }
.story-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue);
                color: #fff; display: flex; align-items: center; justify-content: center;
                font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.story-name { font-weight: 700; font-size: 14px; color: var(--black); margin-bottom: 2px; }
.story-meta { font-size: 11px; color: var(--light); margin-bottom: 9px; }
.story-card p { font-size: 13.5px; color: var(--mid); line-height: 1.72; font-style: italic; }

/* ── PRINT CARDS ── */
.print-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
              gap: 14px; margin: 16px 0; }
.print-card { border: 1px solid var(--border); border-top: 4px solid var(--blue);
              border-radius: 3px; padding: 16px; background: var(--bg); }
.print-card h3 { font-size: .95rem; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.print-card p { font-size: 13px; color: var(--mid); line-height: 1.55; margin-bottom: 10px; }

/* ── FOOTER ── */
.site-footer { background: #1a1a1a; color: rgba(255,255,255,.5); padding: 42px 20px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
               gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand p { font-size: 13px; line-height: 1.65; margin-top: 9px; max-width: 230px; }
.footer-brand a { color: rgba(255,255,255,.6); }
.footer-logo { display: flex; align-items: center; gap: 9px; }
.footer-logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 3px; }
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .11em;
                 color: rgba(255,255,255,.85); margin-bottom: 11px; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 5px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.48);
                      text-decoration: none; }
.footer-col ul li a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding: 13px 0; font-size: 11px; color: rgba(255,255,255,.26); }
.footer-bottom a { color: rgba(255,255,255,.38); }
.footer-bottom a:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .main-nav  { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar-right { display: none; }
  .home-hero, .page-hero { padding: 34px 20px 40px; }
  .page-body { flex-direction: column; padding: 22px 20px 38px; }
  .page-sidebar { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .index-grid { grid-template-columns: 1fr; }
  .search-wrap { max-width: 100%; flex: 1; }
  .d-row { flex-direction: column; }
  .d-if { min-width: unset; }
}
@media (max-width: 420px) {
  .badge-grid { grid-template-columns: 1fr; }
  .lesson-nav { flex-direction: column; }
  .prod-specs { grid-template-columns: 1fr; }
}

/* ── PRINT MEDIA (for printable sheets) ── */
@media print {
  .no-print, .site-header, .topbar, .course-nav, .breadcrumb,
  .page-sidebar, .site-footer, .lesson-nav, .site-search { display: none !important; }
  .page-body { display: block; padding: 0; }
  .page-content { width: 100%; }
  body { font-size: 11px; color: #000; }
  a { color: #000; text-decoration: none; }
}

/* ── DROPDOWN MENUS ── */
.main-nav ul li { position: relative; }

/* The dropdown panel */
.drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #2a2a2a;
  border-top: 3px solid var(--blue);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  min-width: 220px;
  z-index: 400;
  padding: 6px 0;
}
/* Wider panel for Course (12 items in 2 cols) */
.drop-menu.drop-wide {
  min-width: 360px;
  display: none;
  columns: 2;
  column-gap: 0;
  padding: 6px 0;
}
.drop-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255,255,255,.82) !important;
  text-decoration: none !important;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.06);
  break-inside: avoid;
  transition: background .12s, color .12s;
}
.drop-menu a:last-child { border-bottom: none; }
.drop-menu a:hover { background: rgba(255,255,255,.10); color: #fff !important; }

/* Show on hover (desktop) */
.has-drop:hover > .drop-menu { display: block; }
.has-drop:hover > .drop-menu.drop-wide { display: block; }

/* Caret indicator */
.has-drop > a::after {
  content: ' ▾';
  font-size: 9px;
  opacity: .7;
  letter-spacing: 0;
}

/* Mobile dropdowns — shown inline inside mobile-nav */
.mobile-drop { display: none; background: #222; }
.mobile-drop.is-open { display: block; }
.mobile-drop a {
  display: block;
  padding: 10px 36px;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: .01em;
  color: rgba(255,255,255,.7) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.mobile-drop a:hover { color: #fff !important; background: rgba(255,255,255,.06); }
.mobile-section-btn {
  display: block; width: 100%; text-align: left;
  padding: 12px 24px; font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: rgba(255,255,255,.85) !important;
  background: none; border: none; border-bottom: 1px solid rgba(255,255,255,.06);
  cursor: pointer; font-family: 'Lato', Arial, sans-serif;
}
.mobile-section-btn::after { content: ' ▾'; font-size: 10px; opacity: .6; }
.mobile-section-btn.is-open::after { content: ' ▴'; }
.mobile-section-btn:hover { background: rgba(255,255,255,.07); }

/* ── CONGRATULATIONS PAGE RESOURCE CARDS ── */
.resource-cards { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.resource-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--border);
                 border-left: 4px solid var(--blue); border-radius: 3px; padding: 16px 18px;
                 background: var(--bg); }
.rc-card-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; margin-top: 3px; }
.rc-card-body { display: flex; flex-direction: column; gap: 6px; }
.rc-card-title { font-size: 15px; font-weight: 700; color: var(--black); }
.rc-card-desc { font-size: 13.5px; color: var(--mid); line-height: 1.65; }
.rc-card-link { font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; margin-top: 2px; }
.rc-card-link:hover { color: var(--blue-dk); text-decoration: underline; }
