:root {
    --background-color: rgba(5, 5, 15, 0.95);
    --panel-bg: rgba(8, 12, 24, 0.92);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-color: #eef5ff;
    --muted-text: rgba(255, 255, 255, 0.75);
    --link-color: hsla(210, 100%, 80%, 1.0);
    --link-visited: hsla(210, 100%, 85%, 1.0);
    --link-hover: hsla(210, 100%, 100%, 1.0);
    --accent: rgba(108, 170, 200, 0.55);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: no-repeat center center fixed;
    background-color: var(--background-color);
    background-image: url("/media/71188/optimized-sdrbackground4.jpg");
    background-size: cover;
    color: var(--text-color);
    font-family: 'Lato', 'Open Sans', Arial, sans-serif;
    text-rendering: optimizeLegibility;
    line-height: 1.7;
    font-size: 15px;
    padding: 30px 0 40px;
}

::selection {
    background-color: rgba(108, 170, 200, 0.3);
}

::-moz-selection {
    background-color: rgba(108, 170, 200, 0.3);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 15, 0.64);
    pointer-events: none;
    z-index: -1;
}

main,
section,
article,
footer {
    max-width: 1000px;
    margin: 0 auto 24px;
    padding: 28px 32px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

header {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 38px 36px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
}

header h1 {
    font-size: clamp(2rem, 3vw, 3.4rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 0.7rem;
}

header p {
    color: var(--muted-text);
    font-size: 1.05rem;
    max-width: 840px;
}

header a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 700;
}

header a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--text-color);
}

h1 {
    font-size: clamp(2.2rem, 3vw, 3rem);
    margin: 0 0 1rem 0;
}

h2 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    margin: 1.6rem 0 0.75rem 0;
    color: var(--link-color);
    border-bottom: 2px solid rgba(108, 170, 200, 0.18);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.2rem;
    margin: 1.2rem 0 0.5rem 0;
}

p {
    margin: 1rem 0;
    color: var(--muted-text);
}

a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px dotted rgba(108, 170, 200, 0.8);
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:visited {
    color: var(--link-visited);
    border-bottom-color: rgba(173, 210, 235, 0.8);
}

a:hover {
    color: var(--link-hover);
    border-bottom-color: transparent;
}

ul,
ol {
    margin: 1rem 0 1rem 1.6rem;
    padding-left: 0;
}

ul {
    list-style: none;
}

li {
    margin: 0.5rem 0;
    position: relative;
    padding-left: 1.4rem;
}

li:before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent);
}

details {
    background: rgba(0, 0, 0, 0.623);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
}

details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--link-color);
    list-style: none;
}

section {
    border-left: 4px solid rgba(108, 170, 200, 0.75);
    background: rgba(255, 255, 255, 0.04);
}

section#intro,
section#getting-started,
section#sections,
section#resources {
    background: rgba(0, 0, 0, 0.137);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

table th,
table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color);
}

table th {
    background: rgba(0, 0, 0, 0.6);
    text-align: left;
    font-weight: 700;
}

table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

table tr:hover {
    background: rgba(108, 170, 200, 0.12);
}

table th {
    color: var(--text-color) !important;
}

table tr:not(:first-child) td {
    color: white !important;
}

table tr.band-outofbands td {
    background: rgba(255, 255, 255, 0.08);
    color: black !important;
}

table tr.band-ism-cb td {
    background: rgba(115, 170, 220, 0.16);
    color: black !important;
}

table tr.band-broadcast td {
    background: rgba(190, 150, 225, 0.16);
    color: black !important;
}

table tr.band-ham td {
    background: rgba(135, 220, 155, 0.16);
    color: black !important;
}

table tr.band-maritime td {
    background: rgba(145, 205, 255, 0.16);
    color: black !important;
}

table tr.band-aeronautical td {
    background: rgba(255, 170, 120, 0.16);
    color: black !important;
}

footer {
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

footer p {
    margin: 0.85rem 0;
}

footer a {
    color: var(--link-color);
}

.br {
    display: block;
    height: 1rem;
}

@media (max-width: 860px) {
    body {
        padding: 18px 0 28px;
    }

    main,
    section,
    article,
    footer,
    header {
        padding: 24px 20px;
        margin: 0 16px 20px;
    }

    section {
        border-left-width: 3px;
    }
}

/* Media Elements */
img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin: 1rem 0;
    display: block;
    transition: box-shadow 0.3s;
}

img:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

audio, video {
    width: 100%;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Details Element */
details {
    margin: 1rem 0;
    padding: 15px;
    background-color: #000000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

details[open] {
    background-color: #040025;
    border-color: var(--accent-color);
}

summary {
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    user-select: none;
    padding: 5px 10px;
    margin: -5px -10px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

summary:hover {
    background-color: rgba(102, 153, 255, 0.1);
}

details p {
    margin-top: 10px;
}

/* Band Color Classes */
.band-maritime {
    background-color: #c8e6c9 !important;
}

.band-maritime:hover {
    background-color: #a5d6a7 !important;
}

.band-aeronautical {
    background-color: #b3e5fc !important;
}

.band-aeronautical:hover {
    background-color: #81d4fa !important;
}

.band-ham {
    background-color: #bbdefb !important;
}

.band-ham:hover {
    background-color: #90caf9 !important;
}

.band-broadcast {
    background-color: #ffcdd2 !important;
}

.band-broadcast:hover {
    background-color: #ef9a9a !important;
}

.band-ism-cb {
    background-color: #fff9c4 !important;
}

.band-ism-cb:hover {
    background-color: #fff59d !important;
}

.band-outofbands {
    background-color: #e0e0e0 !important;
    font-style: italic;
    color: #666;
    text-align: center;
}

.band-outofbands:hover {
    background-color: #bdbdbd !important;
}

/* Schedule Table Styling */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    font-size: 0.95rem;
}

.schedule-table thead {
    background: rgba(10, 25, 50, 0.95);
    color: white;
    position: sticky;
    top: 0;
}

.schedule-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.08);
    word-break: normal;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: white;
}

.schedule-table td {
    padding: 14px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
    height: auto;
    color: #eef5ff;
}

.schedule-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: background-color 0.2s ease;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.06);
}

.schedule-table tbody tr:hover {
    background-color: rgba(108, 170, 200, 0.16);
}

.schedule-table .freq {
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    min-width: 90px;
    font-size: 0.98rem;
}

.schedule-table .station {
    font-weight: 600;
    color: var(--text-color);
    min-width: 200px;
    line-height: 1.4;
}

.schedule-table .site {
    text-align: left;
    font-size: 0.9rem;
    min-width: 140px;
    color: #555;
}

.schedule-table .language {
    text-align: center;
    font-size: 0.9rem;
    min-width: 100px;
}

.schedule-table .target {
    text-align: center;
    font-size: 0.9rem;
    min-width: 100px;
    color: #555;
}

.schedule-table .time {
    text-align: center;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 70px;
    font-size: 0.98rem;
}

.schedule-table .days {
    font-size: 0.9rem;
    line-height: 1.5;
    min-width: 180px;
    color: var(--text-color);
    font-weight: 500;
}

.schedule-table .days small {
    display: block;
    color: #888;
    font-style: italic;
    margin-top: 5px;
    font-size: 0.85rem;
    font-weight: 400;
}

.utc-clock {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 153, 255, 0.08), rgba(255, 107, 53, 0.08));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 25px;
}

.utc-clock h3 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#utc-time {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
    width: 100%;
}

.radio-schedule {
    width: 100%;
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    main, section, article {
        padding: 15px 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    table {
        font-size: 0.9rem;
    }

    table th, table td {
        padding: 8px 10px;
    }

    footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    header {
        padding: 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    main, section, article {
        padding: 10px 15px;
    }

    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1rem;
    }

    table {
        font-size: 0.85rem;
    }

    table th, table td {
        padding: 6px 8px;
    }
}

/* Media Elements Styling */
img {
    max-width: 1000px;
    max-height: 400px;
    border: 8px solid rgba(108, 170, 200, 0.4);
    border-radius: 12px;
    display: block;
    margin: 8px auto;
}

video {
    max-width: 1000px;
    max-height: 400px;
    border: 8px solid rgba(108, 170, 200, 0.4);
    border-radius: 12px;
    display: block;
    margin: 8px auto;
}

audio {
    max-width: 400px;
    width: 100%;
    display: block;
    margin: 8px auto;
}

