/*
Theme Name: WGMS Training
Theme URI: https://wgmstraining.com
Author: Liquid Robotics
Description: Custom training portal theme for WGMS software training
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --navy:        #0a1628;
  --navy-card:   #0f2040;
  --navy-light:  #132850;
  --blue:        #5bc4f5;
  --blue-dark:   #3aa8dc;
  --white:       #ffffff;
  --gray:        rgba(255,255,255,0.65);
  --border:      rgba(255,255,255,0.08);
  --font-main:   'Barlow', sans-serif;
  --font-cond:   'Barlow Condensed', sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--navy);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

/* =============================================
   DOTTED BACKGROUND TEXTURE (matches LR site)
   ============================================= */
.dot-bg {
  background-image: radial-gradient(circle, rgba(91,196,245,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.logo-main {
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
}
.logo-sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gray);
  text-transform: uppercase;
}

/* Main Nav */
#main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}
#main-nav ul li a {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
  text-transform: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
#main-nav ul li a:hover,
#main-nav ul li.current-menu-item a,
#main-nav ul li.current_page_item a {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* Search Icon */
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  color: var(--gray);
  font-size: 14px;
  transition: background 0.2s;
}
.header-search:hover { background: rgba(255,255,255,0.1); }
.header-search svg { width: 16px; height: 16px; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* =============================================
   PAGE WRAPPER (offset for fixed header)
   ============================================= */
#page { padding-top: 70px; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding: 80px 40px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(91,196,245,0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.hero h1 {
  font-family: var(--font-cond);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero h1 span { color: var(--blue); }
.hero p {
  font-size: 18px;
  color: var(--gray);
  max-width: 580px;
  line-height: 1.7;
}
.hero-cta {
  margin-top: 2rem;
}
.hero-search {
  display: flex;
  margin-top: 36px;
  max-width: 640px;
  gap: 0;
}
.hero-search input {
  flex: 1;
  padding: 16px 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(91,196,245,0.25);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.hero-search input::placeholder { color: var(--gray); }
.hero-search input:focus { border-color: var(--blue); }
.hero-search button {
  padding: 16px 32px;
  background: var(--blue);
  border: none;
  border-radius: 0 6px 6px 0;
  color: var(--navy);
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-search button:hover { background: #fff; }

/* Pill tags below search */
.hero-tags {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.hero-tags a {
  font-size: 13px;
  color: var(--gray);
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
}
.hero-tags a:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: rgba(91,196,245,0.06);
}

/* =============================================
   SECTION WRAPPER
   ============================================= */
.section {
  padding: 80px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-cond);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 48px;
  max-width: 540px;
}

/* =============================================
   CARD GRID (Category cards)
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 32px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--white);
}
.card:hover {
  border-color: rgba(91,196,245,0.4);
  background: var(--navy-light);
  transform: translateY(-3px);
  color: var(--white);
}
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--blue);
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: var(--white);
}
.card-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}
.card ul { list-style: none; }
.card ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.card ul li:last-child { border-bottom: none; }
.card:hover ul li { color: var(--white); }
.card ul li svg {
  width: 14px;
  height: 14px;
  color: var(--blue);
  flex-shrink: 0;
}

/* =============================================
   MODULE LIST (Sidebar + content layout)
   ============================================= */
.modules-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.modules-sidebar {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: 90px;
}
.modules-sidebar h4 {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 20px 24px 10px;
}
.modules-sidebar ul { list-style: none; }
.modules-sidebar ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  font-size: 14px;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}
.modules-sidebar ul li a:hover,
.modules-sidebar ul li.active a {
  background: rgba(91,196,245,0.06);
  color: var(--blue);
}
.modules-sidebar ul li a .count {
  font-size: 12px;
  background: rgba(91,196,245,0.12);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 100px;
}

/* =============================================
   MODULE ITEM ROW
   ============================================= */
.module-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.module-item:hover {
  border-color: rgba(91,196,245,0.35);
  background: var(--navy-light);
  transform: translateX(4px);
  color: var(--white);
}
.module-item-left { display: flex; align-items: center; gap: 16px; }
.module-item-icon {
  width: 40px; height: 40px;
  background: rgba(91,196,245,0.1);
  border: 1px solid rgba(91,196,245,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.module-item-icon svg { width: 20px; height: 20px; color: var(--blue); }
.module-item h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
}
.module-item p {
  font-size: 13px;
  color: var(--gray);
}
.module-item-arrow { color: var(--blue); }
.module-item-arrow svg { width: 18px; height: 18px; }

/* =============================================
   QUICK TIPS / FAQ
   ============================================= */
.faq-section {
  background: #f7f8fa;
  padding: 80px 40px;
}
.faq-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.faq-inner .section-title { color: var(--navy); }
.faq-inner .section-subtitle { color: #555; margin: 0 auto 48px; }
.faq-list { text-align: left; }
.faq-item {
  border-bottom: 1px solid #e0e4ea;
  padding: 22px 0;
}
.faq-item summary {
  font-size: 17px;
  font-weight: 500;
  color: #1a2a44;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-family: var(--font-main);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: #aab;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--navy); }
.faq-item p { padding-top: 14px; color: #555; font-size: 15px; line-height: 1.7; }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: var(--navy-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(91,196,245,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-family: var(--font-cond);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
}
.cta-inner p { color: var(--gray); margin-top: 8px; font-size: 15px; }
.btn-blue {
  display: inline-block;
  padding: 14px 32px;
  background: var(--blue);
  color: var(--navy);
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-blue:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.contact-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 28px;
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: rgba(91,196,245,0.35); }
.contact-card-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.contact-card-icon svg { width: 20px; height: 20px; color: var(--gray); }
.contact-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}
.contact-card span {
  font-size: 13px;
  color: var(--gray);
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.address-card {
  background: #fff;
  border-radius: 10px;
  padding: 32px;
}
.address-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.address-label::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
}
.address-card p { color: #333; font-size: 15px; line-height: 1.8; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--navy-card);
  border-top: 1px solid var(--border);
}
.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}
.footer-nav ul li a {
  font-size: 14px;
  color: var(--gray);
  transition: color 0.2s;
}
.footer-nav ul li a:hover { color: var(--blue); }
.footer-socials { display: flex; gap: 12px; }
.social-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.social-icon:hover { background: rgba(91,196,245,0.1); color: var(--blue); }
.social-icon svg { width: 16px; height: 16px; }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--gray);
}

/* =============================================
   WORDPRESS CONTENT AREA
   ============================================= */
.entry-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 40px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}
.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: var(--font-cond);
  color: var(--white);
  margin: 32px 0 16px;
}
.entry-content p { margin-bottom: 18px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .header-inner { padding: 0 20px; }
  #main-nav { display: none; }
  #main-nav.open { display: block; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy-card); border-bottom: 1px solid var(--border); padding: 16px 0; }
  #main-nav.open ul { flex-direction: column; gap: 0; }
  #main-nav.open ul li a { display: block; padding: 12px 24px; border-bottom: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 60px 20px; }
  .section { padding: 60px 20px; }
  .modules-layout { grid-template-columns: 1fr; }
  .modules-sidebar { position: static; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-nav ul { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .faq-section { padding: 60px 20px; }
}
