/*
Theme Name:  BlueOceanHub LMS Theme
Theme URI:   https://blueoceanhub.info
Author:      BlueOceanHub
Author URI:  https://blueoceanhub.info
Description: A clean, modern LMS theme built for BlueOceanHub — works perfectly with the BlueOceanHub LMS plugin. Features hero sections, course grids, responsive layouts, and full customizer support.
Version:     1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License:     GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boh-theme
Tags:        education, lms, courses, e-learning, responsive, custom-colors, full-width-template
*/

/* ── Base Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --boh-primary:   #005f8e;
  --boh-secondary: #00aacc;
  --boh-accent:    #ff6b35;
  --boh-dark:      #1a2b3c;
  --boh-light:     #f0f8ff;
  --boh-white:     #ffffff;
  --boh-gray:      #6b7c8d;
  --boh-border:    #dce8f0;
  --boh-radius:    10px;
  --boh-shadow:    0 4px 20px rgba(0,95,142,0.12);
  --boh-font:      'Inter', 'Helvetica Neue', Arial, sans-serif;
  --boh-content-width: 1160px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--boh-font);
  color: var(--boh-dark);
  background: var(--boh-white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--boh-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--boh-secondary); }

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--boh-dark);
}

/* ── Layout ──────────────────────────────────────────────────── */
.boh-container {
  max-width: var(--boh-content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.boh-section { padding: 72px 0; }
.boh-section-light { background: var(--boh-light); }

/* ── Header / Nav ────────────────────────────────────────────── */
#boh-header {
  background: var(--boh-white);
  border-bottom: 1px solid var(--boh-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,95,142,0.08);
}
.boh-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.boh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.boh-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--boh-primary);
  letter-spacing: -0.5px;
}
.boh-logo-text span { color: var(--boh-secondary); }
.boh-logo img { height: 38px; width: auto; }

.boh-nav-menu {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}
.boh-nav-menu a {
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--boh-dark);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.boh-nav-menu a:hover { background: var(--boh-light); color: var(--boh-primary); }
.boh-nav-menu .boh-nav-cta a {
  background: var(--boh-primary);
  color: #fff;
  padding: 9px 20px;
}
.boh-nav-menu .boh-nav-cta a:hover { background: var(--boh-secondary); }

.boh-nav-actions { display: flex; align-items: center; gap: 10px; }
.boh-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.boh-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--boh-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ────────────────────────────────────────────────────── */
.boh-hero {
  background: linear-gradient(135deg, var(--boh-primary) 0%, #003d60 40%, var(--boh-secondary) 100%);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.boh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.boh-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.boh-hero-content { color: #fff; }
.boh-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--boh-secondary);
  background: rgba(0,170,204,0.15);
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.boh-hero h1 {
  font-size: clamp(32px, 4vw, 50px);
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.2;
}
.boh-hero h1 span { color: var(--boh-secondary); }
.boh-hero-desc {
  font-size: 18px;
  opacity: 0.88;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.65;
}
.boh-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.boh-hero-img img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Hero stats */
.boh-hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.boh-hero-stat strong { display: block; font-size: 24px; color: #fff; }
.boh-hero-stat span   { font-size: 12px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Section Heading ─────────────────────────────────────────── */
.boh-section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.boh-section-heading h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 10px; }
.boh-section-heading p  { color: var(--boh-gray); font-size: 17px; max-width: 580px; margin: 0 auto; }

/* ── Feature Cards ───────────────────────────────────────────── */
.boh-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.boh-feature-card {
  background: var(--boh-white);
  border: 1px solid var(--boh-border);
  border-radius: var(--boh-radius);
  padding: 30px;
  text-align: center;
  transition: all 0.25s;
}
.boh-feature-card:hover {
  box-shadow: var(--boh-shadow);
  transform: translateY(-3px);
  border-color: var(--boh-secondary);
}
.boh-feature-icon { font-size: 40px; margin-bottom: 14px; }
.boh-feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.boh-feature-card p  { font-size: 14px; color: var(--boh-gray); }

/* ── CTA Section ─────────────────────────────────────────────── */
.boh-cta-section {
  background: linear-gradient(135deg, var(--boh-primary), var(--boh-secondary));
  padding: 72px 0;
  text-align: center;
  color: #fff;
}
.boh-cta-section h2 { color: #fff; font-size: clamp(26px, 3vw, 40px); margin-bottom: 14px; }
.boh-cta-section p  { opacity: 0.88; font-size: 17px; margin-bottom: 28px; }

/* ── Footer ──────────────────────────────────────────────────── */
#boh-footer {
  background: var(--boh-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}
.boh-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.boh-footer-brand .boh-logo-text { color: #fff; margin-bottom: 12px; display: block; font-size: 20px; }
.boh-footer-brand p { font-size: 13px; line-height: 1.7; max-width: 280px; }
.boh-footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.boh-footer-col ul { list-style: none; }
.boh-footer-col ul li { margin-bottom: 8px; }
.boh-footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 13px; }
.boh-footer-col ul li a:hover { color: var(--boh-secondary); }
.boh-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.boh-footer-bottom a { color: var(--boh-secondary); }
.boh-social-links { display: flex; gap: 12px; }
.boh-social-links a { color: rgba(255,255,255,0.6); font-size: 16px; }
.boh-social-links a:hover { color: var(--boh-secondary); }

/* ── Buttons ─────────────────────────────────────────────────── */
.boh-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--boh-radius);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  text-align: center;
}
.boh-button-primary {
  background: var(--boh-accent);
  color: #fff;
  border-color: var(--boh-accent);
}
.boh-button-primary:hover {
  background: #e85520;
  border-color: #e85520;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}
.boh-button-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.boh-button-outline:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: #fff;
}
.boh-button-white {
  background: #fff;
  color: var(--boh-primary);
  border-color: #fff;
}
.boh-button-white:hover {
  background: var(--boh-light);
  color: var(--boh-primary);
}

/* ── Single Course Page ──────────────────────────────────────── */
.boh-course-hero {
  background: linear-gradient(135deg, var(--boh-dark), var(--boh-primary));
  padding: 56px 0;
  color: #fff;
}
.boh-course-hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.boh-course-hero h1 { color: #fff; font-size: 32px; margin-bottom: 14px; }
.boh-course-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; opacity: 0.85; }
.boh-course-hero-meta span::before { content: '• '; }
.boh-course-hero-meta span:first-child::before { content: ''; }

.boh-course-card-sticky {
  background: #fff;
  border-radius: var(--boh-radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  color: var(--boh-dark);
}
.boh-course-card-price {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid var(--boh-border);
}
.boh-course-card-price .price-main { font-size: 36px; font-weight: 800; color: var(--boh-primary); }
.boh-course-card-price .price-orig { font-size: 16px; color: var(--boh-gray); text-decoration: line-through; margin-right: 8px; }
.boh-course-card-body { padding: 20px; }
.boh-course-includes { list-style: none; margin-bottom: 16px; }
.boh-course-includes li { padding: 7px 0; border-bottom: 1px solid var(--boh-border); font-size: 13px; display: flex; gap: 8px; }
.boh-course-includes li:last-child { border-bottom: none; }

/* ── Single Lesson ───────────────────────────────────────────── */
.boh-lesson-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.boh-lesson-sidebar {
  background: var(--boh-white);
  border: 1px solid var(--boh-border);
  border-radius: var(--boh-radius);
  overflow: hidden;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.boh-lesson-sidebar-title {
  background: var(--boh-primary);
  color: #fff;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
}
.boh-module-accordion { }
.boh-module-acc-header {
  padding: 12px 18px;
  background: var(--boh-light);
  border-bottom: 1px solid var(--boh-border);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.boh-module-acc-lessons { list-style: none; }
.boh-module-acc-lessons li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 12px;
  color: var(--boh-dark);
  border-bottom: 1px solid var(--boh-border);
  transition: background 0.15s;
}
.boh-module-acc-lessons li a:hover { background: var(--boh-light); }
.boh-module-acc-lessons li.boh-lesson-done a { color: var(--boh-gray); }
.boh-module-acc-lessons li.boh-lesson-done a::after { content: ' ✓'; color: green; margin-left: auto; }
.boh-module-acc-lessons li.boh-lesson-current a { background: #e8f4fd; font-weight: 600; color: var(--boh-primary); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .boh-footer-grid { grid-template-columns: 1fr 1fr; }
  .boh-hero-inner  { grid-template-columns: 1fr; }
  .boh-hero-img    { display: none; }
  .boh-course-hero-inner { grid-template-columns: 1fr; }
  .boh-lesson-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .boh-nav-menu    { display: none; }
  .boh-hamburger   { display: flex; }
  .boh-features    { grid-template-columns: 1fr; }
  .boh-footer-grid { grid-template-columns: 1fr; }
  .boh-section     { padding: 48px 0; }
}

/* ── WordPress Defaults ──────────────────────────────────────── */
.wp-block-image img { border-radius: var(--boh-radius); }
.aligncenter { margin: 0 auto; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2, .entry-content h3 { margin: 1.5em 0 0.6em; }
