/* Premium Blog Details Page Styling - Luxury Design */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Root color variables */
 :root {
    /* Blue theme palette */
    --logo-primary: #0f2e4a;
    --logo-secondary: #1f5d8f;
    --logo-accent: #5fb2ff;
    --logo-cream: #f2f7fb;

    --premium-primary: var(--logo-primary);
    --premium-secondary: var(--logo-secondary);
    --premium-accent: var(--logo-accent);
    --premium-dark: #0b151d;
    --premium-light: var(--logo-cream);
    --premium-border: #dbe6f2;
    --shadow-sm: 0 6px 16px rgba(16, 30, 42, 0.08);
    --shadow-md: 0 12px 28px rgba(16, 30, 42, 0.12);
    --shadow-lg: 0 22px 50px rgba(16, 30, 42, 0.16);
}

body,
.blog-details-top-spacer,
.blog,
.blog-title,
.blog-content,
.comment-sec,
.review-sec,
.sidebar-right,
.blog-details-hero {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* Restrict logo size in blog details */
.blog-info .post-author img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Increased top margin for more space below navbar */
.blog-details-top-spacer {
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    background: #f3f8ff;
    padding: 70px 0 90px;
    overflow: hidden;
}

.blog-details-top-spacer.course-content {
    background: #f3f8ff;
    padding: 0;
}

.blog-details-top-spacer::before,
.blog-details-top-spacer::after {
    content: none;
}

.blog-details-shell {
    position: relative;
    z-index: 1;
    padding: 70px 0 90px;
}

/* Blog details main image with premium styling */
.blog-image {
    position: relative;
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.blog-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(15, 46, 74, 0.18);
    margin-bottom: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 18px 52px rgba(15, 46, 74, 0.22);
}

/* Blog content structure - Premium Card */
.blog {
    background: linear-gradient(135deg, #ffffff 0%, #f1f7ff 55%, #eaf2ff 100%);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 46, 74, 0.16);
    padding: 52px 46px;
    margin-bottom: 52px;
    border: 1px solid rgba(31, 93, 143, 0.14);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog::before,
.blog::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.blog::before {
    top: -140px;
    right: -120px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(95, 178, 255, 0.22), transparent 70%);
}

.blog::after {
    bottom: -160px;
    left: -120px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(15, 46, 74, 0.18), transparent 70%);
}

.blog:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(15, 46, 74, 0.2);
}

.blog-article-header,
.blog-image,
.blog-content,
.blog-share-wrap {
    position: relative;
    z-index: 1;
}

.blog-article-header {
    text-align: left;
    margin-bottom: 28px;
}

.blog-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--premium-accent);
    margin-bottom: 18px;
}

.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: #7a8797;
    font-size: 0.95rem;
    font-weight: 500;
}

.blog-meta-item {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: #7a8797;
}

.blog-meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--premium-accent);
    opacity: 0.7;
}

.blog-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--premium-primary);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.blog-content {
    font-size: 1.08rem;
    line-height: 1.95;
    color: #1f2f3f;
    margin-bottom: 36px;
}

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

.blog-content strong {
    color: var(--premium-primary);
    font-weight: 700;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--premium-primary);
    margin-top: 32px;
    margin-bottom: 18px;
    font-weight: 700;
}

.blog-share-wrap {
    margin-top: 32px;
    padding: 26px 0 6px;
    border-top: 1px solid rgba(31, 93, 143, 0.14);
}

.blog-share-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #6f7f8a;
    margin-bottom: 12px;
}

/* Breadcrumb styling */
.breadcrumb-bar {
    background: #f8f9fa;
    padding: 18px 0 12px 0;
    margin-bottom: 18px;
    border-radius: 0 0 12px 12px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0;
}

/* Share buttons styling */
.sharethis-inline-share-buttons {
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid rgba(31, 93, 143, 0.12);
    border-bottom: 1px solid rgba(31, 93, 143, 0.12);
}

/* Comments Section - Premium */
.review-sec {
    border: 1px solid rgba(31, 93, 143, 0.16);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 46, 74, 0.12);
    margin-top: 36px;
    margin-bottom: 32px;
    overflow: hidden;
    background: #ffffff;
}

.review-sec h4 {
    color: var(--premium-primary);
    font-weight: 800;
    margin-top: 32px;
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.review-sec .card-body {
    padding: 24px;
    border-bottom: 1px solid rgba(31, 93, 143, 0.1);
    transition: background-color 0.3s ease;
}

.review-sec .card-body:last-child {
    border-bottom: none;
}

.review-sec .card-body:hover {
    background-color: rgba(31, 93, 143, 0.04);
}

.instructor-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.about-instructor {
    display: flex;
    gap: 16px;
    flex: 1;
}

.abt-instructor-img img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.instructor-detail h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--premium-primary);
    margin-bottom: 4px;
}

.instructor-detail h5 a {
    text-decoration: none;
    color: var(--premium-primary);
    transition: color 0.2s ease;
}

.instructor-detail h5 a:hover {
    color: var(--premium-secondary);
}

.rating {
    text-align: right;
    font-size: 0.9rem;
}

.average-rating {
    color: #7a8797;
    font-weight: 500;
}

.rev-info {
    font-size: 1rem;
    color: #2c3e50;
    font-style: italic;
    line-height: 1.6;
    margin: 12px 0 0 0;
    border-left: 4px solid var(--premium-accent);
    padding-left: 16px;
}

/* Comment Form - Premium */
.comment-sec {
    border: 1px solid rgba(31, 93, 143, 0.16);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 46, 74, 0.12);
    padding: 32px;
    margin-bottom: 48px;
    background: linear-gradient(135deg, rgba(31, 93, 143, 0.08) 0%, rgba(95, 178, 255, 0.14) 100%);
    position: relative;
    overflow: hidden;
}

.comment-sec::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(95, 178, 255, 0.22), transparent 70%);
    opacity: 0.6;
}

.comment-sec::after {
    content: '';
    position: absolute;
    bottom: -160px;
    left: -120px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(15, 46, 74, 0.18), transparent 70%);
    opacity: 0.5;
}

.comment-sec h5 {
    color: var(--premium-primary);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.comment-sec .form-control {
    border: 1px solid rgba(31, 93, 143, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.98rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(15, 46, 74, 0.12);
    position: relative;
    z-index: 1;
}

.comment-sec .form-control:focus {
    border-color: var(--premium-secondary);
    box-shadow: 0 0 0 3px rgba(31, 93, 143, 0.14);
    outline: none;
}

.comment-sec .form-group {
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.submit-section {
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.submit-btn {
    background: #4fa0e6;
    color: #ffffff;
    border: 1px solid rgba(79, 160, 230, 0.35);
    border-radius: 8px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: none;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

.submit-btn:hover {
    transform: translateY(-1px);
    background: #3a90d8;
}

.submit-btn:active {
    transform: translateY(0);
}

/* Sidebar improvements */
.sidebar-right {
    padding-left: 30px;
}

.card.blog-widget {
    margin-bottom: 32px;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(15, 46, 74, 0.12);
    border: 1px solid rgba(31, 93, 143, 0.16);
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
}

.card.blog-widget:hover {
    box-shadow: 0 18px 40px rgba(15, 46, 74, 0.16);
}

.card.blog-widget .card-header {
    background: linear-gradient(135deg, #0f2e4a 0%, #1f5d8f 65%, #2c79b3 100%);
    border: none;
    padding: 22px;
}

.card.blog-widget .card-header .card-title {
    color: #f6f3ed;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.card.blog-widget .card-body {
    padding: 24px;
}

.blog-section-head {
    margin-top: 10px;
    margin-bottom: 12px;
}

.blog-section-head h4 {
    font-size: 1.6rem;
    color: var(--premium-primary);
    margin-bottom: 6px;
}

.blog-section-head p {
    font-size: 0.98rem;
    color: #6c7a88;
    margin: 0;
}

/* Search widget */
.blog-search .search-form {
    display: flex;
    gap: 8px;
}

.blog-search .form-control {
    border: 1px solid rgba(31, 93, 143, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.blog-search .form-control:focus {
    border-color: var(--premium-secondary);
    box-shadow: 0 0 0 3px rgba(31, 93, 143, 0.14);
    outline: none;
}

.blog-search .btn {
    background: #2c79b3;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.blog-search .btn:hover {
    background: #0f2e4a;
    transform: translateY(-2px);
}

/* Latest Posts */
.latest-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-posts li {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(31, 93, 143, 0.18);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 46, 74, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-posts li:last-child {
    margin-bottom: 0;
}

.latest-posts li:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(15, 46, 74, 0.16);
}

.latest-posts .post-thumb {
    margin-right: 0;
    flex-shrink: 0;
}

.latest-posts .post-thumb img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(15, 46, 74, 0.14);
    transition: transform 0.3s ease;
}

.latest-posts li:hover .post-thumb img {
    transform: scale(1.05);
}

.latest-posts .post-info {
    flex: 1;
}

.latest-posts .post-info h4 {
    font-size: 0.98rem;
    margin: 0 0 8px 0;
    font-weight: 600;
    color: var(--premium-primary);
}

.latest-posts .post-info h4 a {
    text-decoration: none;
    color: var(--premium-primary);
    transition: color 0.2s ease;
}

.latest-posts .post-info h4 a:hover {
    color: var(--premium-secondary);
}

.latest-posts .post-info p {
    font-size: 0.82rem;
    color: #6f7f8a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Categories Widget */
.categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories li {
    margin-bottom: 12px;
}

.categories li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--premium-primary);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 1px solid rgba(31, 93, 143, 0.18);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 46, 74, 0.12);
}

.categories li a:hover {
    background: rgba(31, 93, 143, 0.1);
    color: var(--premium-secondary);
    transform: translateY(-2px);
}

.categories li a i {
    color: var(--logo-accent);
}

/* Responsive Design */
@media (max-width: 991px) {
    .sidebar-right {
        padding-left: 0;
        margin-top: 48px;
    }
    
    .blog {
        padding: 32px 24px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-content {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .comment-sec {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .blog {
        padding: 24px 16px;
        margin-bottom: 32px;
    }
    
    .blog-title {
        font-size: 1.7rem;
    }
    
    .blog-details-top-spacer {
        margin-top: 0;
        padding: 50px 0 70px;
    }
    
    .instructor-wrap {
        flex-direction: column;
    }
    
    .rating {
        text-align: left;
        margin-top: 12px;
    }
}
