/*
Theme Name: Urdu Times Sweden
Theme URI: https://urdutimessweden.com
Author: Admin
Description: Professional Urdu news site for Pakistanis in Sweden – SEO, AEO, GEO & AdSense optimized.
Version: 1.0
Text Domain: urdutimessweden
*/

/* === BASE STYLES === */
body {
    font-family: 'Noto Nastaliq Urdu', 'Urdu Naskh Asiatype', Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.8;
    font-size: 1.1em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
}

a { color: #1a237e; text-decoration: none; }
a:hover { text-decoration: underline; }

img, iframe, video {
    max-width: 100%;
    height: auto;
}

/* === BREAKING NEWS === */
.breaking-news {
    background: linear-gradient(90deg, #c62828, #d32f2f);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.breaking-news-container {
    display: flex;
    animation: news-ticker 35s linear infinite;
    white-space: nowrap;
}

.breaking-news-item {
    padding: 0 25px;
    font-weight: bold;
    font-size: 1.1em;
}

@keyframes news-ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* === HEADER === */
header {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    padding: 20px 15px;
    text-align: center;
}

.logo {
    font-size: 2.4em;
    font-weight: bold;
    margin: 0;
}

.tagline {
    font-size: 1.15em;
    opacity: 0.95;
    margin-top: 8px;
}

/* === NAVIGATION === */
nav {
    background: #1a237e;
    padding: 12px 0;
}

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

nav li {
    margin: 0 12px;
}

nav a {
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.2s;
}

nav a:hover {
    background: rgba(255,255,255,0.15);
}

/* === MAIN LAYOUT === */
.main-content {
    display: flex;
    flex-wrap: wrap;
    min-height: 600px;
}

.content {
    flex: 3;
    min-width: 300px;
    padding: 25px;
    order: 1;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    background: #fafafa;
    padding: 20px;
    border-top: 1px solid #eee;
    order: 2;
}

/* === POST STYLES === */
.post {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.post-title {
    font-size: 1.9em;
    color: #1a237e;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.post-meta {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 18px;
}

.post-content {
    text-align: justify;
    font-size: 1.15em;
}

.featured-image img {
    width: 100%;
    border-radius: 8px;
    margin: 15px 0;
}

/* === SIDEBAR WIDGETS === */
.widget {
    margin-bottom: 30px;
    padding: 18px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.35em;
    color: #1a237e;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a237e;
}

.news-item {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-weight: bold;
    color: #283593;
    display: block;
    margin-bottom: 4px;
}

.news-date {
    font-size: 0.85em;
    color: #777;
}

/* === FAQ === */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    background: #f5f9ff;
    padding: 14px;
    cursor: pointer;
    font-weight: bold;
    color: #1a237e;
}

.faq-answer {
    padding: 16px;
    display: none;
    background: white;
}

.faq-answer.active {
    display: block;
}

/* === NEWSLETTER === */
.newsletter {
    background: #e8f0fe;
    padding: 22px;
    border-radius: 10px;
    margin: 25px 0;
}

.newsletter h3 {
    margin-top: 0;
    color: #1a237e;
}

.newsletter input {
    width: 65%;
    padding: 10px;
    margin: 8px 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.newsletter button {
    padding: 10px 20px;
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin: 8px 5px;
}

/* === FOOTER === */
footer {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    padding: 30px 15px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-links a {
    color: #e0e0ff;
    display: block;
    margin: 6px 0;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95em;
}

/* === ADSENSE PLACEHOLDERS (invisible until ads load) === */
.adsense-auto {
    margin: 25px 0;
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.9em;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        border-top: 1px solid #eee;
        order: 2;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 6px 0;
    }
    
    .newsletter input,
    .newsletter button {
        width: 100%;
        margin: 6px 0;
    }
    
    .breaking-news-item {
        padding: 0 15px;
        font-size: 1em;
    }
}