/* ========================================
   FINAL FLEX VERSION (CLEAN + POLISHED)
======================================== */

/* =========================
   BASE
========================= */

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.6em;
    font-family: Georgia, "Times New Roman", Times, serif;
    color: #dbdada;
    background: #333;
    font-size: 16px;
}

@media (min-width: 1920px) {
    body { font-size: 18px; }
}
@media (min-width: 2560px) {
    body { font-size: 20px; }
}

a { color: #5b93ef; text-decoration: underline; }
a:hover { text-decoration: none; }

/* =========================
   MAIN CONTAINER (FIXED)
========================= */

#templateo_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================
   HEADER
========================= */

#templatemo_top_panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

#site_title {
    font-size: 32px;
    color: #e8e8e8;
}

/* =========================
   MENU + BANNER
========================= */

#templatemo_menu_banner_panel {
    display: flex;
    gap: 20px;
    background: #3c3b3b;
    padding: 15px;
    border-radius: 8px;
}

/* MENU */

#templatemo_menu_wrapper {
    width: 260px;
    flex-shrink: 0;
    background: #000;
    padding: 5px;
    border-radius: 6px;
}

#templatemo_menu {
    background: #262626;
    padding: 15px;
}

#templatemo_menu li {
    margin-bottom: 6px;
    background: #161616;
}

#templatemo_menu li a {
    display: block;
    padding: 10px;
    color: #9fa2a4;
}

#templatemo_menu li a:hover,
#templatemo_menu li a.current {
    background: #000;
    color: #fff;
}

/* BANNER */

#templatemo_banner {
    flex: 1;
    min-height: 160px;
    padding: 30px;

    background: #222 url('images/templatemo_banner_bg.jpg') no-repeat right center;
    background-size: cover;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-radius: 6px;
}

/* =========================
   CONTENT WRAPPER
========================= */

#templatemo_content_wrapper {
    flex: 1;
    margin-top: 20px;
}

/* MAIN CONTENT FLEX */

#templatemo_content {
    display: flex;
    gap: 20px;
}

/* LEFT SIDEBAR */

#templatemo_side_column {
    width: 260px;
    flex-shrink: 0;

    background: #1f1f1f;
    padding: 15px;
    border-radius: 6px;

    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* RIGHT CONTENT */

#templatemo_main_content_column {
    flex: 1;

    background: #1f1f1f;
    padding: 20px;
    border-radius: 6px;

    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}


#stationContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* CARD */
.station_block {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: 0.2s ease;
}

.station_block:hover {
    transform: translateY(-5px);
}

/* TITLE */
.station_title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* ABBREV */
.station_meta {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 10px;
}

/* DESCRIPTION */
.station_desc {
    font-size: 14px;
    margin-bottom: 15px;
}

/* LINKS */
.station_links {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.station_links a {
    color: #5b93ef;
    text-decoration: none;
}

.station_links a:hover {
    text-decoration: underline;
}

/* =========================
   HEADERS
========================= */

.header_01 {
    padding: 10px;
    background: #161616;
    font-size: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.header_02 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 10px;
}

/* =========================
   SIDEBAR ITEMS
========================= */

.news_section {
    margin-bottom: 20px;
    text-align: center;
}

.news_section img {
    margin: 10px 0;
}

.news_date {
    font-weight: bold;
}

/* =========================
   TABLES
========================= */

table {
    width: 100%;
    border-collapse: collapse;
    background: #1f1f1f;
}

th {
    background: #111;
    padding: 10px;
}

td {
    padding: 10px;
    border-top: 1px solid #333;
}

/* =========================
   BUTTONS
========================= */

button {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

/* =========================
   FOOTER (FIXED + NICE)
========================= */

#templatemo_footer {
    margin-top: 30px;
    padding: 20px;

    text-align: center;
    color: #aaa;

    border-top: 1px solid #444;
    background: #2a2a2a;

    border-radius: 6px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    #templatemo_menu_banner_panel {
        flex-direction: column;
    }

    #templatemo_content {
        flex-direction: column;
    }

    #templatemo_side_column {
        width: 100%;
    }
}