/* =========================
   LATEST POSTS
========================= */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Post Card */
.post-card {
    overflow: hidden;
}

/* Image */
.post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Content */
.post-content {
    margin-top: 10px;
}

.post-content h3 {
    font-size: 10px;
    margin: 10px 0;
    font-family: var(--font-heading);
}

.post-content h3 a {
    color: var(--dark);
    transition: 0.3s;
}

.post-content h3 a:hover {
    color: var(--primary);
}

.post-content p {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

/* Meta */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 10px;
    color: var(--text);
}

.read-more {
    color: var(--primary);
    font-weight: 600;
}

/* View All */
.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}




/* =========================
   FAQ SECTION
========================= */

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    background: #fff;
}

/* Question */
.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 20px;
    color: var(--primary);
}

/* Answer */
.faq-answer {
    display: none;
    padding: 0 20px 18px 20px;
    color: var(--text);
    line-height: 1.6;
}

/* Active state */
.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question::after {
    content: "−";
}





/* =========================
   CTA SECTION
========================= */

.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

/* Content */
.cta-content h2 {
    font-size: 25px;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 15px;
    opacity: 0.9;
    max-width: 400px;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 10px;
}

/* Override buttons for CTA */
.cta-section .btn-primary {
    background: #fff;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: #f1f5f9;
}

.cta-section .btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.cta-section .btn-outline:hover {
    background: #fff;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {

    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons a {
        width: 100%;
        text-align: center;
    }
}



/* =========================
   FOOTER BASE
========================= */

.site-footer {
    background: var(--dark);
    color: #fff;
    padding: 80px 0 20px;
}

/* =========================
   NEWSLETTER (INSIDE FOOTER)
========================= */

.footer-newsletter {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 60px;
}

.footer-newsletter h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.footer-newsletter p {
    opacity: 0.9;
    margin-bottom: 20px;
}

/* form */
.footer-newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-newsletter-form input {
    padding: 14px 18px;
    border-radius: var(--radius-full);
    border: none;
    width: 300px;
    outline: none;
}

/* button */
.footer-newsletter-form .btn-primary {
    background: #fff;
    color: var(--dark);
}

.footer-newsletter-form .btn-primary:hover {
    background: #e2e8f0;
}

/* =========================
   FOOTER GRID
========================= */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 15px;
}

.footer-col p,
.footer-col a {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--primary);
}

/* =========================
   BOTTOM BAR
========================= */

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .footer-newsletter-form {
        flex-direction: column;
    }

    .footer-newsletter-form input {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}