/* ===================================
   RSOP Theme - Blog & Post Stylesheet
   (DOMINANT GOLD COLOR THEME)
   =================================== */

/* Blog Page Hero Banner - Dominant Gold */
.blog-hero {
    background: linear-gradient(135deg, #d09d28 0%, #b8861f 50%, #9a6f14 100%);
    padding: 50px 0;
    color: #ffffff;
    margin-bottom: 45px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(208, 157, 40, 0.25);
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero-content {
    max-width: 800px;
    min-width: 0;
}

.blog-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.blog-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.blog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.blog-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.blog-breadcrumbs a:hover {
    opacity: 0.8;
}

/* Blog Layout Grid */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Blog Post Cards List - Compact Horizontal (1 Card Per Row - Image Left Side) */
.blog-card-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}

.blog-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 165px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(208, 157, 40, 0.2);
    border-color: rgba(208, 157, 40, 0.45);
}

/* Card Image (Dynamically Fits Full Card Height) */
.blog-card-image {
    position: relative;
    width: 200px;
    min-width: 200px;
    align-self: stretch;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.blog-card-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

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

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

.blog-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color, #d09d28);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

/* Card Body (Compact Right Side) */
.blog-card-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 6px;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-meta i {
    color: var(--primary-color, #d09d28);
    font-size: 0.8rem;
}

.blog-card-title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--primary-color, #d09d28);
}

.blog-card-excerpt {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.blog-card-author i {
    color: var(--primary-color, #d09d28);
}

.blog-card-link {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-color, #d09d28);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.blog-card-link i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-link {
    color: #b8861f;
}

.blog-card:hover .blog-card-link i {
    transform: translateX(4px);
}

/* ===================================
   Single Post Detail View
   =================================== */

.single-post-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.single-post-header {
    margin-bottom: 30px;
}

.single-post-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.single-cat-badge {
    background: var(--primary-color, #d09d28);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(208, 157, 40, 0.25);
}

.single-cat-badge:hover {
    background: #b8861f;
    color: #ffffff;
}

.single-post-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
    color: #64748b;
}

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

.single-meta-item i {
    color: var(--primary-color, #d09d28);
}

.single-meta-item a {
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.single-meta-item a:hover {
    color: var(--primary-color, #d09d28);
}

.single-post-featured {
    width: 100%;
    margin: 30px 0 35px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.single-post-featured img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Post Article Content Typography */
.single-post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
}

.single-post-content * {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.single-post-content table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
}

.single-post-content p {
    margin-bottom: 24px;
    text-align: justify;
    text-justify: inter-word;
}

.single-post-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 40px 0 18px 0;
    padding-left: 14px;
    border-left: 4px solid var(--primary-color, #d09d28);
}

.single-post-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 32px 0 14px 0;
}

.single-post-content blockquote {
    background: #fffdf5;
    border-left: 4px solid var(--primary-color, #d09d28);
    border-radius: 0 12px 12px 0;
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #1e293b;
}

.single-post-content blockquote p:last-child {
    margin-bottom: 0;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
}

.single-post-content ul,
.single-post-content ol {
    margin: 20px 0 25px 20px;
    padding-left: 10px;
}

.single-post-content li {
    margin-bottom: 10px;
    text-align: justify;
    text-justify: inter-word;
}

/* Tags & Footer */
.single-post-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.single-post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.single-tag-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.single-tag {
    background: #fdf8eb;
    color: #855d08;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.single-tag:hover {
    background: var(--primary-color, #d09d28);
    color: #ffffff;
}

/* Hospital Contact Box */
.single-contact-box {
    background: #fffdf5;
    border-radius: 16px;
    padding: 24px;
    margin: 40px 0;
    border: 1px solid #fceecb;
    box-shadow: 0 4px 15px rgba(208, 157, 40, 0.05);
}

.single-contact-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #fcdb8f;
}

.single-contact-header i {
    font-size: 2rem;
    color: var(--primary-color, #d09d28);
    flex-shrink: 0;
}

.single-contact-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #0f172a;
}

.single-contact-header p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.single-contact-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    min-width: 0;
}

.contact-branch-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.contact-branch-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-branch-name i {
    color: var(--primary-color, #d09d28);
}

.contact-branch-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.contact-branch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 9px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    justify-content: center;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .contact-branch-links {
        grid-template-columns: 1fr;
    }
}

.contact-branch-btn.btn-phone {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.contact-branch-btn.btn-phone:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.contact-branch-btn.btn-wa {
    background: #25d366;
    color: #ffffff;
    border: 1px solid #22bf5b;
}

.contact-branch-btn.btn-wa:hover {
    background: #1eb956;
    color: #ffffff;
}

/* Post Navigation (Prev/Next) */
.single-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.post-nav-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.post-nav-card:hover {
    border-color: var(--primary-color, #d09d28);
    box-shadow: 0 6px 20px rgba(208, 157, 40, 0.18);
    transform: translateY(-2px);
}

.post-nav-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color, #d09d28);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.post-nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================
   Sidebar Styling
   =================================== */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 993px) {
    .blog-sidebar {
        position: sticky;
        top: 100px;
        z-index: 10;
        align-self: start;
    }
}

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

.sidebar-widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2.5px solid var(--primary-color, #d09d28);
    position: relative;
}

/* Search Form Widget - Dominant Gold Search Button */
.blog-search-form {
    display: flex;
    gap: 8px;
}

.blog-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.blog-search-input:focus {
    border-color: var(--primary-color, #d09d28);
}

.blog-search-btn {
    background: var(--primary-color, #d09d28);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 3px 10px rgba(208, 157, 40, 0.3);
}

.blog-search-btn:hover {
    background: #b8861f;
    transform: scale(1.03);
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.recent-post-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

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

.recent-post-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-post-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.recent-post-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-post-title a:hover {
    color: var(--primary-color, #d09d28);
}

.recent-post-date {
    font-size: 0.78rem;
    color: #64748b;
}

.recent-post-date i {
    color: var(--primary-color, #d09d28);
}

/* Categories List Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.category-item a:hover {
    background: var(--primary-color, #d09d28);
    color: #ffffff;
}

.category-count {
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.category-item a:hover .category-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Custom Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--primary-color, #d09d28);
    border-color: var(--primary-color, #d09d28);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(208, 157, 40, 0.35);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .blog-layout {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .single-post-title {
        font-size: 1.8rem;
    }

    .single-post-container {
        padding: 24px 18px;
        border-radius: 16px;
        margin-bottom: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
    }

    .blog-card-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .blog-hero {
        padding: 18px 0 22px;
        margin-bottom: 20px;
    }

    .blog-breadcrumbs {
        font-size: 0.78rem;
        gap: 4px 6px;
    }

    .blog-hero-title {
        font-size: 1.45rem;
    }

    .single-post-container {
        padding: 22px 18px;
        border-radius: 14px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .single-post-title {
        font-size: 1.4rem;
        line-height: 1.35;
        margin-bottom: 14px;
    }

    .single-post-meta {
        gap: 8px 14px;
        font-size: 0.78rem;
        padding: 10px 0;
        margin-bottom: 20px;
    }

    .single-post-content {
        font-size: 0.98rem;
        line-height: 1.7;
        color: #334155;
    }

    .single-post-content p {
        margin-bottom: 16px;
        text-align: justify;
        text-justify: inter-word;
    }

    .single-post-content h2 {
        font-size: 1.25rem;
        line-height: 1.38;
        margin: 26px 0 12px 0;
        padding-left: 10px;
        border-left-width: 3px;
    }

    .single-post-content h3 {
        font-size: 1.08rem;
        line-height: 1.4;
        margin: 20px 0 10px 0;
    }

    .single-post-content ul,
    .single-post-content ol {
        margin: 14px 0 18px 16px;
        padding-left: 4px;
    }

    .single-post-content li {
        margin-bottom: 6px;
        line-height: 1.6;
        text-align: justify;
        text-justify: inter-word;
    }

    .single-contact-box {
        padding: 16px 12px;
        margin: 25px 0;
        border-radius: 12px;
    }

    .single-contact-header {
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .single-contact-header i {
        font-size: 1.5rem;
    }

    .single-contact-header h4 {
        font-size: 1rem;
    }

    .single-contact-branches {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-branch-card {
        padding: 12px 10px;
    }

    .contact-branch-links {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .contact-branch-btn {
        padding: 8px 4px;
        font-size: 0.72rem;
        gap: 4px;
    }

    .single-post-nav {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 25px 0;
    }

    .post-nav-card {
        padding: 14px 12px;
    }
}