/* ============================================
   Blog Pages — List, Category, Detail
   ============================================ */

/* Page layout */
.blog-page {
    padding: 0 0 80px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin-top: 24px;
}

/* Sidebar */
.blog-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 100px;
}

.blog-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.blog-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-item + .blog-sidebar-item {
    margin-top: 4px;
}

.blog-sidebar-link {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #444;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-sidebar-link:hover,
.blog-sidebar-link.is-active {
    background: #f26522;
    color: #fff;
}

/* Main */
.blog-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 28px;
}

/* Horizontal row cards */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-row-card {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.blog-row-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.blog-row-image {
    display: block;
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.blog-row-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.blog-row-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.blog-row-title a {
    color: inherit;
    text-decoration: none;
}

.blog-row-title a:hover {
    color: #f26522;
}

.blog-row-separator {
    width: 100%;
    height: 1px;
    background: #eee;
    margin-bottom: 14px;
}

.blog-row-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 18px;
    flex: 1;
}

.blog-row-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 24px;
    background: #f26522;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.blog-row-btn:hover {
    background: #e05518;
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: #f26522;
    color: #f26522;
}

.pagination-btn.is-disabled {
    color: #bbb;
    border-color: #eee;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-numbers {
    display: flex;
    gap: 6px;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.pagination-number:hover {
    border-color: #f26522;
    color: #f26522;
}

.pagination-number.is-active {
    background: #f26522;
    border-color: #f26522;
    color: #fff;
    font-weight: 600;
}

/* Detail Page */
.blog-article {
    margin:24px auto 48px;
}

.blog-article-hero {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
}

.blog-article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-article-header {
    margin-bottom: 24px;
}

.blog-article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #999;
}

.blog-article-separator {
    color: #ddd;
}

.blog-article-category {
    color: #f26522;
    font-weight: 600;
    text-decoration: none;
}

.blog-article-category:hover {
    text-decoration: underline;
}

.blog-article-excerpt {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: #f8f8f8;
    border-radius: 12px;
    border-left: 4px solid #f26522;
}

.blog-article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 16px;
}

.blog-article-content p {
    margin-bottom: 16px;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.blog-article-content blockquote {
    border-left: 4px solid #f26522;
    padding-left: 20px;
    margin: 24px 0;
    color: #555;
    font-style: italic;
}

/* Related Products */
.blog-related-section {
    padding: 60px 0;
    background: #f8f8f8;
    margin-top: 48px;
}

.blog-related-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
}

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

.blog-related-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.blog-related-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.blog-related-image {
    aspect-ratio: 1 / 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.blog-related-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.blog-related-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    padding: 12px 16px 20px;
    line-height: 1.4;
    border-top: 1px solid #f0f0f0;
}

.blog-related-card:hover .blog-related-name {
    color: #f26522;
}

/* ============================================
   Contact / Quote Form (from category.css)
   ============================================ */

.category-contact-section {
    margin: 48px 0;
}

.category-contact-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #3d3d3d 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.category-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

/* Left side */
.category-contact-left {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-contact-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    width: fit-content;
}

.category-contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.category-contact-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 24px;
}

.category-contact-text b {
    color: #fff;
    font-weight: 600;
}

.category-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.category-contact-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.category-contact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.category-contact-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.category-contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.category-contact-action.primary {
    background: #fff;
    color: #1a1a1a;
}

.category-contact-action.primary:hover {
    background: #f0f0f0;
}

.category-contact-action.secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.category-contact-action.secondary:hover {
    background: rgba(255,255,255,0.2);
}

.category-contact-note {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    margin: 0;
}

/* Right side - Form */
.category-contact-right {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-contact-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.booking-title-area {
    margin-bottom: 20px;
}

.booking-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.booking-desc {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.5;
}

.booking-desc b {
    color: #1a1a1a;
    font-weight: 600;
}

.booking-form-area .form-group {
    margin-bottom: 14px;
}

.booking-form-area .form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
}

.booking-form-area .form-control {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #f8f8f8;
    font-size: 0.9375rem;
    color: #333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.booking-form-area .form-control:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(241, 86, 44, 0.1);
}

.booking-form-area textarea.form-control {
    height: auto;
    padding: 14px 16px;
    resize: vertical;
    min-height: 90px;
}

.booking-form-area .onay_box {
    font-size: 0.8125rem;
    color: #666;
    margin-bottom: 16px;
}

.booking-form-area .onay_box a {
    color: #c73e16;
    text-decoration: underline;
}

.booking-form-area .form-btn .th-btn {
    width: 100%;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #d94418;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s;
}

.booking-form-area .form-btn .th-btn:hover {
    background: #b53815;
}

.booking-form-area .form-btn .th-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar-card {
        position: static;
    }

    .blog-row-card {
        flex-direction: column;
    }

    .blog-row-image {
        width: 100%;
        height: 220px;
    }

    .blog-article-title {
        font-size: 28px;
    }

    .blog-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-contact-grid {
        grid-template-columns: 1fr;
    }

    .category-contact-left,
    .category-contact-right {
        padding: 32px;
    }

    .category-contact-title {
        font-size: 1.625rem;
    }
}

@media (max-width: 640px) {
    .blog-page-title {
        font-size: 26px;
    }

    .blog-row-title {
        font-size: 18px;
    }

    .blog-row-image {
        height: 180px;
    }

    .blog-article-title {
        font-size: 24px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .category-contact-left,
    .category-contact-right {
        padding: 24px;
    }

    .category-contact-form-card {
        padding: 24px;
    }

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

    .category-contact-actions {
        flex-direction: column;
    }

    .category-contact-action {
        width: 100%;
    }
}
