/* Shared stylesheet for Gurukul landing pages (/internship/, /ai-journalism-course/, /for-institutions/).
   Tokens mirror css/gurukul-theme.css so the pages match the main site; change a brand value in one place here.
   Mobile first: base layout is 360px, breakpoints at 768px and 1024px. Text >= 16px, tap targets >= 44px. */
:root {
    --rg-primary: #227aff;
    --rg-primary-dark: #385bce;
    --rg-accent: #eab830;
    --rg-text: #001931;
    --rg-muted: #4d5e6f;
    --rg-surface: #ffffff;
    --rg-soft: #eef1f7;
    --rg-border: #dbe0e9;
    --rg-navy: #001931;
    --rg-font-head: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --rg-font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --rg-radius: 8px;
    --rg-radius-lg: 14px;
    --rg-space-1: 4px; --rg-space-2: 8px; --rg-space-3: 16px; --rg-space-4: 24px; --rg-space-5: 40px; --rg-space-6: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--rg-font-body); font-size: 16px; line-height: 1.6; color: var(--rg-text); background: var(--rg-surface); }
img { max-width: 100%; height: auto; }
a { color: var(--rg-primary); }
h1, h2, h3 { font-family: var(--rg-font-head); line-height: 1.2; margin: 0 0 var(--rg-space-3); }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 var(--rg-space-3); }
.rg-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.rg-section { padding: var(--rg-space-5) 0; }
.rg-section--soft { background: var(--rg-soft); }
.rg-muted { color: var(--rg-muted); }


/* Site header. The markup is the site's own header.html (included by the page generator), so these rules mirror
   .gu-nav and friends in css/gurukul-theme.css. Keep the two in sync when the header design changes. */
:root { --gu-border: var(--rg-border); --gu-gold: #eab830; --gu-bg-soft: var(--rg-soft); --gu-radius: 8px; --gu-slate: var(--rg-muted); }
body { padding-top: 73px; }
.gu-nav { background: var(--gu-white); border-bottom: 1px solid var(--gu-border); position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.gu-nav-inner { max-width: var(--gu-container); margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gu-nav-logo { font-size: 1.35rem; font-weight: 800; color: var(--gu-navy); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; }
.gu-nav-logo:hover { color: var(--gu-navy); text-decoration: none; }
.gu-nav-logo span { color: var(--gu-primary); }
.gu-nav-logo__img { width: 56px; height: 56px; flex-shrink: 0; margin-right: 10px; }
.gu-nav-links { display: flex; align-items: center; gap: 28px; flex: 1; list-style: none; margin: 0; padding: 0; }
.gu-nav-links a { color: var(--gu-navy); font-weight: 600; font-size: .95rem; text-decoration: none; }
.gu-nav-links a:hover { color: var(--gu-primary); }
.gu-nav-hamburger { color: var(--gu-navy); font-size: 1.4rem; margin-right: 14px; text-decoration: none; display: none; }
.gu-nav-account { display: flex; align-items: center; gap: 14px; position: relative; }
.gu-nav-account .signin { font-weight: 600; color: var(--gu-navy) !important; text-decoration: none; }
.gu-nav-account .rounded-circle { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gu-primary); color: var(--gu-white) !important; font-weight: 700; font-size: .85rem; text-decoration: none; }
.sidenav { height: 100%; width: 0; position: fixed; z-index: 1200; top: 0; left: 0; background: var(--gu-navy); overflow-x: hidden; transition: width .25s ease; padding-top: 50px; }
.sidenav a { padding: 10px 24px; text-decoration: none; font-size: 1rem; font-weight: 600; color: var(--gu-white); display: block; }
.sidenav a:hover { color: var(--gu-gold); }
.sidenav .closebtn { position: absolute; top: 6px; right: 20px; font-size: 2rem; }
@media (max-width: 991px) { .gu-nav-links { display: none; } .gu-nav-hamburger { display: inline-block; } }
@media (max-width: 420px) {
    .gu-nav-inner { padding: 8px 14px; gap: 12px; }
    .gu-nav-logo { font-size: 1.1rem; }
    .gu-nav-logo__img { width: 44px; height: 44px; margin-right: 8px; }
    body { padding-top: 61px; }
}

/* buttons */
.rg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--rg-space-4); border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.rg-btn--primary { background: var(--rg-primary); color: #fff; }
.rg-btn--primary:hover { background: var(--rg-primary-dark); }
.rg-btn--ghost { background: transparent; color: var(--rg-primary); border-color: var(--rg-primary); }

/* hero */
.rg-hero { background: linear-gradient(135deg, var(--rg-navy) 0%, #0a3a63 100%); color: #fff; padding: var(--rg-space-5) 0 var(--rg-space-6); }
.rg-hero h1 { color: #fff; }
.rg-hero p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; max-width: 640px; }
.rg-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--rg-accent); margin-bottom: var(--rg-space-3); }
.rg-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: var(--rg-space-4) 0; }
.rg-chips li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; }
.rg-chips strong { color: var(--rg-accent); }
.rg-cta-row { display: flex; flex-wrap: wrap; gap: var(--rg-space-3); align-items: center; }
.rg-price-old { text-decoration: line-through; opacity: .7; margin: 0 6px 0 4px; }

/* lists, steps, cards */
.rg-grid { display: grid; gap: var(--rg-space-3); }
.rg-card { background: var(--rg-surface); border: 1px solid var(--rg-border); border-radius: var(--rg-radius-lg); padding: var(--rg-space-4); }
.rg-list { padding-left: 1.2em; margin: 0 0 var(--rg-space-3); }
.rg-list li { margin-bottom: var(--rg-space-2); }
.rg-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--rg-space-3); }
.rg-steps li { counter-increment: step; position: relative; padding-left: 52px; min-height: 40px; }
.rg-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--rg-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rg-steps strong { display: block; }
.rg-lessons { columns: 1; padding-left: 1.4em; margin: 0; }
.rg-lessons li { margin-bottom: var(--rg-space-2); break-inside: avoid; }

/* faq accordion (native <details>, works without JS) */
.rg-faq details { border: 1px solid var(--rg-border); border-radius: var(--rg-radius); margin-bottom: var(--rg-space-2); background: var(--rg-surface); }
.rg-faq summary { cursor: pointer; padding: 14px var(--rg-space-3); min-height: 48px; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--rg-space-3); }
.rg-faq summary::-webkit-details-marker { display: none; }
.rg-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--rg-primary); }
.rg-faq details[open] summary::after { content: "\2013"; }
.rg-faq details > div { padding: 0 var(--rg-space-3) var(--rg-space-3); color: var(--rg-muted); }

/* final CTA + footer */
.rg-final { text-align: center; }
/* Site footer. The markup is the site's own footer.html (included by the page generator), so these rules mirror
   .gu-footer and friends in css/gurukul-theme.css. Keep the two in sync when the footer design changes. */
:root {
    --gu-primary: var(--rg-primary); --gu-primary-dark: var(--rg-primary-dark); --gu-white: #ffffff;
    --gu-navy: var(--rg-navy); --gu-container: 1200px; --gu-shadow-hover: 0 10px 28px rgba(0, 25, 49, .13);
}
.gu-container { max-width: var(--gu-container); margin: 0 auto; padding: 0 20px; }
.gu-footer { background: var(--gu-navy); color: rgba(255, 255, 255, .72); padding: 56px 0 0; margin-top: 0; }
.gu-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.gu-footer a:hover { color: var(--gu-white); }
.gu-footer h6 { color: var(--gu-white); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 18px; }
.gu-footer h6.gu-footer-brand { text-transform: none; letter-spacing: normal; display: flex; align-items: center; }
.gu-footer p { margin: 0 0 16px; }
.gu-footer-logo { width: 80px; height: 80px; flex-shrink: 0; margin-right: 12px; }
.gu-footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 40px; }
.gu-footer-cols a { display: block; margin-bottom: 10px; font-size: .88rem; }
.gu-footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: .85rem; line-height: 1.5; }
.gu-footer-contact-item i { color: var(--gu-primary); width: 16px; margin-top: 3px; flex-shrink: 0; }
.gu-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: .82rem; text-align: center; }
@media (max-width: 767px) {
    /* The brand block (80px logo + name) is wider than a half-width column, which pushed the grid past the screen
       edge and cut off the second column. Brand and contact now span the full width; Explore and Support sit
       side by side between them, and minmax(0, 1fr) lets columns shrink instead of overflowing. */
    .gu-footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .gu-footer-cols > div:first-child, .gu-footer-cols > div:last-child { grid-column: 1 / -1; }
}
.gu-back-to-top {
    position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
    background: var(--gu-primary); color: var(--gu-white); border: none; font-size: 1.05rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: var(--gu-shadow-hover); z-index: 999;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, background .2s;
}
.gu-back-to-top--visible { opacity: 1; visibility: visible; transform: translateY(0); }
.gu-back-to-top:hover { background: var(--gu-primary-dark); }
@media (max-width: 650px) { .gu-back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; } }
/* keep the back-to-top button above the sticky mobile CTA bar */
@media (max-width: 767px) { body.has-sticky .gu-back-to-top { bottom: 84px; } }

/* sticky mobile CTA bar: shown only on phones, only after the hero CTA scrolls out of view */
.rg-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rg-border); transform: translateY(110%); transition: transform .2s; }
.rg-sticky.is-visible { transform: translateY(0); }
.rg-sticky .rg-btn { width: 100%; }
body.has-sticky { padding-bottom: 72px; }

@media (min-width: 768px) {
    h1 { font-size: 2.6rem; }
    h2 { font-size: 1.8rem; }
    .rg-section { padding: var(--rg-space-6) 0; }
    .rg-grid--2 { grid-template-columns: 1fr 1fr; }
    .rg-lessons { columns: 2; column-gap: var(--rg-space-5); }
    .rg-sticky { display: none; }
    body.has-sticky { padding-bottom: 0; }
}
@media (min-width: 1024px) { .rg-hero { padding: var(--rg-space-6) 0 80px; } }
