/* ============================================
   ADMIN PANEL STYLES - Beyond the Plains
   Primary Brown: #654321
   Secondary Brown: #8b4513
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-brown: #654321;
    --secondary-brown: #8b4513;
    --light-brown: #d2b48c;
    --dark-brown: #3d2817;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --purple: #6f42c1;
    --sidebar-width: 260px;
    --topnav-height: 70px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: var(--light-gray);
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
    height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
    position: relative;
}

.login-box {
   
    background: var(--white);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container i {
    font-size: 40px;
    color: var(--white);
}

.login-header h1 {
    font-size: 28px;
    color: var(--primary-brown);
    margin-bottom: 5px;
    font-weight: 700;
}

.login-header p {
    color: var(--gray);
    font-size: 14px;
}

.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    margin-right: 5px;
    color: var(--primary-brown);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(101, 67, 33, 0.1);
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    color: var(--white);
    font-size: 16px;
    padding: 14px;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--secondary-brown), var(--primary-brown));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(101, 67, 33, 0.3);
}

.btn-login i {
    margin-right: 8px;
}

.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
    font-size: 18px;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
}

.alert-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #060;
}

.login-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p {
    color: var(--gray);
    font-size: 12px;
}

.login-background {
    flex: 1;
    background: url('../../assets/images/blog2.jpg') center/cover no-repeat;
    position: relative;
}

.login-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(101, 67, 33, 0.8), rgba(139, 69, 19, 0.8));
}

/* ============================================
   ADMIN LAYOUT
   ============================================ */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-brown);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.logo i {
    font-size: 28px;
    margin-right: 12px;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-item.active {
    background: var(--secondary-brown);
    color: var(--white);
    border-left: 4px solid var(--light-brown);
}

.nav-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
}

.nav-item .badge {
    margin-left: auto;
    background: var(--danger);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item.logout {
    background:#ff6b6b;
    color: #fff;
}

.nav-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: var(--light-gray);
}

.top-nav {
    height: var(--topnav-height);
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-brown);
    cursor: pointer;
    margin-right: 20px;
    display: none;
}

.page-title {
    font-size: 24px;
    color: var(--primary-brown);
    font-weight: 600;
    text-transform: capitalize;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-view-site {
    padding: 8px 16px;
    background: var(--info);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-view-site:hover {
    background: #138496;
    transform: translateY(-2px);
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-brown);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image i {
    font-size: 30px;
    color: var(--white);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.admin-name {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 14px;
}

.admin-role {
    font-size: 12px;
    color: var(--gray);
}

/* Content Area */
.content-area {
    padding: 30px;
}

/* Dashboard */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    color: var(--primary-brown);
    margin-bottom: 5px;
}

.page-header p {
    color: var(--gray);
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
}

.stat-primary .stat-icon { background: var(--primary-brown); }
.stat-success .stat-icon { background: var(--success); }
.stat-warning .stat-icon { background: var(--warning); }
.stat-info .stat-icon { background: var(--info); }
.stat-danger .stat-icon { background: var(--danger); }
.stat-purple .stat-icon { background: var(--purple); }

.stat-details h3 {
    font-size: 32px;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.stat-details p {
    color: var(--gray);
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    color: var(--primary-brown);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-link {
    color: var(--secondary-brown);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

.card-body {
    padding: 20px 25px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s;
}

.activity-item:hover {
    background: #e9ecef;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-brown);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.activity-details h4 {
    font-size: 15px;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.activity-details p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 5px;
}

.comment-text {
    font-style: italic;
    color: #555;
}

.meta {
    font-size: 12px;
    color: var(--gray);
    margin-right: 15px;
}

.meta i {
    margin-right: 5px;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-published { background: #d4edda; color: #155724; }
.badge-draft { background: #fff3cd; color: #856404; }
.badge-archived { background: #d1ecf1; color: #0c5460; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-spam { background: #f8d7da; color: #721c24; }
.badge-trash { background: #f8d7da; color: #721c24; }

.no-data {
    text-align: center;
    color: var(--gray);
    padding: 30px;
}

.quick-actions {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.quick-actions h3 {
    font-size: 20px;
    color: var(--primary-brown);
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-brown);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-brown);
}

.btn-secondary {
    background: var(--gray);
    color: var(--white);
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-warning {
    background: var(--warning);
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-info {
    background: var(--info);
    color: var(--white);
}

.btn-info:hover {
    background: #138496;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        flex-direction: column;
    }
    
    .login-box {
        flex: 1;
    }
    
    .login-background {
        display: none;
    }
}

/* ============================================
   POST MANAGEMENT STYLES
   ============================================ */

.header-actions {
    display: flex;
    gap: 10px;
}

/* Filters */
.filters-section {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filters-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-brown);
}

.btn-light {
    background: #f8f9fa;
    color: #333;
}

.btn-light:hover {
    background: #e2e6ea;
}

/* Bulk Actions */
.bulk-actions {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
}

.bulk-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.results-count {
    margin-left: auto;
    color: var(--gray);
    font-size: 14px;
}

/* Table */
.table-container {
    background: var(--white);
    border-radius: 0 0 10px 10px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--light-gray);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 2px solid #dee2e6;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.table-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.no-image {
    width: 60px;
    height: 60px;
    background: var(--light-gray);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 24px;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--light-brown);
    color: var(--primary-brown);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.post-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: var(--gray);
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-stats i {
    width: 14px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--white);
    background: var(--info);
    text-decoration: none;
    transition: all 0.3s;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-icon.btn-edit {
    background: var(--warning);
    color: #333;
}

.btn-icon.btn-delete {
    background: var(--danger);
}

.badge-star {
    background: #ffc107;
    color: #333;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: var(--primary-brown);
    text-decoration: none;
    transition: all 0.3s;
}

.page-btn:hover {
    background: var(--primary-brown);
    color: var(--white);
    border-color: var(--primary-brown);
}

.page-btn.active {
    background: var(--primary-brown);
    color: var(--white);
    border-color: var(--primary-brown);
}

/* Post Form */
.post-form {
    background: transparent;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

.form-main,
.form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-card h3 {
    font-size: 18px;
    color: var(--primary-brown);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 14px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--gray);
    font-size: 12px;
}

.publish-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.post-meta {
    margin: 15px 0;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 6px;
    font-size: 13px;
}

.post-meta p {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.post-meta p:last-child {
    margin-bottom: 0;
}

/* Image Upload */
.image-upload-box {
    position: relative;
}

.image-upload-box input[type="file"] {
    display: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.upload-label:hover {
    border-color: var(--primary-brown);
    background: #fafafa;
}

.upload-label i {
    font-size: 40px;
    color: var(--primary-brown);
    margin-bottom: 10px;
}

.upload-label span {
    color: var(--dark-gray);
    font-weight: 500;
    margin-bottom: 5px;
}

.upload-label small {
    color: var(--gray);
    font-size: 12px;
}

.current-image,
.image-preview {
    margin-bottom: 15px;
}

.current-image img,
.image-preview img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.text-muted {
    color: var(--gray);
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
}

/* Post Stats Card */
.post-stats-card {
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    color: var(--white);
}

.post-stats-card h3 {
    color: var(--white);
}

.stats-grid-inline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.stat-inline i {
    font-size: 24px;
    color: var(--white);
}

.stat-inline div strong {
    display: block;
    font-size: 24px;
    color: var(--white);
}

.stat-inline div span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--gray);
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-inline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .bulk-actions {
        flex-wrap: wrap;
    }
    
    .results-count {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .table-container {
        overflow-x: scroll;
    }
    
    .stats-grid-inline {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
    }
}

/* ============================================
   COMMENTS MANAGEMENT STYLES
   ============================================ */

/* Comment Stats */
.comment-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.stat-item.active {
    border-color: var(--primary-brown);
    background: var(--light-brown);
}

.stat-item i {
    font-size: 28px;
    color: var(--primary-brown);
}

.stat-item.stat-pending i { color: var(--warning); }
.stat-item.stat-approved i { color: var(--success); }
.stat-item.stat-spam i { color: var(--danger); }
.stat-item.stat-trash i { color: var(--gray); }

.stat-item div strong {
    display: block;
    font-size: 24px;
    color: var(--dark-gray);
}

.stat-item div span {
    font-size: 13px;
    color: var(--gray);
}

/* Comments Container */
.comments-container {
    background: var(--white);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comments-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.comments-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Comment Item */
.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s;
    position: relative;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item:hover {
    background: #f8f9fa;
}

.comment-item.pending {
    border-left: 4px solid var(--warning);
}

.comment-item.spam {
    border-left: 4px solid var(--danger);
    background: #fff5f5;
}

.comment-item.trash {
    border-left: 4px solid var(--gray);
    opacity: 0.7;
}

.comment-checkbox {
    flex-shrink: 0;
}

.comment-checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.comment-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-brown);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.avatar-circle-sm {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--secondary-brown);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.avatar-circle-lg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-brown);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.comment-content {
    flex: 1;
}

.comment-header-info {
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.comment-author strong {
    color: var(--dark-gray);
    font-size: 15px;
}

.comment-email {
    color: var(--info);
    text-decoration: none;
    font-size: 13px;
}

.comment-email:hover {
    text-decoration: underline;
}

.comment-website {
    color: var(--primary-brown);
    text-decoration: none;
}

.badge-admin {
    background: var(--primary-brown);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.comment-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--gray);
}

.comment-meta i {
    margin-right: 5px;
}

.comment-post-link {
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--gray);
}

.comment-post-link a {
    color: var(--primary-brown);
    font-weight: 600;
    text-decoration: none;
}

.comment-post-link a:hover {
    text-decoration: underline;
}

.comment-text {
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.comment-status-badge {
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.action-link:hover {
    color: var(--primary-brown);
}

.action-link i {
    font-size: 12px;
}

.action-approve:hover { color: var(--success); }
.action-reply:hover { color: var(--info); }
.action-spam:hover { color: var(--danger); }
.action-trash:hover { color: var(--gray); }
.action-delete:hover { color: var(--danger); }
.action-quick-reply:hover { color: var(--purple); }

/* Quick Reply Form */
.quick-reply-form {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.quick-reply-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}

.quick-reply-textarea:focus {
    outline: none;
    border-color: var(--primary-brown);
}

.quick-reply-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Comment Replies */
.comment-replies {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid var(--light-brown);
}

.reply-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.reply-item:last-child {
    margin-bottom: 0;
}

.reply-avatar {
    flex-shrink: 0;
}

.reply-content {
    flex: 1;
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.reply-author strong {
    font-size: 14px;
    color: var(--dark-gray);
}

.reply-time {
    font-size: 12px;
    color: var(--gray);
}

.reply-text {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

/* No Comments */
.no-comments {
    padding: 60px 20px;
    text-align: center;
    color: var(--gray);
}

.no-comments i {
    font-size: 60px;
    color: var(--light-brown);
    margin-bottom: 20px;
}

.no-comments h3 {
    color: var(--primary-brown);
    margin-bottom: 10px;
}

/* Reply Page */
.reply-page-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.original-comment-card,
.reply-form-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.original-comment-card h3,
.reply-form-card h3 {
    font-size: 18px;
    color: var(--primary-brown);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-comment-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-author-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.comment-post-info {
    padding: 10px;
    background: var(--light-gray);
    border-radius: 6px;
    font-size: 14px;
}

.comment-post-info a {
    color: var(--primary-brown);
    font-weight: 600;
    text-decoration: none;
}

.comment-post-info a:hover {
    text-decoration: underline;
}

.original-comment-text {
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.form-actions {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .reply-page-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .comment-stats {
        flex-direction: column;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .comment-item {
        flex-direction: column;
    }
    
    .comment-actions {
        flex-direction: column;
    }
    
    .action-link {
        width: 100%;
        padding: 8px;
        background: var(--light-gray);
        border-radius: 6px;
        justify-content: center;
    }
}

/* ============================================
   DRAG & DROP UPLOAD ZONE
   ============================================ */

.drop-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 20px;
}

.drop-zone:hover {
    border-color: var(--primary-brown);
    background: #fff;
    color: var(--primary-brown);
}

.drop-zone.drag-over {
    border-color: var(--primary-brown);
    background: var(--light-brown);
    color: var(--primary-brown);
    transform: scale(1.02);
}

#uploadLoading {
    display: none;
    text-align: center;
    padding: 20px;
    color: var(--primary-brown);
}

#uploadLoading i {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   ENHANCED BLOG PAGE STYLES
   Primary: #654321, Secondary: #8b4513
   ============================================ */

/* Blog Filters */
.blog-filters-wrap {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.blog-search-box {
    margin-bottom: 20px;
}

.blog-search-box form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.blog-search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #654321;
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 15px;
}

.blog-search-box input:focus {
    outline: none;
    border-color: #8b4513;
}

.blog-search-box button {
    padding: 12px 30px;
    background: #654321;
    color: #fff;
    border: 2px solid #654321;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.blog-search-box button:hover {
    background: #8b4513;
    border-color: #8b4513;
}

.blog-category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background: #f8f8f8;
    color: #654321;
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #654321;
    color: #fff;
    border-color: #654321;
}

.filter-btn.active {
    background: #654321;
    color: #fff;
    border-color: #654321;
}

/* Enhanced Blog Item */
.blog-item {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(101, 67, 33, 0.2);
}

.blog-image-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-item:hover .blog-image-wrap img {
    transform: scale(1.1);
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #654321;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.blog-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffc107;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.blog-featured-badge i {
    margin-right: 3px;
}

.blog-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    margin: 0 0 15px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
}

.blog-meta li {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6E6E6E;
}

.blog-meta li i {
    color: #654321;
    font-size: 12px;
}

.blog-info h4 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 60px;
}

.blog-info h4 a {
    color: #693818;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-info h4 a:hover {
    color: #8b4513;
}

.blog-info > p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.blog-stats {
    display: flex;
    gap: 15px;
}

.blog-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.blog-stats i {
    color: #654321;
    font-size: 14px;
}

.blog-item .btn-1 {
    padding: 10px 25px;
    background: #654321;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-item .btn-1:hover {
    background: #8b4513;
    transform: translateX(5px);
}

.blog-item .btn-1 i {
    font-size: 12px;
}

/* No Blogs Found */
.no-blogs-found {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.no-blogs-found i {
    font-size: 80px;
    color: #d2b48c;
    margin-bottom: 20px;
}

.no-blogs-found h3 {
    color: #654321;
    font-size: 28px;
    margin-bottom: 10px;
}

.no-blogs-found p {
    color: #666;
    font-size: 16px;
}

/* Pagination */
.blog-pagination {
    margin-top: 50px;
}

.blog-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination .page-item {
    list-style: none;
}

.blog-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    color: #654321;
    border: 2px solid #654321;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.blog-pagination .page-link:hover {
    background: #654321;
    color: #fff;
    transform: scale(1.1);
}

.blog-pagination .page-item.active .page-link {
    background: #654321;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-filters-wrap {
        padding: 20px;
    }
    
    .blog-category-filter {
        justify-content: flex-start;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 8px 15px;
    }
    
    .blog-image-wrap {
        height: 200px;
    }
    
    .blog-info h4 {
        font-size: 18px;
        min-height: auto;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .blog-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .blog-item .btn-1 {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced Password Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.toggle-password:hover {
    color: var(--primary-brown);
}

/* Forgot Password Link */
.checkbox-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    color: var(--primary-brown);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Login Animation */
.login-box {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Login Background */
.login-background {
    background-image: url('../../../assets/images/blog2.jpg'), 
                      linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.login-background .overlay {
    background: linear-gradient(135deg, rgba(101, 67, 33, 0.85), rgba(139, 69, 19, 0.85));
}

/* ============================================
   SPLIT SCREEN LOGIN (for index.php)
   ============================================ */

.login-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
}

.login-container {
    display: flex;
    height: 100vh;
    position: relative;
}

/* Left Side - Image/Brand Section */
.login-left {
    flex: 1;
    background: url('../../assets/images/sunset1.jpg') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    animation: backgroundMove 60s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 500px;
}

.brand-logo {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

.brand-logo i {
    font-size: 60px;
    color: var(--white);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.brand-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.brand-content p {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 15px;
}

.brand-features {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.feature-item:hover .feature-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.feature-icon i {
    font-size: 28px;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.8;
}

/* Right Side - Login Form */
.login-right {
    flex: 0 0 500px;
    background: var(--white);
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.login-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    animation: slideIn 0.8s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 32px;
    color: var(--primary-brown);
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header p {
    color: var(--gray-600);
    font-size: 15px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s;
    border-radius: 6px;
}

.toggle-password:hover {
    color: var(--primary-brown);
    background: var(--gray-100);
}

.forgot-link {
    color: var(--primary-brown);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(101, 67, 33, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(101, 67, 33, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 13px;
    margin-top: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CATEGORIES PAGE LAYOUT
   ============================================ */

.categories-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

.category-form-section .form-card {
    position: sticky;
    top: 20px;
}

code {
    background: var(--gray-100);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary-brown);
}

/* ============================================
   SETTINGS PAGE - TABS
   ============================================ */

.tabs-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    background: var(--gray-100);
}

.tab-link {
    padding: 18px 30px;
    color: var(--gray-700);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-link:hover {
    background: var(--white);
    color: var(--primary-brown);
}

.tab-link.active {
    background: var(--white);
    color: var(--primary-brown);
    border-bottom-color: var(--primary-brown);
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    gap: 20px;
}

.stats-overview .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--gray-100);
    border-radius: 10px;
    transition: all 0.3s;
}

.stats-overview .stat-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stats-overview .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.stats-overview .stat-info h4 {
    font-size: 28px;
    margin: 0;
    color: var(--primary-brown);
}

.stats-overview .stat-info p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

/* Users Layout */
.users-layout {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 30px;
}

.user-form-section .form-card {
    position: sticky;
    top: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

/* ============================================
   RESPONSIVE FOR NEW PAGES
   ============================================ */

@media (max-width: 1200px) {
    .settings-grid,
    .users-layout,
    .categories-layout {
        grid-template-columns: 1fr;
    }
    
    .user-form-section .form-card,
    .category-form-section .form-card {
        position: static;
    }
}

@media (max-width: 1024px) {
    .login-left {
        display: none;
    }
    
    .login-right {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .login-right {
        padding: 40px 30px;
    }
    
    .login-header h2 {
        font-size: 28px;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-link {
        justify-content: center;
    }
}

/* ============================================
   BLOG DETAIL PAGE STYLES
   ============================================ */

.blog-detail-header {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-nav a {
    color: #654321;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: #8b4513;
}

.breadcrumb-nav span:last-child {
    color: #666;
}

.blog-detail-section {
    padding: 60px 0;
    background: #fff;
}

.blog-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Post Header */
.post-header {
    margin-bottom: 30px;
}

.post-category {
    display: inline-block;
    background: #654321;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.post-title {
    font-size: 42px;
    line-height: 1.3;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.post-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.post-meta-left,
.post-meta-right {
    display: flex;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.meta-item i {
    color: #654321;
}

/* Featured Image */
.post-featured-image {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin: 40px 0;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 30px 0 15px;
    color: #654321;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content blockquote {
    border-left: 4px solid #654321;
    padding: 15px 20px;
    margin: 30px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

/* Post Footer Actions */
.post-footer {
    border-top: 2px solid #e0e0e0;
    padding-top: 30px;
    margin-top: 40px;
    position: relative;
}

.post-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #654321;
    color: #fff;
    border-color: #654321;
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 16px;
}

.like-btn.liked {
    background: #654321;
    color: #fff;
    border-color: #654321;
}

.like-btn.liked i {
    animation: heartBeat 0.5s;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Share Menu */
.share-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
    z-index: 100;
}

.share-menu.active {
    display: flex;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.share-option:hover {
    background: #f8f9fa;
    color: #654321;
}

.share-option i {
    width: 20px;
    font-size: 16px;
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.section-title {
    font-size: 28px;
    color: #654321;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Comment Form */
.comment-form-wrapper {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.comment-form-wrapper h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.replying-to {
    background: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.cancel-reply {
    background: none;
    border: none;
    color: #654321;
    cursor: pointer;
    text-decoration: underline;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form .form-group {
    margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #654321;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-comment-btn {
    background: #654321;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.submit-comment-btn:hover {
    background: #8b4513;
    transform: translateY(-2px);
}

/* Comments List */
.comments-list {
    margin-top: 40px;
}

.comment-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar .avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #654321;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.comment-avatar .avatar-circle-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #8b4513;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-author {
    font-size: 16px;
    color: #333;
}

.admin-badge {
    background: #654321;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.comment-date {
    font-size: 13px;
    color: #999;
}

.comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.reply-btn {
    background: none;
    border: none;
    color: #654321;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.reply-btn:hover {
    color: #8b4513;
}

/* Comment Replies */
.comment-replies {
    margin-top: 20px;
    padding-left: 30px;
    border-left: 3px solid #e0e0e0;
}

.reply-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-comments i {
    font-size: 60px;
    color: #d2b48c;
    margin-bottom: 15px;
}

/* Sidebar */
.blog-detail-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    color: #654321;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s;
    padding: 10px;
    border-radius: 8px;
}

.related-post-item:hover {
    background: #f8f9fa;
}

.related-post-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.related-post-info {
    flex: 1;
}

.related-post-info h5 {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.related-post-date {
    font-size: 12px;
    color: #999;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.category-list a:hover {
    background: #f8f9fa;
    color: #654321;
}

.category-list span {
    color: #999;
    font-size: 13px;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px;
    border-radius: 8px;
}

.popular-post-item:hover {
    background: #f8f9fa;
}

.popular-post-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.popular-post-info h5 {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.popular-post-stats {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .blog-detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 28px;
    }
    
    .post-meta-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-actions {
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .comment-item {
        flex-direction: column;
    }
    
    .comment-replies {
        padding-left: 15px;
    }
}

/* ============================================
   PUBLIC BLOGS PAGE STYLES
   Added for blogs.php - Do NOT alter existing CSS
   ============================================ */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #654321 0%, #8b4513 100%);
    color: #ffffff;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    font-size: 30px;
    color: #654321 !important;
}

.blog-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-hero p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Container for blogs page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filters Section */
.blog-filters-section {
    background: #ffffff;
    padding: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-filters-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Search Box */
.blog-search-box {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.blog-search-box form {
    position: relative;
    display: flex;
}

.blog-search-box input {
    flex: 1;
    padding: 14px 50px 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 15px;
    transition: all 0.3s;
}

.blog-search-box input:focus {
    outline: none;
    border-color: #654321;
    box-shadow: 0 0 0 4px rgba(101, 67, 33, 0.1);
}

.blog-search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #654321;
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.blog-search-box button:hover {
    background: #3d2817;
    transform: translateY(-50%) scale(1.05);
}

/* Category Filter */
.blog-category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #343a40;
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.filter-btn:hover {
    background: #d2b48c;
    color: #3d2817;
}

.filter-btn.active {
    background: #654321;
    color: #ffffff;
    border-color: #654321;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Blog Card */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Blog Image */
.blog-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #654321;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffc107;
    color: #3d2817;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Blog Content */
.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    list-style: none;
    padding: 0;
}

.blog-meta li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
}

.blog-meta i {
    color: #654321;
}

.blog-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.blog-content h3 a {
    color: #343a40;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-content h3 a:hover {
    color: #654321;
}

.blog-excerpt {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Blog Footer */
.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.blog-stats {
    display: flex;
    gap: 15px;
}

.blog-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
}

.blog-stats i {
    color: #654321;
    font-size: 14px;
}

.btn-read-more {
    background: #654321;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-read-more:hover {
    background: #3d2817;
    transform: translateX(5px);
}

/* No Blogs Found */
.no-blogs-found {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-blogs-found i {
    font-size: 80px;
    color: #e9ecef;
    margin-bottom: 20px;
}

.no-blogs-found h3 {
    font-size: 28px;
    color: #343a40;
    margin-bottom: 10px;
}

.no-blogs-found p {
    color: #6c757d;
    font-size: 16px;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.blog-pagination .pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination .page-item {
    display: block;
}

.blog-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #ffffff;
    color: #343a40;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.blog-pagination .page-link:hover {
    background: #654321;
    color: #ffffff;
    border-color: #654321;
    transform: translateY(-2px);
}

.blog-pagination .page-item.active .page-link {
    background: #654321;
    color: #ffffff;
    border-color: #654321;
}

.blog-pagination .page-item.disabled .page-link {
    background: transparent;
    border: none;
    color: #adb5bd;
    cursor: default;
    pointer-events: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #654321, #8b4513);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(101, 67, 33, 0.3);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* ============================================
   BLOG DETAIL PAGE STYLES
   Added for blog-detail.php - Do NOT alter existing CSS
   ============================================ */

.blog-detail-page {
    background: #fafafa;
}

/* Container Detail */
.container-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb-wrapper {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 40px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #654321;
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #3d2817;
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #6c757d;
}

.breadcrumb .current {
    color: #6c757d;
}

/* Blog Detail Grid */
.blog-detail-section {
    padding: 40px 0 80px;
}

.blog-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Main Content */
.blog-main {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Post Header */
.post-header {
    margin-bottom: 40px;
}

.post-category {
    display: inline-block;
    background: #654321;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.post-title {
    font-size: 42px;
    font-weight: 700;
    color: #3d2817;
    line-height: 1.3;
    margin-bottom: 25px;
}

.post-meta-bar {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 15px;
}

.post-meta-item i {
    color: #654321;
    font-size: 16px;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.post-content-wrapper {
    font-size: 17px;
    line-height: 1.8;
    color: #343a40;
    margin-bottom: 50px;
}

.post-content-wrapper p {
    margin-bottom: 20px;
}

.post-content-wrapper h2,
.post-content-wrapper h3,
.post-content-wrapper h4 {
    margin-top: 35px;
    margin-bottom: 20px;
    color: #3d2817;
}

.post-content-wrapper ul,
.post-content-wrapper ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content-wrapper li {
    margin-bottom: 10px;
}

.post-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.post-content-wrapper blockquote {
    border-left: 4px solid #654321;
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: #6c757d;
}

/* Post Actions Bar */
.post-actions-bar {
    display: flex;
    gap: 15px;
    padding: 30px 0;
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 50px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f8f9fa;
    color: #343a40;
    border: 2px solid transparent;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #654321;
    color: #ffffff;
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 16px;
}

.like-btn.liked {
    background: #dc3545;
    color: #ffffff;
    cursor: not-allowed;
}

.like-btn.liked:hover {
    background: #c82333;
    transform: none;
}

/* Share Dropdown */
.share-dropdown {
    position: relative;
}

.share-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #343a40;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.share-menu button:hover {
    background: #f8f9fa;
}

.share-menu button i {
    width: 20px;
    font-size: 16px;
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #3d2817;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #654321;
}

/* Comment Form Card */
.comment-form-card {
    background: #fafafa;
    padding: 35px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.comment-form-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #3d2817;
    margin-bottom: 25px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #654321;
    box-shadow: 0 0 0 4px rgba(101, 67, 33, 0.1);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.form-row-2 input {
    margin-bottom: 0;
}

.submit-comment-btn {
    background: #654321;
    color: #ffffff;
    padding: 14px 32px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.submit-comment-btn:hover {
    background: #3d2817;
    transform: translateY(-2px);
}

/* Comments List */
.comments-list {
    margin-top: 40px;
}

.comment-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #654321, #8b4513);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.comment-author {
    font-size: 16px;
    font-weight: 700;
    color: #3d2817;
}

.admin-badge {
    background: #654321;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.comment-date {
    color: #6c757d;
    font-size: 14px;
}

.comment-text {
    color: #343a40;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.reply-btn {
    background: none;
    border: none;
    color: #654321;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    padding: 8px 0;
}

.reply-btn:hover {
    color: #3d2817;
}

/* Comment Replies */
.comment-replies {
    margin-top: 25px;
    padding-left: 40px;
    border-left: 3px solid #e9ecef;
}

.reply-item {
    border-bottom: none;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.reply-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.reply-item .comment-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 60px 20px;
    background: #fafafa;
    border-radius: 16px;
}

.no-comments i {
    font-size: 64px;
    color: #e9ecef;
    margin-bottom: 20px;
}

.no-comments p {
    color: #6c757d;
    font-size: 16px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #3d2817;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #654321;
}

/* Related Posts */
.related-posts-list,
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-post-item,
.popular-post-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s;
    padding: 12px;
    border-radius: 12px;
}

.related-post-item:hover,
.popular-post-item:hover {
    background: #fafafa;
    transform: translateX(5px);
}

.related-post-item img,
.popular-post-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.related-post-content h4,
.popular-post-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #343a40;
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-post-date,
.popular-post-views {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-post-date i,
.popular-post-views i {
    color: #654321;
}

/* Categories List */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 12px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 10px;
    text-decoration: none;
    color: #343a40;
    font-weight: 600;
    transition: all 0.3s;
}

.categories-list a:hover {
    background: #654321;
    color: #ffffff;
    transform: translateX(5px);
}

.cat-name {
    flex: 1;
}

.cat-count {
    color: #6c757d;
    font-size: 13px;
}

.categories-list a:hover .cat-count {
    color: #ffffff;
}

/* ============================================
   RESPONSIVE FOR BLOGS & BLOG DETAIL
   ============================================ */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 36px;
    }
    
    .blog-filters-wrapper {
        flex-direction: column;
    }
    
    .blog-search-box {
        width: 100%;
        max-width: 100%;
    }
    
    .blog-category-filter {
        width: 100%;
        justify-content: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .post-title {
        font-size: 32px;
    }
    
    .blog-main {
        padding: 30px 20px;
    }
    
    .post-actions-bar {
        flex-wrap: wrap;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 28px;
    }
    
    .blog-hero {
        padding: 50px 0 40px;
    }
    
    .blog-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .post-title {
        font-size: 26px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .comment-replies {
        padding-left: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ============================================
   UPDATED BLOGS & BLOG DETAIL STYLES
   Hero Banner with Background Image + Wider Containers
   ============================================ */

/* Wider Container for Blogs */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Hero Banner with Background Image (700px min-height) */
.blog-hero-banner,
.blog-detail-hero-banner {
    min-height: 700px;
    background: url('../../assets/images/safaricars.jpeg') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    animation: backgroundMove 60s linear infinite;
}

/* Blog Detail Inline Breadcrumb */
.breadcrumb-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb-inline a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb-inline a:hover {
    color: #ffffff;
}

.breadcrumb-inline .separator {
    color: rgba(255, 255, 255, 0.6);
}

.post-meta-hero {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.post-meta-hero span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta-hero i {
    color: #d2b48c;
}

/* Override old blog-hero */
.blog-hero {
    display: none;
}

/* Wider Blog Detail Container */
.container-wide-detail {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.blog-detail-content {
    padding: 50px 0;
}

.blog-main-wide {
    background: #ffffff;
    border-radius: 16px;
    padding: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Contact Form & Map Section */
.contact-map-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.section-title-center {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #3d2817;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title-center i {
    color: #654321;
}

.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-form-container h3 {
    font-size: 24px;
    font-weight: 700;
    color: #3d2817;
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #654321;
    box-shadow: 0 0 0 4px rgba(101, 67, 33, 0.1);
}

.btn-submit-contact {
    background: linear-gradient(135deg, #654321, #8b4513);
    color: #ffffff;
    padding: 14px 32px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
}

.btn-submit-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(101, 67, 33, 0.3);
}

.map-container {
    height: 100%;
    min-height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#map {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* Recent Posts Section */
.recent-posts-section {
    padding: 80px 0;
    background: #ffffff;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.recent-post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.recent-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.recent-post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.recent-post-card:hover .recent-post-image img {
    transform: scale(1.1);
}

.recent-post-content {
    padding: 25px;
}

.recent-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #6c757d;
}

.recent-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recent-post-meta i {
    color: #654321;
}

.recent-post-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.recent-post-content h3 a {
    color: #343a40;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-content h3 a:hover {
    color: #654321;
}

.recent-post-content p {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-read-more-small {
    background: #654321;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-read-more-small:hover {
    background: #3d2817;
    transform: translateX(5px);
}

/* Responsive Updates */
@media (max-width: 1200px) {
    .container-wide,
    .container-wide-detail {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .contact-map-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero-banner,
    .blog-detail-hero-banner {
        min-height: 500px;
        background-attachment: scroll;
    }
    
    .blog-hero-content h1 {
        font-size: 32px;
    }
    
    .blog-main-wide {
        padding: 30px 20px;
    }
    
    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-meta-hero {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .blog-hero-banner,
    .blog-detail-hero-banner {
        min-height: 400px;
    }
    
    .blog-hero-content h1 {
        font-size: 26px;
    }
    
    .section-title-center {
        font-size: 28px;
    }
}

/* ============================================
   ELFSIGHT FORM CONTAINER STYLING
   ============================================ */

.form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-container h3 {
    font-size: 28px;
    font-weight: 700;
    color: #3d2817;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Elfsight Form Wrapper */
.elfsight-app-4981e4de-95a8-43a0-a0c9-e3ee70f9a686 {
    margin-top: 20px;
}

/* Map Container Fix */
.map-container iframe {
    display: block;
    border-radius: 16px;
    width: 100% !important;
    height: 1200px !important;
}

/* Responsive Adjustments for Form & Map */
@media (max-width: 1200px) {
    .contact-map-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        min-height: 400px;
    }
    
    .map-container iframe {
        height: 400px !important;
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 30px 20px;
    }
    
    .form-container h3 {
        font-size: 24px;
    }
    
    .map-container {
        min-height: 350px;
    }
    
    .map-container iframe {
        height: 350px !important;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 25px 15px;
    }
    
    .form-container h3 {
        font-size: 20px;
    }
    
    .map-container {
        min-height: 300px;
    }
    
    .map-container iframe {
        height: 300px !important;
    }
}
/* ============================================
   PARTNER PROFILE WIDGET - SIDEBAR
   ============================================ */

.partner-profile-widget {
    background: linear-gradient(135deg, #654321, #8b4513);
    color: #ffffff;
    padding: 0 !important;
    overflow: hidden;
}

.partner-profile {
    text-align: center;
    padding: 30px;
}

.partner-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 20px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.partner-profile h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.partner-title {
    font-size: 16px;
    color: #d2b48c;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-item i {
    font-size: 16px;
    color: #d2b48c;
    margin-top: 2px;
    min-width: 20px;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s;
    word-break: break-word;
}

.contact-item a:hover {
    color: #d2b48c;
}

.contact-item span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.5;
}

.contact-item small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3px;
}

/* Update blog-detail-grid to show sidebar */
.blog-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.blog-main {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Remove the old wide styles */
.blog-main-wide {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .partner-image {
        width: 100px;
        height: 100px;
    }
    
    .partner-profile h3 {
        font-size: 20px;
    }
    
    .contact-item {
        font-size: 13px;
    }
    
    .blog-main {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .partner-profile {
        padding: 25px 15px;
    }
    
    .partner-image {
        width: 90px;
        height: 90px;
    }
    
    .contact-info {
        padding: 15px;
    }
}

/* ============================================
   POPULAR PACKAGES SECTION
   ============================================ */

.popular-packages-section {
    padding: 80px 0;
    background: #fafafa;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Package Card */
.package-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Package Image */
.package-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.package-card:hover .package-image img {
    transform: scale(1.1);
}

.package-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffc107;
    color: #3d2817;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.package-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.package-duration {
    background: rgba(255, 255, 255, 0.95);
    color: #654321;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Package Content */
.package-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.package-header h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
    margin: 0;
}

.package-header h3 a {
    color: #343a40;
    text-decoration: none;
    transition: color 0.3s;
}

.package-header h3 a:hover {
    color: #654321;
}

.package-price {
    text-align: right;
    flex-shrink: 0;
}

.price-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #654321;
    line-height: 1;
}

.price-per {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.package-description {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Package Footer */
.package-footer {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-view-package {
    flex: 1;
    background: #654321;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    border: 2px solid #654321;
}

.btn-view-package:hover {
    background: #3d2817;
    border-color: #3d2817;
    transform: translateX(3px);
}

.btn-enquire-package {
    flex: 1;
    background: transparent;
    color: #654321;
    padding: 12px 20px;
    border: 2px solid #654321;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-enquire-package:hover {
    background: #654321;
    color: #ffffff;
    transform: scale(1.03);
}

/* No Packages Found */
.no-packages-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-packages-found i {
    font-size: 80px;
    color: #e9ecef;
    margin-bottom: 20px;
}

.no-packages-found h3 {
    font-size: 28px;
    color: #343a40;
    margin-bottom: 10px;
}

.no-packages-found p {
    color: #6c757d;
    font-size: 16px;
}

/* View All Packages Button */
.packages-view-all {
    text-align: center;
}

.btn-view-all-packages {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #654321, #8b4513);
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(101, 67, 33, 0.3);
}

.btn-view-all-packages:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(101, 67, 33, 0.4);
}

/* Responsive - Packages */
@media (max-width: 1200px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .package-price {
        text-align: left;
    }
    
    .package-footer {
        flex-direction: column;
    }
    
    .btn-view-package,
    .btn-enquire-package {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .popular-packages-section {
        padding: 60px 0;
    }
    
    .package-content {
        padding: 20px;
    }
    
    .package-header h3 {
        font-size: 18px;
    }
    
    .price-amount {
        font-size: 24px;
    }
}

/* ============================================
   POPULAR PACKAGES SECTION - UPDATED
   ============================================ */

.popular-packages-section {
    padding: 80px 0;
    background: #fafafa;
}

/* Section Title Custom */
.section-title-center-custom {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    display: block;
    color: #654321;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title-center-custom h2 {
    font-size: 42px;
    font-weight: 700;
    color: #3d2817;
    margin: 0;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Package Card Custom */
.package-card-custom {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.package-card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Package Image Custom */
.package-image-custom {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.package-image-custom a {
    display: block;
    width: 100%;
    height: 100%;
}

.package-image-custom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.package-card-custom:hover .package-image-custom img {
    transform: scale(1.1);
}

/* Package Content Custom */
.package-content-custom {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-price-badge {
    margin-bottom: 12px;
}

.package-price-badge .theme-color {
    background: linear-gradient(135deg, #654321, #8b4513);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Package Rating */
.package-rating {
    margin-bottom: 15px;
    display: flex;
    gap: 4px;
}

.package-rating i {
    color: #ffc107;
    font-size: 16px;
}

/* Package Title */
.package-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.package-title a {
    color: #343a40;
    text-decoration: none;
    transition: color 0.3s;
}

.package-title a:hover {
    color: #654321;
}

/* Package Description */
.package-description {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Package Link */
.package-link {
    margin-top: auto;
}

.btn-package {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #654321;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid #654321;
}

.btn-package:hover {
    background: transparent;
    color: #654321;
    transform: translateX(5px);
}

.btn-package i {
    transition: transform 0.3s;
}

.btn-package:hover i {
    transform: translateX(5px);
}

/* View All Packages Button */
.packages-view-all {
    text-align: center;
}

.btn-view-all-packages {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #654321, #8b4513);
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(101, 67, 33, 0.3);
}

.btn-view-all-packages:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(101, 67, 33, 0.4);
}

.btn-view-all-packages i {
    transition: transform 0.3s;
}

.btn-view-all-packages:hover i {
    transform: translateX(5px);
}

/* Responsive - Packages */
@media (max-width: 1200px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title-center-custom h2 {
        font-size: 32px;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-image-custom {
        height: 240px;
    }
    
    .package-content-custom {
        padding: 20px;
    }
    
    .package-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .popular-packages-section {
        padding: 60px 0;
    }
    
    .section-title-center-custom h2 {
        font-size: 28px;
    }
    
    .package-image-custom {
        height: 220px;
    }
    
    .btn-view-all-packages {
        padding: 14px 30px;
        font-size: 15px;
    }
}

/* ============================================
   BLOG HERO CONTENT - WHITE TEXT
   ============================================ */

/* Blog Hero Content - All text white */
.blog-hero-content,
.blog-hero-content * {
    color: #ffffff !important;
}

.blog-hero-content h1 {
    color: #ffffff !important;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.blog-hero-content p {
    color: #ffffff !important;
    font-size: 25px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Blog Detail Hero - Breadcrumb and Title */
.breadcrumb-inline {
    margin-bottom: 25px;
}

.breadcrumb-inline a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
}

.breadcrumb-inline a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.breadcrumb-inline .separator {
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 10px;
}

.breadcrumb-inline i {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-right: 5px;
}

/* Blog Detail Hero Title */
.blog-detail-hero-banner h1 {
    color: #ffffff !important;
    font-size: 55px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px 0;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

/* Post Meta in Hero */
.post-meta-hero {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.post-meta-hero span {
    color: #ffffff !important;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.post-meta-hero i {
    color: #d2b48c !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-hero-content h1,
    .blog-detail-hero-banner h1 {
        font-size: 40px;
    }
    
    .blog-hero-content p {
        font-size: 20px;
    }
    
    .post-meta-hero {
        gap: 15px;
    }
    
    .post-meta-hero span {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .blog-hero-content h1,
    .blog-detail-hero-banner h1 {
        font-size: 35px;
    }
    
    .blog-hero-content p {
        font-size: 18px;
    }
    
    .breadcrumb-inline {
        font-size: 16px;
    }
}

/* Table cell styles inside post content */
.post-content-wrapper table {
    border-collapse: collapse;
    width: 100%;
}
.post-content-wrapper td,
.post-content-wrapper th {
    border: 1px solid #dee2e6;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    font-size: 15px;
    line-height: 1.5;
}
.post-content-wrapper th {
    background: #f8f4f0;
    color: #3d2817;
    font-weight: 700;
}
.post-content-wrapper tr:nth-child(even) td {
    background: #fafafa;
}

/* Mobile overflow protection */
.post-content-wrapper {
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}
.post-content-wrapper a {
    word-break: break-all;
}
.post-content-wrapper pre,
.post-content-wrapper code {
    overflow-x: auto;
    white-space: pre-wrap;
    max-width: 100%;
}

/* ============================================
   AUTHOR CARD
   ============================================ */

.author-card {
    display: flex;
    gap: 35px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 35px;
    margin-bottom: 50px;
    align-items: flex-start;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.author-photo {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    filter: grayscale(20%);
}

.author-avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    background: linear-gradient(135deg, #654321, #8b4513);
    color: #fff;
    font-size: 60px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-label {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: 600;
    margin-bottom: 6px;
}

.author-name {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.author-title-line {
    font-size: 16px;
    font-weight: 600;
    color: #654321;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

.author-bio {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.author-follow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 5px;
}

.follow-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.author-social a:hover {
    background: #654321;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
        gap: 20px;
    }
    .author-photo,
    .author-avatar-placeholder {
        width: 120px;
        height: 120px;
    }
    .author-follow {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.blog-detail-hero-banner h1,
.blog-hero-content h1 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.blog-hero-content,
.blog-detail-hero-banner .blog-hero-content {
    max-width: 100%;
    overflow: hidden;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .blog-detail-hero-banner h1 {
        font-size: 28px !important;
        line-height: 1.3;
    }
    .blog-hero-content h1 {
        font-size: 28px !important;
    }
}

/* ============================================
   MOBILE OVERFLOW & GRID FIXES
   ============================================ */

@media (max-width: 600px) {
    .stats-grid,
    .dashboard-grid,
    .recent-posts-grid,
    .packages-grid,
    .blog-detail-grid,
    .blog-grid,
    .contact-map-grid,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .form-row-2 {
        grid-template-columns: 1fr !important;
    }

    .stats-grid-inline {
        grid-template-columns: 1fr 1fr !important;
    }
}

.blog-main,
.post-content-wrapper,
.comment-form-card,
.comment-item,
.sidebar-widget,
.recent-post-content,
.package-content-custom {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.post-content-wrapper * {
    max-width: 100%;
    box-sizing: border-box;
}

.post-content-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
}

.post-content-wrapper a {
    word-break: break-word;
    overflow-wrap: break-word;
}

.post-content-wrapper p,
.post-content-wrapper li,
.post-content-wrapper td,
.post-content-wrapper th {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.post-content-wrapper pre,
.post-content-wrapper code {
    overflow-x: auto;
    white-space: pre-wrap;
    max-width: 100%;
    display: block;
}

.post-content-wrapper h1,
.post-content-wrapper h2,
.post-content-wrapper h3,
.post-content-wrapper h4,
.post-content-wrapper h5,
.post-content-wrapper h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.post-content-wrapper table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    border-collapse: collapse;
}

.post-content-wrapper th {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .blog-detail-hero-banner h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .blog-hero-content h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .blog-main {
        padding: 20px 15px !important;
    }

    .comment-form-card {
        padding: 20px 15px !important;
    }

    .author-card {
        padding: 20px 15px !important;
        gap: 15px !important;
    }

    .post-actions-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .action-btn {
        font-size: 13px;
        padding: 10px 16px;
    }

    .container-wide,
    .container-wide-detail {
        padding: 0 15px !important;
    }

    .share-menu {
        left: auto;
        right: 0;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .blog-detail-hero-banner,
    .blog-hero-banner {
        background-attachment: scroll !important;
        min-height: 450px !important;
    }

    .post-meta-hero {
        gap: 12px !important;
        flex-wrap: wrap;
    }

    .post-meta-hero span {
        font-size: 13px !important;
    }

    .blog-sidebar {
        position: static !important;
    }

    .comment-replies {
        padding-left: 15px !important;
    }

    .recent-posts-grid,
    .packages-grid {
        grid-template-columns: 1fr !important;
    }
}