@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
/* R1: corner sizes for every rounded box on the website (same values as --radius-md and --radius-sm in the LMS and admin).
   Big boxes (cards, panels, modals, pop-ups, image frames) use --radius-box; inputs, buttons and badges use --radius-small. */
:root{--radius-box:12px;--radius-small:8px}

/* Shared navbar + logo rules for every page of the website.
   Linked LAST in each page's <head> so it wins over page-specific copies of the same rules. */

/* Logo: the image is now trimmed to the mark itself, so it fills its box. */
.navbar .logo{display:flex;align-items:center;gap:10px;text-decoration:none;flex:0 1 auto;min-width:0}
.navbar .logo img{height:44px;width:44px;object-fit:contain;border-radius:0;flex:0 0 auto}
.navbar .logo-text{white-space:nowrap;line-height:1.2;overflow:hidden;text-overflow:ellipsis}

/* Current page in the menu */
.nav-links a.active,.nav-links a[aria-current="page"]{color:var(--blue,#4dabff);background:var(--glow,rgba(77,171,255,.08))}

/* Close button inside the mobile drawer (wrapped in an <li> so the list stays valid HTML) */
.nav-close-li{display:none;list-style:none}

@media(max-width:768px){
  .nav-close-li{display:block;position:absolute;top:20px;right:20px}
  .nav-close-li .nav-close{position:static}
}
@media(max-width:600px){
  .navbar .logo img{height:38px;width:38px}
  .navbar .logo-text{font-size:18px}
}
@media(max-width:380px){
  .navbar .logo-text{font-size:16px}
}

/* ===== ONE ALIGNMENT FOR ALL PAGES (24 Oct 2026, v2) =====
   Same side space as the LMS home page: one 1280px centred column with 24px on each side.
   Header, hero, sections and footer all start and end on the same two lines. */
header .navbar{max-width:1280px;margin:0 auto;padding-left:24px;padding-right:24px}

/* ===== HEADER = SAME AS THE LMS HOME PAGE, DARK THEME (24 Oct 2026, v5) =====
   Same sizes, spacing and colours as lms-frontend/index.html in dark mode.
   The background is a gradient with the colours of the Courses hero (#0f1729 to #203053), so the header melts into the hero.
   This file is linked last on every page, so these rules win over the old header rules. */
:root{--header-h:72px}
header,header.scrolled,header#main-header,header#main-header.scrolled{
  background:linear-gradient(90deg,#0f1729 0%,#172036 55%,#203053 100%);backdrop-filter:none;-webkit-backdrop-filter:none;
  border-bottom:1px solid transparent;box-shadow:none
}
header .navbar{display:flex;align-items:center;justify-content:flex-start;gap:24px;max-width:1280px;margin:0 auto;padding:8px 24px;min-height:72px}
header .navbar .logo{gap:12px}
/* The LMS logo file has empty space around the mark (the mark is 62.5% of the picture); the website Logo.png is trimmed (mark 95%).
   So the picture is drawn smaller here (25px) inside the same 38px box (6.5px space each side): the mark looks exactly as big as in the LMS. */
header .navbar .logo img{width:37px;height:37px;margin:9.5px;object-fit:contain;border-radius:0;flex:none}
header .navbar .logo-text{font-family:'Poppins','Segoe UI',Arial,sans-serif;font-size:26px;font-weight:800;letter-spacing:-.5px;line-height:normal;color:#fff}
header .nav-links{margin-left:auto;margin-right:0;gap:6px}
header .nav-links a{padding:6px 12px;border-radius:0;background:transparent;color:#fff;font-family:'Poppins','Segoe UI',Arial,sans-serif;font-size:15px;font-weight:500;letter-spacing:0}
header .nav-links a:hover,header .nav-links a.active,header .nav-links a[aria-current="page"]{color:#4f8ff7;background:transparent}
header .menu-toggle{color:#fff}

/* Login button (every page): same design as the LMS. Transparent pill with a 2px border, user icon in a soft circle on the left, round arrow on the right.
   Full rules here (not only overrides) so it looks the same on every page, whatever the page CSS says. */
header .navbar .login-btn{display:inline-flex;align-items:center;gap:8px;flex:none;padding:4px 5px 4px 6px;border:2px solid #fff;border-radius:999px;background:transparent;color:#fff;font:600 14px/1 'Poppins','Segoe UI',Arial,sans-serif;letter-spacing:.2px;text-decoration:none;cursor:pointer;box-shadow:none;filter:none;white-space:nowrap;transition:transform .2s,background .2s}
header .navbar .login-btn .lb-user,header .navbar .login-btn .lb-go{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;font-size:11px;flex:none}
header .navbar .login-btn .lb-user{background:rgba(255,255,255,.2);color:#fff}
header .navbar .login-btn .lb-go{background:#fff;color:#0f1729;font-size:10px;transition:transform .2s}
header .navbar .login-btn:hover{background:rgba(255,255,255,.16);box-shadow:none;filter:none;transform:translateY(-2px)}
header .navbar .login-btn:hover .lb-go{transform:translateX(3px)}
header .navbar .login-btn:active{transform:none}
header .navbar .login-btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(prefers-reduced-motion:reduce){header .navbar .login-btn,header .navbar .login-btn .lb-go{transition:none}}

@media(max-width:768px){
  header .menu-toggle{margin-left:0}
  header .navbar .logo{margin-right:auto}
  header .navbar .login-btn{margin-left:0}
  header .nav-links{background:#0f1729;border-left:1px solid #27334f;margin-left:0;gap:4px}
  header .nav-links a{color:#fff;padding:12px 16px}
  header .nav-links a:hover,header .nav-links a.active,header .nav-links a[aria-current="page"]{color:#4f8ff7;background:rgba(79,143,247,.18)}
  header .nav-close{color:#fff;background:rgba(79,143,247,.18);border-color:#27334f}
}
@media(max-width:560px){
  :root{--header-h:58px}
  header .navbar{gap:12px;min-height:42px}
  header .navbar .logo{gap:8px}
  header .navbar .logo img{width:28px;height:28px;margin:7px}
  header .navbar .logo-text{font-size:19px}
}
@media(max-width:480px){
  header .navbar .login-btn .lb-user{display:none}
  header .navbar .login-btn{padding-left:12px}
}
@media(max-width:380px){
  header .navbar .logo-text{font-size:16px}
}

/* ===== RSP3 (4 Nov 2026): tap targets of at least 44 x 44 px on a phone, and a bigger X in the phone menu =====
   Only sizes change; colours, fonts and the look stay the same. */
@media(max-width:768px){
  /* menu button (it was 26 x 32 px) */
  header .menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0}
  /* X button inside the open phone menu (it was 36 x 36 px) */
  header .nav-close,.nav-close-li .nav-close{width:44px;height:44px;min-width:44px;min-height:44px}
  .nav-close-li{top:14px;right:14px}
  /* Login button (it was about 95 x 38 px) */
  header .navbar .login-btn{min-height:44px}
  /* language pills: the look stays; the area that reacts to a tap grows with an invisible layer */
  header .navbar .qs-lang a{position:relative}
  header .navbar .qs-lang a::after{content:"";position:absolute;left:-2px;right:-2px;top:-10px;bottom:-10px}
  /* menu links */
  header .nav-links a{min-height:44px;display:flex;align-items:center}
  /* Retry buttons of every page */
  #hmRetry,#hmServicesRetry,#hmStudentsRetry,#hmClientsRetry,#abRetry,#cnRetry,#lgRetry,#retryCourses,#tmRetry{min-height:44px;min-width:44px}
}
