/**
 * Pillar Page CSS - SEO Dada
 * Landing-style theme for pillar/guide pages
 */

/* ==========================================================================
   CSS Animated Background Particles
   ========================================================================== */
.pillar-bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.pillar-particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(39, 56, 121, 0.08), rgba(15, 116, 178, 0.08));
    animation: pillarFloat 20s infinite ease-in-out;
}

.pillar-particle:nth-child(1) { width: 400px; height: 400px; top: 10%; left: 10%; animation-delay: 0s; }
.pillar-particle:nth-child(2) { width: 300px; height: 300px; top: 60%; right: 10%; animation-delay: -7s; }
.pillar-particle:nth-child(3) { width: 250px; height: 250px; bottom: 10%; left: 30%; animation-delay: -14s; }

@keyframes pillarFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* ==========================================================================
   Subtle Blob Backgrounds
   ========================================================================== */
.pillar-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.06;
    pointer-events: none;
}

/* ==========================================================================
   Fade-in & Stagger Animations
   ========================================================================== */
.pillar-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.pillar-fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.pillar-stagger {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.pillar-stagger.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Gradient Text
   ========================================================================== */
.pillar-gradient-text {
    background: linear-gradient(90deg, #273879, #0f74b2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   Depth Card Hover Effect
   ========================================================================== */
.pillar-depth-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-depth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Floating Card Animation
   ========================================================================== */
@keyframes floatingCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.pillar-floating {
    animation: floatingCard 6s ease-in-out infinite;
}

/* ==========================================================================
   Hero Section - Light theme matching landing
   ========================================================================== */
.pillar-hero-section {
    background-color: #f8fafc;
    padding-top: 8rem;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.pillar-stats-section {
    background: #f9fafb;
}

/* ==========================================================================
   Content Section - matching landing.html container width (1280px)
   ========================================================================== */
.pillar-content-section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pillar-content-section p {
    color: #374151;
    font-size: 1.0625rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.pillar-content-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(39, 56, 121, 0.1);
}

.pillar-content-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.pillar-content-section ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: #374151;
    line-height: 1.75;
}

.pillar-content-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #273879, #0f74b2);
}

/* ==========================================================================
   Image Cards
   ========================================================================== */
.pillar-img-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.pillar-img-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Quote Card
   ========================================================================== */
.pillar-quote-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.pillar-quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #273879, #0f74b2);
}

.pillar-quote-card .quote-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #273879, #0f74b2);
    font-size: 0.875rem;
}

.pillar-quote-card p {
    font-style: italic;
    color: #374151;
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.pillar-quote-card cite {
    color: #64748b;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
}

/* ==========================================================================
   Key Insight Card
   ========================================================================== */
.pillar-insight-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.pillar-insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #273879, #0f74b2);
}

.pillar-insight-card .insight-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    background: rgba(39, 56, 121, 0.1);
    color: #273879;
}

.pillar-insight-card .insight-content {
    display: flex;
    align-items: flex-start;
}

.pillar-insight-card p {
    margin: 0;
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ==========================================================================
   Did You Know Card
   ========================================================================== */
.pillar-dyk-card {
    background: linear-gradient(135deg, rgba(39, 56, 121, 0.03), rgba(15, 116, 178, 0.05));
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(39, 56, 121, 0.08);
    margin: 2rem 0;
}

.pillar-dyk-card .dyk-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #273879;
    margin-bottom: 0.5rem;
}

.pillar-dyk-card p {
    margin: 0;
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ==========================================================================
   Table of Contents Card
   ========================================================================== */
.pillar-toc-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(39, 56, 121, 0.15);
    border: 1px solid rgba(39, 56, 121, 0.12);
    margin: 2.5rem 0;
    overflow: hidden;
}

.pillar-toc-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(39, 56, 121, 0.06), rgba(15, 116, 178, 0.06));
    border-bottom: 1px solid rgba(39, 56, 121, 0.1);
    transition: background 0.3s;
}

.pillar-toc-toggle:hover {
    background: linear-gradient(135deg, rgba(39, 56, 121, 0.1), rgba(15, 116, 178, 0.1));
}

.pillar-toc-toggle h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #273879;
}

.pillar-toc-toggle .toc-arrow-icon {
    transition: transform 0.3s ease;
    color: #273879;
    font-size: 0.75rem;
}

.pillar-toc-card.open .pillar-toc-toggle .toc-arrow-icon {
    transform: rotate(180deg);
}

.pillar-toc-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.pillar-toc-card.open .pillar-toc-list {
    max-height: 2000px;
}

.pillar-toc-list ol {
    padding: 1.25rem 2rem 1.25rem 3rem;
    margin: 0;
}

.pillar-toc-list ol li {
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.pillar-toc-list ol li::before {
    display: none;
}

.pillar-toc-list ol li a {
    color: #1e293b;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
    display: block;
    padding: 0.35rem 0;
}

.pillar-toc-list ol li a:hover {
    color: #0f74b2;
    padding-left: 0.5rem;
}

/* ==========================================================================
   Section Divider Title
   ========================================================================== */
.pillar-section-divider {
    text-align: center;
    margin: 4rem 0 2rem;
}

.pillar-section-divider h2 {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    color: #fff;
    border: none;
    border-bottom: none;
    background: linear-gradient(135deg, #273879, #0f74b2);
    margin: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.pillar-faq-item {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.pillar-faq-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pillar-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.2s;
}

.pillar-faq-question:hover {
    color: #273879;
}

.pillar-faq-question .faq-arrow {
    transition: transform 0.3s ease;
    color: #273879;
    font-size: 0.75rem;
}

.pillar-faq-item.active .pillar-faq-question .faq-arrow {
    transform: rotate(180deg);
}

.pillar-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.pillar-faq-item.active .pillar-faq-answer {
    max-height: 300px;
}

.pillar-faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: #64748b;
    line-height: 1.75;
    margin: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.pillar-cta-section {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin: 4rem 0 2rem;
    border: 1px solid #e5e7eb;
}

.pillar-cta-content {
    padding: 3rem;
}

.pillar-cta-gradient {
    background: linear-gradient(135deg, #273879, #0f74b2);
    padding: 3rem;
    color: #fff;
}

.pillar-cta-gradient ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pillar-cta-gradient ul li {
    padding-left: 0;
    color: #fff;
}

.pillar-cta-gradient ul li::before {
    display: none;
}

.pillar-cta-content p {
    color: #64748b;
}

.pillar-cta-content h3 {
    color: #1e293b;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
    .pillar-content-section {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .pillar-hero-section {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    .pillar-content-section h2 {
        font-size: 1.375rem;
        margin-top: 2.5rem;
    }

    .pillar-quote-card,
    .pillar-insight-card,
    .pillar-dyk-card {
        padding: 1.25rem;
    }

    .pillar-toc-toggle,
    .pillar-toc-list ol {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .pillar-cta-content,
    .pillar-cta-gradient {
        padding: 2rem;
    }
}
