/*
Theme Name: Doctors NHS Custom Theme
Theme URI: http://localhost/doctorsnhs/
Author: Antigravity
Author URI: https://github.com/google-deepmind
Description: Custom WordPress theme matching the Doctors NHS homepage design (Header and Footer) with a premium blog grid and post details view.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: doctorsnhs
*/

/* Custom additions for premium blog styling */
.blog-hero {
    background: linear-gradient(135deg, #0b6f9a 0%, #0aa0d9 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 20px rgba(11, 111, 154, 0.15);
}
.blog-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Post Cards */
.post-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(11, 111, 154, 0.12);
}
.post-card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 ratio */
    background: #f0f0f0;
}
.post-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-card-img {
    transform: scale(1.05);
}
.post-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--brand-blue, #0f9ad1);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 30px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(15, 154, 209, 0.3);
}
.post-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.post-card-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.post-card-meta i, .post-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.2s ease;
}
.post-card:hover .post-card-title {
    color: var(--deep-blue, #0b6f9a);
}
.post-card-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.post-card-link {
    font-weight: 700;
    color: var(--deep-blue, #0b6f9a);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
}
.post-card:hover .post-card-link {
    color: var(--brand-blue, #0f9ad1);
    gap: 8px;
}

/* Sidebar and Filters */
.blog-sidebar {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    position: sticky;
    top: 20px;
}
.sidebar-widget {
    margin-bottom: 30px;
}
.sidebar-widget:last-child {
    margin-bottom: 0;
}
.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    border-bottom: 2px solid var(--brand-blue, #0f9ad1);
    padding-bottom: 10px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-filter-list li {
    margin-bottom: 8px;
}
.category-filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    color: #444;
    text-decoration: none;
    font-weight: 500;
    background: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.category-filter-link:hover, .category-filter-link.active {
    background: var(--brand-blue, #0f9ad1);
    color: #fff;
}
.category-filter-count {
    font-size: 0.8rem;
    padding: 3px 8px;
    background: #f0f4f8;
    color: #666;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.2s ease;
}
.category-filter-link:hover .category-filter-count, .category-filter-link.active .category-filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Premium Search Input */
.search-widget-form {
    position: relative;
}
.search-widget-input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}
.search-widget-input:focus {
    border-color: var(--brand-blue, #0f9ad1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 154, 209, 0.15);
}
.search-widget-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 35px;
    height: 35px;
    background: var(--brand-blue, #0f9ad1);
    border: none;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.search-widget-btn:hover {
    background: var(--deep-blue, #0b6f9a);
}

/* Premium Blog Details */
.post-details-header {
    background: linear-gradient(135deg, #0b6f9a 0%, #005EB8 100%);
    color: #fff;
    padding: 60px 0 50px 0;
    position: relative;
    overflow: hidden;
    border-bottom: none;
    margin-bottom: 35px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 8px 30px rgba(0, 94, 184, 0.12);
}
.post-details-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.post-details-header::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.post-details-breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px !important;
}
.post-details-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}
.post-details-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}
.post-details-breadcrumb .breadcrumb-separator {
    margin: 0 8px;
    opacity: 0.5;
}
.post-details-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.post-details-category:hover {
    background: #fff;
    color: #0b6f9a;
    box-shadow: 0 4px 12px rgba(255,255,255,0.15);
}
.post-details-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    max-width: 850px;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}
.post-details-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    gap: 15px;
    margin-bottom: 0;
    flex-wrap: wrap;
}
.post-details-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}
.post-details-meta span:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.post-details-meta svg {
    opacity: 0.9;
}

/* Responsive height & padding overrides */
@media (max-width: 991.98px) {
    .post-details-header {
        padding: 45px 0 35px 0;
        margin-bottom: 30px;
    }
    .post-details-title {
        font-size: 2.1rem;
        margin-bottom: 20px;
    }
    .post-details-breadcrumb {
        margin-bottom: 15px !important;
    }
    .post-details-category {
        margin-bottom: 14px;
    }
}
@media (max-width: 575.98px) {
    .post-details-header {
        padding: 35px 0 25px 0;
        margin-bottom: 25px;
        border-radius: 0 0 16px 16px;
    }
    .post-details-title {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
    .post-details-breadcrumb {
        margin-bottom: 10px !important;
        font-size: 0.8rem;
    }
    .post-details-category {
        margin-bottom: 10px;
        padding: 4px 12px;
        font-size: 0.75rem;
    }
    .post-details-meta {
        gap: 8px;
    }
    .post-details-meta span {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}
.post-details-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}
.post-details-content p {
    margin-bottom: 24px;
}
.post-details-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--deep-blue, #0b6f9a);
}
.post-details-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--brand-blue, #0f9ad1);
}
.post-details-content blockquote {
    border-left: 5px solid var(--brand-blue, #0f9ad1);
    padding: 15px 25px;
    margin: 30px 0;
    background: #f0f9ff;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}
.post-details-featured-img {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.post-details-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Related Posts */
.related-posts-section {
    padding-top: 50px;
    border-top: 1px solid #e2e8f0;
    margin-top: 60px;
}
.related-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a202c;
    text-align: center;
}

/* Custom Pagination */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 4px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}
.pagination-wrapper .page-numbers:hover, .pagination-wrapper .page-numbers.current {
    background: var(--brand-blue, #0f9ad1);
    color: #fff;
    border-color: var(--brand-blue, #0f9ad1);
}

/* Comment Form & Styling */
.comments-area {
    margin-top: 50px;
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
}
.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a202c;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}
.comment-body {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 20px;
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #666;
}
.comment-author-name {
    font-weight: 700;
    color: #1a202c;
}
.comment-content {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
}
.comment-respond {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.comment-reply-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}
.comment-form input[type="text"]:focus, .comment-form input[type="email"]:focus, .comment-form textarea:focus {
    border-color: var(--brand-blue, #0f9ad1);
    outline: none;
}
.comment-form-submit-btn {
    background: var(--brand-blue, #0f9ad1);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.comment-form-submit-btn:hover {
    background: var(--deep-blue, #0b6f9a);
}

/* Clinical Footer (References & Disclaimer) */
.post-clinical-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    margin-top: 40px;
}
.clinical-footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--deep-blue, #0b6f9a);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.clinical-references-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}
.clinical-references-content {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}
.clinical-references-content p {
    margin-bottom: 10px;
}
.clinical-references-content p:last-child {
    margin-bottom: 0;
}
.clinical-references-content a {
    color: var(--brand-blue, #0f9ad1);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}
.clinical-references-content a:hover {
    color: var(--deep-blue, #0b6f9a);
}
.clinical-disclaimer-box {
    background: #fffafa;
    border-left: 4px solid #e53e3e;
    border-radius: 4px 12px 12px 4px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(229, 62, 62, 0.03);
}
.clinical-disclaimer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #c53030;
}
.clinical-disclaimer-text {
    font-size: 0.9rem;
    color: #742a2a;
    line-height: 1.5;
}

