/*
Theme Name: TodayNewsPDF
Theme URI: https://todaynewspdf.in
Author: TodayNewsPDF Team
Author URI: https://todaynewspdf.in
Description: A professional Sarkari News WordPress theme with 3D logo, SEO optimized, AdSense ready, fully customizable. Perfect for government news, sarkari result, job alerts, and Hindi news websites.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: todaynewspdf
Tags: news, blog, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar, two-columns
*/

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1a237e;
    --primary-dark: #0d1453;
    --primary-light: #3949ab;
    --secondary: #ff6f00;
    --secondary-dark: #e65100;
    --secondary-light: #ffa726;
    --accent: #d32f2f;
    --accent-light: #ef5350;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-dark: #1a1a2e;
    --text-dark: #212121;
    --text-medium: #555555;
    --text-light: #888888;
    --text-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-primary: 'Noto Sans', 'Segoe UI', Tahoma, sans-serif;
    --font-hindi: 'Noto Sans Devanagari', 'Mangal', sans-serif;
    --max-width: 1280px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    width: 100%;
}

/* Global overflow protection */
.container,
.site-content,
.main-content,
.sidebar,
.site-header,
.site-footer,
.top-bar,
.breaking-news-bar,
.main-navigation {
    max-width: 100vw;
    overflow-x: hidden;
}

img, video, iframe, embed, object, table {
    max-width: 100%;
}

table {
    overflow-x: auto;
    display: block;
    width: 100%;
}

pre, code {
    overflow-x: auto;
    word-wrap: break-word;
}

/* Ensure no element breaks out */
.widget,
.newsletter-box,
.post-card,
.post-list-item {
    max-width: 100%;
    overflow: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-white);
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 2px solid var(--secondary);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-date i {
    color: var(--secondary-light);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-right a {
    color: var(--text-white);
    opacity: 0.85;
    font-size: 14px;
    transition: var(--transition);
}

.top-bar-right a:hover {
    opacity: 1;
    color: var(--secondary-light);
}

/* ===== BREAKING NEWS TICKER ===== */
.breaking-news-bar {
    background: var(--accent);
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}

.breaking-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--primary-dark);
    color: #fff;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.breaking-label .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.breaking-news-ticker {
    margin-left: 180px;
    overflow: hidden;
    white-space: nowrap;
}

.breaking-news-ticker .ticker-content {
    display: inline-block;
    animation: ticker 25s linear infinite;
    padding-left: 100%;
    white-space: nowrap;
    max-width: none;
}

.breaking-news-ticker .ticker-content a {
    color: #fff;
    margin-right: 50px;
    font-size: 14px;
    font-weight: 500;
}

.breaking-news-ticker .ticker-content a:hover {
    text-decoration: underline;
}

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

/* ===== HEADER ===== */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 100;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo Styles */
.site-branding {
    flex-shrink: 0;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e53935 0%, #ff6f00 40%, #ffca28 70%, #43a047 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.25), 0 2px 6px rgba(255, 111, 0, 0.2);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(229, 57, 53, 0.25), 0 2px 6px rgba(255, 111, 0, 0.2); }
    50% { box-shadow: 0 6px 20px rgba(229, 57, 53, 0.35), 0 3px 10px rgba(255, 111, 0, 0.3); }
}

.logo-icon i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
    animation: logoIconFloat 2.5s ease-in-out infinite;
}

@keyframes logoIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.25);
    z-index: 1;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.site-branding a:hover .logo-icon {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 40%, #5c6bc0 70%, #7986cb 100%);
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.35), 0 3px 8px rgba(57, 73, 171, 0.25);
    animation: none;
}

.logo-text-wrap {
    line-height: 1.15;
}

.logo-text-wrap .logo-main {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.logo-text-wrap .logo-main .logo-highlight {
    background: linear-gradient(135deg, #e53935, #ff6f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-weight: 900;
}

.logo-text-wrap .logo-sub {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 3px;
    position: relative;
    padding-left: 2px;
}

.logo-text-wrap .logo-sub::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e53935, #ff6f00, #ffca28, transparent);
    border-radius: 2px;
}

.site-branding a:hover .logo-main {
    color: var(--primary);
}

body.dark-mode .logo-text-wrap .logo-main {
    color: #e0e0e0;
}

body.dark-mode .logo-text-wrap .logo-main .logo-highlight {
    background: linear-gradient(135deg, #ff6f00, #ffca28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .logo-text-wrap .logo-sub {
    color: #999;
}

body.dark-mode .logo-text-wrap .logo-sub::before {
    background: linear-gradient(90deg, #e53935, #ff6f00, rgba(255,255,255,0.1), transparent);
}

.custom-logo-link img {
    max-height: 65px;
    width: auto;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.2));
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 400px;
}

.header-search form {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.header-search form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

.header-search input[type="search"] {
    flex: 1;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.header-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.header-search button:hover {
    background: var(--primary-dark);
}

/* Header Ad */
.header-ad {
    max-width: 728px;
    text-align: center;
}

.header-ad img {
    max-height: 90px;
}

/* ===== MAIN NAVIGATION ===== */
.main-navigation {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    z-index: 99;
    box-shadow: var(--shadow-md);
}

.main-navigation .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-menu > li > a i {
    font-size: 12px;
}

.nav-menu > li:hover > a,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--secondary);
}

.home-icon a {
    font-size: 18px !important;
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--secondary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--text-dark);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.nav-menu .sub-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 24px;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: var(--bg-white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-list li::after {
    content: '›';
    margin-left: 8px;
    color: var(--text-light);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--text-medium);
}

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

.breadcrumb-list li:last-child {
    color: var(--primary);
    font-weight: 600;
}

/* ===== CONTENT LAYOUT ===== */
.site-content {
    padding: 25px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
}

.content-area.full-width {
    grid-template-columns: 1fr;
}

.main-content {
    min-width: 0;
}

/* ===== FEATURED SLIDER ===== */
.featured-section {
    margin-bottom: 30px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
}

.featured-main {
    grid-row: span 2;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
}

.featured-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 190px;
}

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

.featured-card:hover img,
.featured-main:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.featured-main .featured-overlay {
    padding: 35px;
}

.featured-overlay .cat-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.featured-overlay h2 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.featured-overlay h3 {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 5px;
}

.featured-overlay h2 a,
.featured-overlay h3 a {
    color: #fff;
}

.featured-overlay h2 a:hover,
.featured-overlay h3 a:hover {
    color: var(--secondary-light);
}

.featured-meta {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    gap: 12px;
    align-items: center;
}

.featured-meta i {
    margin-right: 3px;
}

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

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--secondary);
    font-size: 18px;
}

.view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all:hover {
    color: var(--secondary);
}

/* ===== POST CARDS ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.post-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.post-card-thumb {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.post-card:hover .post-card-thumb img {
    transform: scale(1.08);
}

.post-card-thumb .cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.post-card-content {
    padding: 18px;
}

.post-card-content h3 {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 700;
}

.post-card-content h3 a {
    color: var(--text-dark);
}

.post-card-content h3 a:hover {
    color: var(--primary);
}

.post-card-excerpt {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
}

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

.post-meta i {
    color: var(--secondary);
    font-size: 11px;
}

.post-meta .author-name {
    color: var(--primary);
    font-weight: 600;
}

/* Post List Style */
.post-list-item {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.post-list-thumb {
    flex-shrink: 0;
    width: 260px;
    height: 170px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.post-list-item:hover .post-list-thumb img {
    transform: scale(1.05);
}

.post-list-content {
    flex: 1;
}

.post-list-content .cat-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-list-content h3 {
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 700;
}

.post-list-content h3 a {
    color: var(--text-dark);
}

.post-list-content h3 a:hover {
    color: var(--primary);
}

.post-list-content .post-card-excerpt {
    -webkit-line-clamp: 2;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: #fff;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--transition);
}

.read-more-btn:hover {
    background: var(--secondary);
    color: #fff;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.widget {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-dark);
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--primary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

/* Popular Posts Widget */
.popular-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-item:first-child {
    padding-top: 0;
}

.popular-post-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.popular-post-thumb {
    flex-shrink: 0;
    width: 75px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-info h4 {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.popular-post-info h4 a {
    color: var(--text-dark);
}

.popular-post-info h4 a:hover {
    color: var(--primary);
}

.popular-post-info .post-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 3px;
}

/* Categories Widget */
.widget-categories li {
    border-bottom: 1px solid var(--border-color);
}

.widget-categories li:last-child {
    border-bottom: none;
}

.widget-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--transition);
}

.widget-categories li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.widget-categories li a .count {
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

/* Tags Widget */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-tags a {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-medium);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 13px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.widget-tags a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Social Widget */
.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.social-link:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-link.facebook { background: #1877f2; }
.social-link.twitter { background: #1da1f2; }
.social-link.youtube { background: #ff0000; }
.social-link.telegram { background: #0088cc; }
.social-link.whatsapp { background: #25d366; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* ===== SINGLE POST ===== */
.single-post-article {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.single-post-header {
    padding: 30px 30px 0;
}

.single-post-header .cat-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.single-post-header h1 {
    font-size: 28px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}

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

.single-post-meta i {
    color: var(--secondary);
}

.single-post-featured-img {
    margin: 20px 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.single-post-featured-img img {
    width: 100%;
    height: auto;
}

.single-post-content {
    padding: 10px 30px 30px;
}

.single-post-content p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.8;
}

.single-post-content h2 {
    font-size: 24px;
    margin: 25px 0 15px;
    color: var(--primary-dark);
}

.single-post-content h3 {
    font-size: 20px;
    margin: 20px 0 12px;
    color: var(--primary);
}

.single-post-content ul,
.single-post-content ol {
    margin: 15px 0;
    padding-left: 25px;
    list-style: disc;
}

.single-post-content ol {
    list-style: decimal;
}

.single-post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.single-post-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-light);
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 17px;
}

.single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    display: table;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.single-post-content table th,
.single-post-content table td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: left;
}

.single-post-content table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.single-post-content table tr:nth-child(even) {
    background: var(--bg-light);
}

.single-post-content img {
    border-radius: var(--radius-md);
    margin: 15px 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-tags-label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 14px;
}

.post-tags a {
    background: var(--bg-light);
    color: var(--text-medium);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    transition: var(--transition);
}

.post-tags a:hover {
    background: var(--primary);
    color: #fff;
}

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

.share-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    transition: var(--transition);
}

.share-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.linkedin { background: #0077b5; }

/* Author Box */
.author-box {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 25px;
    margin: 25px 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.author-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.author-info p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    padding: 25px 30px;
    border-top: 1px solid var(--border-color);
}

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

.related-post-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.related-post-card:hover {
    box-shadow: var(--shadow-md);
}

.related-post-thumb {
    height: 140px;
    overflow: hidden;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-card h4 {
    padding: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.related-post-card h4 a {
    color: var(--text-dark);
}

.related-post-card h4 a:hover {
    color: var(--primary);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
}

.nav-previous,
.nav-next {
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-next {
    text-align: right;
}

.nav-previous:hover,
.nav-next:hover {
    background: var(--primary);
}

.nav-previous:hover a,
.nav-next:hover a {
    color: #fff;
}

.nav-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.post-navigation a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Comments */
.comments-area {
    padding: 25px 30px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.comment-list {
    list-style: none !important;
    padding: 0 !important;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-body {
    display: flex;
    gap: 15px;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 8px;
}

.comment-meta .fn {
    font-weight: 700;
    color: var(--text-dark);
}

.comment-meta .comment-date {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 10px;
}

.comment-content p {
    font-size: 14px;
    line-height: 1.6;
}

.comment-reply-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* Comment Form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
    margin-bottom: 12px;
    font-family: var(--font-primary);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

.comment-form .submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form .submit:hover {
    background: var(--secondary);
}

/* ===== PAGE TEMPLATE ===== */
.page-article {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.page-article h1 {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

.page-content p {
    margin-bottom: 18px;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 22px;
    margin: 25px 0 12px;
    color: var(--primary-dark);
}

.page-content h3 {
    font-size: 18px;
    margin: 20px 0 10px;
}

.page-content ul,
.page-content ol {
    margin: 15px 0;
    padding-left: 25px;
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    margin-bottom: 8px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== 404 PAGE ===== */
.error-404-content {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.error-404-content .error-code {
    font-size: 120px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-404-content h1 {
    font-size: 28px;
    margin: 15px 0 10px;
    color: var(--text-dark);
}

.error-404-content p {
    color: var(--text-medium);
    margin-bottom: 25px;
    font-size: 16px;
}

.error-404-content .search-form {
    max-width: 450px;
    margin: 0 auto;
}

/* ===== SEARCH RESULTS ===== */
.search-results-header {
    background: var(--bg-white);
    padding: 20px 25px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.search-results-header h1 {
    font-size: 22px;
    color: var(--text-dark);
}

.search-results-header h1 span {
    color: var(--primary);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    margin-top: 30px;
}

.footer-top {
    padding: 45px 0 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.footer-widget h3 {
    color: var(--text-white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

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

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-widget ul li a::before {
    content: '›';
    color: var(--secondary);
    font-weight: bold;
}

.footer-widget ul li a:hover {
    color: var(--secondary);
    padding-left: 6px;
}

.footer-about-logo {
    max-width: 180px;
    margin-bottom: 15px;
}

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    font-size: 14px;
}

.footer-copyright a {
    color: var(--secondary);
    font-weight: 600;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* ===== AD SPACES ===== */
.ad-space {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-main {
        grid-row: auto;
        min-height: 300px;
    }

    .featured-card {
        min-height: 200px;
    }

    .header-ad {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar-left {
        display: none;
    }

    .header-main .container {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .logo-text-wrap .logo-main {
        font-size: 18px;
    }

    .logo-text-wrap .logo-sub {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .single-post-content table {
        display: block;
        overflow-x: auto;
    }

    .single-post-meta {
        gap: 10px;
        font-size: 12px;
    }

    .post-tags {
        padding: 15px 20px;
    }

    .featured-overlay h2 {
        font-size: 18px;
    }

    .featured-overlay h3 {
        font-size: 14px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--primary-dark);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li > a {
        padding: 12px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: rgba(0,0,0,0.15);
        border-radius: 0;
    }

    .nav-menu .sub-menu li a {
        color: rgba(255,255,255,0.85);
        border-bottom-color: rgba(255,255,255,0.05);
        padding-left: 35px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-list-item {
        flex-direction: column;
    }

    .post-list-thumb {
        width: 100%;
        height: 200px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .single-post-header {
        padding: 20px 20px 0;
    }

    .single-post-header h1 {
        font-size: 22px;
    }

    .single-post-content {
        padding: 10px 20px 20px;
    }

    .single-post-featured-img {
        margin: 15px 20px;
    }

    .share-buttons {
        padding: 15px 20px;
    }

    .author-box {
        margin: 20px 20px;
        flex-direction: column;
        text-align: center;
    }

    .related-posts {
        padding: 20px 20px;
    }

    .comments-area {
        padding: 20px 20px;
    }

    .page-article {
        padding: 20px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .breaking-label {
        padding: 8px 12px;
        font-size: 11px;
    }

    .breaking-news-ticker {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 6px;
    }

    .logo-text-wrap .logo-main {
        font-size: 16px;
    }

    .logo-text-wrap .logo-sub {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .error-404-content .error-code {
        font-size: 80px;
    }

    .section-title {
        font-size: 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .container {
        padding: 0 12px;
    }

    .featured-overlay {
        padding: 15px;
    }

    .featured-main .featured-overlay {
        padding: 20px;
    }

    .post-card-content {
        padding: 14px;
    }

    .widget {
        padding: 16px;
    }

    .newsletter-box {
        padding: 20px;
    }

    .newsletter-box h3 {
        font-size: 17px;
    }

    .header-search input[type="search"] {
        padding: 8px 14px;
        font-size: 13px;
    }

    .header-search button {
        padding: 8px 14px;
    }

    .breadcrumb-list {
        font-size: 12px;
    }

    .page-article h1 {
        font-size: 22px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }
}

/* ===== ACCESSIBILITY ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ===== TRANSLATE BUTTON ===== */
.translate-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    border-bottom: 1px solid var(--border-color);
}

.translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.translate-btn i {
    font-size: 16px;
}

.translate-btn:hover {
    background: linear-gradient(135deg, #1557b0, #1a73e8);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
    transform: translateY(-1px);
}

.translate-btn.translating {
    background: linear-gradient(135deg, #f9a825, #fbc02d);
    pointer-events: none;
}

.translate-btn.translated {
    background: linear-gradient(135deg, #2e7d32, #43a047);
}

.translate-status {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

body.dark-mode .translate-bar {
    border-bottom-color: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .translate-bar {
        padding: 10px 20px;
    }

    .translate-btn {
        padding: 7px 14px;
        font-size: 12px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .top-bar,
    .breaking-news-bar,
    .main-navigation,
    .sidebar,
    .site-footer,
    .back-to-top,
    .share-buttons,
    .ad-space,
    .related-posts {
        display: none !important;
    }

    .content-area {
        grid-template-columns: 1fr !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
}

/* WordPress Core Alignments */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 15px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    padding: 8px 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.gallery-caption {
    font-size: 12px;
    text-align: center;
    padding: 5px;
}

/* Sticky Post */
.sticky .post-card {
    border: 2px solid var(--secondary);
    position: relative;
}

.sticky .post-card::before {
    content: '★ Featured';
    position: absolute;
    top: 0;
    right: 15px;
    background: var(--secondary);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* ===== READING PROGRESS BAR ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
    background-size: 200% 100%;
    animation: progressGlow 2s linear infinite;
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(255,111,0,0.5);
}

@keyframes progressGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ===== FLOATING SOCIAL SHARE ===== */
.floating-share {
    position: fixed;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.floating-share.visible {
    opacity: 1;
    visibility: visible;
}

.floating-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.floating-share a:hover {
    color: #fff;
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
}

.floating-share .fb { background: #1877f2; }
.floating-share .tw { background: #1da1f2; }
.floating-share .wa { background: #25d366; }
.floating-share .tg { background: #0088cc; }
.floating-share .li { background: #0077b5; }

/* ===== DARK MODE ===== */
.dark-mode-toggle {
    position: fixed;
    bottom: 85px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    background: var(--secondary);
    transform: translateY(-3px) rotate(15deg);
}

body.dark-mode {
    --bg-light: #121212;
    --bg-white: #1e1e1e;
    --bg-dark: #0a0a0a;
    --text-dark: #e0e0e0;
    --text-medium: #b0b0b0;
    --text-light: #888888;
    --border-color: #333333;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
}

body.dark-mode .site-header {
    background: #1e1e1e;
}

body.dark-mode .main-navigation {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

body.dark-mode .top-bar {
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e);
}

body.dark-mode .post-card-content h3 a,
body.dark-mode .post-list-content h3 a {
    color: #e0e0e0;
}

body.dark-mode .header-search input[type="search"] {
    color: #e0e0e0;
    background: #2a2a2a;
}

body.dark-mode .single-post-header h1,
body.dark-mode .page-article h1 {
    color: #e0e0e0;
}

body.dark-mode img {
    opacity: 0.92;
}

/* ===== PRELOADER ===== */
.site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.site-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.preloader-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== NEWSLETTER BOX ===== */
.newsletter-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
    overflow: hidden;
    max-width: 100%;
}

.newsletter-box h3 {
    font-size: 17px;
    margin-bottom: 6px;
    color: #fff;
    border: none;
    padding: 0;
}

.newsletter-box p {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    align-items: stretch;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    max-width: 100%;
}

.newsletter-form input[type="email"] {
    flex: 1 1 0%;
    min-width: 0;
    width: 0;
    padding: 10px 12px;
    border: none;
    border-radius: 0;
    font-size: 12px;
    outline: none;
    background: transparent;
    color: var(--text-dark);
}

.newsletter-form input[type="email"]::placeholder {
    color: #999;
    font-size: 11px;
}

.newsletter-form button {
    flex-shrink: 0;
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 0;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--secondary-dark);
}

/* ===== TABBED WIDGET ===== */
.tabbed-widget .tab-buttons {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 15px;
}

.tabbed-widget .tab-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.tabbed-widget .tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--secondary);
}

.tabbed-widget .tab-content {
    display: none;
}

.tabbed-widget .tab-content.active {
    display: block;
}

/* ===== COOKIE NOTICE ===== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: rgba(255,255,255,0.9);
    padding: 18px 25px;
    z-index: 9998;
    display: none;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

.cookie-notice.show {
    display: block;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-notice .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-notice p {
    font-size: 14px;
    margin: 0;
    flex: 1;
}

.cookie-notice a {
    color: var(--secondary);
}

.cookie-accept {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-accept:hover {
    background: var(--secondary-dark);
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== POST CARD HOVER EFFECTS ===== */
.post-card {
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

/* ===== CATEGORY COLORED BADGES ===== */
.cat-badge.cat-sarkari-naukri { background: #1565c0; }
.cat-badge.cat-exam-results { background: #2e7d32; }
.cat-badge.cat-admit-card { background: #c62828; }
.cat-badge.cat-answer-key { background: #6a1b9a; }
.cat-badge.cat-sarkari-yojana { background: #e65100; }
.cat-badge.cat-latest-news { background: #00838f; }
.cat-badge.cat-syllabus { background: #4527a0; }
.cat-badge.cat-notifications { background: #ad1457; }

/* ===== LIVE CLOCK ===== */
.live-clock {
    display: flex;
    align-items: center;
    gap: 5px;
    font-variant-numeric: tabular-nums;
}

.live-clock i {
    color: var(--secondary-light);
}

/* ===== VIEWS COUNTER BADGE ===== */
.views-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 768px) {
    .floating-share {
        display: none !important;
    }

    .newsletter-form {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .newsletter-form button {
        padding: 10px 12px;
        font-size: 12px;
    }

    .newsletter-form button i {
        display: none;
    }

    .cookie-notice .container {
        flex-direction: column;
        text-align: center;
    }

    .dark-mode-toggle {
        bottom: 75px;
        right: 15px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .breaking-label {
        position: relative;
        padding: 8px 12px;
        font-size: 11px;
    }

    .breaking-news-ticker {
        margin-left: 0;
    }

    .footer-widgets {
        grid-template-columns: 1fr !important;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
        border-radius: 10px;
    }

    .logo-text-wrap .logo-main {
        font-size: 17px;
    }

    .logo-text-wrap .logo-sub {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .top-bar-right {
        gap: 8px;
    }

    .top-bar-right a {
        font-size: 12px;
    }

    .container {
        padding: 0 10px;
    }

    .newsletter-box {
        padding: 20px 15px;
    }

    .newsletter-box h3 {
        font-size: 16px;
    }

    .newsletter-box p {
        font-size: 12px;
    }
}
