/* Eduvators brand theme — please replace placeholder HEX values with your official brand colors */
:root {
  /* Primary brand colors (PLACEHOLDER approximations based on provided screenshot) */
  --edv-primary: #0a6e7a;   /* teal button/background */
  --edv-accent:  #b2268a;   /* magenta/pink accent */
  --edv-navy:    #0d2a4a;   /* deep navy banner */

  /* Supporting colors */
  --bg: #f7f7fb;
  --text: #1f2430;
  --muted: #5a6473;
  --card: #ffffff;
  --border: #e8e8ef;
  --shadow: rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--edv-navy); color: #fff; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.site-header.elevated { box-shadow: 0 6px 18px var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.5px; text-transform: lowercase; }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--edv-accent), var(--edv-primary)); display: grid; place-items: center; color: #fff; font-size: 14px; }
.brand-text { font-size: 18px; color: #fff; }
.nav a { color: #dfe8ff; text-decoration: none; margin-left: 16px; font-weight: 600; }
.nav a:hover { color: #fff; }

/* Focus visibility for accessibility */
.nav a:focus-visible, .btn:focus-visible { outline: 3px solid var(--edv-accent); outline-offset: 2px; border-radius: 6px; }
/* Ensure links inside cards/content also get visible focus */
.card a:focus-visible, .prompts a:focus-visible, .workflow a:focus-visible { outline: 3px solid var(--edv-accent); outline-offset: 2px; border-radius: 6px; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; border: 2px solid #000; box-shadow: 0 3px 12px var(--shadow); z-index: 1000; }
.skip-link:focus { left: 12px; top: 12px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--edv-navy), #12365b); color: #fff; padding: 56px 0 36px; }
.hero h1 { margin: 0 0 8px; font-size: 36px; }
.title-wrap { display: flex; align-items: center; gap: 12px; }
.title-logo { display: inline-block; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; }
.subtitle { margin: 0 0 20px; color: #d7e4ff; max-width: 850px; }
.pill { display: inline-block; background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; letter-spacing: 0.3px; margin: 0 0 14px; }

.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; border: 2px solid transparent; }
.btn.primary { background: var(--edv-primary); color: #fff; }
.btn.primary:hover { filter: brightness(0.95); }

/* Back to top */
.back-to-top { position: fixed; right: 18px; bottom: 18px; background: var(--edv-primary); color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 10px; box-shadow: 0 6px 18px var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; font-weight: 800; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: 0 6px 18px var(--shadow); }
.card h2 { margin: 0 0 8px; font-size: 20px; color: var(--edv-navy); }
.title-row { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.title-row h2, .title-row h3 { margin: 0; }
.app-ico { display: inline-block; font-size: 20px; line-height: 1; width: 20px; height: 20px; object-fit: contain; }

/* Scale icons up on larger screens */
@media (min-width: 768px) {
  .app-ico { width: 22px; height: 22px; font-size: 22px; }
}
@media (min-width: 1200px) {
  .app-ico { width: 24px; height: 24px; font-size: 24px; }
}
.card .what { color: var(--muted); margin: 0 0 8px; }
.card ul { margin: 0; padding-left: 18px; }
.card li { margin: 6px 0; }

/* Workflow & Prompts */
.workflow, .prompts { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 16px 0 32px; box-shadow: 0 3px 12px var(--shadow); }
.workflow h2, .prompts h2 { margin-top: 0; color: var(--edv-navy); }

/* Footer */
.site-footer { background: #0f1b2b; color: #d3dbeb; padding: 18px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.tiny { font-size: 12px; color: #b8c4d6; }
.tiny a, .tiny-link { color: #fff; text-decoration: underline; }
.tiny a:hover, .tiny-link:hover { text-decoration: none; }
.tiny a:focus-visible, .tiny-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 4px; }

/* Accent separators */
.card h2::after, .workflow h2::after, .prompts h2::after { content: ""; display: block; width: 40px; height: 3px; background: linear-gradient(90deg, var(--edv-accent), var(--edv-primary)); margin-top: 6px; border-radius: 2px; }

/* Actions and small buttons */
.actions { margin-top: 10px; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 8px; }

/* AI Video grid & headings */
.video-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.workflow .card h3 { margin: 0 0 6px; color: var(--edv-navy); font-size: 18px; }

/* Callout (left-accent) */
.callout { background: #fff; border: 1px solid var(--border); border-left: 6px solid var(--edv-accent); border-radius: 10px; padding: 14px 16px; margin: 16px 0 24px; box-shadow: 0 3px 12px var(--shadow); }
.callout h3 { margin: 4px 0 8px; color: var(--edv-navy); font-size: 18px; }
.callout ul { margin: 0; padding-left: 18px; }
.callout li { margin: 6px 0; color: var(--muted); }

/* Print stylesheet */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .hero, .site-footer, .back-to-top { display: none !important; }
  .container { max-width: 100%; padding: 0; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { box-shadow: none; border-color: #ccc; }
  .btn, .actions { display: none !important; }
  .workflow, .prompts, .callout { box-shadow: none; border-color: #ccc; }
  a::after { content: " (" attr(href) ")"; font-size: 10px; color: #444; }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
