/*
Theme Name: AI Smart Buzz
Theme URI: https://aismartbuzz.com
Description: Complete premium bilingual AI blogging theme for aismartbuzz.com, featuring native Elementor widgets and an automated content generator.
Author: G Sagar
Author URI: https://aismartbuzz.com
Version: 1.0.0
Text Domain: aisb
*/

/* Custom variables and theme colors */
:root {
    --primary: #0078FF;
    --primary-hover: #0056b3;
    --secondary: #0F172A;
    --text-dark: #0F172A;
    --accent: #FF6A00;
    --accent-yellow: #FFB300;
    --background: #FFFFFF;
    --bg-light: #F8FAFC;
    --text: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 120, 255, 0.05), 0 10px 10px -5px rgba(0, 120, 255, 0.02);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    
    /* Font stacks */
    --font-english: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-telugu: 'Noto Sans Telugu', 'Inter', sans-serif;
}

/* Dark mode overrides */
body.dark-mode {
    --background: #0B0F19;
    --bg-light: #111827;
    --text: #F1F5F9;
    --text-dark: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #1E293B;
    --shadow-premium: 0 20px 25px -5px rgba(0, 120, 255, 0.15), 0 10px 10px -5px rgba(0, 120, 255, 0.05);
}

/* Custom Base Styles */
body {
    font-family: var(--font-english);
    background-color: var(--background);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    margin: 0;
}

pre, code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* Apply Noto Sans Telugu to Telugu text classes */
.lang-te, 
[lang="te"],
.telugu-font {
    font-family: var(--font-telugu) !important;
}

/* Premium Typography styling */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #F8FAFC;
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Accent Highlight Selection */
::selection {
    background: rgba(0, 120, 255, 0.2);
    color: var(--primary-hover);
}

/* Premium Cards style */
.aisb-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.aisb-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aisb-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(0, 120, 255, 0.3);
}

.aisb-card:hover::before {
    opacity: 1;
}

/* Sticky Header Style override helper */
.sticky-header-scrolled {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

body.dark-mode .sticky-header-scrolled {
    background-color: rgba(11, 15, 25, 0.9) !important;
    border-bottom: 1px solid var(--border);
}

/* AdSense placeholder template */
.adsense-placement {
    background: var(--bg-light);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 15px;
    text-align: center;
    position: relative;
    margin: 20px 0;
    overflow: hidden;
}

.adsense-placement::before {
    content: "ADVERTISEMENT";
    display: block;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.adsense-placement-label {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 8px;
    color: var(--primary);
    opacity: 0.7;
}

/* Live AdSense overrides to comply with Google policies */
.adsense-placement.live-adsense {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 2rem auto !important;
    overflow: visible !important;
    box-shadow: none !important;
}

.adsense-placement.live-adsense::before {
    content: "ADVERTISEMENT" !important;
    display: block !important;
    font-size: 10px !important;
    letter-spacing: 0.15em !important;
    color: var(--text-muted) !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    font-weight: 500 !important;
}

/* Responsive Embeds for Video */
.aisb-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.aisb-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Layout and Grid System */
.container,
.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 130px; /* Space for sticky header */
    padding-bottom: 60px;
}

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: 2fr 1fr;
    }
    .full-width-layout .main-layout {
        grid-template-columns: 1fr;
    }
}

/* Header & Navigation */
/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 100px;
    height: auto;
    z-index: 1000;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 10px 0;
    box-sizing: border-box;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.site-branding img.custom-logo,
.custom-logo-link img {
    max-height: clamp(55px, 5.5vw, 80px) !important;
    height: auto;
    width: auto;
    max-width: clamp(200px, 20vw, 320px);
    display: block;
    object-fit: contain;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    gap: clamp(10px, 2vw, 30px);
}

.site-branding .site-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
}

.site-branding .site-title a {
    color: var(--secondary);
    text-decoration: none;
}

body.dark-mode .site-branding .site-title a {
    color: #F8FAFC;
}

.logo-accent {
    color: var(--primary);
}

.site-description {
    display: none; /* Keep clean layout */
}

.main-navigation {
    display: flex;
    align-items: center;
}

@media (min-width: 1200px) {
    .main-navigation {
        flex-grow: 1;
        justify-content: center;
    }
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(10px, 1.5vw, 24px);
    flex-wrap: wrap;
    justify-content: center;
}

.main-navigation li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    transition: color 0.2s ease;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item a {
    color: var(--primary);
}

.main-navigation li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.main-navigation li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.menu-toggle .fa-xmark {
    display: none;
}

.menu-toggle.active .fa-bars {
    display: none;
}

.menu-toggle.active .fa-xmark {
    display: inline-block;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 16px;
    min-height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.header-btn:hover {
    background: var(--border);
    border-color: var(--primary);
    color: var(--primary);
}

.header-btn i {
    font-size: 0.95rem;
}

/* Banner section */
.home-hero-banner {
    position: relative;
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    padding: 160px 20px 80px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

body.dark-mode .home-hero-banner {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(11, 15, 25, 1) 100%);
}

.home-hero-banner::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

body.dark-mode .home-hero-banner::before {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    animation: badgePulse 2.5s infinite ease-in-out;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.2); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.banner-title {
    font-size: 2.75rem;
    font-weight: 800;
    max-width: 850px;
    margin: 0 auto 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-dark) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .banner-title {
    background: linear-gradient(135deg, #FFFFFF 30%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Post Cards */
.section-header {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-primary {
    color: var(--primary);
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.post-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.post-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-content-wrap {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-cats {
    margin-bottom: 12px;
}

.post-cats a, .mock-cat-badge {
    background: rgba(6, 182, 212, 0.08);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.02em;
    display: inline-block;
    transition: all 0.2s ease;
}

.post-cats a:hover {
    background: var(--primary);
    color: white;
}

.entry-title {
    font-size: 1.2rem;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.entry-summary {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.entry-summary p {
    margin: 0;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Pagination */
.aisb-pagination {
    margin-top: 40px;
}

.aisb-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.aisb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.aisb-pagination .page-numbers:hover,
.aisb-pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Sidebar Widgets Layout */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget-title {
    font-size: 1.15rem;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

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

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.widget ul li a:hover {
    color: var(--primary);
}

.cat-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 20px;
}

.about-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Single Post styling */
.single-post-wrapper {
    margin-bottom: 40px;
}

.post-breadcrumbs {
    margin-bottom: 15px;
}

.single-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.post-meta-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-author-avatar img {
    border-radius: 50%;
}

.meta-author-info {
    display: flex;
    flex-direction: column;
}

.meta-author-info .author-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.meta-author-info .post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.meta-right .read-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 50px;
}

.post-top-share {
    margin-bottom: 25px;
}

.post-featured-image-wrapper {
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-featured-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.single-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.single-content p {
    margin-bottom: 24px;
}

.single-content h2 {
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-content h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tags-title {
    font-weight: 700;
    font-size: 0.85rem;
}

.post-tags a {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-tags a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.author-bio-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    background: var(--bg-light);
}

.author-bio-avatar img {
    border-radius: 50%;
}

.author-bio-name {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
}

.author-bio-description {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.related-posts-section {
    margin-top: 50px;
}

.related-section-title {
    font-size: 1.35rem;
    margin: 0 0 10px 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
}

@media (min-width: 576px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Footer Section */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    color: var(--text);
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-widgets {
        grid-template-columns: 2fr 1fr 2fr;
    }
}

.footer-logo a {
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--secondary);
}

body.dark-mode .footer-logo a {
    color: #F8FAFC;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 15px 0 20px;
    line-height: 1.6;
}

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

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer-column .footer-title {
    font-size: 1.1rem;
    margin: 0 0 20px 0;
}

.footer-links-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-menu li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links-menu li a:hover {
    color: var(--primary);
}

.newsletter-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0 0 15px 0;
}

.aisb-newsletter-form {
    display: flex;
    gap: 8px;
}

.aisb-newsletter-input {
    flex-grow: 1;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background: var(--background);
    color: var(--text);
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.aisb-newsletter-input::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

.aisb-newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 120, 255, 0.15);
    outline: none;
}

body.dark-mode .aisb-newsletter-input {
    border-color: #334155;
}

body.dark-mode .aisb-newsletter-input:focus {
    border-color: var(--primary);
}

.aisb-newsletter-btn {
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.88rem;
}

.aisb-newsletter-btn:hover {
    background: var(--primary-hover);
}

/* Footer-specific newsletter style adjustments */
.site-footer .aisb-newsletter-form {
    flex-direction: column;
    gap: 12px;
}

.site-footer .aisb-newsletter-input {
    width: 100%;
    box-sizing: border-box;
}

.site-footer .aisb-newsletter-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 25px;
    gap: 15px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* Screen reader text */
.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;
    width: 1px;
    word-wrap: normal !important;
}

/* Mobile Menu styling toggles */
@media (max-width: 1199px) {
    .menu-toggle {
        display: inline-flex;
    }
    
    .menu-primary-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    
    .menu-primary-container.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .main-navigation li a {
        white-space: normal;
    }
    
    .main-navigation li a::after {
        display: none;
    }
    
    .header-actions span {
        display: none; /* Hide toggle button text on mobile */
    }
}

/* General Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Bilingual content visibility controls */
body.lang-en .lang-te-section {
    display: none !important;
}
body.lang-en .lang-en-section {
    display: block !important;
}
body.lang-te .lang-en-section {
    display: none !important;
}
body.lang-te .lang-te-section {
    display: block !important;
}

/* Premium Empty State Styling */
.aisb-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    margin: 40px auto;
    max-width: 650px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .aisb-empty-state {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.aisb-empty-state:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(6, 182, 212, 0.3);
}

.empty-state-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    opacity: 0.9;
    animation: bounceSlow 3s infinite ease-in-out;
}

.empty-state-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text);
    line-height: 1.4;
}

.empty-state-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

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

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

/* Bilingual Writer Content Display Optimization */
body.lang-te .bilingual-writer-en {
    display: none !important;
}
body.lang-te .bilingual-writer-te {
    display: block !important;
}
body.lang-en .bilingual-writer-te {
    display: none !important;
}
body.lang-en .bilingual-writer-en {
    display: block !important;
}

/* Premium Archive / Category Header Styling */
.archive-header {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 35px 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

body.dark-mode .archive-header {
    background: rgba(17, 24, 39, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

.archive-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 12px 0 !important;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

body.dark-mode .archive-title {
    color: #F8FAFC;
}

.archive-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 850px;
    margin: 0 0 15px 0;
}

.archive-header .title-underline {
    margin-top: 15px;
}



