/*
Theme Name: AI Content Tools Child
Template: astra
Version: 1.0
Author: Ghazan Khan Blogger
Description: Child theme for Best Free AI Tools for Bloggers 2026
*/

@import url("../astra/style.css");

/* General Body */
body {
    font-family: 'Poppins', sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    background: linear-gradient(90deg, #f7b500, #ff6f61);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
}

/* HEADER STRUCTURE */
.custom-header {
    background: #000;
    padding: 8px 0;
    position: relative;
    z-index: 999;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

/* BRAND CENTER */
.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.brand-text {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}

/* TOGGLE + SEARCH BUTTON */
.menu-toggle,
.search-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* SLIDE MENU */
.slide-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100%;
    background: #111;
    padding-top: 60px;
    transition: 0.3s ease;
    z-index: 998;
}

.slide-menu.active {
    left: 0;
}

.mobile-menu {
    list-style: none;
    padding: 0;
}

.mobile-menu li {
    padding: 12px 20px;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

/* SEARCH BOX */
.search-box {
    position: absolute;
    top: 45px;
    right: 15px;
    background: #111;
    padding: 10px;
    display: none;
}

.search-box.active {
    display: block;
}

.search-box input {
    padding: 6px;
    border: none;
    width: 200px;
}

/* Filter Buttons */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 40px 0;
}

.filter-btn {
    padding: 10px 20px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s ease;
}

.filter-btn:hover {
    background: #facc15; /* yellow accent */
    color: #111;
}


/* Tools Grid */
.tools-grid {
    display: grid;
    gap: 20px;
    padding-bottom: 60px;
    /* Fluid grid: automatically fits as many cards as possible based on min width */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Tool Card Styling */
.tool-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.tool-card h3 {
    margin-bottom: 15px;
    color: #ff6f61;
}

.tool-card p {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ff6f61;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}

.btn:hover {
    background: #f7b500;
    color: #111;
}



/* ===== CONTENT WRAPPER DESIGN ===== */

.content-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 50px 40px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: #2c2c2c;
    position: relative;
    overflow: hidden;
}

/* Subtle Top Accent */
.content-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
}

/* Paragraph Styling */
.content-wrapper p {
    font-size: 17px;
    margin-bottom: 22px;
    color: #444;
}

/* Headings */
.content-wrapper h2 {
    font-size: 26px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 18px;
    padding-left: 15px;
    border-left: 5px solid #4f46e5;
    color: #111827;
    position: relative;
}

/* Lists */
.content-wrapper ul {
    padding-left: 0;
    margin-bottom: 25px;
}

.content-wrapper ul li {
    list-style: none;
    padding-left: 30px;
    margin-bottom: 12px;
    position: relative;
    font-size: 16px;
    color: #374151;
}

/* Custom Bullet */
.content-wrapper ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: bold;
    color: #10b981;
}

/* HR Styling */
.content-wrapper hr {
    border: none;
    height: 1px;
    margin: 50px 0;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
}

/* CTA Section Highlight */
.content-wrapper h2:last-of-type {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #fff;
    padding: 18px 20px;
    border-radius: 12px;
    border-left: none;
}

/* CTA Paragraph Styling */
.content-wrapper p:last-of-type {
    font-weight: 500;
}

/* Subtle Hover Effect */
.content-wrapper ul li:hover {
    transform: translateX(4px);
    transition: 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 35px 25px;
        margin: 30px 15px;
    }

    .content-wrapper h2 {
        font-size: 22px;
    }

    .content-wrapper p {
        font-size: 16px;
    }

    .content-wrapper ul li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 25px 18px;
    }

    .content-wrapper h2 {
        font-size: 20px;
    }
}



/* ============================= */
/*         FAQ SECTION           */
/* ============================= */

.faq-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 20px;
}

.faq-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.faq-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f7b500, #ff6f61);
    display: block;
    margin: 15px auto 0;
    border-radius: 4px;
}

/* FAQ Card */
.faq-item {
    background: #ffffff;
    margin-bottom: 20px;
    padding: 22px 25px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 5px solid #ff6f61;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* Question */
.faq-item h3 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    position: relative;
    padding-right: 30px;
}

/* Plus / Minus Icon */
.faq-item h3::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 22px;
    font-weight: bold;
    color: #ff6f61;
    transition: 0.3s ease;
}

/* Answer */
.faq-item p {
    margin-top: 15px;
    font-size: 15px;
    color: #555;
    display: none;
    line-height: 1.7;
}

/* Active State */
.faq-item.active {
    border-left: 5px solid #f7b500;
}

.faq-item.active h3::after {
    content: "−";
    color: #f7b500;
}

.faq-item.active p {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Smooth Fade */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .faq-title {
        font-size: 26px;
    }

    .faq-item {
        padding: 18px 20px;
    }

    .faq-item h3 {
        font-size: 16px;
    }

    .faq-item p {
        font-size: 14px;
    }
}



/* Footer */
footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}
