/* =========================================================
   HFDXARC - What is Amateur Radio dedicated page layout
   Loads only for the page slug/template: what-is-amateur-radio
   ========================================================= */

body.hfdxarc-amateur-radio-page,
body.hfdxarc-page-what-is-amateur-radio {
    color: #e8f1fa;
}

/* Darken the global child-theme watermark overlay only on this page. */
body.hfdxarc-amateur-radio-page::before,
body.hfdxarc-page-what-is-amateur-radio::before {
    background:
        radial-gradient(circle at 18% 12%, rgba(24, 139, 228, 0.18), transparent 34%),
        radial-gradient(circle at 84% 18%, rgba(225, 29, 72, 0.08), transparent 30%),
        linear-gradient(
            180deg,
            rgba(5, 12, 23, 0.82) 0%,
            rgba(7, 15, 27, 0.74) 42%,
            rgba(5, 12, 23, 0.86) 100%
        ) !important;
}

body.hfdxarc-amateur-radio-page #wrap.hfdxarc-amateur-template-wrap,
body.hfdxarc-page-what-is-amateur-radio #wrap.hfdxarc-amateur-template-wrap {
    width: 92%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 22px 0 64px;
}

body.hfdxarc-amateur-radio-page #content.hfdxarc-amateur-template-content,
body.hfdxarc-page-what-is-amateur-radio #content.hfdxarc-amateur-template-content {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-article,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-article {
    margin: 0 auto !important;
    padding: clamp(18px, 3vw, 42px) !important;
    width: 100% !important;
    max-width: 100% !important;
    background:
        linear-gradient(180deg, rgba(9, 19, 33, 0.94), rgba(8, 17, 30, 0.90)) !important;
    border: 1px solid rgba(126, 211, 255, 0.24) !important;
    border-radius: 24px !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46) !important;
    overflow: hidden !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 !important;
    color: #dfeaf5 !important;
    background: transparent !important;
}

/* Remove old theme/editor panels that make light text unreadable. */
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry > .wp-block-group,
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry > .wp-block-columns,
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry .entry-content,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry > .wp-block-group,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry > .wp-block-columns,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry .entry-content {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry h1,
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry h2,
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry h3,
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry h4,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry h1,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry h2,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry h3,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry h4 {
    color: #ffffff !important;
    font-weight: 850 !important;
    line-height: 1.16 !important;
    margin: 0 0 14px !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry h1,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry h1 {
    font-size: clamp(2.15rem, 4vw, 3.65rem) !important;
    letter-spacing: -0.035em;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry h2,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry h2 {
    font-size: clamp(1.55rem, 2.6vw, 2.25rem) !important;
    margin-top: 34px !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry h3,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry h3 {
    color: #dff4ff !important;
    font-size: 1.2rem !important;
    margin-top: 24px !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry p,
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry li,
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry td,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry p,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry li,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry td {
    color: #dbe8f2 !important;
    font-size: 1.02rem !important;
    line-height: 1.72 !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry p,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry p {
    margin: 0 0 16px !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry ul,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry ul {
    margin: 0 0 0 1.15rem !important;
    padding: 0 !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry li,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry li {
    margin: 0 0 8px !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry a,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry a {
    color: #8bd8ff !important;
    font-weight: 750 !important;
    text-decoration-color: rgba(139, 216, 255, 0.65) !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry a:hover,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry a:hover {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}

/* Hero and content cards used by the supplied WordPress content. */
body.hfdxarc-amateur-radio-page .hfdxarc-licence-hero,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-licence-hero {
    position: relative;
    padding: clamp(24px, 4vw, 46px) !important;
    margin: 0 0 24px !important;
    background:
        linear-gradient(135deg, rgba(15, 32, 52, 0.98), rgba(9, 20, 36, 0.96)) !important;
    border: 1px solid rgba(126, 211, 255, 0.24) !important;
    border-radius: 24px !important;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.36) !important;
    overflow: hidden;
}

body.hfdxarc-amateur-radio-page .hfdxarc-licence-hero::after,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-licence-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -45% 46%;
    height: 260px;
    background: radial-gradient(circle, rgba(126, 211, 255, 0.16), transparent 62%);
    pointer-events: none;
}

body.hfdxarc-amateur-radio-page .hfdxarc-licence-kicker,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-licence-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 14px !important;
    padding: 7px 11px;
    color: #8bd8ff !important;
    background: rgba(126, 211, 255, 0.10);
    border: 1px solid rgba(126, 211, 255, 0.22);
    border-radius: 999px;
    font-size: 0.78rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.hfdxarc-amateur-radio-page .hfdxarc-licence-card,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-licence-card {
    padding: clamp(18px, 2.6vw, 30px) !important;
    margin: 22px 0 !important;
    background: rgba(13, 27, 45, 0.92) !important;
    border: 1px solid rgba(126, 211, 255, 0.18) !important;
    border-radius: 22px !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.30) !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-licence-grid,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-licence-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0 0 !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-licence-grid .hfdxarc-licence-card,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-licence-grid .hfdxarc-licence-card {
    margin: 0 !important;
    background: rgba(8, 19, 34, 0.78) !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-licence-note,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-licence-note {
    margin: 20px 0 !important;
    padding: 16px 18px !important;
    color: #eaf7ff !important;
    background: rgba(126, 211, 255, 0.10) !important;
    border: 1px solid rgba(126, 211, 255, 0.18) !important;
    border-left: 4px solid #8bd8ff !important;
    border-radius: 15px !important;
}

/* Video block - FV Player, YouTube iframe, or normal video. */
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry .flowplayer,
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry .fv-player,
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry iframe,
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry video,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry .flowplayer,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry .fv-player,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry iframe,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry video {
    display: block !important;
    width: min(100%, 760px) !important;
    max-width: 760px !important;
    margin: 0 auto 30px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46) !important;
}

/* Tables */
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry .hfdxarc-licence-table-wrap,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry .hfdxarc-licence-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 18px 0 4px !important;
    border-radius: 18px;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry table,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
    background: rgba(7, 16, 29, 0.96) !important;
    border: 1px solid rgba(126, 211, 255, 0.16) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34) !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry table th,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry table th {
    padding: 15px !important;
    background: #101a2e !important;
    color: #ffffff !important;
    border: 0 !important;
    font-size: 0.93rem !important;
    font-weight: 850 !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry table td,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry table td {
    padding: 15px !important;
    background: rgba(12, 25, 42, 0.88) !important;
    color: #dbe8f2 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    vertical-align: top !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry table tr:nth-child(even) td,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry table tr:nth-child(even) td {
    background: rgba(15, 31, 51, 0.90) !important;
}

/* Jetpack sharing / NextGEN related blocks at the bottom. */
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry .sharedaddy,
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry .sd-sharing-enabled,
body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry .ngg-galleryoverview,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry .sharedaddy,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry .sd-sharing-enabled,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry .ngg-galleryoverview {
    margin-top: 26px !important;
    padding: 18px !important;
    background: rgba(10, 22, 38, 0.78) !important;
    border: 1px solid rgba(126, 211, 255, 0.14) !important;
    border-radius: 18px !important;
    color: #dbe8f2 !important;
}

body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry .sharedaddy h3,
body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry .sharedaddy h3 {
    color: #ffffff !important;
}

@media (max-width: 900px) {
    body.hfdxarc-amateur-radio-page #wrap.hfdxarc-amateur-template-wrap,
    body.hfdxarc-page-what-is-amateur-radio #wrap.hfdxarc-amateur-template-wrap {
        width: 100%;
        padding: 8px 8px 32px;
    }

    body.hfdxarc-amateur-radio-page .hfdxarc-amateur-article,
    body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-article {
        border-radius: 18px !important;
        padding: 14px !important;
    }

    body.hfdxarc-amateur-radio-page .hfdxarc-licence-grid,
    body.hfdxarc-page-what-is-amateur-radio .hfdxarc-licence-grid {
        grid-template-columns: 1fr !important;
    }

    body.hfdxarc-amateur-radio-page .hfdxarc-amateur-entry table,
    body.hfdxarc-page-what-is-amateur-radio .hfdxarc-amateur-entry table {
        min-width: 760px;
    }
}
