/* ================================================
   guide.css — Shared styles for all iFilter guides
   Change anything here and every guide updates.
   ================================================ */

:root {
    --primary: #31353a;
    --dark: #1e2124;
    --muted: #5e656e;
    --grad-start: #f6f8f9;
    --grad-end: #e5ebee;
}

/* --- Hero --- */
.hero-guide {
    padding: 120px 10% 150px;
    text-align: center;
    background: linear-gradient(135deg, #f6f8f9, #e5ebee, #f0f4f7, #e8eef2);
    background-size: 200% 200%;
    position: relative;
    animation: gradientShift 15s ease infinite;
}

.hero-guide h1 {
    font-size: 3.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.hero-guide p {
    font-size: 1.3rem;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Wave Divider --- */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 10;
    pointer-events: none;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.fill-white { fill: #ffffff; }

/* --- Guide Section Wrapper --- */
.guide-section {
    padding: 80px 5% 120px;
    background: #ffffff;
    position: relative;
}

.guide-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Vertical timeline line */
.guide-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 40px;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), #e0e0e0);
    border-radius: 3px;
    z-index: 1;
}

/* --- Step Cards --- */
.step-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.step-card:last-child {
    margin-bottom: 0;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.05);
    background: var(--primary);
    color: white;
}

.step-content {
    margin-right: 40px;
    background: #f9fafb;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid #eee;
    flex-grow: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.step-card:hover .step-content {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.step-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    color: var(--dark);
    font-weight: 700;
}

.step-content p {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.6;
}

.step-content p:last-child {
    margin-bottom: 0;
}

/* --- Images inside steps --- */
.step-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    display: block;
}

/* --- Bottom CTA --- */
.guide-cta {
    text-align: center;
    margin-top: 80px;
}

.guide-cta p {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn-guide {
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-guide:hover {
    background: var(--primary);
    color: white;
}

/* --- Animations --- */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-guide { padding: 80px 5% 100px; }
    .hero-guide h1 { font-size: 2.5rem; }
    .guide-section { padding: 50px 4% 80px; overflow-x: hidden; }
    .guide-container::before { right: 25px; }
    .step-icon { width: 50px; height: 50px; font-size: 1.4rem; border-width: 2px; }
    .step-content { margin-right: 15px; padding: 20px 15px; }
    .step-content h3 { font-size: 1.3rem; }
    .step-content p { font-size: 1rem; }
    .step-img { max-width: 100% !important; }
}
