/* ==========================================================================
   Blazing Zone Design — Complete Visual Styling
   Design slug: design-blazing-zone
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font Declarations
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'BlazingzoneHeading';
    src: url('../fonts/baijamjuree-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BlazingzoneBody';
    src: url('../fonts/dmsans-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   2. GP Remnant Safety Rule (ONLY allowed !important usage)
   -------------------------------------------------------------------------- */
.site-header,
.main-navigation,
.site-footer,
.site-info,
.top-bar {
    display: none !important;
}

/* --------------------------------------------------------------------------
   3. Body / Page Background
   -------------------------------------------------------------------------- */
.design-blazing-zone {
    background-color: #ffffff;
    
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22240%22%20height%3D%22120%22%3E%3Cdefs%3E%3Cstyle%3Epath%7Bfill%3Anone%3Bstroke%3Argba%2874%2C123%2C222%2C0.04%29%3Bstroke-width%3A1.5%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M0%2030%20C40%2010%2080%2050%20120%2030%20S200%2010%20240%2030%22%2F%3E%3Cpath%20d%3D%22M0%2060%20C40%2040%2080%2080%20120%2060%20S200%2040%20240%2060%22%2F%3E%3Cpath%20d%3D%22M0%2090%20C40%2070%2080%20110%20120%2090%20S200%2070%20240%2090%22%2F%3E%3C%2Fsvg%3E"); background-size: 240px 120px;
}

/* --------------------------------------------------------------------------
   4. Skip Link
   -------------------------------------------------------------------------- */
.blahdr-skip {
    position: absolute;
    top: -100%;
    left: 0;
    background: #4a7bde;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    font-size: 14px;
    text-decoration: none;
}

.blahdr-skip:focus {
    top: 0;
}

/* --------------------------------------------------------------------------
   5. Content Area
   -------------------------------------------------------------------------- */
.blahdr-site-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 45px 20px 60px;
    min-height: 50vh;
}

/* --------------------------------------------------------------------------
   6. Content Typography (scoped with body class)
   -------------------------------------------------------------------------- */
.design-blazing-zone h1,
.design-blazing-zone h2,
.design-blazing-zone h3,
.design-blazing-zone h4,
.design-blazing-zone h5 {
    font-family: 'BlazingzoneHeading', Arial, sans-serif;
    color: #262e36;
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.design-blazing-zone h1 { font-size: 2.2rem; }
.design-blazing-zone h2 { font-size: 1.7rem; }
.design-blazing-zone h3 { font-size: 1.3rem; }
.design-blazing-zone h4 { font-size: 1.2rem; }
.design-blazing-zone h5 { font-size: 1.05rem; }

.design-blazing-zone body,
.design-blazing-zone p,
.design-blazing-zone li,
.design-blazing-zone td,
.design-blazing-zone th {
    font-family: 'BlazingzoneBody', Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
}

.design-blazing-zone p {
    margin-bottom: 1.2em;
    font-size: 16px;
}

/* Links */
.design-blazing-zone a {
    color: #4a7bde;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.design-blazing-zone a:hover {
    color: #2160de;
}

/* Lists */
.design-blazing-zone ul,
.design-blazing-zone ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.design-blazing-zone li {
    margin-bottom: 0.4em;
}

/* Images */
.design-blazing-zone .entry-content img,
.design-blazing-zone .page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1em 0;
}

/* Dividers */
.design-blazing-zone hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2em 0;
}

/* --------------------------------------------------------------------------
   7. CTA Button (in header)
   -------------------------------------------------------------------------- */
.blahdr-cta {
    display: none;
    padding: 12px 32px;
    background: #4a7bde;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'BlazingzoneBody', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    transition: background 0.2s;
    margin-left: 12px;
}

.blahdr-cta:hover {
    background: #2160de;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(74,123,222,0.35);
    transform: translateY(-3px);
}

/* ── Search Bar ────────────────────────────────────────── */
.blahdr-search {
    margin-left: 12px;
    position: relative;
}
.blahdr-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.blahdr-search-form:focus-within {
    border-color: #4a7bde;
}
.blahdr-search-input {
    background: transparent;
    border: none;
    padding: 6px 10px;
    color: #d9d9d9;
    font-family: 'BlazingzoneBody', Arial, sans-serif;
    font-size: 0.85rem;
    width: 160px;
    outline: none;
}
.blahdr-search-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.blahdr-search-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    color: #d9d9d9;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.blahdr-search-btn:hover {
    color: #4a7bde;
}


/* --------------------------------------------------------------------------
   Header — Solid Bar
   -------------------------------------------------------------------------- */
.blahdr-wrap {
    background: #262e36;
    padding: 0;
    position: relative;
    z-index: 100;
    border-bottom: 3px solid #4a7bde;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.blahdr-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 66px;
}

.blahdr-brand {
    flex-shrink: 0;
}

.blahdr-brand a {
    text-decoration: none;
}

.blahdr-brand img {
    max-height: 45px;
    width: auto;
    display: block;
}

.blahdr-sitename {
    font-family: 'BlazingzoneHeading', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.blahdr-sitename:hover {
    color: #4a7bde;
}

/* Navigation */
.blahdr-nav {
    display: flex;
    align-items: center;
}

.blahdr-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.blahdr-menu li {
    position: relative;
}

.blahdr-menu > li > a {
    display: block;
    padding: 0 18px;
    line-height: 66px;
    color: #d9d9d9;
    text-decoration: none;
    font-family: 'BlazingzoneBody', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.blahdr-menu > li > a:hover,
.blahdr-menu > li.current-menu-item > a {
    color: #ffffff;
    background: rgba(74, 123, 222, 0.15);
    border-radius: 12px;
}

/* Dropdown */
.blahdr-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #1c2126;
    border-top: 2px solid #4a7bde;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    z-index: 200;
}

.blahdr-menu li:hover > .sub-menu {
    display: block;
}

.blahdr-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #c8c8c8;
    text-decoration: none;
    font-family: 'BlazingzoneBody', Arial, sans-serif;
    font-size: 0.9rem;
    transition: color 0.2s, background 0.2s;
}

.blahdr-menu .sub-menu a:hover {
    color: #ffffff;
    background: rgba(74, 123, 222, 0.15);
}

/* Mobile Menu Toggle (hidden on desktop) */
.blahdr-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 150;
}

.blahdr-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s, opacity 0.3s;
}

.blahdr-toggle[aria-expanded="true"] .blahdr-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.blahdr-toggle[aria-expanded="true"] .blahdr-toggle-bar:nth-child(2) {
    opacity: 0;
}

.blahdr-toggle[aria-expanded="true"] .blahdr-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* --------------------------------------------------------------------------
   Tables — Card Style (rounded, elevated)
   -------------------------------------------------------------------------- */
.design-blazing-zone .entry-content table,
.design-blazing-zone .page-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5em;
    font-size: 0.95rem;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.design-blazing-zone .entry-content th,
.design-blazing-zone .page-content th {
    background: #262e36;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-family: 'BlazingzoneHeading', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}

.design-blazing-zone .entry-content td,
.design-blazing-zone .page-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    text-align: left;
}

.design-blazing-zone .entry-content tr:last-child td,
.design-blazing-zone .page-content tr:last-child td {
    border-bottom: none;
}

.design-blazing-zone .entry-content tr:nth-child(even) td,
.design-blazing-zone .page-content tr:nth-child(even) td {
    background: #f8f8f8;
}

.design-blazing-zone .entry-content tr:hover td,
.design-blazing-zone .page-content tr:hover td {
    background: #f1f4fc;
}


/* --------------------------------------------------------------------------
   Footer — Stacked Two-Row
   -------------------------------------------------------------------------- */
.blaft-wrap {
    background: #262e36;
    color: #bdbdbd;
    margin-top: 40px;
    border-top: 3px solid #4a7bde;
}

.blaft-links-row {
    padding: 20px 0;
    border-bottom: 2px solid rgba(255,255,255,0.08);
}

.blaft-row-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.blaft-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.blaft-menu a {
    color: #bdbdbd;
    text-decoration: none;
    font-family: 'BlazingzoneBody', Arial, sans-serif;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.blaft-menu a:hover {
    color: #4a7bde;
}

.blaft-info-row {
    padding: 15px 0;
}

.blaft-info-row .blaft-row-inner {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blaft-copyright {
    margin: 0;
    font-family: 'BlazingzoneBody', Arial, sans-serif;
    font-size: 0.8rem;
    color: #999999;
}

.blaft-small {
    margin: 0;
    font-family: 'BlazingzoneBody', Arial, sans-serif;
    font-size: 0.8rem;
    color: #777777;
}


/* --------------------------------------------------------------------------
   Responsive — Tablet (768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Show hamburger */
    .blahdr-toggle {
        display: flex;
    }

    /* Hide desktop nav, show when toggled */
    .blahdr-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1c2126;
        border-top: 2px solid #4a7bde;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 200;
    }

    .blahdr-nav.is-open {
        display: block;
    }

    .blahdr-menu {
        flex-direction: column;
        padding: 10px 0;
    }

    .blahdr-menu > li > a {
        line-height: 1.4;
        padding: 12px 20px;
    }

    .blahdr-search {
        margin: 0;
        padding: 10px 20px;
    }
    .blahdr-search-input {
        width: 100%;
    }

    /* Dropdown on mobile: always visible */
    .blahdr-menu .sub-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background: rgba(0, 0, 0, 0.15);
        padding-left: 15px;
        display: block;
        transform: none;
    }

    /* Footer adjustments */
    .blaft-inner {
        flex-direction: column;
        text-align: center;
    }

    .blaft-menu {
        justify-content: center;
    }

    /* Content */
    .blahdr-site-content {
        padding: 25px 15px 40px;
    }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .blahdr-inner {
        height: 60px;
        padding: 0 15px;
    }

    .blahdr-sitename {
        font-size: 1.15rem;
    }

    .blahdr-brand img {
        max-height: 35px;
    }

    .design-blazing-zone h1 { font-size: 1.6rem; }
    .design-blazing-zone h2 { font-size: 1.35rem; }
    .design-blazing-zone h3 { font-size: 1.15rem; }

    .design-blazing-zone p {
        font-size: 0.95rem;
    }

    .blahdr-site-content {
        padding: 20px 12px 30px;
    }
}
