/*
Theme Name: Ham Radio
Author: Custom Build
Description: Custom lightweight theme for Ham Radio site with dynamic header, menu, and 4-column footer.
Version: 1.0
*/

/* Base Layout & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 1st Line: Header Graphic (1200px x 150px) */
.site-header {
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: 150px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-header img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* 2nd Line: Centered Menu */
.main-navigation {
    background-color: #2c3e50;
    text-align: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.main-navigation a:hover {
    background-color: #34495e;
}

/* 3rd Line: Main Content Area */
.site-content {
    padding: 30px 20px;
    min-height: 400px;
}

/* 4th Line: 4-Column Footer */
.site-footer {
    background-color: #1a252f;
    color: #ffffff;
    padding: 40px 20px 20px 20px;
    border-top: 4px solid #34495e;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-column h3, 
.footer-column h4 {
    color: #ecf0f1;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #34495e;
    padding-bottom: 5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #2c3e50;
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* Footer Link Styling */
.footer-column ul li a,
.footer-column-widget ul li a,
.site-footer a {
    color: #ffffff !important; /* Forces link text to be bright white */
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Footer Link Hover Effect */
.footer-column ul li a:hover,
.footer-column-widget ul li a:hover,
.site-footer a:hover {
    color: #00bc8c !important; /* Changes to a soft radio green on hover (change color if desired) */
    text-decoration: underline;
}

/* Mobile Responsive adjustment for Footer */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
}
