/* 
   Hillock - Blog & CMS Stylesheet
   Nature-Inspired Premium Luxury Design
*/

/* Blog Layout Base */
.blog-body {
    background-color: var(--bg-off-white);
    padding-top: 80px; /* Offset for fixed header */
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

.breadcrumbs span {
    color: #ccc;
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(rgba(27, 51, 34, 0.85), rgba(27, 51, 34, 0.85)), url('../assets/images/hero-v2.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}

.blog-hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
}

.blog-hero p {
    font-size: 1.2rem;
    color: #e2c58e; /* Gold color */
    max-width: 800px;
    margin: 0 auto 30px;
    font-family: var(--font-body);
}

/* Controls Container (Search & Filters) */
.blog-controls {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(27, 51, 34, 0.04);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Search Bar */
.search-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-wrapper input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.1);
}

.search-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tab {
    padding: 8px 18px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    background: #f4f8f2;
    border: 1px solid rgba(63, 93, 69, 0.1);
    color: #2f4f3a;
    transition: all 0.3s ease;
}

.category-tab:hover, .category-tab.active {
    background: #2f4f3a;
    color: #fff;
    border-color: #2f4f3a;
    box-shadow: 0 4px 12px rgba(47, 79, 58, 0.2);
}

/* Two-column Content Layout */
.blog-content-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 40px;
    margin-bottom: 60px;
}

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

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(27, 51, 34, 0.08);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

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

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    font-family: var(--font-body);
}

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

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.blog-card-body h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-body p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-btn {
    align-self: flex-start;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    transition: color 0.3s, transform 0.3s;
}

.blog-card:hover .read-more-btn {
    color: var(--secondary-color);
}

.read-more-btn i {
    transition: transform 0.3s;
}

.read-more-btn:hover i {
    transform: translateX(4px);
}

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

.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(27, 51, 34, 0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.widget-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(197, 160, 89, 0.2);
    position: relative;
}

/* Mini Post Item */
.mini-post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

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

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

.mini-post-info h4 {
    font-size: 0.92rem;
    line-height: 1.3;
    margin-bottom: 5px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-post-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Newsletter Widget */
.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: var(--secondary-hover);
}

/* Blog Article Detail Layout */
.article-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

@media (max-width: 600px) {
    .article-container {
        padding: 20px;
    }
}

.article-header {
    margin-bottom: 30px;
}

.article-category {
    background: var(--secondary-color);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.article-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.author-meta i {
    color: var(--secondary-color);
}

/* Featured Image */
.article-featured-image {
    width: 100%;
    max-height: 480px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

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

/* Table of Contents */
.table-of-contents {
    background: #f4f8f2;
    border-left: 4px solid var(--secondary-color);
    padding: 24px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 35px;
}

.table-of-contents h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.table-of-contents a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: var(--secondary-color);
}

/* Article Body Typography */
.article-body {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #333;
    margin-bottom: 40px;
}

.article-body h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 40px 0 20px;
    scroll-margin-top: 100px; /* Offset for sticky nav headers */
}

.article-body p {
    margin-bottom: 20px;
    color: #444;
}

.article-body ul, .article-body ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

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

.article-body blockquote {
    background: #f9f8f6;
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    font-style: italic;
    font-size: 1.15rem;
    margin: 30px 0;
    color: var(--primary-color);
}

/* Social Share Row */
.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.share-section span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1rem;
    transition: transform 0.3s, opacity 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-btn.fb { background-color: #3b5998; }
.share-btn.tw { background-color: #1da1f2; }
.share-btn.in { background-color: #0077b5; }
.share-btn.wa { background-color: #25d366; }

/* Author Bio Box */
.author-bio-box {
    display: flex;
    gap: 25px;
    background: #f9f8f6;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    align-items: center;
}

@media (max-width: 600px) {
    .author-bio-box {
        flex-direction: column;
        text-align: center;
    }
}

.author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Article Navigation (Prev/Next) */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 35px;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .article-nav {
        grid-template-columns: 1fr;
    }
}

.nav-link-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link-card:hover {
    border-color: var(--secondary-color);
    background: #fdfcf9;
}

.nav-link-card span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.nav-link-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-link-card.next {
    text-align: right;
}

/* Related Posts Section */
.related-posts {
    margin-bottom: 40px;
}

.related-posts h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

@media (max-width: 500px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Article CTA Box */
.article-cta {
    background: linear-gradient(rgba(27, 51, 34, 0.92), rgba(27, 51, 34, 0.92)), url('../assets/images/hero.png') center/cover;
    border-radius: 12px;
    padding: 40px;
    color: #fff;
    text-align: center;
    margin-top: 40px;
}

.article-cta h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 12px;
}

.article-cta p {
    font-size: 1.05rem;
    color: #eee;
    margin-bottom: 30px;
}

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

.cta-btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cta-btn-visit {
    background: var(--secondary-color);
    color: #fff;
}

.cta-btn-visit:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
}

.cta-btn-brochure {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.cta-btn-brochure:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.cta-btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.cta-btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

/* Internal Linking Footer Panel */
.blog-internal-links {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 0.85rem;
}

.blog-internal-links a {
    color: #ccc;
    transition: color 0.3s;
}

.blog-internal-links a:hover {
    color: var(--secondary-color);
}

/* Admin Dashboard Specific Styles */
.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f4f8f2;
    padding-bottom: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-title-group h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.admin-btn-primary {
    background: var(--primary-color);
    color: white;
}

.admin-btn-primary:hover {
    background: #25442e;
}

.admin-btn-secondary {
    background: var(--secondary-color);
    color: white;
}

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

.admin-btn-danger {
    background: #d9534f;
    color: white;
}

.admin-btn-danger:hover {
    background: #c9302c;
}

.admin-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

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

.admin-table th {
    background-color: #f4f8f2;
    color: var(--primary-color);
    font-weight: 600;
}

.admin-table tr:hover {
    background-color: #fafbfc;
}

/* Modal overlay */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-field input, .form-field select, .form-field textarea {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    width: 100%;
}

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

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

/* Alert Notification */
.admin-alert {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
}

.admin-alert.show {
    transform: translateY(0);
    opacity: 1;
}

.admin-alert.success {
    background: #3f5d45;
}

.admin-alert.error {
    background: #d9534f;
}

.admin-alert.warning {
    background: #c58c18;
}

/* Status Badges */
.badge-status-local {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-status-existing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Publishing Checklist Box */
.publishing-checklist {
    background: #ffffff;
    border: 1px solid #e1e7dd;
    border-radius: 8px;
    padding: 18px 20px;
    margin-top: 15px;
}

.publishing-checklist h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checklist-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.checklist-step {
    background: #f8faf7;
    border: 1px solid #edf2eb;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.85rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.checklist-step-num {
    background: var(--secondary-color);
    color: #fff;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.checklist-step-text strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.checklist-step-text span {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
    display: block;
}

/* Local storage banner warning */
.admin-warning-banner {
    background: #fff8e6;
    border: 1px solid #ffd591;
    border-left: 4px solid #fa8c16;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    color: #873800;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Image input group & Preview */
.image-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.image-input-group input[type="text"] {
    flex: 1;
    min-width: 220px;
}

.image-preview-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-top: 10px;
}

.image-preview-card img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.image-preview-card-info {
    flex: 1;
    min-width: 0;
}

.image-preview-card-info .img-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    word-break: break-all;
}

.image-preview-card-info .img-path {
    font-size: 0.8rem;
    color: #777;
    font-family: monospace;
    margin-top: 2px;
}

/* Article Images Manager */
.article-images-manager {
    background: #fbfcfb;
    border: 1px solid #e5ebe4;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
}

.article-images-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.article-images-header h4 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-images-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 5px;
}

.article-image-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8e0;
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

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

.article-image-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.article-image-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.article-image-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.article-image-topline .img-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #222;
}

.article-image-alt-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-image-alt-input label {
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}

.article-image-alt-input input {
    padding: 5px 8px;
    font-size: 0.82rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
}

.article-image-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-img-action {
    padding: 6px 10px;
    font-size: 0.78rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fdfdfd;
    color: #444;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-img-action:hover {
    background: #eee;
    color: #111;
}

.btn-img-insert {
    background: #e9f5ed;
    border-color: #badcc3;
    color: #1d5f30;
    font-weight: 600;
}

.btn-img-insert:hover {
    background: #d8eedf;
    color: #144422;
}

.btn-img-download {
    background: #f5f2eb;
    border-color: #e2d2b4;
    color: #8c6a28;
}

.btn-img-download:hover {
    background: #ede6d6;
    color: #6d511b;
}

.btn-img-delete {
    color: #c9302c;
    border-color: #f5c6cb;
}

.btn-img-delete:hover {
    background: #f8d7da;
    color: #721c24;
}

/* Article body image rendering in detail view */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

