/* ==========================================================================
   Content Center — מרכז התוכן והידע
   Premium knowledge-hub enhancements. Scoped with .cc- prefix so nothing
   here can collide with global style.css. Pure CSS, no extra fonts/JS.
   ========================================================================== */

/* ---- Hero polish (additive – existing h1/p/CTA stay untouched) ---------- */
.cc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(51, 101, 138, 0.08);
    color: var(--primary-blue);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(51, 101, 138, 0.12);
}

.cc-hero-badge i {
    width: 17px;
    height: 17px;
}

.cc-hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.cc-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cc-stat i {
    width: 18px;
    height: 18px;
    color: var(--primary-blue);
}

.cc-stat b {
    color: var(--primary-blue);
    font-weight: 800;
}

/* ---- Shared section header ---------------------------------------------- */
.cc-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.cc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0f766e;
    /* darker teal — passes WCAG AA (≈5:1) on white where bright --accent-green fails */
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.cc-eyebrow i {
    width: 16px;
    height: 16px;
}

.cc-section-head h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 0.85rem;
}

.cc-section-head p {
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ---- Knowledge Hub grid ------------------------------------------------- */
.cc-hub {
    padding: var(--section-spacing) 0;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(152, 193, 217, 0.10) 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cc-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.cc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.cc-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.cc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(51, 101, 138, 0.25);
}

/* Visible keyboard focus (site global styles only cover form inputs) */
.cc-card:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
    border-color: var(--primary-blue);
}

.cc-card:hover::before {
    transform: scaleX(1);
}

.cc-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(51, 101, 138, 0.12), rgba(45, 212, 191, 0.12));
    color: var(--primary-blue);
    margin-bottom: 1.1rem;
    transition: background var(--transition-normal), color var(--transition-normal), transform var(--transition-normal);
}

.cc-card-icon i {
    width: 28px;
    height: 28px;
}

.cc-card:hover .cc-card-icon {
    background: linear-gradient(135deg, var(--primary-blue), #27506e);
    color: var(--white);
    transform: scale(1.05);
}

.cc-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
}

.cc-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

.cc-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.92rem;
}

.cc-card-link i {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.cc-card:hover .cc-card-link i {
    transform: translateX(-4px);
}

/* ---- Feed section header (sits above the existing Instagram grid) -------- */
.cc-feed-head {
    padding-top: var(--section-spacing);
    margin-bottom: 2.5rem;
}

/* ---- FAQ (native <details> — zero JS, crawlable, accessible) ------------ */
.cc-faq {
    padding: var(--section-spacing) 0;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cc-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cc-faq-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.cc-faq-item[open] {
    border-color: rgba(51, 101, 138, 0.28);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.cc-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cc-faq-item summary::-webkit-details-marker {
    display: none;
}

.cc-faq-item summary:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: -3px;
    border-radius: 18px;
}

.cc-faq-item summary .cc-faq-chevron {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--primary-blue);
    transition: transform var(--transition-normal);
}

.cc-faq-item[open] summary .cc-faq-chevron {
    transform: rotate(180deg);
}

.cc-faq-answer {
    padding: 0 1.5rem 1.4rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.cc-faq-answer a {
    color: var(--primary-blue);
    font-weight: 700;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
    .cc-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .cc-hub-grid {
        grid-template-columns: 1fr;
    }

    .cc-card {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .cc-card-icon {
        margin-bottom: 0;
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .cc-card-body {
        flex: 1;
    }

    .cc-card h3 {
        font-size: 1.08rem;
    }

    .cc-card p {
        margin-bottom: 0.6rem;
    }
}

/* ---- Entrance animation (respects reduced-motion) ----------------------- */
@media (prefers-reduced-motion: no-preference) {
    .cc-anim {
        opacity: 0;
        transform: translateY(18px);
        animation: cc-fade-up 0.6s ease forwards;
    }

    .cc-hub-grid .cc-card {
        opacity: 0;
        transform: translateY(18px);
        animation: cc-fade-up 0.5s ease forwards;
    }

    .cc-hub-grid .cc-card:nth-child(1) { animation-delay: 0.04s; }
    .cc-hub-grid .cc-card:nth-child(2) { animation-delay: 0.08s; }
    .cc-hub-grid .cc-card:nth-child(3) { animation-delay: 0.12s; }
    .cc-hub-grid .cc-card:nth-child(4) { animation-delay: 0.16s; }
    .cc-hub-grid .cc-card:nth-child(5) { animation-delay: 0.20s; }
    .cc-hub-grid .cc-card:nth-child(6) { animation-delay: 0.24s; }
    .cc-hub-grid .cc-card:nth-child(7) { animation-delay: 0.28s; }
    .cc-hub-grid .cc-card:nth-child(8) { animation-delay: 0.32s; }

    @keyframes cc-fade-up {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
