/*
Theme Name: SA Telegraph Premium
Author: LucrativeIT
Description: Professional News & Magazine Theme for SA Telegraph.
Version: 6.0
*/

/* 1. RESET & BASE STYLES */
* { box-sizing: border-box; }
body { 
    font-family: 'Georgia', serif; 
    margin: 0; 
    background: #fdfdfd; 
    color: #1a1a1a; 
    line-height: 1.8; 
}
a { color: #b30000; text-decoration: none; transition: 0.3s; }
a:hover { color: #000; text-decoration: underline; }

/* 2. HEADER & NAVIGATION */
header { background: #fff; border-bottom: 4px solid #000; }

.top-bar { 
    background: #000; 
    color: #fff; 
    padding: 8px 0; 
    text-align: center; 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.header-main { 
    padding: 30px 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px;
    margin: 0 auto;
}

.logo a { 
    font-size: 48px; 
    font-weight: 900; 
    color: #000; 
    letter-spacing: -1.5px; 
    text-decoration: none;
}

/* Navigation Bar */
nav.main-navigation { 
    border-top: 1px solid #eee; 
    border-bottom: 1px solid #eee; 
    background: #fff; 
    position: sticky; 
    top: 0; 
    z-index: 999; 
}

nav ul { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
}

nav li { 
    position: relative; 
}

nav li a {
    display: block;
    padding: 15px 20px; 
    font-weight: bold; 
    font-size: 14px; 
    text-transform: uppercase;
    color: #000;
}

/* Dropdown Menus */
nav ul li ul { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: #fff; 
    border: 1px solid #eee; 
    min-width: 200px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    padding: 0;
}

nav li:hover > ul { display: block; }

nav ul li ul li a { 
    padding: 12px 20px; 
    border-bottom: 1px solid #f9f9f9; 
    font-size: 13px;
    color: #b30000;
}

nav ul li ul li a:hover {
    background: #fdfdfd;
}

/* 3. LAYOUT STRUCTURE */
.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 40px; 
    margin-top: 30px; 
}

/* 4. CONTENT STYLES */
.section-title { 
    border-bottom: 2px solid #b30000; 
    margin-bottom: 25px; 
    padding-bottom: 5px; 
    font-size: 24px; 
    font-weight: bold; 
    text-transform: uppercase; 
}

.hero-post { 
    margin-bottom: 40px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 30px; 
}

.hero-post h2 { 
    font-size: 38px; 
    line-height: 1.1; 
    margin: 15px 0; 
}

.post-content img {
    max-width: 100%;
    height: auto;
}

/* 5. SIDEBAR & WIDGETS */
.sidebar { 
    border-left: 1px solid #eee; 
    padding-left: 30px; 
}

.widget { margin-bottom: 40px; }

.widget ul { 
    list-style: none; 
    padding-left: 0; 
}

.widget li { 
    margin-bottom: 12px; 
    padding-bottom: 12px; 
    border-bottom: 1px dotted #ccc; 
    font-size: 15px;
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* 6. AD SPACES */
.ad-header-widget, .mpu-ad-container, .ad-article-widget {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

/* 7. FOOTER */
footer a { color: #ccc; }
footer a:hover { color: #fff; text-decoration: none; }

/* 8. RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .header-main { flex-direction: column; text-align: center; }
    .ad-header { margin-top: 20px; }
}

@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    .sidebar { border-left: none; padding-left: 0; margin-top: 40px; }
    .logo a { font-size: 36px; }
}