* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f0faf3;
    --text-color: #1a2e1a;
    --text-muted: #4b5e4b;
    --header-bg: #ffffff;
    --header-text: #0a1a0a;
    --card-bg: #ffffff;
    --card-shadow: rgba(22, 163, 74, 0.08);
    --border-color: #d1fae5;
    --footer-bg: #0a1a0a;
    --footer-text: #d1fae5;
    --accent-color: #16a34a;
    --top-bar-bg: #0a1a0a;
    --top-bar-text: #d1fae5;
    --widget-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #a7f3d0;
    --ticker-bg: #dcfce7;
}

body.dark-mode {
    --bg-color: #060d06;
    --text-color: #f0fdf4;
    --text-muted: #bbf7d0;
    --header-bg: #0d1a0d;
    --header-text: #f0fdf4;
    --card-bg: #0d1a0d;
    --card-shadow: rgba(0,0,0,0.5);
    --border-color: #1a3a1a;
    --footer-bg: #020702;
    --footer-text: #bbf7d0;
    --accent-color: #22c55e;
    --top-bar-bg: #020702;
    --top-bar-text: #bbf7d0;
    --widget-bg: #0d1a0d;
    --input-bg: #0d1a0d;
    --input-border: #1a3a1a;
    --ticker-bg: #1a3a1a;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Base Image Setting */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- TOP BAR --- */
.top-bar {
    background: var(--top-bar-bg);
    color: var(--top-bar-text);
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: flex-direction 0.3s ease;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.top-bar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 1px solid rgba(229,231,235,0.2);
    padding-left: 15px;
    transition: border 0.3s ease, padding 0.3s ease;
}
html[dir="rtl"] .top-bar-controls {
    border-left: none;
    border-right: 1px solid rgba(229,231,235,0.2);
    padding-left: 0;
    padding-right: 15px;
}
.theme-toggle-btn {
    background: none;
    border: none;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}
.theme-toggle-btn:hover {
    color: var(--accent-color);
}
.social-links a {
    color: var(--top-bar-text);
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--accent-color);
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    background: var(--header-bg);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--card-shadow);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.site-header .container {
    max-width: 1500px;
    width: 95%;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    flex-shrink: 0;
}

.site-logo, .footer-logo {
    height: 75px;
    width: 75px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--header-text);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: white;
}

.logo-text {
    color: var(--header-text);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo-text .highlight {
    color: #16a34a;
}

.main-nav {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

/* Header Right wrapper */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Staff Login button style */
.emp-login-btn {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.emp-login-btn:hover {
    background: linear-gradient(135deg, #15803d, #166534);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(22, 163, 74, 0.4);
}

.mobile-only-staff-login {
    display: none;
}


/* --- FEATURED HERO SECTION --- */
.featured-hero {
    height: 550px;
    display: flex;
    align-items: flex-end;
    color: white;
    padding-bottom: 50px;
    position: relative;
    margin-bottom: 50px;
    background-position: center 20% !important;
    background-size: cover !important;
}

/* Swiper custom styles */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
}
.swiper-pagination-bullet-active {
    background: #16a34a !important;
    width: 25px !important;
    border-radius: 5px !important;
    transition: width 0.3s ease;
}

.featured-content {
    max-width: 800px;
}

.featured-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin: 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    color: #ffffff; /* Hero text meshma white hi rhega */
}

.featured-content p {
    font-size: 18px;
    margin-bottom: 25px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    opacity: 0.9;
    color: #ffffff;
}

.section-title {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.section-title h2 {
    font-size: 28px;
    color: var(--header-text);
    border-bottom: 4px solid #16a34a;
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: -12px;
}

/* --- NEWS GRID (HOME PAGE) --- */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 5px 15px var(--card-shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #000;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
}

.category {
    background: #16a34a;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

/* Container for category + by-author badge inline */
.card-meta-tags,
.post-top-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.card-meta-tags .category,
.post-top-tags .category {
    margin-bottom: 0;
}

/* By [Name] tag */
.by-author-tag {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #000000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    gap: 3px;
}

.card-content h2 {
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.4;
    color: var(--header-text);
}

.read-btn {
    display: inline-block;
    margin-top: auto;
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    border: 1px solid var(--border-color);
}

/* --- SINGLE POST PAGE --- */
.single-post {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--card-shadow);
    border: 1px solid var(--border-color);
}

.single-post img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    background: #222;
}

.single-content {
    padding: 40px;
}

.single-content h1 {
    margin-bottom: 25px;
    font-size: 36px;
    line-height: 1.3;
    color: var(--header-text);
}

.single-content p {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 18px;
    margin-bottom: 20px;
}

/* --- LOGIN & DASHBOARD (FIXED BOXES) --- */
.login-box {
    width: 350px;
    background: var(--card-bg);
    padding: 30px;
    margin: 100px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--card-shadow);
    border: 1px solid var(--border-color);
}

.login-box input, .login-box button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.login-box input {
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--input-border);
}

.login-box button {
    background: #111827;
    color: white;
    cursor: pointer;
    border: none;
}

/* --- ADMIN DASHBOARD --- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg-color);
}

.sidebar {
    width: 260px;
    background: #111827; /* Dark theme dynamic k bajaye isko premium solid dark rakha h */
    color: white;
    padding: 30px 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar h2 {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e5e7eb;
}

.sidebar nav a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    padding: 12px 18px;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

.sidebar nav a:hover {
    background: #1a2e1a;
    color: #22c55e;
    transform: translateX(5px);
}

.sidebar nav a.active {
    background: #1a2e1a;
    color: #22c55e;
}

.admin-content {
    flex: 1;
    padding: 40px;
    color: var(--text-color);
}

/* Dashboard Cards Dynamic Fix */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.cards .card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px var(--card-shadow);
    border: 1px solid var(--border-color);
    border-left: 5px solid #16a34a;
    transition: transform 0.3s ease;
}

.cards .card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cards .card .count {
    font-size: 36px;
    font-weight: 800;
    color: var(--header-text);
}

/* Posts Table Dynamic Fix */
.posts-table h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--header-text);
}

.posts-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    box-shadow: 0 4px 6px -1px var(--card-shadow);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.posts-table th, .posts-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: var(--text-color);
}

.posts-table th {
    background: var(--ticker-bg);
    color: var(--header-text);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.posts-table tbody tr:hover {
    background-color: var(--border-color);
}

.posts-table .thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Action Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}
.btn.edit { background: #16a34a; }
.btn.edit:hover { background: #15803d; }
.btn.delete { background: #ef4444; }
.btn.delete:hover { background: #dc2626; }
.inline-form { display: inline-block; margin-left: 5px; }

/* Form Container Fix */
.form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px var(--card-shadow);
    max-width: 800px;
    border: 1px solid var(--border-color);
}
.form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--header-text);
}
.form-container input[type="text"], 
.form-container textarea,
.form-container input[type="file"],
.form-container select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease;
}
.form-container input[type="text"]:focus, 
.form-container textarea:focus,
.form-container select:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.form-container button.edit {
    padding: 12px 24px;
    font-size: 16px;
    width: 100%;
}

/* --- FOOTER --- */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 4px solid #16a34a;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-social h3, .footer-links h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-about p {
    color: #9ca3af;
    line-height: 1.8;
    max-width: 500px;
}

.footer-links a {
    display: block;
    color: var(--footer-text);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 14px;
}

/* --- CATEGORY & CONTACT PAGES FIX --- */
.category-header {
    background: var(--footer-bg);
    color: white;
    padding: 60px 0;
    margin-bottom: 50px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.category-header h1 {
    font-size: 40px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--card-shadow);
    border: 1px solid var(--border-color);
}

.contact-info h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--header-text);
}

.contact-info p {
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details li {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-color);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--header-text);
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-color);
    border-radius: 6px;
    font-family: inherit;
}

.contact-form button {
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    background: var(--footer-bg);
    color: white;
    padding: 12px;
    border-radius: 6px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #bbf7d0;
}

.no-posts {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: var(--text-muted);
    width: 100%;
}

/* --- NEW FEATURES CSS --- */
.search-container { flex: 1; display: flex; justify-content: flex-end; }
.search-form { display: flex; max-width: 300px; width: 100%; }
.search-form input { padding: 8px 15px; border: 1px solid var(--input-border); border-radius: 20px 0 0 20px; outline: none; background: var(--input-bg); color: var(--text-color); }
.search-form button { padding: 8px 15px; background: var(--footer-bg); color: white; border: none; border-radius: 0 20px 20px 0; cursor: pointer; border-left: 1px solid var(--border-color); }

/* Ticker */
.ticker-wrap { display: flex; background: var(--ticker-bg); overflow: hidden; border-bottom: 2px solid #16a34a; }
.ticker-heading { background: #16a34a; color: white; padding: 5px 15px; font-weight: bold; white-space: nowrap; z-index: 10; }
.ticker { flex-grow: 1; overflow: hidden; padding: 5px 0; }
.ticker-item-wrapper { display: flex; animation: ticker 25s linear infinite; }
.ticker-item { white-space: nowrap; padding: 0 30px; font-weight: 500; color: var(--text-color); }
.ticker-item a { color: var(--text-color); text-decoration: none; }
.ticker-item a:hover { color: #16a34a; text-decoration: underline; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* Main Layout Grid */
.main-layout { display: grid; grid-template-columns: 2.5fr 1fr; gap: 40px; align-items: start; }

/* Sidebar Widgets */
.sidebar-wrapper { position: sticky; top: 120px; }
.sidebar-widget { background: var(--widget-bg); padding: 25px; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 4px 6px var(--card-shadow); border: 1px solid var(--border-color); }
.sidebar-widget h3 { margin-bottom: 15px; font-size: 18px; border-bottom: 2px solid #16a34a; padding-bottom: 10px; display: inline-block; color: var(--header-text); }
.trending-item { display: flex; gap: 15px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.trend-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.trend-info a { color: var(--header-text); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.4; display: block; margin-bottom: 5px; }
.trend-info a:hover { color: #16a34a; }
.trend-meta { font-size: 12px; color: var(--text-muted); }
.category-list { list-style: none; }
.category-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border-color); }
.category-list a { color: var(--text-color); text-decoration: none; font-weight: 500; }
.category-list a:hover { color: #16a34a; }
.category-list .badge { background: var(--bg-color); padding: 2px 8px; border-radius: 12px; font-size: 12px; color: var(--text-muted); }
.social-widget { display: flex; gap: 15px; }
.social-widget a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg-color); color: var(--text-color); border-radius: 50%; font-size: 18px; transition: 0.3s; border: 1px solid var(--border-color); }
.social-widget a:hover { background: #16a34a; color: white; transform: translateY(-3px); }

/* Single Post Meta & Share */
.post-meta-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; margin-bottom: 20px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.meta-stats span { margin-right: 15px; color: var(--text-muted); font-size: 14px; }
.social-share { display: flex; align-items: center; gap: 10px; }
.social-share span { font-weight: 600; color: var(--header-text); }
.social-share a { color: white; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; }
.share-fb { background: #1877F2; }
.share-tw { background: #1DA1F2; }
.share-wa { background: #25D366; }

/* Like & Comments */
.post-actions { margin-top: 30px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.like-btn { background: #16a34a; color: white; padding: 10px 20px; border: none; border-radius: 20px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.like-btn:hover { background: #15803d; }
.comments-section { margin-top: 40px; }
.comment-form { background: var(--ticker-bg); padding: 20px; border-radius: 12px; margin-bottom: 30px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid var(--input-border); border-radius: 8px; font-family: inherit; background: var(--input-bg); color: var(--text-color); }
.comment-form button { background: var(--footer-bg); color: white; padding: 10px 20px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }
.comment-item { display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.comment-avatar i { font-size: 40px; color: var(--border-color); }
.comment-body h5 { margin-bottom: 5px; color: var(--header-text); }
.comment-body h5 span { font-size: 12px; color: var(--text-muted); font-weight: normal; margin-left: 10px; }

/* Related Posts */
.related-posts { margin-top: 40px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.related-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.related-card a { text-decoration: none; color: var(--header-text); font-weight: 600; }
.related-card a:hover { color: #16a34a; }

/* Loading Animation skeleton */
.lazyload { animation: skeleton 1.5s infinite linear; background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-color) 50%, var(--border-color) 75%); background-size: 200% 100%; }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- RESPONSIVE ADJUSTMENTS --- */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--header-text);
    padding: 8px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}
.menu-toggle:hover {
    color: #0ea5e9;
}

/* Base Desktop Adjustments for medium screens */
@media (max-width: 1350px) {
    .logo-text {
        font-size: 22px;
    }
    .main-nav {
        gap: 12px;
    }
    .main-nav a {
        font-size: 13px;
    }
    .site-logo {
        height: 60px;
        width: 60px;
    }
}

/* Tablet & Mobile Navigation State (Mobile Menu displays below 1200px) */
@media (max-width: 1200px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: relative;
    }
    
    .logo-link {
        flex: 1;
        justify-content: center;
    }
    
    .header-right {
        flex: 1;
        justify-content: flex-end;
    }
    
    .header-right .emp-login-btn {
        display: none;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--header-bg);
        flex-direction: column;
        gap: 0;
        display: none;
        box-shadow: 0 10px 15px var(--card-shadow);
        border-top: 1px solid var(--border-color);
        z-index: 1001;
        margin: 0;
        padding: 10px 0;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        width: 100%;
        padding: 14px 5%;
        border-bottom: 1px dashed var(--border-color);
        text-align: left;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .mobile-only-staff-login {
        display: block !important;
        margin: 15px 5% 5px;
        width: 90%;
        text-align: center;
        background: linear-gradient(135deg, #16a34a, #15803d);
        color: white !important;
        padding: 12px;
        border-radius: 50px;
        font-weight: 700;
        box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
    }
}

/* Tablet Portrait & Grid Collapses */
@media (max-width: 968px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .news-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Layout for Header Elements (Search full-width under row) */
@media (max-width: 650px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-bar-right {
        justify-content: center;
        width: 100%;
        gap: 15px;
    }
    
    .top-bar-controls {
        border-left: none;
        padding-left: 0;
    }
    
    html[dir="rtl"] .top-bar-controls {
        border-right: none;
        padding-right: 0;
    }

    .nav {
        flex-wrap: wrap;
    }
    
    .logo-link {
        flex: 1;
        justify-content: center;
        order: 0;
    }
    
    .menu-toggle {
        order: -1;
    }
    
    .header-right {
        order: 2;
        width: 100%;
        margin-top: 10px;
        justify-content: center;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-form {
        width: 100%;
        max-width: 100%;
    }
    
    .search-form input {
        flex: 1;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .site-logo {
        height: 50px;
        width: 50px;
    }
    
    .featured-hero {
        height: 350px;
    }
    
    .featured-content h1 {
        font-size: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Small Screens & Mobile Fine-Tuning */
@media (max-width: 568px) {
    .news-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 468px) {
    .logo-text {
        font-size: 16px;
    }
    .top-bar {
        font-size: 11px;
    }
    .top-bar-controls {
        padding-left: 8px !important;
        gap: 8px !important;
    }
    .top-bar-right {
        gap: 10px !important;
    }
    .social-links a {
        margin-left: 8px !important;
    }
}

@media (max-width: 360px) {
    .logo-link {
        gap: 8px;
    }
    .logo-text {
        font-size: 14px;
    }
    .site-logo {
        height: 40px;
        width: 40px;
    }
}

/* --- CKEditor 5 Height Fix --- */
.ck-editor__editable {
    min-height: 400px !important;
    max-height: 800px !important;
    color: #1f2937 !important;
}
/* --- MODERN PAGINATION SYSTEM --- */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0 20px;
    width: 100%;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--card-bg);
    padding: 10px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 12px var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover State for Numbers */
.pagination .page-link:hover:not(.active) {
    background: var(--bg-color);
    color: #16a34a;
    transform: translateY(-2px);
}

/* Active Page Style (Green / Premium Look) */
.pagination .page-link.active {
    background: #16a34a;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.4);
    transform: scale(1.05);
}

/* Prev and Next Buttons Styling */
.pagination .page-link.prev-next {
    border-radius: 20px;
    padding: 0 16px;
    min-width: auto;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.pagination .page-link.prev-next:hover {
    background: #16a34a;
    color: white !important;
    border-color: #16a34a;
}

/* Responsive Fix for Mobile Phones */
@media (max-width: 500px) {
    .pagination {
        gap: 4px;
        padding: 8px 10px;
    }
    .pagination .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .pagination .page-link.prev-next {
        padding: 0 10px;
        font-size: 12px;
    }
}

/* --- LANG TOGGLE BUTTON --- */
.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border: 1px solid rgba(229, 231, 235, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* --- URDU MODE SUPPORT (Jameel Noori Nastaliq & Apple Nastaliq) --- */
html[lang="ur"], html[lang="ur"] *,
body.urdu-mode, body.urdu-mode *,
.urdu-mode, .urdu-mode *,
[lang="ur"], [lang="ur"] * {
    font-family: 'JameelNooriNastaliq', 'Apple Nastaliq', 'Noto Nastaliq Urdu', 'Urdu Sangam MN', 'Jameel Noori Nastaleeq', 'Noto Sans Arabic', serif !important;
    line-height: 2.2 !important;
}

/* RTL layout adjustments */
html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .top-bar-right,
html[dir="rtl"] .nav,
html[dir="rtl"] .header-right,
html[dir="rtl"] .team-search-inner,
html[dir="rtl"] .contact-wrapper,
html[dir="rtl"] .post-meta-bar,
html[dir="rtl"] .comment-item {
    flex-direction: row-reverse;
}

@media (min-width: 1201px) {
    html[dir="rtl"] .logo-link {
        justify-content: flex-end;
    }
}

html[dir="rtl"] .main-nav {
    flex-direction: row-reverse;
}

html[dir="rtl"] .search-form input {
    border-radius: 0 20px 20px 0;
    border-left: none;
    border-right: 1px solid var(--input-border);
}

html[dir="rtl"] .search-form button {
    border-radius: 20px 0 0 20px;
    border-right: none;
    border-left: 1px solid var(--border-color);
}

html[dir="rtl"] .cert-header,
html[dir="rtl"] .cert-footer,
html[dir="rtl"] .verified-strip {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .cert-details {
    direction: rtl;
}

/* Hide Google Translate top frames natively */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.skiptranslate:not(#lang-toggle) {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0 !important;
    position: static !important;
}

html, html.translated-ltr, html.translated-rtl {
    top: 0 !important;
    margin-top: 0 !important;
}

.translated-ltr, .translated-rtl {
    margin-top: 0 !important;
    top: 0 !important;
}

.goog-te-gadget {
    font-size: 0 !important;
}

.goog-te-gadget span {
    display: none !important;
}