/* Styling that recurs across page types: the header and footer designs, the blinking title cursor, and the roles
   every page type shows the same way: text links on a light surface, the selected item, the keyboard focus ring and
   the hero heading, label and description. Every page loads this file before its own stylesheet, which keeps only
   the page type's own composition and base and declares none of these roles' values. Each header and footer rule is
   scoped to #section-header or #section-footer so that it outranks the resets below. */

/* The header bar both header designs sit in: the dark sticky band, the header row and how it wraps. */
#section-header { position: sticky; top: 0; z-index: 100; }
#section-header, #section-header .header-outer { width: 100%; background-color: #1a1a1a; }
#section-header * { margin: 0; padding: 0; box-sizing: border-box; }
#section-header .header-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; }
@media (max-width: 768px) {
  #section-header .header-inner { flex-wrap: wrap; gap: 12px 16px; padding: 15px 20px; }
}

/* The course and learning-path header: the logo mark, the course navigation and the two calls to action.
   The homepage wordmark sits in the same .logo container; its single child shows no gap. */
#section-header .logo { display: flex; align-items: center; gap: 10px; }
#section-header .logo a { display: flex; align-items: center; gap: inherit; text-decoration: none; }
#section-header .logo-icon { color: #63b175; font-family: Raleway, sans-serif; font-size: 24px; font-weight: 700; }
#section-header .logo-text { color: #fff; font-family: Raleway, sans-serif; font-size: 18px; font-weight: 600; letter-spacing: 3px; }
#section-header .nav-links { display: flex; align-items: center; gap: 50px; }
#section-header .nav-links a { color: #fff; font-family: Raleway, sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 1px; text-decoration: none; }
#section-header .nav-links a:hover { color: #63b175; }
#section-header .nav-buttons { display: flex; align-items: center; gap: 15px; }
#section-header .nav-buttons a { border: 1px solid #f5c248; border-radius: 4px; cursor: pointer; font-family: Raleway, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-decoration: none; }
#section-header .btn-login { background-color: transparent; color: #f5c248; padding: 12px 32px; }
#section-header .btn-login:hover { background-color: #f5c248; color: #1a1a1a; }
#section-header .btn-enroll { background-color: #f5c248; color: #1a1a1a; padding: 12px 28px; }
#section-header .btn-enroll:hover { background-color: #e0ad3a; border-color: #e0ad3a; }
@media (max-width: 768px) {
  #section-header .nav-links { display: none; }
  #section-header .nav-buttons a { padding: 12px 16px; }
}

/* The homepage header: its wordmark and its two links. */
#section-header .nav-right { display: flex; align-items: center; gap: 30px; }
#section-header .nav-link { color: #fff; font-family: Raleway, sans-serif; font-size: 16px; font-weight: 500; letter-spacing: 0.5px; line-height: 1.5; text-decoration: none; }
#section-header .nav-link:hover { color: #63b175; }
#section-header .btn-pricing { background-color: transparent; border: 1px solid #63b175; border-radius: 4px; color: #63b175; font-family: Raleway, sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 0.5px; line-height: 1.5; padding: 10px 28px; text-decoration: none; }
#section-header .btn-pricing:hover { background-color: #63b175; color: #fff; }
@media (max-width: 768px) {
  #section-header .nav-right { flex-wrap: wrap; gap: 12px 20px; }
  #section-header .btn-pricing { padding: 10px 20px; }
}

/* What the two footer designs share. Both use .footer-inner with different values, so each design's rule
   selects its own footer by what the container holds: the site footer its main row, the course footer its columns. */
#section-footer, #section-footer * { margin: 0; padding: 0; box-sizing: border-box; }
#section-footer .footer-outer { width: 100%; background-color: #3d3d3d; }
#section-footer .footer-column { display: flex; flex-direction: column; }

/* The site footer of the homepage, the learning-path pages and the learning-paths list. */
#section-footer .footer-inner:has(> .footer-main) { padding: 50px 10%; }
#section-footer .footer-main { display: flex; justify-content: flex-start; align-items: flex-start; gap: 120px; margin-bottom: 60px; }
#section-footer .footer-logo { flex: 0 0 auto; }
#section-footer .footer-columns { display: flex; flex-wrap: wrap; gap: 30px 120px; flex: 1; }
#section-footer .footer-column-heading { font-family: Raleway, sans-serif; font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.5px; line-height: 1.4; margin-bottom: 20px; text-transform: uppercase; }
#section-footer .footer-column-links { display: flex; flex-direction: column; gap: 10px; }
#section-footer .footer-column-links a { font-family: Raleway, sans-serif; font-size: 14px; font-weight: 400; color: #aaa; text-decoration: none; letter-spacing: 0.3px; line-height: 1.6; text-transform: uppercase; }
#section-footer .footer-column-links a:hover { color: #63b175; }
#section-footer .footer-bottom { display: flex; justify-content: center; align-items: center; padding-top: 30px; border-top: 1px solid #535353; }
#section-footer .footer-bottom-links { display: flex; align-items: center; gap: 10px; }
#section-footer .footer-bottom-links a { font-family: Raleway, sans-serif; font-size: 12px; font-weight: 400; color: #aaa; text-decoration: none; letter-spacing: 0.5px; line-height: 1.4; text-transform: uppercase; }
#section-footer .footer-bottom-links a:hover { color: #63b175; }
#section-footer .footer-bottom-divider { font-family: Raleway, sans-serif; font-size: 12px; color: #aaa; }

/* The course footer. */
#section-footer .footer-inner:has(> .footer-column) { display: flex; justify-content: flex-start; gap: 120px; padding: 40px 10%; }
#section-footer .footer-heading { font-family: Raleway, sans-serif; font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 24px; line-height: 1.4; letter-spacing: 0; }
#section-footer .footer-links { display: flex; flex-direction: column; gap: 12px; }
#section-footer .footer-link-uppercase { font-family: Raleway, sans-serif; font-size: 12px; font-weight: 400; color: #aaa; text-decoration: none; letter-spacing: 0.5px; line-height: 1.5; text-transform: uppercase; }
#section-footer .footer-link-uppercase:hover { color: #63b175; }
#section-footer .footer-link { font-family: Raleway, sans-serif; font-size: 14px; font-weight: 400; color: #aaa; text-decoration: none; letter-spacing: 0; line-height: 1.5; }
#section-footer .footer-link:hover { color: #63b175; }

@media (max-width: 768px) {
  #section-footer .footer-inner:has(> .footer-main) { padding: 40px 5%; }
  #section-footer .footer-main { flex-direction: column; gap: 40px; }
  #section-footer .footer-columns { flex-direction: column; gap: 30px; }
  #section-footer .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  #section-footer .footer-inner:has(> .footer-column) { flex-direction: column; gap: 40px; padding: 30px 5%; }
  #section-footer .footer-heading { margin-bottom: 16px; }
}

/* The blinking cursor after the title of the course, learning-path and learning-paths list pages. */
.cursor { animation: blink-cursor 1s step-end infinite; color: #63b175; font-weight: 300; }
@keyframes blink-cursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }


/* The colours of the roles below, each named for its job and written once. */
:root { --link-on-light: #4A7D58; --selected-item: #357a38; --focus-ring-on-dark: #f5c248; --focus-ring-on-light: #3d3d3d; }

/* The text link on a light surface, on the course pages (all-access, team and FAQ links): one colour at every width
   and in every state; hovering underlines the link and leaves its colour. Card links keep their own look. */
#section-all-access .feature-text a, #section-team .team-link, #section-faq .faq-link { color: var(--link-on-light); }
#section-all-access .feature-text a:hover, #section-team .team-link:hover, #section-faq .faq-link:hover { text-decoration: underline; }

/* The selected item: the selected category filter's fill and border, and the hover cue of a filter that is not selected. */
.category-filter-btn.is-active { background-color: var(--selected-item); border-color: var(--selected-item); }
.category-filter-btn:not(.is-active):hover { border-color: var(--selected-item); color: var(--selected-item); }

/* The keyboard focus ring of every link and button: its colour follows the surface it sits on, dark or light.
   The learning-paths list's path card clips its overflow, so its ring is drawn inside the card's edge. */
:is(a, button):focus-visible { outline: 3px solid var(--focus-ring-on-light); outline-offset: 3px; }
:is(#section-header, #section-footer, #section-money-back, #section-hero .section-inner) :is(a, button):focus-visible { outline-color: var(--focus-ring-on-dark); }
.path-card > a:focus-visible { outline-offset: -3px; }

/* The hero heading of every page type: white on the dark heroes, dark on the homepage's light hero; a word too long
   for its line wraps within the heading. Spacing around it stays with each hero's layout. */
#section-hero h1 { color: #fff; font-family: Raleway, sans-serif; font-size: clamp(38px, 5vw, 56px); font-weight: 700; letter-spacing: normal; line-height: 1.1; overflow-wrap: anywhere; }
#section-hero .hero-inner h1 { color: #1a1a1a; }

/* The hero label above the heading: the course, learning-path and learning-paths list pages show an underscore prefix. */
#section-hero :is(.course-label, .path-label) { color: #aaa; font-family: Raleway, sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 2px; }
#section-hero :is(.course-label, .path-label) span { color: #63b175; }

/* The hero description under the heading on the dark heroes. The homepage's light hero keeps its own. */
#section-hero .section-inner .hero-description { color: #aaa; font-family: Raleway, sans-serif; font-size: 18px; font-style: normal; font-weight: 400; line-height: 1.6; }
@media (max-width: 768px) {
  #section-hero .section-inner .hero-description { font-size: 16px; }
}
