
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
    --bg: #070b10;
    --panel: #0d141c;
    --panel2: #111c25;
    --line: #1e3440;
    --text: #e9f6fa;
    --muted: #8ba4ad;
    --accent: #38d6e8;
    --accent2: #7af0a6;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Rajdhani, Arial, sans-serif;
    font-size: 18px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   M7COV TOP NAVIGATION
   ========================= */

.topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 5vw;
    border-bottom: 1px solid var(--line);
    background: #080d13ef;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    font-size: 31px;
    color: var(--accent);
    text-shadow: 0 0 18px #38d6e866;
}

.brand strong {
    display: block;
    font: 800 20px Orbitron, Arial, sans-serif;
    letter-spacing: 2px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 3px;
}

.topbar nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.topbar nav a {
    display: inline-block;
    font-weight: 600;
    color: #a9bbc1;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.topbar nav a:hover,
.topbar nav a.active {
    color: var(--accent);
}

/* Tablet navigation */

@media (max-width: 1100px) {
    .topbar {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 20px;
    }

    .topbar nav {
        justify-content: center;
        width: 100%;
    }
}

/* Mobile navigation */

@media (max-width: 700px) {
    .topbar {
        position: relative;
        gap: 12px;
    }

    .topbar nav {
        gap: 8px;
    }

    .topbar nav a {
        font-size: 12px;
        padding: 7px 9px;
    }
}

/* =========================
   HOMEPAGE HERO
   ========================= */

.hero {
    min-height: 670px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 9vw;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 45%, #16424c55 0, transparent 34%),
        linear-gradient(120deg, #071016, #081018 48%, #0b1c22);
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#ffffff04 1px, transparent 1px),
        linear-gradient(90deg, #ffffff04 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(to right, transparent, #000 40%, #000 100%);
    pointer-events: none;
}

.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0 5px,
        #ffffff03 6px
    );
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 610px;
}

.eyebrow {
    color: var(--accent);
    font: 700 12px Orbitron, Arial, sans-serif;
    letter-spacing: 3px;
}

h1,
h2,
h3 {
    font-family: Orbitron, Arial, sans-serif;
}

h1 {
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.98;
    margin: 18px 0 25px;
    letter-spacing: -2px;
    text-shadow: 0 0 35px #38d6e822;
}

h1 span {
    color: var(--accent);
}

.lead {
    font-size: 24px;
    line-height: 1.35;
    color: #b8cbd0;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 14px 20px;
    border: 1px solid var(--accent);
    font: 700 13px Orbitron, Arial, sans-serif;
    letter-spacing: 1.5px;
}

.primary {
    background: var(--accent);
    color: #061116;
    box-shadow: 0 0 28px #38d6e822;
}

.ghost {
    color: var(--accent);
}

/* Radio frequency panel */

.radio-panel {
    position: relative;
    z-index: 2;
    width: min(430px, 42vw);
    padding: 22px;
    background: #071016dd;
    border: 1px solid #2c6570;
    box-shadow:
        0 0 60px #38d6e811,
        inset 0 0 35px #38d6e808;
}

.panel-top,
.panel-bottom,
.mode-row,
.dial {
    display: flex;
    justify-content: space-between;
    color: #71939c;
    font: 10px Orbitron, Arial, sans-serif;
    letter-spacing: 1px;
}

.frequency {
    font: 700 clamp(38px, 5vw, 62px) Orbitron, Arial, sans-serif;
    color: var(--accent);
    text-shadow: 0 0 18px #38d6e877;
    margin: 25px 0 8px;
}

.frequency span {
    font-size: 16px;
}

.mode-row {
    border-top: 1px solid var(--line);
    padding: 12px 0;
}

.meter {
    height: 55px;
    display: flex;
    align-items: end;
    gap: 4px;
    border-bottom: 1px solid #21414a;
}

.meter i {
    display: block;
    width: 7%;
    height: 18%;
    background: #247d89;
}

.meter i:nth-child(4n) {
    height: 44%;
}

.meter i:nth-child(7n) {
    height: 72%;
}

.meter i:nth-child(10) {
    height: 92%;
    background: var(--accent);
}

.dial {
    padding-top: 12px;
}

.dial b {
    color: var(--accent);
}

/* =========================
   TICKER
   ========================= */

.ticker {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 13px 5vw;
    background: #0c171e;
    border-block: 1px solid var(--line);
    font: 11px Orbitron, Arial, sans-serif;
    color: #86a7af;
    letter-spacing: 1px;
}

/* =========================
   GENERAL SECTIONS
   ========================= */

.section {
    padding: 100px 9vw;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 45px;
}

.section h2 {
    font-size: clamp(30px, 4vw, 52px);
    margin: 10px 0 15px;
}

.section-heading > p:last-child,
.aprs-box p {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.5;
}

/* Cards */

.cards {
    display: grid;
    gap: 18px;
}

.three {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 30px;
    min-height: 245px;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #2b7180;
}

.icon {
    font-size: 34px;
}

.card h3 {
    font-size: 20px;
}

.card p {
    color: var(--muted);
    line-height: 1.45;
}

.card a {
    color: var(--accent);
    font-weight: 700;
}

/* Dark sections */

.dark-section {
    background: #05090d;
    border-block: 1px solid var(--line);
}

/* Operating modes */

.mode-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mode-grid div {
    padding: 27px;
    background: var(--panel);
    border: 1px solid var(--line);
}

.mode-grid span {
    display: block;
    color: var(--accent);
    font: 800 26px Orbitron, Arial, sans-serif;
}

.mode-grid b {
    display: block;
    margin-top: 10px;
    color: #91a8af;
}

/* =========================
   APRS HOMEPAGE SECTION
   ========================= */

.aprs-box {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 50px;
    align-items: center;
}

.aprs-screen {
    padding: 28px;
    background: #071014;
    border: 1px solid #28636d;
    box-shadow: inset 0 0 35px #38d6e80a;
}

.aprs-screen span,
.aprs-screen small {
    display: block;
    font: 11px Orbitron, Arial, sans-serif;
    color: #71939c;
    letter-spacing: 2px;
}

.aprs-screen strong {
    display: block;
    font: 700 35px Orbitron, Arial, sans-serif;
    color: var(--accent);
    margin: 22px 0;
}

.aprs-screen small + small {
    margin-top: 8px;
}

/* APRS dashboard details */

.aprs-details {
    display: grid;
    gap: 12px;
    margin: 25px 0;
}

.aprs-details div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.aprs-details span {
    min-width: 75px;
    color: var(--muted);
    font: 10px Orbitron, Arial, sans-serif;
    letter-spacing: 1.5px;
}

.aprs-details strong {
    color: var(--text);
    font-weight: 700;
}

.aprs-details + .button {
    display: inline-block;
    margin-top: 5px;
}

.aprs-status {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--accent2);
    font: 10px Orbitron, Arial, sans-serif;
    letter-spacing: 1.5px;
}

.aprs-status i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 10px var(--accent2);
}

/* =========================
   JOURNAL
   ========================= */

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.journal-grid article {
    border-top: 2px solid #24545d;
    padding: 22px;
    background: #0a1117;
}

.journal-grid span {
    color: var(--accent);
    font: 10px Orbitron, Arial, sans-serif;
    letter-spacing: 2px;
}

.journal-grid h3 {
    font-size: 19px;
}

.journal-grid p {
    color: var(--muted);
}

/* =========================
   FOOTER
   ========================= */

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 9vw;
    border-top: 1px solid var(--line);
    color: #708890;
    font-size: 14px;
}

footer strong {
    color: var(--accent);
    font-family: Orbitron, Arial, sans-serif;
}

/* =========================
   HAMALERT PANEL
   ========================= */

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 400px;
    max-width: 100%;
}

.hamalert {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hamalert img {
    width: 100%;
    max-width: 370px;
    height: auto;
    display: block;
}

/* =========================
   PHOTO ALBUM
   ========================= */

.album-count {
    margin-top: 15px !important;
    color: var(--accent);
    font-family: Orbitron, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* =========================
   PUBLIC EQUIPMENT DISPLAY
   ========================= */

.equipment-public {
    margin-top: 50px;
}

.equipment-public-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.equipment-public-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.equipment-public-card img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.equipment-public-card h3 {
    margin-top: 0;
    margin-bottom: 6px;
}

.equipment-public-type {
    font-weight: 600;
    margin-top: 0;
}

/* =========================
   APRS PAGE
   ========================= */

.aprs-card {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.aprs-card h2 {
    margin-top: 0;
    font-size: 28px;
}

.aprs-card p {
    font-size: 17px;
    line-height: 1.6;
}

.aprs-status {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    background: #f2f7f9;
    text-align: left;
    line-height: 2;
    font-size: 17px;
}

/* General page layout */

.page-section {
    padding: 40px 20px;
}

.page-container {
    max-width: 1100px;
    margin: auto;
}

.page-section h1 {
    text-align: center;
    margin-bottom: 10px;
}

.page-intro {
    text-align: center;
    font-size: 18px;
    margin-bottom: 25px;
}

/* =========================
   STUDY CENTRE QUIZ ANSWERS
   ========================= */

.quiz-option {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
    padding: 12px;
    background: #111c25;
    border: 1px solid #263746;
    border-radius: 6px;
    cursor: pointer;
    color: #c4d0da;
    line-height: 1.5;
}

.quiz-option:hover {
    border-color: #526b7d;
}

.quiz-option input {
    margin-right: 8px;
}

/* =========================
   RESPONSIVE LAYOUT
   ========================= */

@media (max-width: 900px) {
    .hero {
        padding: 65px 7vw;
        display: block;
    }

    .radio-panel {
        width: 100%;
        margin-top: 50px;
    }

    .three,
    .journal-grid,
    .mode-grid {
        grid-template-columns: 1fr;
    }

    .aprs-box {
        grid-template-columns: 1fr;
    }

    .ticker {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer {
        display: block;
        text-align: center;
        line-height: 2;
    }

    .equipment-public-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .section {
        padding: 60px 6vw;
    }

    .hero {
        padding: 50px 6vw;
    }

    .hero-right {
        width: 100%;
    }

    .equipment-public-grid {
        grid-template-columns: 1fr;
    }

    .equipment-public-card {
        flex-direction: column;
    }

    .equipment-public-card img {
        width: 100%;
        height: auto;
        max-height: 240px;
    }

    .aprs-card {
        padding: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }



/* Fix the shared M7COV menu on this page only */
body:has(main.hf-page) header.topbar {
    background-color: #080d13 !important;
    background-image: none !important;
    color: #e9f6fa !important;
    border-bottom: 1px solid #1e3440 !important;
    box-shadow: none !important;
}

body:has(main.hf-page) header.topbar .brand,
body:has(main.hf-page) header.topbar .brand strong {
    color: #e9f6fa !important;
}

body:has(main.hf-page) header.topbar .brand small {
    color: #8ba4ad !important;
}

body:has(main.hf-page) header.topbar nav a {
    color: #a9bbc1 !important;
}

body:has(main.hf-page) header.topbar nav a:hover,
body:has(main.hf-page) header.topbar nav a.active {
    color: #38d6e8 !important;
}

}
