/* === Import Poppins font === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* =========================================================================
   Global Blog & Blog Post Template Styles (blog_post_template.css)
   ========================================================================= */

@import url('../style.css');

:root {
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --blog-primary: var(--primary-navy);
    --blog-accent: var(--accent-orange);
    --blog-highlight: var(--highlight-yellow);
    --blog-text-dark: var(--color-text-main);
    --blog-text-light: var(--color-text-muted);
    --blog-bg-light: var(--color-surface);
    --blog-bg-white: var(--color-bg);
    --blog-border: var(--color-border);
}

/* ======================================================
   DEFINITIVE FIX FOR HEADER OVERLAP
====================================================== */
.header-spacer {
    height: 0;
    display: none;
}

/* ====================================================== */


/* =========================================================================
   Blog Page Specific Styles
   ========================================================================= */

body.careers-body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-primary);
    transition: var(--transition-theme);
}

.blog-main {
    padding-top: 0;
}

.blog-hero-section {
    background: linear-gradient(rgba(26, 34, 56, 0.8), rgba(26, 34, 56, 0.8)), url('../Images/Services/marketing.png');
    background-size: cover;
    background-position: center;
    padding: calc(var(--header-height) + 4rem) var(--container-padding) 4rem;
    text-align: center;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-header h1 {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--blog-bg-white);
}

.blog-header h1 span {
    background: linear-gradient(90deg, var(--blog-accent), var(--blog-highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-header p {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 1rem auto 0;
}

.blog-content-section {
    padding: 3rem var(--container-padding);
}

/* =========================================================================
   NEW: Section Title Styles
   ========================================================================= */
.section-title-modern {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--blog-primary);
    text-align: center;
    margin-bottom: 3rem;
}


/* =========================================================================
   NEW: Recent Post Section
   ========================================================================= */
.recent-post-section {
    padding: 3rem 1rem;
    background-color: var(--blog-bg-white);
}

.recent-post-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--blog-bg-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.recent-post-card:hover .recent-post-image img {
    transform: scale(1.05);
}

.recent-post-content {
    padding: 2.5rem;
}

.recent-post-content .card-category {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
    background: var(--blog-accent);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.recent-post-content .card-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

.recent-post-content .card-excerpt {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.recent-post-content .card-read-more {
    font-size: 1rem;
}

@media (max-width: 992px) {
    .recent-post-card {
        grid-template-columns: 1fr;
    }
}


/* =========================================================================
   Blog Grid & Filters (Unchanged)
   ========================================================================= */

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

.filter-btn {
    font-family: var(--font-secondary);
    background: none;
    border: 1px solid var(--blog-border);
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--blog-text-light);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--blog-accent);
    color: #fff;
    border-color: var(--blog-accent);
}

.filter-btn.active {
    background: var(--blog-primary);
    color: #fff;
    border-color: var(--blog-primary);
}

.blog-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card-modern {
    background: var(--blog-bg-white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.blog-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--blog-accent);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--blog-text-light);
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
}

.card-title a {
    color: var(--blog-primary);
    text-decoration: none;
}

.card-excerpt {
    font-size: 1rem;
    color: var(--blog-text-light);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card-read-more {
    font-weight: 600;
    color: var(--blog-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-read-more:hover {
    color: var(--blog-primary);
}


/* =========================================================================
   NEW: Recommended Blogs Scroller
   ========================================================================= */

.recommended-blogs-section {
    background: var(--blog-bg-light);
    padding: 3rem 0;
    overflow: hidden;
}

.recommended-slider-container {
    position: relative;
}

.recommended-slider {
    display: flex;
}

.recommended-slider:hover {
    animation-play-state: paused;
}

.recommended-slider .blog-card-modern {
    width: 320px;
    margin-right: 20px;
    flex-shrink: 0;
}


/* =========================================================================
   NEW: Revamped CTA Section
   ========================================================================= */

.blog-cta-revamped {
    padding: 4rem 1rem;
    background-color: var(--blog-bg-white);
    text-align: center;
}

.cta-title-revamped {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #1A2238;
    /* Core text color */
    margin-bottom: 1rem;
}

.cta-title-revamped span {
    background: linear-gradient(90deg, #FF6A3D, #F4DB7D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle-revamped {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    /* Increased size */
    color: #555;
    max-width: 650px;
    /* Increased width */
    margin: 0 auto 2.5rem;
    /* Increased bottom margin */
    line-height: 1.7;
}

.btn-cta-revamped {
    display: inline-block;
    padding: 1.1rem 3.5rem;
    /* Increased padding */
    background: var(--blog-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 106, 61, 0.4);
}

.btn-cta-revamped:hover {
    background: #e65c34;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 106, 61, 0.5);
}


/* =========================================================================
   Blog Post Specific Styles
   ========================================================================= */

body.blog-post-page {
    background-color: var(--blog-bg-white);
}

.article-title-modern {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--blog-primary);
    margin: 1.5rem 0 0.5rem 0;
}

.article-meta-modern {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blog-accent);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.article-content-modern {
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.article-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 500;
    color: var(--blog-primary);
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--blog-accent);
    padding-left: 1.5rem;
}

.article-content-modern h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--blog-primary);
    margin: 3rem 0 1.5rem;
}

.article-content-modern p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--blog-text-light);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* === NEW STYLES FOR DETAILED BLOG POST === */

.article-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--blog-border);
}

.data-table thead {
    background-color: var(--blog-primary);
    color: #fff;
    font-family: var(--font-primary);
}

.data-table th {
    font-weight: 700;
}

.data-table tbody tr:nth-child(even) {
    background-color: var(--blog-bg-light);
}

.data-table tbody tr:hover {
    background-color: var(--blog-bg-white);
}

.pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.pros-cons-list ul {
    list-style: none;
    padding: 0;
}

.pros-cons-list li {
    font-size: 1.1rem;
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.pros-cons-list h4 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.pros .pros-cons-list h4 {
    color: #28a745;
}

.pros li::before {
    content: '✓';
    color: #28a745;
    font-weight: 800;
    position: absolute;
    left: 0;
}

.cons .pros-cons-list h4 {
    color: #dc3545;
}

.cons li::before {
    content: '✗';
    color: #dc3545;
    font-weight: 800;
    position: absolute;
    left: 0;
}

.case-study-card {
    background: var(--blog-bg-light);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 3rem 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: center;
}

.case-study-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.customer-review-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--blog-bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--blog-accent);
    margin: 3rem 0;
}

.customer-review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.customer-review-content blockquote {
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.customer-review-content cite {
    font-weight: 600;
    color: var(--blog-primary);
}

.video-documentary {
    width: 100%;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
}

.real-life-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.real-life-image {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.real-life-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.faq-container {
    margin: 3rem 0;
}

.faq-item {
    border-bottom: 1px solid var(--blog-border);
}

.faq-item summary {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1.5rem 0;
    cursor: pointer;
    position: relative;
    outline: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 0 1.5rem 0;
}

/* =========================================================================
   NEW: Comments Section Styles
   ========================================================================= */

.comments-section {
    padding: 4rem 1rem;
    background-color: var(--blog-bg-light);
}

.comments-section .section-container {
    max-width: 800px;
    margin: 0 auto;
}

.comment-form-container {
    background-color: var(--blog-bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

#comment-form .form-group {
    margin-bottom: 1.5rem;
}

#comment-form input,
#comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#comment-form input:focus,
#comment-form textarea:focus {
    outline: none;
    border-color: var(--blog-accent);
    box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.2);
}

.btn-submit-comment {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--blog-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 106, 61, 0.3);
}

.btn-submit-comment:hover {
    background: #e65c34;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 61, 0.4);
}

.comments-list .comment-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--blog-bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    animation: slideInUp 0.6s ease-out;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-author {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--blog-primary);
    margin-bottom: 0.25rem;
}

.comment-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--blog-text-dark);
    margin: 0.5rem 0;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--blog-text-light);
    margin-top: 0.5rem;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================= 
   RESPONSIVENESS FIXES FOR BLOG PAGES
   ========================================================================= */

@media (max-width: 1024px) {
    .blog-header h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .blog-hero-section {
        min-height: 50vh;
        padding: 4rem var(--container-padding);
    }
}

@media (max-width: 768px) {
    .blog-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .blog-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .recent-post-content {
        padding: var(--container-padding);
    }

    .pros-cons-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .case-study-card {
        grid-template-columns: 1fr;
        padding: var(--container-padding);
    }

    .case-study-photo {
        height: 250px;
    }

    .real-life-images {
        grid-template-columns: 1fr 1fr;
    }

    .customer-review-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .comment-item {
        flex-direction: column;
    }

    .comment-avatar img {
        width: 40px;
        height: 40px;
    }

    .section-title-modern {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .header-spacer {
        height: 70px;
    }

    /* Slider tweaks for mobile */
    .recommended-slider-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }

    .recommended-slider {
        animation: none !important;
        width: auto !important;
        display: flex;
        padding-inline: 1rem;
    }

    .recommended-slider .blog-card-modern {
        width: 280px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 2.2rem;
    }

    .cta-title-revamped {
        font-size: 2rem;
    }

    .cta-subtitle-revamped {
        font-size: 1rem;
    }

    .btn-cta-revamped {
        padding: 0.9rem 2rem;
        width: 100%;
        text-align: center;
    }

    .real-life-images {
        grid-template-columns: 1fr;
    }

    .faq-item summary {
        font-size: 1.1rem;
    }

    .recommended-slider .blog-card-modern {
        width: 260px;
    }
}