/* ==========================================================================
   TOOL SEO COMPONENT — PURE BLACK LIQUID GLASS THEME (WITH ALICE FONT)
   ========================================================================== */

.tool-seo-section {
    background: transparent;
    padding: 70px 20px 40px;
    margin-top: 60px;
    position: relative;
    font-family: 'Alice', serif;
    color: #ffffff;
}

.ppp-seo-container {
    max-width: 1060px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-family: 'Alice', serif;
}

/* Master Title (Hero Gradient with Alice Font) */
.ppp-seo-title {
    text-align: center;
    font-family: 'Alice', serif;
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 400;
    margin-bottom: 36px;
    background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* SEO Description Box — Stylish Liquid Glass Box like Contact Us Page */
.ppp-seo-description {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 50%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 36px 44px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.5), 0 16px 44px rgba(0, 0, 0, 0.6);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px !important;
    font-family: 'Alice', serif;
    font-size: 1.15rem;
    line-height: 1.85;
    color: #e2e8f0 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ppp-seo-description:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), 0 20px 50px rgba(0, 0, 0, 0.7);
}

.ppp-seo-description p,
.ppp-seo-description span {
    font-family: 'Alice', serif;
    color: #e2e8f0 !important;
    font-size: 1.15rem;
    line-height: 1.85;
    margin-bottom: 16px;
}

.ppp-seo-description p:last-child {
    margin-bottom: 0;
}

/* SEO Feature Cards Grid — Liquid Glass Cards */
.ppp-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.ppp-seo-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 50%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.5), 0 12px 36px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'Alice', serif;
}

.ppp-seo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), 0 16px 44px rgba(0, 0, 0, 0.7);
}

/* Card Accents (Subtle Accent Highlight) */
.ppp-seo-card.blue {
    border-left: 4px solid rgba(59, 130, 246, 0.7);
}

.ppp-seo-card.purple {
    border-left: 4px solid rgba(139, 92, 246, 0.7);
}

.ppp-seo-card.green {
    border-left: 4px solid rgba(16, 185, 129, 0.7);
}

.ppp-seo-card.pink {
    border-left: 4px solid rgba(236, 72, 153, 0.7);
}

.ppp-card-emoji {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 16px;
    color: #60a5fa;
}

.ppp-card-emoji svg {
    width: 44px;
    height: 44px;
    display: block;
}

.ppp-seo-card h3 {
    font-family: 'Alice', serif;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 400;
    margin: 0 0 12px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.ppp-seo-card p {
    font-family: 'Alice', serif;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* Text Highlights */
.text-blue {
    color: #93c5fd !important;
    font-weight: 600;
}

.text-purple {
    color: #c4b5fd !important;
    font-weight: 600;
}

.text-green {
    color: #6ee7b7 !important;
    font-weight: 600;
}

.text-pink {
    color: #f9a8d4 !important;
    font-weight: 600;
}

/* Lists */
.seo-content ul,
.seo-content ol {
    padding-left: 20px;
    color: #e2e8f0;
    margin-bottom: 24px;
    font-family: 'Alice', serif;
}

.seo-content strong {
    color: #ffffff;
    font-family: 'Alice', serif;
}

/* Sub-headings */
.ppp-seo-sub-title {
    text-align: center;
    font-family: 'Alice', serif;
    font-size: clamp(1.75rem, 3.5vw, 2.3rem);
    font-weight: 400;
    margin: 70px 0 32px;
    background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

/* How to Use Section — Liquid Glass Step Cards */
.ppp-seo-how-to-use {
    margin-bottom: 60px;
    font-family: 'Alice', serif;
}

.ppp-how-to-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.ppp-how-to-step {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 50%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.5), 0 8px 28px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Alice', serif;
}

.ppp-how-to-step:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 12px 36px rgba(0, 0, 0, 0.6);
}

.ppp-step-num {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Alice', serif;
    font-weight: 400;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.ppp-step-content h3 {
    font-family: 'Alice', serif;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.ppp-step-content p {
    font-family: 'Alice', serif;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* FAQ Section — Liquid Glass Accordion Items */
.ppp-seo-faqs {
    margin-bottom: 60px;
    font-family: 'Alice', serif;
}

.ppp-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.ppp-faq-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 50%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px 30px;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.5), 0 8px 28px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Alice', serif;
}

.ppp-faq-item:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 12px 36px rgba(0, 0, 0, 0.6);
}

.ppp-faq-question {
    font-family: 'Alice', serif;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 400;
    margin: 0 0 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ppp-faq-answer p {
    font-family: 'Alice', serif;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* SEO Call to Action Box — Liquid Glass Badge */
.ppp-seo-cta {
    text-align: center;
    font-family: 'Alice', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #ffffff;
    margin: 60px auto 0;
    padding: 20px 36px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    max-width: 540px;
    transition: all 0.25s ease;
}

.ppp-seo-cta:hover {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE — Tablet (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
    .tool-seo-section {
        padding: 48px 16px;
    }

    .ppp-seo-title {
        font-size: 1.85rem;
        margin-bottom: 24px;
    }

    .ppp-seo-sub-title {
        font-size: 1.5rem;
        margin: 48px 0 24px;
    }

    .ppp-seo-description {
        padding: 24px 20px;
        font-size: 1rem;
        margin-bottom: 40px !important;
        border-radius: 18px;
    }

    .ppp-seo-description p,
    .ppp-seo-description span {
        font-size: 1rem;
    }

    .ppp-seo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .ppp-seo-card {
        padding: 24px;
        border-radius: 16px;
    }

    .ppp-seo-card h3 {
        font-size: 1.2rem;
    }

    .ppp-seo-card p,
    .seo-content p,
    .seo-content li {
        font-size: 0.95rem;
    }

    .ppp-how-to-step {
        padding: 20px;
        border-radius: 16px;
    }

    .ppp-faq-item {
        padding: 18px 20px;
        border-radius: 16px;
    }

    .ppp-seo-cta {
        font-size: 1.05rem;
        padding: 16px 24px;
        margin-top: 40px;
    }
}

/* ============================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
    .tool-seo-section {
        padding: 36px 12px;
    }

    .ppp-seo-title {
        font-size: 1.55rem;
    }

    .ppp-seo-sub-title {
        font-size: 1.3rem;
        margin: 36px 0 18px;
    }

    .ppp-seo-card {
        padding: 18px;
    }

    .ppp-seo-card h3 {
        font-size: 1.1rem;
    }

    .ppp-seo-card p {
        font-size: 0.9rem;
    }

    .ppp-how-to-step {
        padding: 16px;
    }

    .ppp-faq-item {
        padding: 14px 16px;
    }

    .ppp-faq-question {
        font-size: 1rem;
    }

    .ppp-faq-answer p {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Tool Page Main Title (entry-title) — Centered & Responsive for all 8 Tools
   ========================================================================== */
body:has(.tool-container) .entry-title,
body:has(.app-container) .entry-title,
.passport-photo-page .entry-title,
.passport-photo-pro-page .entry-title,
.page-template-templatesbackground-changer-php .entry-title,
.page-template-templates-background-changer-php .entry-title,
.page-template-templatesformat-converter-php .entry-title,
.page-template-templates-format-converter-php .entry-title,
.page-template-templatesimage-cropper-php .entry-title,
.page-template-templates-image-cropper-php .entry-title,
.page-template-templatesimage-resizer-php .entry-title,
.page-template-templates-image-resizer-php .entry-title,
.page-template-templatesphoto-compressor-php .entry-title,
.page-template-templates-photo-compressor-php .entry-title,
.page-template-templatesration-card-photo-php .entry-title,
.page-template-templates-ration-card-photo-php .entry-title {
    text-align: center !important;
    font-family: 'Alice', serif !important;
    font-size: 2.5rem;
    font-weight: 400;
    margin: 40px auto 12px !important;
    width: 100% !important;
    display: block !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    body:has(.tool-container) .entry-title,
    body:has(.app-container) .entry-title,
    .passport-photo-page .entry-title,
    .passport-photo-pro-page .entry-title,
    .page-template-templatesbackground-changer-php .entry-title,
    .page-template-templates-background-changer-php .entry-title,
    .page-template-templatesformat-converter-php .entry-title,
    .page-template-templates-format-converter-php .entry-title,
    .page-template-templatesimage-cropper-php .entry-title,
    .page-template-templates-image-cropper-php .entry-title,
    .page-template-templatesimage-resizer-php .entry-title,
    .page-template-templates-image-resizer-php .entry-title,
    .page-template-templatesphoto-compressor-php .entry-title,
    .page-template-templates-photo-compressor-php .entry-title,
    .page-template-templatesration-card-photo-php .entry-title,
    .page-template-templates-ration-card-photo-php .entry-title {
        font-size: 1.8rem !important;
        margin: 24px auto 12px !important;
        text-align: center !important;
    }
}
