/*
Theme Name: MashaalDigital News
Theme URI: https://mashaaldigital.com
Author: MashaalDigital Team
Author URI: https://mashaaldigital.com
Description: A professional BBC-style news WordPress theme with Urdu language support. Features dynamic content, video/audio support, modern grid layout, and responsive design.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mashaaldigital
Domain Path: /languages
Tags: news, blog, responsive, custom-menu, featured-images, translation-ready, rtl-language-support
*/

/* ================================
   CSS VARIABLES & RESET
   ================================ */
:root {
    --primary-color: #BB1919;
    --secondary-color: #1A1A1A;
    --accent-blue: #0068B3;
    --text-dark: #111111;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-gray: #E8E8E8;
    --border-color: #E0E0E0;
    --urdu-font: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Urdu Typesetting', 'Nafees Nastaleeq', serif;
    --body-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --heading-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fix for proper scrolling at all zoom levels */
html {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    width: 100%;
}

body {
    font-family: var(--urdu-font);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ================================
   SITE WRAPPER - Fix Scrolling
   ================================ */
.site-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    box-sizing: border-box;
}

/* ================================
   URDU FONT IMPORT
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ================================
   TOP BAR
   ================================ */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-date {
    color: #ccc;
}

.top-bar-links {
    display: flex;
    gap: 20px;
}

.top-bar-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.top-bar-links a:hover {
    color: var(--bg-white);
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
.main-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo a {
    text-decoration: none;
}

.logo-text {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-left {
    position: absolute;
    left: 15px;
    color: var(--text-gray);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.search-form input {
    padding: 10px 40px 10px 45px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    width: 250px;
    font-family: var(--urdu-font);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 300px;
}

.search-form button {
    position: absolute;
    right: 5px;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-form button:hover {
    background: #8B0000;
    transform: scale(1.05);
}

.search-form button i {
    font-size: 0.9rem;
}

/* Mobile Search Toggle */
.mobile-search-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: var(--transition);
}

.mobile-search-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    border: 2px solid transparent;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(187,25,25,0.3);
}

.social-icons a i {
    font-size: 1rem;
}

/* Navigation */
.main-nav {
    background-color: var(--bg-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Breaking News Bar */
.breaking-news-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, #8B0000 100%);
    color: var(--bg-white);
    padding: 12px 0;
    overflow: hidden;
}

.breaking-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.breaking-label {
    background-color: var(--bg-white);
    color: var(--primary-color);
    padding: 5px 15px;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.breaking-content {
    flex: 1;
    overflow: hidden;
}

.breaking-slider {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.breaking-slider a {
    color: var(--bg-white);
    text-decoration: none;
    padding: 0 30px;
    border-left: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.breaking-slider a:hover {
    opacity: 0.8;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================================
   HOMEPAGE LAYOUT
   ================================ */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.main-content {
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    margin-bottom: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.hero-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-main .post-thumbnail {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.hero-main .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-main:hover .post-thumbnail img {
    transform: scale(1.05);
}

.hero-main .post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--bg-white);
}

.hero-main .post-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 15px;
}

.hero-main .post-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.hero-main .post-title a {
    color: var(--bg-white);
    text-decoration: none;
}

.hero-main .post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

.hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-secondary-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    padding: 15px;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
}

.hero-secondary-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.hero-secondary-item .thumbnail {
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
}

.hero-secondary-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-secondary-item:hover .thumbnail img {
    transform: scale(1.1);
}

.hero-secondary-item .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-secondary-item .category {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.hero-secondary-item .title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ================================
   SECTION HEADERS
   ================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -18px;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.view-all:hover {
    gap: 10px;
}

/* ================================
   NEWS GRID - Reference Image Layout
   ================================ */
.news-section {
    margin-bottom: 50px;
}

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

.news-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: none;
    transform: none;
}

.news-card .card-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #f5f5f5;
}

.news-card .card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.news-card .video-badge,
.news-card .audio-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(187, 25, 25, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.news-card .card-content {
    padding: 0;
}

.news-card .card-category {
    display: none;
}

.news-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 8px;
}

.news-card .card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.news-card .card-title a:hover {
    color: var(--primary-color);
}

.news-card .card-excerpt {
    display: none;
}

.news-card .card-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    gap: 5px;
}

.news-card .card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ================================
   SIDEBAR
   ================================ */
.sidebar {
    min-width: 0;
}

.widget {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

/* Trending Widget */
.trending-list {
    list-style: none;
}

.trending-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.trending-number {
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.trending-content {
    flex: 1;
}

.trending-content .title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 5px;
}

.trending-content .title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.trending-content .title a:hover {
    color: var(--primary-color);
}

.trending-content .date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Latest Posts Widget */
.latest-posts-list {
    list-style: none;
}

.latest-post-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.latest-post-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.latest-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-post-item:hover .latest-post-thumb img {
    transform: scale(1.1);
}

.latest-post-content .title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 5px;
}

.latest-post-content .title a {
    color: var(--text-dark);
    text-decoration: none;
}

.latest-post-content .title a:hover {
    color: var(--primary-color);
}

.latest-post-content .date {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Categories Widget */
.category-list {
    list-style: none;
}

.category-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.category-list li a:hover {
    color: var(--primary-color);
}

.category-list .count {
    background-color: var(--bg-light);
    color: var(--text-gray);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Ad Space */
.ad-space {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.ad-space-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ================================
   SINGLE POST PAGE
   ================================ */
.single-post-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.single-post {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: visible;
    box-shadow: var(--shadow);
    width: 100%;
    box-sizing: border-box;
}

.single-post-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.single-post-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 20px;
}

.single-post-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.single-post-meta .author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-post-meta .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.single-post-meta .date,
.single-post-meta .views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-post-featured-image {
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    overflow: hidden;
    box-sizing: border-box;
}

.single-post-featured-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video Player for Video Posts */
.single-post-video-player {
    width: 100%;
    max-width: 100%;
    background: #000;
    box-sizing: border-box;
}

.single-post-video-player video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
}


.single-post-content {
    padding: 30px;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-dark);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
}

.single-post-content p {
    margin-bottom: 20px;
    max-width: 100%;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin: 30px 0 15px;
    color: var(--text-dark);
    max-width: 100%;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

.single-post-content blockquote {
    border-right: 4px solid var(--primary-color);
    padding: 20px 25px;
    margin: 25px 0;
    background-color: var(--bg-light);
    font-style: italic;
    max-width: 100%;
    box-sizing: border-box;
}

.single-post-content a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-word;
}

.single-post-content a:hover {
    text-decoration: underline;
}

/* Video & Audio Player */
.post-media-container {
    margin: 25px 0;
    max-width: 100%;
    overflow: hidden;
}

.video-player,
.audio-player {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.video-player iframe,
.video-player video {
    width: 100%;
    max-width: 100%;
    height: 450px;
    border: none;
}

.audio-player audio {
    width: 100%;
}

.media-caption {
    background-color: var(--bg-light);
    padding: 12px 15px;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: center;
}

/* Voice Reading Button */
.voice-reading-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8B0000 100%);
    color: var(--bg-white);
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-family: var(--urdu-font);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin: 20px 0;
}

.voice-reading-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(187, 25, 25, 0.3);
}

.voice-reading-btn.playing {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

/* Post Tags */
.post-tags {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
}

.post-tags-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background-color: var(--bg-light);
    color: var(--text-gray);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.tag-item:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Post Share */
.post-share {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    margin: 25px 0;
}

.post-share-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.share-btn i {
    font-size: 1.1rem;
}

.share-btn.facebook { 
    background-color: #3b5998; 
}

.share-btn.facebook:hover { 
    background-color: #2d4373; 
}

.share-btn.twitter { 
    background-color: #1da1f2; 
}

.share-btn.twitter:hover { 
    background-color: #0c85d0; 
}

.share-btn.whatsapp { 
    background-color: #25d366; 
}

.share-btn.whatsapp:hover { 
    background-color: #1da851; 
}

.share-btn.telegram { 
    background-color: #0088cc; 
}

.share-btn.telegram:hover { 
    background-color: #006699; 
}

/* Author Box */
.author-box {
    margin: 30px;
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
}

.author-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.author-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ================================
   ARCHIVE / CATEGORY PAGE
   ================================ */
.archive-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #333 100%);
    color: var(--bg-white);
    padding: 40px 0;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.archive-description {
    font-size: 1.1rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.archive-posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    min-height: 400px;
}

.archive-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    overflow: hidden;
    transition: var(--transition);
    border-bottom: 3px solid #e0e0e0;
}

.archive-card:hover {
    border-bottom-color: var(--primary-color);
}

.archive-card .thumbnail {
    width: 100%;
    height: 0;
    padding-bottom: 66.67%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.archive-card .thumbnail a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.archive-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-card:hover .thumbnail img {
    transform: scale(1.05);
}

.archive-card .content {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
}

.archive-card .category {
    display: none;
}

.archive-card .title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 10px;
}

.archive-card .title a {
    color: var(--text-dark);
    text-decoration: none;
}

.archive-card .title a:hover {
    color: var(--primary-color);
}

.archive-card .excerpt {
    display: none;
}

.archive-card .meta {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    gap: 10px;
}

.archive-card .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ================================
   PAGINATION
   ================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 50px 0;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
}

.pagination a,
.pagination span {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    background-color: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(187, 25, 25, 0.3);
}

.pagination .current {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(187, 25, 25, 0.3);
}

.pagination .dots {
    background: transparent;
    box-shadow: none;
    color: var(--text-light);
    cursor: default;
}

.pagination .prev,
.pagination .next {
    font-size: 1.2rem;
}

/* Pagination responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        margin: 30px 0;
    }
    
    .pagination a,
    .pagination span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
}

/* ================================
   FOOTER
   ================================ */
.main-footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0a0a0a 100%);
    color: var(--bg-white);
    padding: 60px 0 0;
    margin-top: 60px;
}

/* ================================
   ELEMENTOR SUPPORT
   ================================ */
.elementor-page-content,
.elementor-page-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.elementor-page-content .elementor,
.elementor-page-wrapper .elementor {
    width: 100%;
    max-width: 100%;
}

/* Hide default content wrapper for Elementor pages */
body.elementor-page .main-container {
    padding: 0;
    max-width: 100%;
}

body.elementor-page .site-wrapper {
    overflow-x: hidden;
}

/* Elementor full width */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1400px;
}

.elementor-section.elementor-section-full_width > .elementor-container {
    max-width: 100%;
}

/* ================================
   HOMEPAGE WIDGET AREAS
   ================================ */
.homepage-widget-area {
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    padding: 0;
}

.homepage-widget-area.homepage-top {
    margin-top: 0;
    margin-bottom: 30px;
}

.homepage-widget-area.homepage-middle {
    margin: 50px 0;
}

.homepage-widget-area.homepage-bottom {
    margin: 50px 0 30px 0;
}

.homepage-widget {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

.homepage-widget:last-child {
    margin-bottom: 0;
}

/* Widget content styling */
.homepage-widget img {
    max-width: 100%;
    height: auto;
    display: block;
}

.homepage-widget .widget-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}



.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-brand .logo-text {
    color: var(--bg-white);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-brand .logo-text span {
    color: var(--primary-color);
}

.footer-brand p {
    color: #999;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--bg-white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-bottom {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--bg-white);
}

/* ================================
   MOBILE MENU
   ================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .widget {
        margin-bottom: 0;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-main .post-thumbnail {
        height: 300px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .archive-posts {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        box-shadow: var(--shadow);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        border-bottom: 1px solid var(--border-color);
        padding: 15px 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .top-bar-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Mobile Search Styles */
    .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .search-form {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 9999;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .search-form.mobile-active {
        transform: translateY(0);
    }
    
    .search-icon-left {
        left: 20px;
    }
    
    .search-form input {
        width: 100%;
        padding: 12px 50px 12px 50px;
        font-size: 1rem;
    }
    
    .search-form input:focus {
        width: 100%;
    }
    
    .search-form button {
        right: 10px;
        font-size: 1.2rem;
        width: 36px;
        height: 36px;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    .archive-posts {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .archive-title {
        font-size: 1.8rem;
    }
    
    .archive-header {
        padding: 30px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .single-post-title {
        font-size: 1.6rem;
    }
    
    .video-player iframe,
    .video-player video {
        height: 250px;
    }
    
    .archive-posts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form input {
        width: 200px;
    }
    
    .search-form input:focus {
        width: 250px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .author-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .author-avatar-large {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-main .post-thumbnail {
        height: 220px;
    }
    
    .hero-main .post-title {
        font-size: 1.3rem;
    }
    
    .hero-secondary-item {
        grid-template-columns: 100px 1fr;
    }
    
    .hero-secondary-item .thumbnail {
        width: 100px;
        height: 75px;
    }
    
    .archive-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .archive-title {
        font-size: 1.5rem;
    }
    
    .archive-card .title {
        font-size: 0.95rem;
    }
    
    .single-post-title {
        font-size: 1.3rem;
    }
    
    .single-post-content {
        padding: 20px;
        font-size: 1rem;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--bg-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Lazy Load Images */
.lazyload,
.lazyloading {
    opacity: 0;
}

.lazyloaded {
    opacity: 1;
    transition: opacity 0.3s;
}

/* Print Styles */
@media print {
    .main-header,
    .sidebar,
    .main-footer,
    .breaking-news-bar,
    .post-share,
    .voice-reading-btn {
        display: none !important;
    }
    
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .single-post {
        box-shadow: none;
    }
}
