/**
 * iTiles Blog Redesign - Modern, clean design matching iTiles branding
 * All blog components: featured, list, post, sidebar, related, social, comments
 */

/* ===========================================
   BLOG CONTAINER & LAYOUT
   =========================================== */
.amblog-container-list {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 1024px) {
    .amblog-container-list {
        padding: 3rem 2rem;
    }
}

/* Blog Page Title Container - reduce vertical spacing 50% */
body[class*='amblog-index-'] .container.my-6.font-bold {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}

@media (min-width: 1024px) {
    body[class*='amblog-index-'] .container.my-6.font-bold {
        margin-top: 16px !important;
    }
}

/* Blog Page Title - Modern editorial style */
body[class*='amblog-index-'] h1.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    text-align: left;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

body[class*='amblog-index-'] h1.page-title::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: linear-gradient(180deg, #10b981, #059669);
    border-radius: 2px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    body[class*='amblog-index-'] h1.page-title {
        font-size: 1.75rem;
    }
}

/* ===========================================
   HERO BANNER - Blog Intro
   =========================================== */
.amblog-hero-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    max-height: 280px;
}

@media (min-width: 768px) {
    .amblog-hero-banner {
        max-height: 300px;
        border-radius: 20px;
    }
}

.amblog-hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 200px;
    max-height: 300px;
}

.amblog-hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 85%);
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .amblog-hero-banner-overlay {
        padding: 2.5rem 3rem;
    }
}

.amblog-hero-banner-content {
    max-width: 420px;
}

.amblog-hero-banner-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.85rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.amblog-hero-banner-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    line-height: 1.25;
    margin: 0 0 0.6rem;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .amblog-hero-banner-title {
        font-size: 1.75rem;
    }
}

.amblog-hero-banner-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 639px) {
    .amblog-hero-banner {
        max-height: 240px;
    }

    .amblog-hero-banner-overlay {
        padding: 1.25rem;
        align-items: flex-end;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    }

    .amblog-hero-banner-title {
        font-size: 1.15rem;
    }

    .amblog-hero-banner-desc {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
    }
}

/* ===========================================
   SIDEBAR - Recomandate Widget
   =========================================== */
.amblog-sidebar-rec {
    margin-bottom: 1.5rem;
}

.amblog-sidebar-rec-title {
    display: flex;
    align-items: center;
}

.amblog-sidebar-rec-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.amblog-sidebar-rec-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: all 0.2s;
}

.amblog-sidebar-rec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.amblog-sidebar-rec-item:first-child {
    padding-top: 0;
}

.amblog-sidebar-rec-item:hover .amblog-sidebar-rec-item-title {
    color: #059669;
}

.amblog-sidebar-rec-thumb {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.amblog-sidebar-rec-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amblog-sidebar-rec-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.amblog-sidebar-rec-item-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.amblog-sidebar-rec-views {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

/* ===========================================
   SIDEBAR - Most Viewed / Popular Widget
   =========================================== */
.amblog-sidebar-popular {
    margin-bottom: 1.5rem;
}

.amblog-sidebar-popular-title {
    display: flex;
    align-items: center;
}

.amblog-sidebar-popular-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.amblog-sidebar-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: all 0.2s;
}

.amblog-sidebar-popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.amblog-sidebar-popular-item:first-child {
    padding-top: 0;
}

.amblog-sidebar-popular-item:hover .amblog-sidebar-popular-item-title {
    color: #059669;
}

.amblog-sidebar-popular-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s;
}

.amblog-sidebar-popular-item:nth-child(1) .amblog-sidebar-popular-rank {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.amblog-sidebar-popular-item:nth-child(2) .amblog-sidebar-popular-rank {
    background: #d1fae5;
    color: #047857;
}

.amblog-sidebar-popular-item:nth-child(3) .amblog-sidebar-popular-rank {
    background: #ecfdf5;
    color: #059669;
}

.amblog-sidebar-popular-item:hover .amblog-sidebar-popular-rank {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.amblog-sidebar-popular-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.amblog-sidebar-popular-item-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.amblog-sidebar-popular-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

/* ===========================================
   POST LIST - Responsive Grid
   =========================================== */
.amblog-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .amblog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

.amblog-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

@media (max-width: 639px) {
    .amblog-post-card {
        flex-direction: column;
        border-radius: 12px;
    }

    .amblog-post-card-image {
        aspect-ratio: 16/9;
    }
}

.amblog-post-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: transparent;
}

@media (max-width: 639px) {
    .amblog-post-card:hover {
        transform: translateY(-3px);
    }
}

.amblog-post-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.amblog-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

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

.amblog-post-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

@media (max-width: 639px) {
    .amblog-post-card-body {
        padding: 1rem;
    }
}

/* Tags - inline, limited */
.amblog-post-card-tags .tags a,
.tags a {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    margin: 0.15rem;
}

.amblog-post-card-tags .tags a:hover,
.tags a:hover {
    background: #10b981;
    color: white;
}

/* Post Card Title */
.amblog-post-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

@media (max-width: 639px) {
    .amblog-post-card-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.amblog-post-card-title a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: color 0.2s;
}

.amblog-post-card:hover .amblog-post-card-title a {
    color: #059669;
}

/* Post Card Excerpt */
.amblog-post-card-excerpt {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

@media (max-width: 639px) {
    .amblog-post-card-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.82rem;
        margin-bottom: 0.5rem;
    }
}

/* Post Card Meta Row (date + views + read time) */
.amblog-post-card-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

@media (max-width: 639px) {
    .amblog-post-card-meta-row {
        font-size: 0.72rem;
        margin-bottom: 0.5rem;
    }
}

.amblog-post-card-views,
.amblog-post-card-readtime {
    white-space: nowrap;
}

/* Post Card Footer (author + read more) */
.amblog-post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

@media (max-width: 639px) {
    .amblog-post-card-footer {
        padding-top: 0.5rem;
        border-top: none;
    }
}

.amblog-post-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.amblog-post-card-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    flex-shrink: 0;
}

.amblog-post-card-author-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amblog-read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #059669;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: gap 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 639px) {
    .amblog-read-more-link {
        font-size: 0.8rem;
    }
}

.amblog-read-more-link:hover {
    gap: 0.6rem;
    color: #047857;
}

/* ===========================================
   SINGLE POST PAGE
   =========================================== */

/* Reading Progress Bar */
.amblog-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    z-index: 9999;
    transition: width 0.1s;
}

/* Post Hero Image */
.amblog-post-hero {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.amblog-post-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Meta Bar with Chips */
.amblog-meta-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.amblog-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #6b7280;
    background: #f9fafb;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    border: 1px solid #e5e7eb;
}

.amblog-meta-chip svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Post Content */
.amblog-post-container.-post-page {
    width: 100%;
}

.amblog-post-container.-post-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.amblog-content img {
    max-width: 100%;
    height: auto;
}

/* Post Title */
.amblog-post-title {
    margin-bottom: 1.5rem;
}

.amblog-post-title a.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (min-width: 768px) {
    .amblog-post-title a.post-title {
        font-size: 1.75rem;
    }
}

.amblog-post-title a.post-title:hover {
    color: #059669;
}

/* Post Footer */
.amblog-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.amblog-features {
    gap: 1rem;
}

/* Author Info */
.amblog-author-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ===========================================
   SOCIAL SHARE - Minimal
   =========================================== */
.amblog-share-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

.amblog-share-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 0.5rem;
}

.amblog-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
    text-decoration: none;
}

.amblog-share-btn:hover {
    border-color: #10b981;
    color: #059669;
    background: #ecfdf5;
    transform: translateY(-2px);
}

.amblog-share-btn svg {
    width: 18px;
    height: 18px;
}

/* Hide old social container if it renders underneath */
.amblog-social-container {
    display: none !important;
}

/* ===========================================
   RELATED POSTS - Grid
   =========================================== */
.amblog-related-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.amblog-related-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.amblog-related-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #10b981;
    border-radius: 2px;
    flex-shrink: 0;
}

.amblog-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .amblog-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .amblog-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.amblog-related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    transition: all 0.3s;
}

.amblog-related-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.amblog-related-card-img {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.amblog-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.amblog-related-card:hover .amblog-related-card-img img {
    transform: scale(1.06);
}

.amblog-related-card-body {
    padding: 1rem;
}

.amblog-related-card-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2937;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.amblog-related-card:hover .amblog-related-card-title {
    color: #059669;
}

.amblog-related-card-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ===========================================
   PREV/NEXT NAVIGATION
   =========================================== */
.amblog-nav-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
    .amblog-nav-posts {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.amblog-nav-post {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.3s;
}

.amblog-nav-post:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.amblog-nav-post-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.amblog-nav-post-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.amblog-nav-post-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.amblog-nav-post.-next {
    text-align: right;
    flex-direction: row-reverse;
}

/* ===========================================
   COMMENTS SECTION
   =========================================== */
.amblog-comments-wrapper {
    margin-top: 2rem;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.amblog-comments-header {
    margin-bottom: 1.5rem;
}

.amblog-comments-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.amblog-comments-subtitle {
    display: block;
    color: #9ca3af;
    font-size: 0.85rem;
}

.amblog-comments-wrapper textarea,
.amblog-comments-wrapper input[type="text"],
.amblog-comments-wrapper input[type="email"] {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.amblog-comments-wrapper textarea:focus,
.amblog-comments-wrapper input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.amblog-comments-wrapper button[type="submit"],
.amblog-comments-wrapper .action.submit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.amblog-comments-wrapper button[type="submit"]:hover,
.amblog-comments-wrapper .action.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ===========================================
   SIDEBAR WIDGETS
   =========================================== */
.amblog-element-block.card {
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
    background: white;
    box-shadow: none;
}

.amblog-sidebar-widget-title,
.amblog-element-block .amblog-title span.title,
.amblog-element-block .title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

/* Categories with badge count */
.amblog-cat-item {
    list-style: none;
    margin-top: 0;
}

.amblog-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    font-size: 0.88rem;
    color: #4b5563;
    transition: all 0.2s;
}

.amblog-cat-item:last-child .amblog-cat-link {
    border-bottom: none;
}

.amblog-cat-link:hover {
    color: #059669;
    padding-left: 0.5rem;
}

.amblog-cat-count {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.1rem 0.5rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
}

.amblog-cat-link:hover .amblog-cat-count {
    background: #ecfdf5;
    color: #059669;
}

/* Old categories style fallback */
.amblog-categories a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.amblog-categories a:hover {
    color: #10b981;
}

/* Recent Posts */
.amblog-recent-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: all 0.2s;
}

.amblog-recent-item:last-child {
    border-bottom: none;
}

.amblog-recent-item:hover .amblog-recent-title {
    color: #059669;
}

.amblog-recent-thumb {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.amblog-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amblog-recent-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.amblog-recent-views {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

/* Search Widget */
.amblog-search-block input[type="text"] {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.amblog-search-block input[type="text"]:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.amblog-search-block button {
    background: #10b981;
    color: white;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
}

.amblog-search-block button:hover {
    background: #059669;
}

/* Sidebar Tags */
.amblog-tags a {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    margin: 0.15rem;
}

.amblog-tags a:hover {
    background: #10b981;
    color: white;
}

/* Comments Counter */
.amblog-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
}

.amblog-comments-link:hover {
    color: #10b981;
}

/* ===========================================
   OLD VENDOR CARD STYLES (kept for fallback)
   =========================================== */
.amblog-post-container.card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    background: white;
}

.amblog-post-container.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.amblog-post-container .post-image {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.amblog-post-container .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.amblog-post-container:hover .post-image img {
    transform: scale(1.05);
}

/* Vendor title overrides (fix blue to green) */
h2.amblog-post-title a.post-title,
.amblog-headline,
.post-title.break-all {
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
}

h2.amblog-post-title:hover,
h2.amblog-post-title a:hover,
.amblog-headline:hover,
.post-title:hover {
    color: #059669 !important;
}

/* Fix vendor blue to green */
.text-blue-600 {
    color: #059669 !important;
}

.hover\:text-blue-600:hover {
    color: #059669 !important;
}

/* Read More Button (vendor list fallback) */
.amblog-read.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.95rem;
}

.amblog-read.btn.btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

/* ===========================================
   PAGINATION - Modern Centered
   =========================================== */
.amblog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.5rem 0 1.5rem;
    padding: 0;
    grid-column: 1 / -1;
}

.amblog-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.amblog-page-btn:hover:not(.-active):not(.-disabled) {
    color: #059669;
    border-color: #10b981;
    background: #ecfdf5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.amblog-page-btn.-active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    pointer-events: none;
}

.amblog-page-btn.-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

.amblog-page-arrow {
    background: #f9fafb;
}

.amblog-page-arrow:hover:not(.-disabled) {
    background: #ecfdf5;
}

.amblog-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 40px;
    font-size: 1rem;
    color: #9ca3af;
    letter-spacing: 2px;
    user-select: none;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

/* Mobile: < 640px */
@media (max-width: 639px) {
    .amblog-container-list {
        padding: 1rem 0.75rem;
    }

    body[class*='amblog-index-'] h1.page-title {
        font-size: 1.25rem;
    }

    .amblog-post-container .amblog-content {
        padding: 0.75rem;
    }

    .amblog-post-container .amblog-footer {
        padding: 0.75rem;
    }

    .amblog-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .amblog-sidebar-rec-thumb {
        width: 56px;
        height: 42px;
    }

    .amblog-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .amblog-related-card-body {
        padding: 0.75rem;
    }

    .amblog-related-card-title {
        font-size: 0.82rem;
    }

    .amblog-nav-posts {
        gap: 0.75rem;
    }

    .amblog-nav-post {
        padding: 0.75rem;
    }

    .amblog-nav-post-thumb {
        width: 44px;
        height: 44px;
    }

    .amblog-nav-post-title {
        font-size: 0.8rem;
    }

    .amblog-comments-wrapper {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .amblog-share-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .amblog-share-btn {
        width: 36px;
        height: 36px;
    }

    .amblog-meta-bar {
        gap: 0.5rem;
    }

    .amblog-meta-chip {
        font-size: 0.72rem;
        padding: 0.25rem 0.6rem;
    }

    .amblog-post-title a.post-title {
        font-size: 1.35rem;
    }

    .amblog-post-hero {
        border-radius: 12px;
    }

    .amblog-showroom-cta {
        margin-top: 1.5rem !important;
        padding: 1rem 1.25rem !important;
        border-radius: 0.75rem !important;
        font-size: 0.92rem !important;
    }

    .amblog-element-block.card {
        padding: 1rem;
        border-radius: 12px;
    }

    .amblog-pagination {
        gap: 0.35rem;
        margin: 1.75rem 0 1rem;
    }

    .amblog-page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.82rem;
        border-radius: 8px;
    }

    .amblog-page-dots {
        min-width: 24px;
        height: 36px;
    }
}

/* Tablet: 640px - 767px */
@media (min-width: 640px) and (max-width: 767px) {
    .amblog-hero-banner-title {
        font-size: 1.5rem;
    }
}

/* Medium screens: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .amblog-post-card-title {
        font-size: 1rem;
    }

    .amblog-post-card-excerpt {
        -webkit-line-clamp: 2;
        font-size: 0.85rem;
    }
}

/* ========== Category FAQ Section ========== */
.amblog-category-faq {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.amblog-category-faq h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.amblog-category-faq details {
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.amblog-category-faq details:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.amblog-category-faq details[open] {
    border-color: #c5a47e;
    box-shadow: 0 2px 8px rgba(197, 164, 126, 0.12);
}

.amblog-category-faq summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.975rem;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
    transition: background-color 0.15s ease;
}

.amblog-category-faq summary::-webkit-details-marker {
    display: none;
}

.amblog-category-faq summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.amblog-category-faq details[open] summary::after {
    transform: rotate(-135deg);
}

.amblog-category-faq summary:hover {
    background-color: #fafaf8;
}

.amblog-category-faq details[open] summary {
    background-color: #fdf9f4;
}

.amblog-category-faq details > div {
    padding: 0 1.25rem 1.15rem;
    font-size: 0.925rem;
    color: #4b5563;
    line-height: 1.7;
}

.amblog-category-faq details > div a {
    color: #c5a47e;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.amblog-category-faq details > div a:hover {
    color: #a8885f;
}

.amblog-category-related {
    margin-top: 1.75rem;
    padding: 1.15rem 1.35rem;
    background: #fdf9f4;
    border: 1px solid #e8dfd4;
    border-radius: 0.625rem;
}

.amblog-category-related strong {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.amblog-category-related a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.35rem;
    color: #c5a47e;
    font-weight: 500;
    font-size: 0.925rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.amblog-category-related a:hover {
    color: #a8885f;
    text-decoration: underline;
}

@media (max-width: 639px) {
    .amblog-category-faq {
        margin-top: 1.75rem;
        padding-top: 1.5rem;
    }

    .amblog-category-faq h3 {
        font-size: 1.15rem;
    }

    .amblog-category-faq summary {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .amblog-category-faq details > div {
        padding: 0 1rem 1rem;
        font-size: 0.875rem;
    }

    .amblog-category-related {
        padding: 0.9rem 1rem;
    }

    .amblog-category-related a {
        display: block;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}
