/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #F8F3E7;
    color: #2F3437;
    font-size: 16px;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════ */
.breadcrumb {
    background-color: #e8e2d6;
    padding: 10px 24px;
    font-size: 0.85rem;
    color: #555;
    border-bottom: 1px solid #d5cfc5;
}
.breadcrumb a { color: #1D3557; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.bc-sep { margin: 0 6px; color: #aaa; }
.bc-current { color: #2F3437; font-weight: 600; }

/* ═══════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════ */
.page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

/* ═══════════════════════════════════════
   PAGE TITLE BLOCK
═══════════════════════════════════════ */
.page-title-block {
    background: linear-gradient(135deg, #1D3557 0%, #2a4d73 100%);
    color: #F8F3E7;
    border-radius: 8px;
    padding: 36px 32px;
    margin-bottom: 24px;
}
.page-title-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #F5B041;
    margin-bottom: 4px;
}
.page-title-main {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}
.page-title-sub {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 720px;
}

/* ═══════════════════════════════════════
   QUICK NAV
═══════════════════════════════════════ */
.quick-nav-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
    margin-bottom: 8px;
}
.quick-nav-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.qnav-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #1D3557;
    color: #F8F3E7;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.15s;
    cursor: pointer;
}
.qnav-card:hover, .qnav-card.active {
    background-color: #F5B041;
    color: #2F3437;
    transform: translateY(-1px);
}
.qnav-icon { font-size: 1rem; }

/* ═══════════════════════════════════════
   SECTION ARTICLE
═══════════════════════════════════════ */
.section-art-txt {
    margin: 0 0 24px 0;
    padding: 28px 28px 24px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    scroll-margin-top: 80px;
}
.section-art-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1D3557;
    border-left: 4px solid #E63946;
    padding-left: 12px;
    margin-bottom: 16px;
    line-height: 1.3;
}
.subsection-block { display: flex; flex-direction: column; gap: 20px; }
.intro-para {
    font-size: 1rem;
    color: #2F3437;
    line-height: 1.6;
    max-width: 820px;
}

/* ═══════════════════════════════════════
   SECTION DIVIDER
═══════════════════════════════════════ */
.section-divider {
    border: none;
    border-top: 2px solid #e0dbd2;
    margin: 4px 0 24px 0;
}

/* ═══════════════════════════════════════
   PPE CATEGORY BLOCKS
═══════════════════════════════════════ */
.ppe-category {
    background-color: #fdfcfa;
    border: 1px solid #e8e2d6;
    border-radius: 8px;
    overflow: hidden;
}
.ppe-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #1D3557;
    color: #F8F3E7;
    padding: 10px 16px;
}
.ppe-cat-header h3 {
    font-size: 0.97rem;
    font-weight: 700;
    margin: 0;
}
.ppe-cat-icon { font-size: 1.05rem; }
.ppe-category > *:not(.ppe-cat-header) { padding: 16px 18px; }
.ppe-category > .cards-grid,
.ppe-category > .cards-grid-2,
.ppe-category > .styled-table { padding: 16px 18px; }

/* ═══════════════════════════════════════
   EQUIPMENT TYPE CARDS
═══════════════════════════════════════ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.item-card {
    background-color: #ffffff;
    border: 1px solid #ddd8ce;
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.item-card h4 {
    font-size: 0.93rem;
    font-weight: 700;
    color: #1D3557;
    line-height: 1.3;
}
.item-card p, .item-card li {
    font-size: 0.88rem;
    color: #2F3437;
    line-height: 1.5;
}
.item-card ul {
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: disc;
}


/* ═══════════════════════════════════════
   STYLED TABLE
═══════════════════════════════════════ */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.styled-table thead tr {
    background-color: #1D3557;
    color: #F8F3E7;
}
.styled-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
}
.styled-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #e8e2d6;
    color: #2F3437;
}
.styled-table tbody tr:nth-child(even) { background-color: #f8f6f2; }
.styled-table tbody tr:hover { background-color: #eef2f7; }


/* ═══════════════════════════════════════
   CHECK LIST
═══════════════════════════════════════ */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.check-list li {
    font-size: 0.93rem;
    color: #2F3437;
    padding-left: 24px;
    position: relative;
    line-height: 1.55;
}
.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #2E7D52;
    font-weight: 700;
}

/* ═══════════════════════════════════════
   REGULATION BLOCKS
═══════════════════════════════════════ */
.reg-block {
    border: 1px solid #e0dbd2;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}
.reg-block:last-child { margin-bottom: 0; }
.reg-block--featured { border-width: 2px; border-color: #1D3557; }
.reg-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #F8F3E7;
}
.reg-block-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    flex: 1;
    line-height: 1.3;
}
.reg-icon { font-size: 0.85rem; flex-shrink: 0; }
.reg-hdr--blue   { background-color: #1D3557; }
.reg-hdr--slate  { background-color: #455A64; }
.reg-hdr--gold   { background-color: #D4890A; }
.reg-hdr--orange { background-color: #E67E22; }
.reg-hdr--red    { background-color: #E63946; }
.reg-hdr--green  { background-color: #2E7D52; }
.reg-block-body { padding: 14px 18px; background: #fdfcfa; }
.featured-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background: rgba(255,255,255,0.22);
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   CALLOUT
═══════════════════════════════════════ */
.callout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 8px;
    padding: 13px 15px;
}
.callout--tip {
    background-color: #EBF2FA;
    border-left: 4px solid #1D3557;
}
.callout-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.4; }
.callout strong { display: block; font-size: 0.86rem; color: #1D3557; margin-bottom: 2px; }
.callout p { font-size: 0.88rem; line-height: 1.5; color: #2F3437; margin: 0; }

/* ═══════════════════════════════════════
   DANGER BANNER (Red/Green Tag)
═══════════════════════════════════════ */
.danger-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background-color: #fdecea;
    border-left: 4px solid #E63946;
    border-radius: 6px;
    padding: 14px 16px;
}
.danger-icon { font-size: 1.4rem; flex-shrink: 0; }
.danger-banner strong { display: block; font-size: 0.9rem; color: #c0392b; margin-bottom: 4px; }
.danger-banner p { font-size: 0.88rem; line-height: 1.5; color: #2F3437; margin: 0; }


/* QUIZ NAV */
.quiz-nav-container {
  text-align: center;
  margin-bottom: 0.75rem;
}

.quiz-nav {
  display: flex;
  justify-content: center;
}

.quiz-nav-btn {
  display: inline-block;
  background-color: #E63946;
  color: #F8F3E7;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(29, 53, 87, 0.18);
  border: 2px solid transparent;
}

.quiz-nav-btn:hover {
  background-color: #C92F3B;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(29, 53, 87, 0.24);
}

.quiz-nav-btn:focus {
  outline: none;
  border-color: #F1C40F;
}

/* FOOTER NAV */
.main-footer-nav {
    background-color: #1D3557;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    flex-wrap: wrap;
}
.main-footer-nav-btn {
    background-color: #F5B041;
    color: #2F3437;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.main-footer-nav-btn:hover { background-color: #F8C471; }

/* ═══════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════ */
.site-footer {
    background-color: #2F3437;
    color: #F8F3E7;
    padding: 40px 24px 24px;
}
.footer-container { display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #F1C40F; gap: 32px; max-width: 1200px; margin: 0 auto; }
.footer-col {
  text-align: left;
  color: #F1C40F;
  margin: 0 50px;
}
.footer-col a { color: #F1C40F; text-decoration: underline; }
.footer-col a:hover { opacity: 0.5; }
.footer-col h3 { font-size: 1.05rem; color: #F1C40F; margin-bottom: 10px; }
.footer-col p { font-size: 0.9rem; opacity: 0.8; line-height: 1.6; }
.footer-credit {
    text-align: center; font-size: 0.8rem; opacity: 0.6;
    margin-top: 24px; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
    max-width: 1200px; margin-left: auto; margin-right: auto;
}

/* ═══════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════ */
.back-to-top {
    position: fixed; bottom: 28px; right: 24px; z-index: 999;
    padding: 10px 18px; font-size: 0.85rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
    .page-title-main { font-size: 1.45rem; }
    .page-title-block { padding: 22px 18px; }
    .section-art-txt { padding: 20px 16px; }
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .cards-grid-2 { grid-template-columns: 1fr; }
    .styled-table { font-size: 0.82rem; }
    .footer-container { flex-direction: column; gap: 16px; }
    .quick-nav-grid { gap: 6px; }
    .qnav-card { font-size: 0.82rem; padding: 7px 12px; }
}
@media (max-width: 480px) {
    .cards-grid { grid-template-columns: 1fr; }
    .styled-table th, .styled-table td { padding: 7px 8px; }
}
