/* ============================================================
   Case Study & Pro Pages — shared page-specific styles
   idh.ro/assets/css/pages/case-study.css
   ============================================================ */

/* ── Shared Case Hero ───────────────────────────────────────── */
.case-hero {
    padding: 100px 0 60px;
    border-bottom: 1px solid var(--card-border);
}
.case-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    margin-bottom: 15px;
    line-height: 1.15;
}
.case-sub {
    font-size: 1.1rem;
    max-width: 650px;
    color: var(--text-dim);
}

/* ── Case Study Content Body ────────────────────────────────── */
.case-content {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}
.case-content h2 {
    font-size: 1.6rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 8px;
}
.case-content h2:first-of-type {
    margin-top: 0;
}
.case-content h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 12px;
}
.case-content p {
    margin-bottom: 20px;
    line-height: 1.75;
    font-size: 1rem;
}
.case-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.case-content li {
    list-style-type: disc;
    color: var(--text-dim);
    margin-bottom: 10px;
    font-size: .98rem;
    line-height: 1.6;
}

/* ── Pillar Cards (CategorySEO case study) ──────────────────── */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 30px 0;
}
.pillar-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 25px;
}
.pillar-card h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 8px;
    margin-top: 0;
    border: none;
    padding: 0;
}
.pillar-card p {
    font-size: .88rem;
    margin: 0;
    line-height: 1.5;
}

/* ── Results Highlight ──────────────────────────────────────── */
.results-highlight {
    background: linear-gradient(135deg, rgba(0, 216, 246, .05) 0%, rgba(37, 99, 235, .05) 100%);
    border: 1px solid rgba(0, 216, 246, .2);
    border-radius: var(--radius);
    padding: 30px;
    margin: 40px 0;
}
.results-highlight h3 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 12px;
    margin-top: 0;
    border: none;
    padding: 0;
}
.results-highlight ul { padding-left: 20px; }
.results-highlight li {
    list-style-type: disc;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-size: .95rem;
}

/* ── Timeline (EComplex case study) ────────────────────────── */
.timeline-container {
    position: relative;
    margin: 50px 0;
    padding-left: 45px;
    border-left: 2px solid var(--card-border);
}
.timeline-item {
    position: relative;
    margin-bottom: 70px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
    position: absolute;
    left: -56px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 216, 246, .4);
    z-index: 2;
}
.timeline-marker::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--accent-cyan);
}
.year-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--accent-cyan);
    background: rgba(0, 216, 246, .08);
    border: 1px solid rgba(0, 216, 246, .2);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.timeline-title {
    font-size: 1.25rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 12px;
}
.timeline-copy {
    font-size: .98rem;
    line-height: 1.75;
    margin-bottom: 15px;
}
.learnings-wrapper {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.learning-box {
    background: rgba(0, 216, 246, .02);
    border: 1px dashed rgba(0, 216, 246, .2);
    border-radius: 8px;
    padding: 15px 20px;
    font-size: .92rem;
    line-height: 1.5;
}
.learning-box strong {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

/* ── Comparison Table ───────────────────────────────────────── */
.comparison-table-wrapper {
    margin: 40px 0;
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}
.comparison-table th,
.comparison-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}
.comparison-table th {
    background: rgba(255, 255, 255, .02);
    color: #fff;
    font-weight: 600;
}
.comparison-table tr:last-child td { border-bottom: none; }

/* ── Strategic Notes ────────────────────────────────────────── */
.strategic-notes {
    margin-top: 80px;
    border-top: 1px solid var(--card-border);
    padding-top: 50px;
}
.strategic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}
.strategic-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 25px;
}
.strategic-card h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
    margin-top: 0;
}
.strategic-card p {
    font-size: .85rem;
    line-height: 1.5;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .pillars-grid    { grid-template-columns: 1fr; }
    .strategic-grid  { grid-template-columns: 1fr; }
}
