/* Blog CMS Styling */

:root {
    --blog-primary: #0f172a;
    --blog-secondary: #1e293b;
    --blog-accent: #3b82f6;
    --blog-accent-hover: #2563eb;
    --blog-success: #10b981;
    --blog-warning: #f59e0b;
    --blog-danger: #ef4444;
    --blog-border: #e2e8f0;
    --blog-bg: #f8fafc;
    --blog-text: #0f172a;
    --blog-text-light: #64748b;
    --blog-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --blog-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Layout */
.blog-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--blog-bg);
    color: var(--blog-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica',
                 'Arial', sans-serif;
}

/* Header & Navigation */
.blog-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--blog-border);
    box-shadow: var(--blog-shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}

.blog-navbar {
    padding: 1rem 0;
}

.blog-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-brand h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--blog-primary);
    margin: 0;
    padding: 0;
}

.blog-nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.blog-nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: var(--blog-text);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.blog-nav-link:hover {
    background-color: var(--blog-bg);
}

.blog-nav-link.admin-link {
    background-color: var(--blog-accent);
    color: white;
    border-color: var(--blog-accent);
}

.blog-nav-link.admin-link:hover {
    background-color: var(--blog-accent-hover);
    border-color: var(--blog-accent-hover);
}

/* Main Content */
.blog-main-content {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Footer */
.blog-footer {
    background-color: var(--blog-primary);
    color: #f1f5f9;
    padding: 3rem 1rem;
    margin-top: auto;
}

.blog-footer-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.blog-footer-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.heart {
    color: #ef4444;
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Cards & Containers */
.blog-card {
    background-color: #ffffff;
    border: 1px solid var(--blog-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--blog-shadow);
    transition: all 0.2s ease;
}

.blog-card:hover {
    box-shadow: var(--blog-shadow-lg);
    border-color: var(--blog-accent);
}

/* Forms */
.blog-form-group {
    margin-bottom: 1.5rem;
}

.blog-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--blog-text);
    font-size: 0.875rem;
}

.blog-form-input,
.blog-form-select,
.blog-form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--blog-border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--blog-text);
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.blog-form-input:focus,
.blog-form-select:focus,
.blog-form-textarea:focus {
    outline: none;
    border-color: var(--blog-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.blog-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.blog-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-btn-primary {
    background-color: var(--blog-accent);
    color: #ffffff;
}

.blog-btn-primary:hover {
    background-color: var(--blog-accent-hover);
}

.blog-btn-secondary {
    background-color: var(--blog-bg);
    color: var(--blog-text);
    border: 1px solid var(--blog-border);
}

.blog-btn-secondary:hover {
    background-color: #ffffff;
    border-color: var(--blog-accent);
}

.blog-btn-danger {
    background-color: var(--blog-danger);
    color: #ffffff;
}

.blog-btn-danger:hover {
    background-color: #dc2626;
}

.blog-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Tables */
.blog-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid var(--blog-border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.blog-table th {
    background-color: var(--blog-bg);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--blog-text);
    border-bottom: 1px solid var(--blog-border);
}

.blog-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--blog-border);
}

.blog-table tbody tr:hover {
    background-color: var(--blog-bg);
}

/* Badges */
.blog-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.blog-badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.blog-badge-pending {
    background-color: #dbeafe;
    color: #0c4a6e;
}

/* Search & Filter */
.blog-search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-search-input {
    flex: 1;
    min-width: 250px;
}

/* Grid Layouts */
.blog-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.blog-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Tabs */
.blog-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--blog-border);
    margin-bottom: 2rem;
}

.blog-tab-button {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    color: var(--blog-text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.blog-tab-button:hover {
    color: var(--blog-text);
}

.blog-tab-button.active {
    color: var(--blog-accent);
    border-bottom-color: var(--blog-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-brand h1 {
        font-size: 1.5rem;
    }

    .blog-nav-links {
        width: 100%;
        justify-content: center;
    }

    .blog-grid-2,
    .blog-grid-3 {
        grid-template-columns: 1fr;
    }

    .blog-tabs {
        overflow-x: auto;
    }

    .blog-table {
        font-size: 0.75rem;
    }

    .blog-table th,
    .blog-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Utility Classes */
.blog-mt-1 { margin-top: 0.25rem; }
.blog-mt-2 { margin-top: 0.5rem; }
.blog-mt-4 { margin-top: 1rem; }
.blog-mb-1 { margin-bottom: 0.25rem; }
.blog-mb-2 { margin-bottom: 0.5rem; }
.blog-mb-4 { margin-bottom: 1rem; }
.blog-p-2 { padding: 0.5rem; }
.blog-p-4 { padding: 1rem; }
.blog-rounded { border-radius: 0.375rem; }
.blog-text-center { text-align: center; }
.blog-text-sm { font-size: 0.875rem; }
.blog-text-lg { font-size: 1.125rem; }
.blog-font-bold { font-weight: 700; }
.blog-font-semibold { font-weight: 600; }



.blog-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: .3s;
}

    .blog-card:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,.15);
    }



.blog-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: .3s;
}

    .blog-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
    }

.blog-btn-primary {
    background: #0086FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    text-decoration: none;
}

    .blog-btn-primary:hover {
        background: #0074dc;
        color: #fff;
    }

.blog-btn-secondary {
    background: #fff;
    color: #212529;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 10px 24px;
    text-decoration: none;
}

    .blog-btn-secondary:hover {
        border-color: #0086FF;
        color: #0086FF;
    }

.blog-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 8px;
}

    .blog-input:focus {
        outline: none;
        border-color: #0086FF;
        box-shadow: 0 0 0 0.2rem rgba(0,134,255,.15);
    }

.blog-table {
    width: 100%;
}

    .blog-table thead {
        background: #f8f9fa;
    }

    .blog-table th {
        font-weight: 600;
    }

    .blog-table td,
    .blog-table th {
        padding: 15px;
        border-bottom: 1px solid #dee2e6;
    }

.blog-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
}

@media(max-width:992px) {
    .blog-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blogs-landing-wrapper {
    min-height: 100vh;
    /*background: linear-gradient(135deg,#f8fafc,#e2e8f0);*/
    padding: 80px 20px 80px;
}

.blogs-container {
    max-width: 1320px;
    margin: 0 auto;
}

.blog-top-header {
    text-align: center;
    margin-bottom: 80px;
}

.hero-title {
    font-size: 60px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-highlight {
    background: linear-gradient( 179deg, #2563eb, #062e51);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 850px;
    margin: 0 auto 35px;
    font-size: 20px;
    color: #64748b;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-blog {
    background: #00457E;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
}

    .btn-primary-blog:hover {
        background: #003761;
        color: white;
    }

.btn-secondary-blog {
    background: white;
    color: #1e293b;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-weight: 600;
    transition: .3s;
}

    .btn-secondary-blog:hover {
        border-color: #0086FF;
        color: #0086FF;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 24px;
    margin-top: 80px;
}

.feature-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: .3s;
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,.12);
    }

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

.cta-section {
    margin-top: 80px;
    text-align: center;
    padding: 60px 30px;
    border-radius: 20px;
    background: linear-gradient(88deg, #3959a7, #1e293b);
    color: white;
}

    .cta-section h2 {
        font-size: 40px;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .cta-section p {
        color: #cbd5e1;
        max-width: 700px;
        margin: 0 auto 30px;
    }

.cta-button {
    display: inline-block;
    background: white;
    color: #0f172a;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
}

.stats-section {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 120px;
    text-align: center;
}

.stat-item h3 {
    font-size: 52px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.stat-item p {
    color: #64748b;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .hero-title {
        font-size: 42px;
    }

    .stats-section {
        gap: 50px;
    }
}

@media (max-width: 768px) {

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

    .stats-section {
        flex-direction: column;
        gap: 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }
}

.blog-footer {
    background-color: #0f172a;
    color: #ffffff;
    margin-top: 80px;
    padding: 48px 16px;
}

.blog-footer-container {
    max-width: 1320px;
    margin: 0 auto;
    text-align: center;
}

.blog-footer-text {
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

.blog-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.blog-navbar-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-logo-link {
    text-decoration: none;
}

.blog-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.blog-nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.blog-nav-link {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color .3s ease;
}

    .blog-nav-link:hover {
        color: #0f172a;
    }

.blog-admin-btn {
    background: #0086FF;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 500;
    transition: background .3s ease;
}

    .blog-admin-btn:hover {
        background: #006fd6;
        color: #ffffff;
    }

@media (max-width: 768px) {

    .blog-navbar-container {
        flex-direction: column;
        gap: 15px;
    }

    .blog-nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .blog-logo-text {
        font-size: 24px;
    }
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all .3s ease;
}

    .blog-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }

.blog-card-image-wrapper {
    height: 240px;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.blog-category-badge {
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.blog-date {
    color: #64748b;
    font-size: 14px;
}

.blog-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    cursor: pointer;
    transition: color .3s ease;
}

    .blog-card-title:hover {
        color: #0086FF;
    }

.blog-card-excerpt {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.read-more-btn {
    border: none;
    background: transparent;
    color: #0086FF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color .3s ease;
}

    .read-more-btn:hover {
        color: #00457E;
    }


.blog-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

/* Header */
.blog-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.blog-navbar {
    width: 100%;
}

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

.blog-brand h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #00457E;
}

/* Navigation */
.blog-nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.blog-nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: all .3s ease;
}

    .blog-nav-link:hover {
        color: #0086FF;
    }

.admin-link {
    background: #00457E;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 6px;
}

    .admin-link:hover {
        background: #0086FF;
        color: #ffffff;
    }

/* Main Content */
.blog-main-content {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Footer */
.blog-footer {
    background: #0f172a;
    color: #ffffff;
    margin-top: 60px;
}

.blog-footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
}

    .blog-footer-content p {
        margin: 0;
        color: #cbd5e1;
    }

.heart {
    color: #ef4444;
}

/* Mobile */
@media (max-width: 768px) {

    .blog-nav-container {
        flex-direction: column;
        gap: 15px;
    }

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

    .blog-main-content {
        padding: 20px 15px;
    }
}

.blog-table-container {
    overflow-x: auto;
    width: 100%;
}

.blog-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

    .blog-table thead {
        background: #f1f5f9;
        border-bottom: 1px solid #e2e8f0;
    }

    .blog-table th {
        padding: 14px 24px;
        text-align: left;
        font-size: 14px;
        font-weight: 600;
        color: #0f172a;
    }

    .blog-table td {
        padding: 16px 24px;
        vertical-align: middle;
    }

    .blog-table tbody tr {
        border-bottom: 1px solid #e2e8f0;
        transition: background-color 0.2s ease;
    }

        .blog-table tbody tr:hover {
            background: #f8fafc;
        }

.actions-column {
    text-align: right !important;
}

.blog-row {
    transition: background-color 0.2s ease;
}

    .blog-row:hover {
        background: #f8fafc;
    }

.table-cell {
    padding: 16px 24px;
    vertical-align: middle;
}

.blog-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-slug {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.category-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* Status Colors */

.status-published {
    background: #dcfce7;
    color: #166534;
}

.status-draft {
    background: #f1f5f9;
    color: #334155;
}

.status-scheduled {
    background: #fef9c3;
    color: #854d0e;
}

.status-archived {
    background: #e5e7eb;
    color: #374151;
}

.date-text {
    color: #475569;
    font-size: 14px;
}

.actions-cell {
    text-align: right;
}

.blog-edit-btn {
    background: transparent;
    border: none;
    color: #0086FF;
    font-weight: 600;
    cursor: pointer;
    margin-right: 16px;
    transition: color 0.2s ease;
}

    .blog-edit-btn:hover {
        color: #00457E;
    }

.delete-btn {
    background: transparent;
    border: none;
    color: #dc2626;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .delete-btn:hover {
        color: #991b1b;
    }

.read-btn {
    background: transparent;
    border: none;
    color: #16a34a;
    font-weight: 600;
    cursor: pointer;
    margin-right: 16px;
    transition: color 0.2s ease;
}

    .read-btn:hover {
        color: #15803d;
    }

.category-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* All Categories Button */

.active-all {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.inactive-all {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #e2e8f0;
}

    .inactive-all:hover {
        background: #cbd5e1;
    }

/* Dynamic Category Buttons */

.active-category {
    color: #ffffff;
}

.inactive-category {
    background: transparent;
}

    .inactive-category:hover {
        opacity: 0.8;
    }

.character-counter {
    text-align: right;
    font-size: 14px;
    margin-top: 6px;
}

/* States */

.counter-empty {
    color: #94a3b8;
}

.counter-normal {
    color: #475569;
}

.counter-warning {
    color: #ca8a04;
    font-weight: 600;
}

.counter-error {
    color: #dc2626;
    font-weight: 600;
}

.exceed-text {
    color: #dc2626;
    font-weight: 600;
    margin-left: 4px;
}


.comment-form-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
}

.comment-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

    .form-input:focus,
    .form-textarea:focus {
        border-color: #0086FF;
    }

.form-textarea {
    resize: none;
}

.comment-submit-btn {
    width: fit-content;
    padding: 10px 24px;
    background: #00457E;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

    .comment-submit-btn:hover {
        background: #0086FF;
    }

.search-box-container {
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

    .search-input:focus {
        border-color: #0086FF;
        box-shadow: 0 0 0 3px rgba(0, 134, 255, 0.15);
    }

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 16px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
}

/* Published */
.status-published {
    background-color: #dcfce7;
    color: #166534;
}

/* Draft */
.status-draft {
    background-color: #f1f5f9;
    color: #334155;
}

/* Scheduled */
.status-scheduled {
    background-color: #fef9c3;
    color: #854d0e;
}

/* Archived */
.status-archived {
    background-color: #f3f4f6;
    color: #4b5563;
}


.tag-input-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tag-input-row {
    display: flex;
    gap: 8px;
}

.tag-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
}

    .tag-input:focus {
        border-color: #0086FF;
    }

.add-tag-btn {
    padding: 10px 16px;
    background: #00457E;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s ease;
}

    .add-tag-btn:hover {
        background: #0086FF;
    }

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 999px;
    font-size: 14px;
}

.remove-tag-btn {
    background: transparent;
    border: none;
    color: #2563eb;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

    .remove-tag-btn:hover {
        color: #1e3a8a;
    }

.admin-blog-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.page-subtitle {
    color: #64748b;
    margin-top: 8px;
    margin-bottom: 0;
}

/* New Blog Button */
.new-blog-btn {
    padding: 12px 24px;
    background: #00457E;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

    .new-blog-btn:hover {
        background: #0086FF;
        color: #ffffff;
    }

/* Search & Filter */
.filter-card {
    background: #ffffff;
    padding: 24px;
    margin-bottom:24px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.status-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

    .status-dropdown:focus {
        border-color: #0086FF;
    }

/* Table */
.table-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Empty State */
.empty-state-card {
    background: #ffffff;
    padding: 48px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.empty-state-text {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 16px;
}

.create-first-blog-link {
    color: #0086FF;
    text-decoration: none;
    font-weight: 600;
}

    .create-first-blog-link:hover {
        color: #00457E;
    }

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.blogs-page {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Header */

.blog-hero {
    background: linear-gradient(135deg,#0ea5e9,#2563eb);
    padding: 100px 20px;
    text-align: center;
    color: white;
    border-radius: 0 0 30px 30px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-content p {
    max-width: 700px;
    margin: auto;
    font-size: 1.2rem;
    margin-top: 15px;
}

.blogs-header {
    text-align: center;
}

    .blogs-header h1 {
        font-size: 3rem;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 1rem;
    }

    .blogs-header p {
        font-size: 1.25rem;
        color: #475569;
    }

/* Search & Filter */

.search-filter-section {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Featured Blog */

.featured-blog {
    background: linear-gradient(to right, #2563eb, #9333ea);
    border-radius: 20px;
    overflow: hidden;
    color: white;
}

.featured-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.featured-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.featured-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.featured-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.95;
}

.featured-actions {
    display: flex;
    gap: 1rem;
}

.read-article-btn {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: #2563eb;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background .2s ease;
}

    .read-article-btn:hover {
        background: #f1f5f9;
    }

/* Blog Grid */

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top:52px;
}

/* Empty State */

.empty-blog-state {
    background: #ffffff;
    padding: 3rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

    .empty-blog-state p {
        font-size: 1.125rem;
        color: #475569;
    }

/* Responsive */

@media (max-width: 768px) {
    .blogs-header h1 {
        font-size: 2.25rem;
    }

    .featured-content h2 {
        font-size: 1.75rem;
    }

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

.loading-container {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.blog-details-container {
    max-width: 1400px;
    margin: auto;
}

.blog-header {
    margin-bottom: 2rem;
}

.back-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

    .back-link:hover {
        color: #1d4ed8;
    }

.blog-title-section {
    margin-top: 1rem;
}

.category-badge {
    display: inline-block;
    padding: 8px 16px;
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #64748b;
    align-items: center;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.featured-image-container {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    display: block;
}

.blog-content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.article-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #475569;
    white-space: pre-wrap;
}

.meta-card,
.share-card,
.sidebar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.meta-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-item {
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.twitter-btn,
.facebook-btn,
.linkedin-btn,
.subscribe-btn {
    padding: 10px 16px;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.twitter-btn {
    background: #2563eb;
}

.facebook-btn {
    background: #1e40af;
}

.linkedin-btn {
    background: #475569;
}

.comments-section {
    margin-top: 2rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #0f172a;
}

.author-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1rem;
}

.sidebar-card h4,
.sidebar-card h3 {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
}

    .social-links a {
        text-decoration: none;
        font-weight: bold;
    }

.related-post {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.related-link {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
}

    .related-link:hover {
        color: #2563eb;
    }

.newsletter-card {
    background: linear-gradient(135deg, #2563eb, #9333ea);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
}

.newsletter-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    margin: 1rem 0;
}

.subscribe-btn {
    width: 100%;
    background: white;
    color: #2563eb;
    font-weight: 600;
}

@media (max-width: 992px) {
    .blog-content-layout {
        grid-template-columns: 1fr;
    }

    .blog-title {
        font-size: 2rem;
    }
}


/* BLOG EDITOR */

.blog-editor-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 48px;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

.editor-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.back-btn {
    border: none;
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
}

.editor-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
}

.editor-subtitle {
    color: #64748b;
    margin-top: 6px;
}

.editor-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
}

.editor-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e2e8f0;
}

.editor-tab {
    border: none;
    background: transparent;
    padding: 18px 26px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
}

    .editor-tab.active {
        color: var(--primary);
        border-bottom: 3px solid var(--primary);
    }

.editor-content {
    height: 500px;
    overflow-y: auto;
    resize: none;
    margin-top:20px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
}

.blog-input,
.blog-select,
.blog-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
}

    .blog-input:focus,
    .blog-select:focus,
    .blog-textarea:focus {
        outline: none;
        border-color: var(--primary);
    }

.blog-content-editor {
    min-height: 350px;
}

.helper-text {
    color: #94a3b8;
    display: block;
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px 0px 20px;
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

.cancel-btn {
    padding: 12px 24px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: white;
    cursor: pointer;
}

@media (max-width:768px) {

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

    .editor-tabs {
        overflow-x: auto;
    }

    .editor-title {
        font-size: 28px;
    }
}