/* =========================================
   blogs.css – BLOG PAGE STYLES ONLY
   Updated: 
   - Header overlap fix (big title moved down)
   - Mobile edge padding
   - Author line styling
   - Optimized Telegram + contact buttons
   ========================================= */

:root {
    --blog-accent: #B89A6A;           /* matches --accent-gold */
    --content-line-length: 75ch;
    --telegram-blue: #0088cc;
    --telegram-dark: #006b9e;
}

/* ── Prevent fixed header from covering content ── */
.blog-hero,
.blog-posts,
.container:first-of-type {
    padding-top: 110px;
}

/* Main fix: push big hero title down below fixed menu bar */
.blog-hero {
    padding-top: 180px !important;    /* ← main value — adjust if too much/too little space */
    min-height: 75vh;
}

@media (max-width: 1024px) {
    .blog-hero {
        padding-top: 150px !important;
    }
    .blog-posts,
    .container:first-of-type {
        padding-top: 90px;
    }
}

@media (max-width: 640px) {
    .blog-hero {
        padding-top: 140px !important;
        min-height: 65vh;
    }
    .blog-posts,
    .container:first-of-type {
        padding-top: 80px;
    }
}

/* Hero section */
.blog-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(10,10,10,0.75), #0a0a0a);
    position: relative;
}

.blog-hero-content {
    max-width: 900px;
}

.blog-hero h1 {
    font-size: clamp(3.2rem, 9vw, 6rem);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.blog-hero h3 {
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
    font-weight: 400;
    opacity: 0.92;
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.65;
    opacity: 0.9;
}

/* Blog posts container */
.blog-posts {
    padding: 3rem 0 6rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Individual post */
.blog-post {
    background: rgba(255,255,255,0.028);
    border: 1px solid rgba(184,154,106,0.14);
    border-radius: 12px;
    margin-bottom: 3.5rem;
    overflow: hidden;
    transition: all 0.35s ease;
}

.blog-post:hover {
    transform: translateY(-6px);
    border-color: var(--blog-accent);
    box-shadow: 0 18px 36px rgba(0,0,0,0.28);
}

.post-header {
    padding: 2rem 2.5rem 1.2rem;
    border-bottom: 1px solid rgba(184,154,106,0.1);
    background: rgba(0,0,0,0.15);
}

.post-author {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 1.4rem;
    color: #ddd;
    font-style: italic;
}

.post-author::before {
    content: "Written by ";
    opacity: 0.7;
}

.blog-post h2 {
    font-size: clamp(2rem, 5.5vw, 2.9rem);
    margin: 0 0 1.4rem;
    line-height: 1.18;
}

.post-content {
    padding: 2.2rem 2.5rem 2.8rem;
    max-width: var(--content-line-length);
    margin: 0 auto;
}

.post-content p {
    margin-bottom: 1.4rem;
    font-size: 1.05rem;
    line-height: 1.72;
}

.post-content ul {
    margin: 1.4rem 0 1.8rem 1.2rem;
    list-style: none;
}

.post-content ul li {
    margin-bottom: 0.85rem;
    position: relative;
    padding-left: 1.6rem;
}

.post-content ul li::before {
    content: "•";
    color: var(--blog-accent);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.milestones li::before { content: none; }
.milestones li { padding-left: 0; }

.highlight-box {
    background: rgba(184,154,106,0.07);
    border-left: 5px solid var(--blog-accent);
    padding: 1.6rem 2rem;
    margin: 2.2rem 0;
    border-radius: 0 10px 10px 0;
    font-size: 1.03rem;
}

.highlight-box ul { margin: 0.4rem 0 0; }

blockquote {
    border-left: 5px solid var(--blog-accent);
    padding: 0.3rem 0 0.3rem 1.8rem;
    margin: 2.4rem 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.65;
    opacity: 0.88;
}

/* ── OPTIMIZED CONTACT SECTION ── */
.contact-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin: 2.5rem 0 1.5rem;
    padding: 1.8rem;
    background: rgba(184,154,106,0.04);
    border: 1px solid rgba(184,154,106,0.18);
    border-radius: 12px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button.primary.telegram-primary {
    background: var(--telegram-blue) !important;
    border-color: var(--telegram-blue) !important;
    color: white !important;
    font-weight: 600;
    padding: 1.1rem 2.4rem !important;
    font-size: 1.05rem !important;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.25s ease;
}

.cta-button.primary.telegram-primary:hover {
    background: var(--telegram-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.25);
}

.cta-button.primary.telegram-primary i {
    font-size: 1.3rem;
}

.secondary-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid rgba(184,154,106,0.4);
    color: var(--blog-accent);
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
    min-width: 140px;
    text-align: center;
}

.cta-button.secondary:hover {
    background: rgba(184,154,106,0.08);
    border-color: var(--blog-accent);
}

/* Trust signals */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    color: #ccc;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .contact-cta {
        padding: 1.6rem;
    }
    
    .cta-button.primary.telegram-primary {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
    }
    
    .secondary-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-button.secondary {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Final safety: content never touches screen edges */
@media (max-width: 480px) {
    .blog-posts,
    .post-content {
        padding-left: 5.5vw !important;
        padding-right: 5.5vw !important;
    }
    
    .post-header {
        padding-left: 5vw;
        padding-right: 5vw;
    }
}