/* ========================================
   BLOG & CATEGORY PAGES STYLES
   ======================================== */

/* ========================================
   CASE STUDY CATEGORY PAGE
   ======================================== */

/* Hero Section */
.case-study-hero {
    background: 
    radial-gradient(
      circle 500px at 40% 20%,
      rgba(247, 255, 230, 0.15) 1%,
      rgba(235, 255, 252, 0.08) 20%,
      transparent 50%
    ),
    radial-gradient(
      circle 800px at 80% 0%,
      rgba(206, 255, 147, 0.12) 5%,
      transparent 40%
    ),
    #032d42;
    padding: 100px 40px 80px 40px;
}

.case-study-hero-container {
    width: 90vw;
      max-width: 1400px;
    margin: 0 auto;
}

/* Breadcrumbs */
.case-study-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 14px;
}

.case-study-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.case-study-breadcrumbs a:hover {
    opacity: 0.8;
}

.case-study-breadcrumbs span {
    color: #ffffff;
}

.breadcrumb-separator {
    color: #ffffff;
    opacity: 0.6;
    font-size: 2rem;
}

/* Header with Icon */
.case-study-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.case-study-icon {
    width: 64px;
    height: 64px;
    background: #4dd4d5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    flex-shrink: 0;
}

.case-study-hero-title {
    font-size: 3rem;
    font-weight: 600 !important;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

.case-study-hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e0e6f0;
    margin: 0;
    max-width: 900px;
}

/* Posts Section */
.case-study-posts-section {
    padding: 0;
    margin-top: 25px;
    background: #ffffff;
    overflow-x: hidden;
}

.case-study-container {
    width: 90vw;
      max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Case Study Post */
.case-study-post {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 0;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid #e8ecf3;
    position: relative;
}

.case-study-post.featured-post {
    background: #ffffff;
}

.case-study-post-content {
    order: 1;
    padding: 80px 60px 80px 0px;
    max-width: 100%;
    z-index: 2;
}

.case-study-post-image {
    order: 2;
    position: relative;
    height: 320px !important;
}

/* Labels */
.case-study-labels {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.case-study-labels span {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.label-featured {
    background: #00fea2;
    color: #333;
}

.label-category {
    background: transparent;
    color: #333;
    border: 1px solid #00fea2;
}

/* Title */
.case-study-post-title {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #1a2849;
}

.case-study-post-title a {
    color: #1a2849;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-study-post-title a:hover {
    font-weight: 800;
}

/* Excerpt */
.case-study-post-excerpt {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
}

/* Read Time */
.case-study-read-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a2849;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.case-study-read-time svg {
    flex-shrink: 0;
}

/* Image Container - ALWAYS extends to screen edge */
.case-study-post-image {
    position: relative;
    height: 370px;
    /* Calculate: from grid column to edge of screen */
    width: calc(100vw - ((100vw - 1400px) / 2) - (1400px * 0.3));
    margin-left: auto;
}

/* For screens wider than 1400px container */
@media (min-width: 1401px) {
    .case-study-post-image {
        width: calc(50vw + (1400px * 0.2));
    }
}

/* Make the link container relative */
.case-study-post-image a {
    position: relative; /* ADD THIS */
    display: block;
    height: 100%;
    width: 100%;
}


.case-study-post-image img:not(.overlay-image) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Curved left edge - matches the design */
    border-radius: 210px 0 0 210px;
    position: relative;
    z-index: 0;
}

/* Transparent Overlay Circles - On top of image, extending from edge */
.case-study-post-image::before,
.case-study-post-image::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}





/* Overlay image on TOP of the post thumbnail */
.overlay-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 1100px;
    
    object-fit: contain;
    object-position: right top;
    z-index: 2; /* Higher than the thumbnail */
    pointer-events: none;
}




/* Pagination */
.case-study-pagination {
    padding: 60px 40px;
    text-align: center;
}

.case-study-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.case-study-pagination a,
.case-study-pagination span {
    display: inline-block;
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.case-study-pagination a:hover {
    background: #00fea2;
    color: #333;
    border-color: #00fea2;
}

.case-study-pagination .current {
    background: #00fea2;
    color: #333;
    border-color: #00fea2;
}

/* No Case Studies */
.no-case-studies {
    text-align: center;
    padding: 100px 40px;
}

.no-case-studies p {
    font-size: 18px;
    color: #666666;
}


/* ========================================
   RESPONSIVE DESIGN - BLOG PAGES
   ======================================== */

@media (max-width: 1400px) {
    .case-study-post-content {
        padding: 80px 40px 80px 40px;
    }
}

@media (max-width: 1200px) {
    .case-study-post {
        grid-template-columns: 35% 65%;
    }
    
    .case-study-post-content {
        padding: 60px 30px 60px 30px;
    }
    
    .case-study-post-title {
        font-size: 34px;
    }
    
    .case-study-post-image {
        width: calc(100vw - ((100vw - 1200px) / 2) - (1200px * 0.35));
    }
    
    .case-study-post-image::before {
        width: 400px;
        height: 400px;
        right: -100px;
    }
    
    .case-study-post-image::after {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 1024px) {
    .case-study-hero {
        padding: 60px 30px 60px 30px;
    }
    
    .case-study-hero-title {
        font-size: 2.5rem;
    }
    
    .case-study-post {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .case-study-post-content {
        padding: 50px 30px;
        max-width: 100%;
        order: 2;
    }
    
    .case-study-post-image {
        order: 1;
        width: 100%;
        height: 350px;
        margin-left: 0;
    }
    
    .case-study-post-image img:not(.overlay-image) {
        border-radius: 0;
    }
    
    .case-study-post-image::before,
    .case-study-post-image::after {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile */
    .case-study-hero {
        padding: 80px 15px 40px 15px !important;
    }
    
    .case-study-hero-container {
        width: 95vw !important;
        padding: 0 !important;
    }
    
    /* Breadcrumbs Mobile */
    .case-study-breadcrumbs {
        font-size: 0.75rem !important;
        margin-bottom: 20px !important;
        flex-wrap: wrap;
    }
    
    .breadcrumb-separator {
        font-size: 1.2rem !important;
    }
    
    /* Header Mobile */
    .case-study-header {
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .case-study-icon {
        width: 48px !important;
        height: 48px !important;
    }
    
    .case-study-icon svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .case-study-hero-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .case-study-hero-description {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Posts Container Mobile */
    .case-study-container {
        width: 95vw !important;
        padding: 0 !important;
    }
    
    /* Individual Post Mobile */
    .case-study-post {
        grid-template-columns: 1fr !important;
        margin-bottom: 40px !important;
        border-bottom: none !important;
    }
    
    .case-study-post-content {
        order: 2 !important;
        padding: 25px 15px !important;
    }
    
    /* Labels Mobile */
    .case-study-labels {
        gap: 8px !important;
        margin-bottom: 15px !important;
        flex-wrap: wrap;
    }
    
    .case-study-labels span {
        padding: 4px 10px !important;
        font-size: 0.65rem !important;
        font-weight: 600 !important;
    }
    
    /* Title Mobile */
    .case-study-post-title {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }
    
    /* Excerpt Mobile */
    .case-study-post-excerpt {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }
    
    /* Read Time Mobile */
    .case-study-read-time {
        font-size: 0.75rem !important;
    }
    
    /* Image Mobile - Rectangular, no curves */
    .case-study-post-image {
        order: 1 !important;
        width: 100% !important;
        height: 220px !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .case-study-post-image a {
        border-radius: 0 !important;
    }
    
    .case-study-post-image img:not(.overlay-image) {
        border-radius: 12px !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Hide overlay image on mobile */
    .overlay-image {
        display: none !important;
    }
    
    /* Hide decorative elements on mobile */
    .case-study-post-image::before,
    .case-study-post-image::after {
        display: none !important;
    }
    
    /* Pagination Mobile */
    .case-study-pagination {
        padding: 40px 15px !important;
    }
    
    .case-study-pagination a,
    .case-study-pagination span {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .case-study-hero {
        padding: 70px 10px 30px 10px !important;
    }
    
    .case-study-hero-title {
        font-size: 1.5rem !important;
    }
    
    .case-study-hero-description {
        font-size: 0.95rem !important;
    }
    
    .case-study-post-title {
        font-size: 1.3rem !important;
    }
    
    .case-study-post-excerpt {
        font-size: 0.95rem !important;
    }
    
    .case-study-post-image {
        height: 200px !important;
    }
    
    .case-study-labels span {
        font-size: 0.6rem !important;
        padding: 3px 8px !important;
    }
}











/* ========================================
   SINGLE BLOG POST PAGE STYLES
   ======================================== */

/* Hero Section */
.single-post-hero {
    background: #ffffff;
    padding: 40px 0 0 0;
    overflow: hidden;
       position: relative;
}

.single-hero-container {
    width: 90vw;
      max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 0 40px;
    position: relative;  /* ADD THIS LINE */
    z-index: 10;
    min-height: 200px !important;
}

/* BREADCRUMB FIX - Must be at top */
.single-breadcrumbs {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 50px 0 10px !important;
    font-size: 0.9rem !important;
    color: #1a2849 !important;
   
    padding: 10px 0 !important;
    min-height: 30px !important;
}

.single-breadcrumbs a {
    color: #1a2849 !important;
    text-decoration: none !important;
}

.single-breadcrumbs .separator {
    color:#63de4e !important;
    font-size: 2rem;
}

.single-breadcrumbs span {
    color: #1a2849 !important;
}

.single-breadcrumbs a:hover {
    text-decoration: underline;
    font-weight: 700;
}



/* Single Post Title */
.single-post-title {
    font-size: 3rem;
    font-weight: 600;
    color: #1a2849;
        max-width: 85%;
    line-height: 1.3;
    margin: 0 0 30px 0;
    
}

.single-post-excerpt {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #333333;
    max-width: 85%;
    margin: 0 0 60px 0;
}

/* Featured Image Section - Extends to edge with circles */
.single-featured-image {
    position: relative;
    width: calc(100vw - ((100vw - 1300px) / 2));
    margin-left: calc((100vw - 1300px) / -2);
    height: 400px;
    overflow: visible;
}

/* For centered container, extend from middle to right edge */
@media (min-width: 1440px) {
    .single-featured-image {
        width: calc(50vw + 700px);
        margin-left: 0;
    }
}

.single-featured-image img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Curved left edge like a wave */
    border-radius: 0 200PX 200PX 0;
    position: relative;
    z-index: 0;
}




/* Content Section */
.single-post-content-section {
    padding: 20px 20px;
    background: #ffffff;
}

.single-content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
}

/* Left Sidebar */
.single-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-box {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-box:last-child {
    border-bottom: none;
}

.sidebar-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #999999;
    margin: 0 0 10px 0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a2849;
    margin: 0 0 10px 0;
}

.sidebar-value {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #1a2849;
    margin: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
    margin-bottom: 30px;
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f2f2f2;
}

.sidebar-nav h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a2849;
    margin: 0 0 15px 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 10px;
    
}

.sidebar-nav a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
}

.sidebar-nav a:hover {
    text-decoration: underline;
}

/* Main Content */
.single-main-content {
    max-width: 800px;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a2849;
    margin: 0 0 20px 0;
}

.content-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.single-main-content h2 {
    font-size: 2rem;
    font-weight: 500;
    color: #1a2849;
    margin: 40px 0 20px 0;
}

.content-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a2849;
    margin: 30px 0 15px 0;
}

.content-body p {
    font-size: 5rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 20px;
}

/* Quote Block */
.wp-block-quote {
    background: #e3fff5;
    padding: 70px;
    margin: 40px 0;
    position: relative;
    border-radius: 8px;
}

/* Opening quote icon - top left */
.wp-block-quote::before {
    content: '"';
    padding: 15px ;
    font-size: 5rem;
    font-weight: 700;
    color: #1a2849;
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 15px;
    line-height: 1;
    font-family: Georgia, serif;
}

/* Closing quote icon - bottom right */
.wp-block-quote::after {
    content: '"';
    font-size: 5rem;
    font-weight: 700;
    color: #1a2849;
    opacity: 0.2;
    position: absolute;
    bottom: -10px;
    right: 15px;
    line-height: 1;
    font-family: Georgia, serif;
}

.wp-block-quote p {
    font-size: 1.3rem;
    color: #1a2849;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wp-block-quote {
        padding: 50px 20px !important;
        margin: 30px 0 !important;
    }
    
    .wp-block-quote::before {
        font-size: 3.5rem !important;
        top: 5px !important;
        left: 10px !important;
    }
    
    .wp-block-quote::after {
        font-size: 3.5rem !important;
        bottom: -5px !important;
        right: 10px !important;
    }
    
    .wp-block-quote p {
        font-size: 1.3rem !important;
        padding: 10px 0;
    }
}

/* Verse Block Styling */
.wp-block-verse {

   
    padding: 20px 0;
    font-family: inherit;
    font-size: 1.2rem !important;
    line-height: 1.6;
    color: #333333;
   
 
}

.single-main-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #222;
}









/* Related Posts Section */
.related-posts-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.related-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-container h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a2849;
    margin: 0 0 40px 0;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-thumbnail {
    display: block;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-thumbnail img {
    transform: scale(1.05);
}

.related-content {
    padding: 25px;
}

.related-tag {
    display: inline-block;
    padding: 4px 12px;
    background: transparent;
    color: #333;
    border: 1px solid #00fea2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.related-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.related-title a {
    color: #1a2849;
    text-decoration: none;
}

.related-title a:hover {
    color: #333;
    font-weight: 700;
}

.related-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 15px;
}

.related-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.related-link:hover {
    text-decoration: underline;
}

/* Responsive - Single Post */
@media (max-width: 1024px) {
    .single-content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .single-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== MOBILE RESPONSIVE FIXES ========== */

@media (max-width: 768px) {
    /* Hide entire left sidebar navigation on mobile */
    .single-sidebar {
        display: none !important;
    }
    

    /* Adjust container to full width on mobile */
    .single-hero-container {
        width: 95vw !important;
        padding: 0 15px !important;
    }
    
    /* Single column layout on mobile */
    .single-content-container {
        grid-template-columns: 1fr !important;
        padding: 0 15px !important;
        width: 95vw !important;
        margin: 0 auto !important;
    }
    
    /* Smaller breadcrumb text */
    .single-breadcrumbs {
        font-size: 0.75rem !important;
        margin: 20px 0 10px !important;
        flex-wrap: wrap !important;
    }
    
    .single-breadcrumbs .separator {
        font-size: 1.2rem !important;
    }
    
    /* Adjust title and excerpt for mobile */
    .single-post-title {
        font-size: 2.0rem !important;
        max-width: 100% !important;
        margin: 0 0 0 0 !important;
    }
    
    .single-post-excerpt {
        font-size: 1.1rem !important;
        max-width: 100% !important;
        margin: 0 0 30px 0 !important;
        display: none !important;
    }
    
    /* Featured image mobile adjustments */
    .single-featured-image {
        width: 100% !important;
        margin-left: 0 !important;
        height: 250px !important;
        border-radius: 0 !important;
    }
    
    .single-featured-image img {
        width: 100% !important;
        border-radius: 20px !important;
    }
    
    /* Content section mobile padding */
    .single-post-content-section {
        padding: 0px 10px !important;
    }
    
    /* Main content adjustments */
    .single-main-content {
        font-size: 1.1rem !important;
        padding: 0 !important;
    }
    
    .content-section h2,
    .single-main-content h2 {
        font-size: 1.4rem !important;
        font-weight: 600;
        margin: 30px 0 15px 0 !important;
    }
    
    .content-section p,
    .content-body p {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
    }
    
    

    /* Stack related posts on mobile */
    .related-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Adjust related post cards for mobile */
    .related-post-card {
        margin-bottom: 15px;
    }
    
    .related-thumbnail img {
        height: 180px !important;
    }
    
    .related-content {
        padding: 20px !important;
    }
    
    .related-title {
        font-size: 1.2rem !important;
    }
    
    .related-excerpt {
        font-size: 0.9rem !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .single-hero-container {
        width: 95vw !important;
        padding: 0 10px !important;
    }
    
    .single-breadcrumbs {
        font-size: 0.7rem !important;
        margin: 20px 0 10px !important;
    }
    
    .single-post-title {
        font-size: 2rem !important;
       
    }
    
    .single-post-excerpt {
        font-size: 1rem !important;
    }
    
    .single-featured-image {
        height: 150px !important;
    }
}

