/* css/blog-style.css - Complete Blog & Admin Styling for Maid Jaipur */

/* Root Brand Color Variables */
:root {
    --blog-primary: #fca311;
    --blog-primary-hover: #e89510;
    --blog-secondary: #14213d;
    --blog-secondary-dark: #0f172a;
    --blog-text-dark: #1e293b;
    --blog-text-muted: #64748b;
    --blog-bg-light: #f8fafc;
    --blog-card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   1. FRONT-END BLOG HEADER & BANNER
   ========================================== */
.blog-hero-banner {
    background-color: var(--blog-secondary);
    padding: 45px 0;
    text-align: center;
    color: #ffffff;
    border-bottom: 4px solid var(--blog-primary);
}

.blog-hero-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.blog-breadcrumbs {
    font-size: 0.95rem;
    color: #cbd5e1;
}

.blog-breadcrumbs a {
    color: #ffffff;
    transition: color 0.2s;
}

.blog-breadcrumbs a:hover {
    color: var(--blog-primary);
}

.blog-breadcrumbs span.active {
    color: var(--blog-primary);
    font-weight: 600;
}

/* Filter Tabs & Search Bar */
.blog-filter-section {
    padding: 35px 0 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.category-filter-btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--blog-text-dark);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.category-filter-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.category-filter-btn.active {
    background: var(--blog-primary);
    color: #1e293b;
    border-color: var(--blog-primary);
    box-shadow: 0 4px 12px rgba(252, 163, 17, 0.25);
}

/* ==========================================
   2. BLOG CARD GRID (SCREENSHOT 1)
   ========================================== */
.blog-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px 0 60px 0;
}

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

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

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--blog-card-shadow);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.blog-card-image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.blog-card:hover .blog-card-image-wrap img {
    transform: scale(1.06);
}

.blog-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--blog-primary);
    color: #1e293b;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 6px 14px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

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

.blog-card-date {
    font-size: 0.85rem;
    color: var(--blog-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--blog-secondary);
    margin-bottom: 12px;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: var(--blog-primary);
}

.blog-card-excerpt {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-card-readmore {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--blog-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: gap 0.2s;
}

.blog-card:hover .blog-card-readmore {
    gap: 10px;
    color: var(--blog-primary-hover);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 60px 0;
}

.blog-pagination a, .blog-pagination span {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-weight: 600;
    color: var(--blog-text-dark);
}

.blog-pagination .active {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: #1e293b;
}

/* ==========================================
   3. SINGLE BLOG DETAILS PAGE (SCREENSHOT 2)
   ========================================== */
.blog-details-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
    padding: 50px 0 80px 0;
}

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

.blog-main-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.blog-featured-img-wrap {
    width: 100%;
    max-height: 480px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}

.blog-featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-meta-bar {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.88rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 30px;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.blog-meta-item i {
    color: var(--blog-primary);
}

.blog-body-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.blog-body-text h2 {
    font-size: 1.6rem;
    color: var(--blog-secondary);
    margin: 32px 0 16px 0;
    font-weight: 700;
}

.blog-body-text h3 {
    font-size: 1.3rem;
    color: var(--blog-secondary);
    margin: 24px 0 12px 0;
    font-weight: 600;
}

.blog-body-text p {
    margin-bottom: 18px;
}

.blog-body-text ul, .blog-body-text ol {
    margin: 16px 0 24px 24px;
}

.blog-body-text li {
    margin-bottom: 8px;
}

.blog-body-text blockquote {
    background: #f8fafc;
    border-left: 4px solid var(--blog-primary);
    padding: 20px 24px;
    margin: 28px 0;
    font-style: italic;
    color: #1e293b;
    border-radius: 0 10px 10px 0;
}

/* FAQ Accordion Section */
.blog-faq-container {
    margin-top: 40px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.blog-faq-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blog-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-faq-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.blog-faq-question {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--blog-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.blog-faq-answer {
    padding: 0 20px 16px 20px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

/* Tags & Back Button */
.blog-tags-row {
    margin: 35px 0 25px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.blog-tag-pill {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.back-to-blogs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blog-secondary);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.back-to-blogs-btn:hover {
    background: #0f172a;
    color: var(--blog-primary);
}

/* Sidebar Widgets */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.sidebar-widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blog-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget-title i {
    color: var(--blog-primary);
}

.latest-post-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    text-decoration: none;
}

.latest-post-item:last-child {
    margin-bottom: 0;
}

.latest-post-thumb {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.latest-post-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--blog-secondary);
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.latest-post-item:hover h4 {
    color: var(--blog-primary);
}

.latest-post-info span {
    font-size: 0.78rem;
    color: #64748b;
}

/* Categories List Widget */
.sidebar-category-list {
    list-style: none;
}

.sidebar-category-list li {
    margin-bottom: 10px;
}

.sidebar-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-category-list a:hover {
    background: #f1f5f9;
    color: var(--blog-primary);
}

/* CTA Widget (Screenshot 2 right side) */
.sidebar-cta-box {
    background: #1c140d; /* Dark warm container */
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    color: #ffffff;
}

.sidebar-cta-icon {
    font-size: 2.8rem;
    color: var(--blog-primary);
    margin-bottom: 14px;
}

.sidebar-cta-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.sidebar-cta-box p {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-cta-primary {
    display: block;
    width: 100%;
    background: var(--blog-primary);
    color: #1e293b;
    font-weight: 700;
    padding: 12px;
    border-radius: 30px;
    text-decoration: none;
    margin-bottom: 14px;
    transition: background 0.2s;
}

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

.sidebar-cta-phone {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blog-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* ==========================================
   4. ADMIN PANEL STYLES (SCREENSHOT 3 & 4)
   ========================================== */
.admin-body {
    background: #f8fafc;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: #111827; /* Dark navy black */
    color: #ffffff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #1f2937;
}

.admin-sidebar-header img {
    height: 36px;
    width: auto;
    border-radius: 6px;
}

.admin-sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.admin-sidebar-header span {
    font-size: 0.75rem;
    color: var(--blog-primary);
    display: block;
}

.admin-nav {
    padding: 20px 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.2s;
}

.admin-nav-item:hover {
    background: #1f2937;
    color: #ffffff;
}

.admin-nav-item.active {
    background: #1f2937;
    color: #ffffff;
    border-left: 4px solid var(--blog-primary);
}

.admin-nav-item.highlight-btn {
    background: var(--blog-primary);
    color: #1e293b;
    font-weight: 700;
    margin-top: 10px;
}

.admin-nav-item.highlight-btn:hover {
    background: var(--blog-primary-hover);
}

.admin-sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid #1f2937;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

/* Main Content Area */
.admin-main {
    flex-grow: 1;
    padding: 30px 40px;
    overflow-y: auto;
}

.admin-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-top-bar h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.admin-top-bar p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Dashboard Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

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

.stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-icon.orange { background: #ffedd5; color: #ea580c; }
.stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.dark { background: #f1f5f9; color: #334155; }

/* Admin Overview Card & Table */
.admin-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-card-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.btn-admin-primary {
    background: var(--blog-primary);
    color: #1e293b;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

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

/* Filter Controls */
.table-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-input, .admin-select {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    background: #ffffff;
}

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

/* Data Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

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

.category-badge-table {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.action-btn-group {
    display: flex;
    gap: 6px;
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
}

.btn-icon.view { background: #e0f2fe; color: #0284c7; }
.btn-icon.edit { background: #fef9c3; color: #ca8a04; }
.btn-icon.delete { background: #fee2e2; color: #dc2626; }

/* ==========================================
   5. EDIT / CREATE ARTICLE FORM (SCREENSHOT 4)
   ========================================== */
.editor-layout {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 30px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--blog-primary);
    box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.15);
}

/* Rich Content Editor Toolbar */
.editor-toolbar {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.editor-textarea {
    border-radius: 0 0 8px 8px !important;
    min-height: 250px;
}

/* FAQ Builder Section (Screenshot 4) */
.faq-builder-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
}

.faq-builder-header {
    background: #fef9c3;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fef08a;
}

.faq-builder-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #713f12;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 16px;
    position: relative;
}

.btn-delete-faq {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-weight: bold;
}

/* SEO Green Box (Screenshot 4) */
.seo-section-box {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
}

.seo-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-preview-box {
    width: 100%;
    height: 180px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
