/* ===========================================================
   PAGE CSS — CLEAN (NO HEADER CONFLICTS)
   =========================================================== */
/* ============================================================
   STOP GLOBAL CERTIFICATIONS.CSS RULES FROM AFFECTING HEADER
=============================================================== */
:root {
    --bg: #f8f9fa;
    --text-main: #111;
    --text-sub: #555;
    --card-bg: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --accent: #0078ff;
}


/* BASE */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
}

/* PAGE LAYOUT */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ===========================
   DARK MODE
=========================== */
body.dark-mode {
  --bg: #0f172a;
  --card-bg: #111827;
  --text-main: #e5e7eb;
  --text-sub: #9ca3af;
}

/* ===========================
   CARDS / CONTENT
=========================== */
.card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  background: white;
  color: #0a2540;
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid white;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

/* ===========================
   ACCORDION
=========================== */
.category-section {
  background: var(--card-bg);
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.category-header {
  background: #0a2540;
  color: white;
  padding: 15px;
  cursor: pointer;
}

.category-section.open .card-list {
  display: block;
}

.card-list {
  display: none;
  padding: 15px;
}

/* ===========================
   FLOATING BUTTONS
=========================== */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #0078ff;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 9999;
}

.fab-booking {
  right: 100px;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #0a2540;
  color: white;
  padding: 30px;
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
}

/* MOBILE */
@media (max-width: 700px) {
  footer {
    flex-direction: column;
    text-align: center;
  }
}
html, body {
    overflow-x: hidden;
    max-width: none;
}
/* FIX: Remove accidental blue overlay on Certifications card */
.page-certifications h2 + .card {
    background: #ffffff !important;
    position: relative;
    z-index: 1;
}

.page-certifications h2 + .card::before {
    display: none !important;
}
/* HARD FIX: Remove blue overlay from Certifications card */
.page-certifications h2 + .card {
    background: #ffffff !important;
    position: relative !important;
    z-index: 10 !important;
    overflow: visible !important;
}

/* Kill any accidental pseudo-element overlays */
.page-certifications h2 + .card::before,
.page-certifications h2 + .card::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
}

/* Ensure badges are visible */
.page-certifications .card .badge {
    position: relative !important;
    z-index: 20 !important;
    background: #ffffff !important;
    color: #000000 !important;
}
/* FIX: Certifications badges layout */
.page-certifications .card {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: flex-start !important;
}

.page-certifications .card .badge {
    display: inline-block !important;
    background: #ffffff !important;
    padding: 6px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    z-index: 20 !important;
}
/* DARK MODE FIX FOR NEW.HTML */
body.dark-mode .card,
body.dark-mode .card p,
body.dark-mode .card li,
body.dark-mode .card h3,
body.dark-mode .card span,
body.dark-mode .badge {
    color: var(--text-main) !important;
    background: var(--bg) !important;
    border-color: var(--border-color, rgba(255,255,255,0.15)) !important;
}
