* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f3f4f6;
    --text-color: #374151;
    --header-bg: #ffffff;
    --header-text: #111827;
    --card-bg: #ffffff;
    --card-shadow: rgba(0,0,0,0.05);
    --border-color: #e5e7eb;
    --footer-bg: #111827;
    --footer-text: #e5e7eb;
    --accent-color: #38bdf8;
    --top-bar-bg: #111827;
    --top-bar-text: #e5e7eb;
    --widget-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #d1d5db;
    --ticker-bg: #e5e7eb;
}

body.dark-mode {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --header-bg: #1e293b;
    --header-text: #f8fafc;
    --card-bg: #1e293b;
    --card-shadow: rgba(0,0,0,0.3);
    --border-color: #334155;
    --footer-bg: #020617;
    --footer-text: #cbd5e1;
    --accent-color: #38bdf8;
    --top-bar-bg: #020617;
    --top-bar-text: #cbd5e1;
    --widget-bg: #1e293b;
    --input-bg: #1e293b;
    --input-border: #475569;
    --ticker-bg: #334155;
}

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;
}
.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;
    flex: 1;
    justify-content: flex-start;
}

.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: #0ea5e9;
}

.main-nav {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
    flex: 2;
    justify-content: center;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #0ea5e9;
}

.main-nav a.contact-btn {
    background: #0ea5e9;
    color: white;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
}

.main-nav a.contact-btn:hover {
    background: #0284c7;
    color: white;
}

/* --- 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: #0ea5e9 !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 #38bdf8;
    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: #38bdf8;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.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: #1f2937;
    color: #38bdf8;
    transform: translateX(5px);
}

.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 #38bdf8;
    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: #0ea5e9; }
.btn.edit:hover { background: #0284c7; }
.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: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}
.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 var(--accent-color);
}

.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: #6b7280;
    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 #0ea5e9; }
.ticker-heading { background: #0ea5e9; 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: #0ea5e9; 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 #0ea5e9; 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: #0ea5e9; }
.trend-meta { font-size: 12px; color: #6b7280; }
.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: #0ea5e9; }
.category-list .badge { background: var(--bg-color); padding: 2px 8px; border-radius: 12px; font-size: 12px; color: #6b7280; }
.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: #0ea5e9; 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: #6b7280; 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: #0ea5e9; color: white; padding: 10px 20px; border: none; border-radius: 20px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.like-btn:hover { background: #0284c7; }
.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: #9ca3af; 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: #0ea5e9; }

/* 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);
}

@media (max-width: 1100px) {
    .menu-toggle { display: block; flex: 1; }
    .logo-link { flex: 2; justify-content: center; }
    .search-container { flex: 1; }
    
    .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;
    }
    
    .main-nav.active { display: flex; }
    
    .main-nav a {
        width: 100%;
        padding: 15px 5%;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
    }
    
    .main-nav .contact-btn {
        margin: 15px 5%;
        width: 90%;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .main-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .container { width: 95%; }
    
    .site-header .container { flex-wrap: wrap; }
    .logo-link { flex: 2; order: 1; }
    .menu-toggle { order: 0; flex: 1; }
    .search-container { order: 3; width: 100%; margin-top: 15px; flex: none; }
    .search-form { max-width: 100%; }
    
    .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; }
}

/* --- CKEditor 5 Height Fix --- */
.ck-editor__editable {
    min-height: 400px !important;
    max-height: 800px !important;
    color: #1f2937 !important;
}

@media (max-width: 1168px) {
    .logo-text { font-size: 20px; }
    .main-nav { gap: 10px; }
}

/* 2. Tablet Landscape (968px) */
@media (max-width: 968px) {
    .main-layout { grid-template-columns: 1fr; }
    .news-container { grid-template-columns: repeat(2, 1fr); }
}

/* 3. Tablet Portrait (768px) */
@media (max-width: 768px) {
    .nav { flex-wrap: wrap; }
    .main-nav { order: 3; width: 100%; justify-content: center; padding-top: 10px; }
    .search-container { order: 2; }
    .logo-text { font-size: 18px; }
}

/* 4. Small Tablet / Big Phone (568px) */
@media (max-width: 568px) {
    .news-container { grid-template-columns: 1fr; }
    .site-logo { height: 50px; width: 50px; }
    .featured-content h1 { font-size: 24px; }
}

/* 5. Mobile (468px) */
@media (max-width: 468px) {
    .logo-text { font-size: 16px; }
    .search-form input { width: 120px; }
    .top-bar { font-size: 11px; }
}

/* 6. Very Small Mobile (360px) */
@media (max-width: 360px) {
    .logo-link { gap: 5px; }
    .logo-text { font-size: 14px; }
    .site-logo { height: 40px; width: 40px; }
    .search-form input { width: 100px; }
}
/* --- 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: #0ea5e9;
    transform: translateY(-2px);
}

/* Active Page Style (Sky Blue / Premium Look) */
.pagination .page-link.active {
    background: #0ea5e9;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 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: #0ea5e9;
    color: white !important;
    border-color: #0ea5e9;
}

/* 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;
    }
}