@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root { 
    --blog-width: 1280px; 
    --post-col: 840px; 
    --sidebar-col: 360px; 
    --crimson: #DC143C; 
    --crimson-dark: #a50e2d;
    --crimson-glow: rgba(220, 20, 60, 0.12);
    --bg: #09090b; 
    --bg2: #0f0f12; 
    --bg3: #16161d; 
    --card: rgba(18, 18, 24, 0.7); 
    --border: rgba(255, 255, 255, 0.06); 
    --border-hover: rgba(255, 255, 255, 0.12);
    --text: #f1f5f9; 
    --text2: #94a3b8;
    --text3: #64748b;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-heading: 'Outfit', system-ui, sans-serif;
}

body { 
    background-color: var(--bg) !important; 
    color: var(--text) !important; 
    margin: 0; 
    font-family: var(--font); 
    -webkit-font-smoothing: antialiased;
}

/* Beautiful Blog Landing Hero */
.blog-hero { 
    background: linear-gradient(135deg, #09090b 0%, #170406 50%, #09090b 100%); 
    padding: 120px 0 80px; 
    text-align: center; 
    border-bottom: 1px solid var(--border); 
    position: relative; 
    overflow: hidden; 
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.blog-hero h1 { 
    font-family: var(--font-heading);
    font-size: clamp(32px, 7vw, 56px); 
    font-weight: 900; 
    letter-spacing: -0.03em; 
    margin-bottom: 20px; 
    color: #fff; 
    line-height: 1.1;
}

.blog-hero h1 em { 
    color: var(--crimson); 
    font-style: normal; 
    background: linear-gradient(to right, #ff4757, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(220, 20, 60, 0.2);
}

.blog-hero p { 
    font-size: clamp(16px, 3vw, 20px); 
    color: var(--text2); 
    max-width: 650px; 
    margin: 0 auto; 
    line-height: 1.6;
    font-weight: 400;
}

/* Layout container */
.blog-container { 
    padding: 80px 20px; 
    max-width: var(--blog-width);
    margin: 0 auto;
}

.blog-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 32px; 
}

/* Premium Card Designs */
.blog-post-card { 
    display: flex; 
    flex-direction: column; 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    height: 100%; 
    position: relative; 
    overflow: hidden;
}

.blog-post-card:hover { 
    border-color: rgba(220, 20, 60, 0.3); 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(220, 20, 60, 0.1) inset; 
}

.blog-post-card .card-content { 
    padding: 32px; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
}

.card-meta { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 16px; 
}

.post-date { 
    font-size: 11px; 
    color: var(--text3); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
}

.post-title { 
    font-family: var(--font-heading);
    font-size: 22px; 
    font-weight: 800; 
    line-height: 1.3; 
    margin-bottom: 14px; 
    color: #fff; 
    letter-spacing: -0.01em;
}

.post-title a { 
    color: inherit; 
    text-decoration: none; 
    transition: color 0.2s ease;
}

.post-title a:hover { 
    color: var(--crimson); 
}

.post-excerpt { 
    font-size: 14px; 
    color: var(--text2); 
    line-height: 1.7; 
    margin-bottom: 24px; 
    flex: 1; 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-top: 20px; 
    border-top: 1px solid var(--border); 
}

.author { 
    font-size: 13px; 
    font-weight: 600; 
    color: #fff; 
}

.read-more { 
    font-size: 13px; 
    font-weight: 700; 
    color: var(--crimson); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    transition: gap 0.2s ease;
}

.read-more:hover { 
    gap: 8px; 
}

/* Post Detail Content Layout */
.blog-page-layout { 
    display: grid;
    grid-template-columns: 1fr var(--sidebar-col);
    gap: 40px; 
    padding-top: 48px; 
    padding-bottom: 80px; 
    max-width: var(--blog-width); 
    margin: 0 auto; 
    padding-left: 20px; 
    padding-right: 20px; 
}

.post-main-col { 
    min-width: 0; 
}

.post-article { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: 20px; 
    padding: clamp(24px, 6vw, 56px); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); 
    margin-bottom: 40px;
}

.post-sidebar { 
    position: sticky; 
    top: 94px; 
    height: fit-content; 
}

.sidebar-sticky-wrapper { 
    display: flex; 
    flex-direction: column; 
    gap: 32px; 
}

.post-header { 
    margin-top: 0; 
    margin-bottom: 40px; 
    text-align: left; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 32px; 
}

.post-header .badge { 
    margin-bottom: 16px; 
    padding: 6px 14px; 
    font-size: 11px; 
    background: var(--crimson-glow); 
    color: var(--crimson); 
    border: 1px solid rgba(220, 20, 60, 0.25);
    border-radius: 20px; 
    display: inline-block; 
    font-weight: 800; 
    letter-spacing: 0.05em; 
    text-transform: uppercase;
}

.post-header h1 { 
    font-family: var(--font-heading);
    font-size: clamp(28px, 6vw, 42px); 
    line-height: 1.2; 
    font-weight: 900; 
    margin-bottom: 20px; 
    color: #fff; 
    letter-spacing: -0.02em; 
}

.post-meta-top { 
    color: var(--text2); 
    font-size: 14px; 
    font-weight: 500; 
}

.author-link { 
    color: var(--crimson); 
    text-decoration: none; 
    font-weight: 700; 
}

.author-link:hover {
    text-decoration: underline;
}

/* Beautiful readable article content columns */
.post-body { 
    font-size: 17px; 
    line-height: 1.85; 
    color: #cbd5e1; 
    max-width: 75ch; /* Ideal reading line length */
    margin: 0 auto;
}

.post-body p { 
    margin-bottom: 28px; 
}

.post-body h2 { 
    font-family: var(--font-heading);
    font-size: clamp(22px, 4vw, 28px); 
    font-weight: 800; 
    margin: 48px 0 20px; 
    color: #fff; 
    letter-spacing: -0.02em; 
}

.post-body h3 { 
    font-family: var(--font-heading);
    font-size: clamp(18px, 3vw, 22px); 
    font-weight: 700; 
    margin: 36px 0 16px; 
    color: #fff; 
    letter-spacing: -0.01em;
}

.post-body ul, .post-body ol {
    margin-bottom: 28px;
    padding-left: 24px;
}

.post-body li {
    margin-bottom: 12px;
}

/* Premium FAQ Accordions */
.faq-section {
    border-top: 1px solid var(--border);
    padding-top: 48px;
    margin-top: 48px;
}

.faq-section h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #fff;
}

.faq-item-v2 { 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    margin-bottom: 16px; 
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-toggle { 
    width: 100%; 
    padding: 20px 28px; 
    background: none; 
    border: none; 
    color: #fff; 
    text-align: left; 
    font-size: 16px; 
    font-weight: 700; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    gap: 16px;
}

.faq-toggle span {
    font-family: var(--font-heading);
}

.faq-toggle i {
    transition: transform 0.3s ease;
    color: var(--text3);
}

.faq-answer-v2 { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
    background: rgba(0, 0, 0, 0.15); 
}

.faq-answer-v2 p { 
    padding: 24px 28px; 
    margin: 0; 
    font-size: 15px; 
    color: var(--text2); 
    line-height: 1.7;
}

.faq-item-v2.active { 
    border-color: rgba(220, 20, 60, 0.3); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-item-v2.active .faq-toggle i {
    transform: rotate(180deg);
    color: var(--crimson);
}

.faq-item-v2.active .faq-answer-v2 { 
    max-height: 400px; 
}

/* Sidebar Widgets */
.sidebar-block { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 32px; 
}

.sidebar-block h3 { 
    font-family: var(--font-heading);
    font-size: 14px; 
    margin-bottom: 24px; 
    color: #fff; 
    font-weight: 800; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 12px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.share-buttons { display: flex; gap: 10px; }

.share-btn { 
    width: 44px; 
    height: 44px; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text2); 
    text-decoration: none; 
    transition: all 0.3s ease; 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid var(--border); 
    font-size: 16px; 
}

.share-btn:hover { 
    color: #fff;
    background: var(--crimson); 
    border-color: var(--crimson); 
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.3); 
}

.sidebar-posts { display: flex; flex-direction: column; gap: 18px; }

.sidebar-post-item a { 
    display: block; 
    font-size: 14px; 
    font-weight: 600; 
    line-height: 1.4; 
    color: var(--text); 
    text-decoration: none; 
    margin-bottom: 4px; 
    transition: color 0.2s;
}

.sidebar-post-item a:hover { 
    color: var(--crimson); 
}

/* Tool Shortcodes Cards styling */
.tool-shortcode-card { 
    padding: 32px; 
    margin: 40px 0; 
    border: 1px solid var(--border); 
    background: rgba(255, 255, 255, 0.015); 
    border-radius: 16px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: border-color 0.3s;
}

.tool-shortcode-card:hover {
    border-color: rgba(220, 20, 60, 0.25);
}

.card-main { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    margin-bottom: 20px; 
}

.card-logo, .fallback-logo { 
    width: 60px; 
    height: 60px; 
    border-radius: 12px; 
    object-fit: contain;
    flex-shrink: 0;
}

.card-info h3 { 
    margin: 0 0 6px; 
    font-size: 18px; 
    color: #fff; 
    font-weight: 800; 
}

.card-info h3 a { 
    color: inherit; 
    text-decoration: none; 
}

.card-info h3 a:hover {
    color: var(--crimson);
}

.card-desc { 
    font-size: 15px; 
    color: var(--text2); 
    margin-bottom: 24px; 
    line-height: 1.6; 
}

.btn-visit { 
    background: var(--crimson); 
    color: #fff; 
    text-decoration: none; 
    padding: 10px 24px; 
    border-radius: 8px; 
    font-size: 13px; 
    font-weight: 700; 
    display: inline-block; 
    transition: all 0.3s ease; 
}

.btn-visit:hover { 
    background: var(--crimson-dark);
    transform: translateY(-2px); 
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.4); 
}

/* Category Sections list layouts */
.category-section {
    margin-bottom: 72px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.blog-toc {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
}

/* Advertisements placement wrappers */
.ad-tag {
    font-size: 9px;
    font-weight: 800;
    color: var(--text3);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ad-top-banner, .ad-last-banner {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    text-align: center;
}

.ad-last-banner {
    margin-top: 40px;
}

@media (max-width: 1100px) {
    .blog-page-layout { 
        grid-template-columns: 1fr; 
        padding-top: 24px; 
        gap: 32px; 
    }
    .post-main-col { 
        order: 2; 
    }
    .post-sidebar { 
        display: flex;
        flex-direction: column;
        gap: 32px;
        order: 3;
        position: relative;
        top: 0;
        width: 100%;
    }
    .sidebar-sticky-wrapper {
        display: flex;
        flex-direction: column;
        gap: 32px;
        width: 100%;
    }
    .ad-sidebar { 
        order: 1; 
        margin-bottom: 0; 
        width: 100%; 
    }
}
