/*
 * Shredder2u — Security Levels Guide Page Styles
 * File: shr-security-page.css
 * Location: /opt/bitnami/wordpress/wp-content/themes/storefront-child/shr-security-page.css
 * Loaded only on the security levels page — conditional enqueue in functions.php
 * All rules scoped to .shr-sec-wrap
 */

.shr-sec-wrap * {
    box-sizing: border-box;
}

.shr-sec-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 48px 64px;
    font-family: inherit;
}

/* ── Kill WP title + gap ── */
.shr-sec-wrap p:empty,
.shr-sec-hero>p {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
}

/* Kill the gap between navbar and hero, hide default WP title */
.about-us .entry-title,
.page-id-12330 .entry-title {
    display: none !important;
}

.about-us .entry-content,
.page-id-12330 .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* =============================================================
   HERO
   ============================================================= */

.shr-sec-hero {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 44px;
    background: linear-gradient(135deg, #111d2e 0%, #1a2e45 50%, #0f1923 100%);
    padding: 56px 8vw 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    overflow: hidden;
}

.shr-sec-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 0;
}

.shr-sec-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1;
    background: linear-gradient(90deg, transparent 5%, #e63946 35%, #e63946 65%, transparent 95%);
}

.shr-sec-hero__text {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.shr-sec-hero__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #e63946;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.shr-sec-hero__eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: #e63946;
    flex-shrink: 0;
}

.shr-sec-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px;
}

.shr-sec-hero__title .highlight {
    color: #e63946;
}

.shr-sec-hero__body {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.75;
    margin: 0 0 24px;
}

.shr-sec-hero__links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.shr-sec-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
}

.shr-sec-hero__link--solid {
    background: #e63946;
    color: #fff !important;
}

.shr-sec-hero__link--solid:hover {
    background: #c1121f;
}

.shr-sec-hero__link--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shr-sec-hero__link--ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

/* Right — quick-nav level pills */
.shr-sec-hero__levels {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shr-sec-hero__level-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 16px;
    min-width: 220px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.shr-sec-hero__level-pill:hover {
    background: rgba(255, 255, 255, 0.12);
}

.shr-sec-hero__level-badge {
    font-size: 0.8rem;
    font-weight: 800;
    color: #e63946;
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 5px;
    padding: 3px 9px;
    flex-shrink: 0;
}

.shr-sec-hero__level-info strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2px;
}

.shr-sec-hero__level-info span {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.45);
}

/* =============================================================
   INTRO STRIP — Why this matters in Malaysia
   ============================================================= */

.shr-sec-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 36px 36px;
    margin-bottom: 52px;
}

.shr-sec-intro__text h2 {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #111d2e !important;
    margin: 0 0 12px !important;
}

.shr-sec-intro__text p {
    font-size: 0.93rem !important;
    color: #374151 !important;
    line-height: 1.8 !important;
    margin-bottom: 14px !important;
}

.shr-sec-intro__text p:last-child {
    margin-bottom: 0 !important;
}

.shr-sec-intro__text strong {
    color: #111d2e;
    font-weight: 700;
}

.shr-sec-intro__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.shr-sec-intro__stat {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 20px 18px;
    border-top: 3px solid #e63946;
}

.shr-sec-intro__stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #e63946;
    line-height: 1;
    margin-bottom: 6px;
}

.shr-sec-intro__stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
    font-weight: 600;
}

/* =============================================================
   LEVEL CARDS — P-1 to P-7
   ============================================================= */

.shr-sec-levels {
    margin-bottom: 52px;
}

.shr-sec-levels__heading {
    margin-bottom: 28px;
}

.shr-sec-levels__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e63946;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shr-sec-levels__eyebrow::before {
    content: '';
    display: block;
    height: 1px;
    width: 22px;
    background: #e63946;
    flex-shrink: 0;
}

.shr-sec-levels__heading h2 {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #111d2e !important;
    margin: 0 0 8px !important;
}

.shr-sec-levels__heading p {
    font-size: 0.93rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

.shr-sec-level-card {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 0 28px;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.shr-sec-level-card:hover {
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 6px 24px rgba(230, 57, 70, 0.09);
}

.shr-sec-level-card:last-child {
    margin-bottom: 0;
}

/* Left badge column */
.shr-sec-level-card__badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 14px;
    text-align: center;
}

.shr-sec-level-card__level {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.shr-sec-level-card__cut {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Colour variants per level */
.shr-sec-level-card[data-level="1"] .shr-sec-level-card__badge {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.shr-sec-level-card[data-level="2"] .shr-sec-level-card__badge {
    background: linear-gradient(135deg, #7c8fa0, #5a7080);
}

.shr-sec-level-card[data-level="3"] .shr-sec-level-card__badge {
    background: linear-gradient(135deg, #0f7173, #0a5254);
}

.shr-sec-level-card[data-level="4"] .shr-sec-level-card__badge {
    background: linear-gradient(135deg, #e63946, #c1121f);
}

.shr-sec-level-card[data-level="5"] .shr-sec-level-card__badge {
    background: linear-gradient(135deg, #9333ea, #7e22ce);
}

.shr-sec-level-card[data-level="6"] .shr-sec-level-card__badge {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

.shr-sec-level-card[data-level="7"] .shr-sec-level-card__badge {
    background: linear-gradient(135deg, #111d2e, #0a0f1a);
}

/* Middle content */
.shr-sec-level-card__content {
    padding: 20px 0 20px;
}

.shr-sec-level-card__title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #111d2e !important;
    margin: 0 0 6px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shr-sec-level-card__recommended {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: #e63946;
    color: #fff;
    white-space: nowrap;
}

.shr-sec-level-card__desc {
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    line-height: 1.75 !important;
    margin: 0 0 12px !important;
}

.shr-sec-level-card__uses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shr-sec-level-card__use-tag {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    background: #f0f2f5;
    color: #374151;
    border: 1px solid #e8edf2;
}

/* Right sidebar — specs */
.shr-sec-level-card__specs {
    padding: 20px 24px;
    border-left: 1px solid #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    min-width: 180px;
}

.shr-sec-level-card__spec label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 3px;
}

.shr-sec-level-card__spec value {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #111d2e;
}

.shr-sec-level-card__bar-bg {
    height: 4px;
    background: #f0f2f5;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.shr-sec-level-card__bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #e63946, #ff6b7a);
}

.shr-sec-level-card__browse {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e63946;
    text-decoration: none !important;
}

.shr-sec-level-card__browse:hover {
    text-decoration: underline !important;
}

/* =============================================================
   MALAYSIA CONTEXT — PDPA + Industry guide
   ============================================================= */

.shr-sec-malaysia {
    background: linear-gradient(135deg, #111d2e 0%, #1a2e45 60%, #0f1923 100%);
    border-radius: 12px;
    padding: 40px 36px;
    margin-bottom: 52px;
    position: relative;
    overflow: hidden;
}

.shr-sec-malaysia::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.shr-sec-malaysia::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, #e63946 35%, #e63946 65%, transparent 95%);
}

.shr-sec-malaysia__head {
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.shr-sec-malaysia__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e63946;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shr-sec-malaysia__eyebrow::before {
    content: '';
    display: block;
    height: 1px;
    width: 22px;
    background: #e63946;
    flex-shrink: 0;
}

.shr-sec-malaysia__head h2 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 8px !important;
}

.shr-sec-malaysia__head p {
    font-size: 0.93rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    max-width: 600px;
}

.shr-sec-industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    position: relative;
    z-index: 2;
}

.shr-sec-industry-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px 18px;
    transition: background 0.2s;
}

.shr-sec-industry-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.shr-sec-industry-card__icon {
    font-size: 1.6rem;
    margin-bottom: 12px;
    display: block;
}

.shr-sec-industry-card__name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.shr-sec-industry-card__level {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(230, 57, 70, 0.2);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: #ff8a94;
    margin-bottom: 10px;
}

.shr-sec-industry-card__desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
}

/* PDPA callout */
.shr-sec-pdpa {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.25);
    border-radius: 10px;
    padding: 22px 24px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.shr-sec-pdpa__icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.shr-sec-pdpa__text h4 {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 6px !important;
}

.shr-sec-pdpa__text p {
    font-size: 0.86rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* =============================================================
   QUICK COMPARISON TABLE
   ============================================================= */

.shr-sec-table-wrap {
    margin-bottom: 52px;
}

.shr-sec-table-wrap h2 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #111d2e !important;
    margin: 0 0 20px !important;
}

.shr-sec-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.shr-sec-table th {
    background: #111d2e;
    color: #fff;
    padding: 14px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.shr-sec-table th:last-child {
    border-right: none;
}

.shr-sec-table td {
    padding: 13px 16px;
    font-size: 0.88rem;
    color: #374151;
    border-bottom: 1px solid #f0f2f5;
    border-right: 1px solid #f0f2f5;
    vertical-align: middle;
}

.shr-sec-table td:last-child {
    border-right: none;
}

.shr-sec-table tr:last-child td {
    border-bottom: none;
}

.shr-sec-table tr:nth-child(even) td {
    background: #fafafa;
}

.shr-sec-table tr:hover td {
    background: #fff8f8;
}

.shr-sec-table__level {
    font-weight: 800;
    color: #e63946;
    white-space: nowrap;
}

.shr-sec-table__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e63946;
    color: #fff;
}

/* =============================================================
   CTA
   ============================================================= */

.shr-sec-cta {
    background: linear-gradient(135deg, #e63946 30%, #c1121f 100%);
    border-radius: 10px;
    padding: 44px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.shr-sec-cta__text h3 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 8px !important;
}

.shr-sec-cta__text p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

.shr-sec-cta__btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.shr-sec-btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
    white-space: nowrap;
}

.shr-sec-btn--white {
    background: #fff;
    color: #e63946 !important;
    border: 2px solid #fff;
}

.shr-sec-btn--white:hover {
    background: transparent;
    color: #fff !important;
}

.shr-sec-btn--outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.shr-sec-btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width:900px) {
    .shr-sec-intro {
        grid-template-columns: 1fr;
    }

    .shr-sec-industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shr-sec-level-card {
        grid-template-columns: 80px 1fr;
    }

    .shr-sec-level-card__specs {
        display: none;
    }
}

@media (max-width:768px) {
    .shr-sec-hero {
        flex-direction: column;
        padding: 44px 6vw 40px;
    }

    .shr-sec-hero__title {
        font-size: 2rem;
    }

    .shr-sec-hero__levels {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .shr-sec-hero__level-pill {
        flex: 1 1 160px;
        min-width: 0;
    }

    .shr-sec-malaysia {
        padding: 28px 22px;
    }

    .shr-sec-table {
        font-size: 0.82rem;
    }

    .shr-sec-table td,
    .shr-sec-table th {
        padding: 10px 12px;
    }
}

@media (max-width:600px) {
    .shr-sec-wrap {
        padding: 0 16px 40px;
    }

    .shr-sec-intro {
        padding: 24px 20px;
    }

    .shr-sec-intro__stats {
        grid-template-columns: 1fr 1fr;
    }

    .shr-sec-level-card {
        grid-template-columns: 70px 1fr;
    }

    .shr-sec-level-card__badge {
        padding: 16px 10px;
    }

    .shr-sec-level-card__level {
        font-size: 1.1rem;
    }

    .shr-sec-industry-grid {
        grid-template-columns: 1fr;
    }

    .shr-sec-cta {
        padding: 32px 22px;
        flex-direction: column;
    }

    .shr-sec-cta__btns {
        width: 100%;
    }

    .shr-sec-btn {
        width: 100%;
        text-align: center;
    }

    .shr-sec-hero__levels {
        display: none;
    }

    .shr-sec-table-wrap {
        overflow-x: auto;
    }
}