@charset "utf-8";
/* ==========================================================================
   Designed & Maintained by : Digital Traffic Studios. - Inner Blog Page Stylesheet
   Depends on core variables from main.css and blog.css
   ========================================================================== */

/* --- Blog Detail Hero --- */
.blog-detail-hero {
    margin-top: 90px;
    background: var(--gradient-blue, linear-gradient(135deg, #293B7D 0%, #1a2550 100%));
    padding: 100px 0 80px;
    text-align: center;
    color: var(--bg-white, #ffffff);
    position: relative;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-detail-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 25px 0;
    color: #ffffff;
}

.blog-meta-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
}

.meta-item i {
    color: var(--accent-red, #DD2727);
    margin-right: 6px;
}

/* --- Main Layout Grid --- */
.blog-article-wrapper {
    background-color: #f7f9fc; 
    padding: 0 0 80px;
    position: relative;
    overflow-x: clip; /* Replaces 'visible' to fix the mobile layout */
}

/* Ambient glow for glassy reflection */
.blog-article-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(41, 59, 125, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.blog-layout-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: start;
    position: relative;
    z-index: 1;
}

.article-container {
    width: 100%;
    min-width: 0; /* CRITICAL: Prevents grid items from overflowing */
    background: #ffffff;
    border-radius: 15px;
    transform: translateY(-40px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    padding: 40px 40px; /* Reduced side padding from 60px to 40px */
}

/* --- Floating / Scrolling Glassy Sidebar --- */
.glassy-sidebar {
    min-width: 0; /* Prevents sidebar blowout */
    position: sticky;
    top: 120px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 35px 30px;
    margin-top: -40px; /* Replaced transform: translateY(-40px) */
    box-shadow: 0 20px 40px rgba(41, 59, 125, 0.06), inset 0 0 0 1px rgba(255,255,255,0.5);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glassy-sidebar:hover {
    box-shadow: 0 30px 50px rgba(41, 59, 125, 0.1), inset 0 0 0 1px rgba(255,255,255,0.8);
    background: rgba(255, 255, 255, 0.6);
}

.sidebar-title {
    font-size: 1.4rem;
    color: var(--primary-blue, #293B7D);
    margin-bottom: 30px;
    font-weight: 700;
    display: inline-block;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--accent-red, #DD2727);
    border-radius: 3px;
}

.scrolling-blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scrolling-blog-list li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scrolling-blog-list li a:hover {
    background: #ffffff;
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 10px 25px rgba(41, 59, 125, 0.08);
    border-color: #ffffff;
}

.icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--bg-light-gray, #f9f9f9);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-blue, #293B7D);
    font-size: 1.25rem;
    margin-right: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.scrolling-blog-list li a:hover .icon-box {
    background: var(--accent-red, #DD2727);
    color: #ffffff;
    border-radius: 50%;
    transform: rotate(10deg);
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.link-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-black, #1a1a1a);
    transition: color 0.3s ease;
}

.scrolling-blog-list li a:hover .link-text {
    color: var(--primary-blue, #293B7D);
}

.arrow-icon {
    color: var(--accent-red, #DD2727);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.scrolling-blog-list li a:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* --- Imagery --- */
.feature-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.feature-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.inline-image {
    margin: 40px 0;
    text-align: center;
}

.inline-image img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.image-caption {
    display: block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-gray, #555555);
    font-style: italic;
}

/* --- Typography & Content --- */
.blog-content {
    color: var(--text-black, #1a1a1a);
    font-size: 1.1rem;
    line-height: 1.8;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-blue, #293B7D);
    margin-bottom: 40px;
    line-height: 1.7;
}

.blog-content h2 {
    font-size: 1.8rem;
    color: var(--primary-blue, #293B7D);
    margin: 45px 0 20px;
    font-weight: 700;
}

.blog-content p {
    margin-bottom: 25px;
    color: var(--text-gray, #555555);
}

.blog-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
    list-style-type: none;
}

.blog-content ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    color: var(--text-gray, #555555);
}

.blog-content ul li::before {
    content: '\f058'; /* FontAwesome check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-red, #DD2727);
}

.blog-content strong {
    color: var(--text-black, #1a1a1a);
    font-weight: 600;
}

/* --- Blockquote --- */
.custom-blockquote {
    background: var(--bg-light-gray, #f9f9f9);
    border-left: 5px solid var(--accent-red, #DD2727);
    padding: 30px 40px;
    margin: 40px 0;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-blue, #293B7D);
    font-weight: 500;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.custom-blockquote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 60px;
    color: rgba(221, 39, 39, 0.15);
    font-family: Georgia, serif;
}

/* --- Inline CTA Box --- */
.article-cta-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #172452 100%);
    padding: 40px;
    border-radius: 12px;
    margin: 50px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(41, 59, 125, 0.2);
}

.cta-box-content h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.cta-box-content p {
    margin-bottom: 0;
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.6;
}

.cta-box-btn {
    background-color: var(--accent-red, #DD2727);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-box-btn:hover {
    background-color: #ffffff;
    color: var(--accent-red, #DD2727);
    transform: translateY(-3px);
}

/* --- Article Footer / Share Links --- */
.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-links span {
    font-weight: 600;
    color: var(--primary-blue, #293B7D);
    margin-right: 10px;
}

.share-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: transform 0.3s, opacity 0.3s;
}

.share-icon:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

.facebook { background-color: #1877F2; }
.twitter { background-color: #000000; }
.linkedin { background-color: #0A66C2; }
.whatsapp-share { background-color: #25D366; }

/* --- Responsive Layout Configurations --- */
@media (max-width: 1024px) {
    .blog-layout-container {
        grid-template-columns: 1fr 300px;
        gap: 30px;
        padding: 0 20px;
    }
    .article-container {
        padding: 30px 40px;
    }
}

@media (max-width: 992px) {
    .blog-layout-container {
        grid-template-columns: 1fr;
    }
    .blog-detail-hero h1 {
        font-size: 2.4rem;
    }
    .article-cta-box {
        flex-direction: column;
        text-align: center;
    }
    .cta-box-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Reposition sidebar for smaller screens */
    .glassy-sidebar {
        position: relative;
        top: 0;
        margin-top: -20px; /* Replaced transform: translateY(-20px) */
        margin-bottom: 40px; 
        box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    }
}

@media (max-width: 768px) {
    .blog-detail-hero {
        padding: 80px 20px 60px;
    }
    .blog-detail-hero h1 {
        font-size: 2rem;
    }
    .article-container {
        padding: 25px 20px;
        transform: translateY(-20px);
        margin: 0;
        width: 100%;
    }
    .glassy-sidebar {
        padding: 30px 20px;
        margin: 0;
    }
    .blog-content h2 {
        font-size: 1.5rem;
    }
    .custom-blockquote {
        padding: 20px 25px;
        font-size: 1.15rem;
    }
    .article-footer {
        flex-direction: column;
        gap: 20px;
    }
}