/* =====================================================
   RESET & BASE
===================================================== */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

/* =====================================================
   SECTION LAYOUT
===================================================== */
.section {
    max-width: 1100px;
    margin: 100px auto;
    padding: 0 20px;
}

/* =====================================================
   HEADINGS
===================================================== */
.heading {
    font-size: 2.375rem; /* 38px */
    font-weight: 500;
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
    color: #222;
}

.heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 0%;
    height: 3px;
    background: #fd5906;
    border-radius: 2px;
    transition: width 0.8s ease;
}

.reveal.active .heading::after {
    width: 100%;
}

/* =====================================================
   CONTENT BOX
===================================================== */
.content-box {
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 14px;
    color: #444;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-left: 6px solid #fd5906;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.content-box p {
    font-size: 1.125rem; /* 18px */
    line-height: 1.7;
    margin: 0;
}

/* =====================================================
   GRID CONTENT
===================================================== */
.content-box.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.content-box.grid p {
    background: #f7f7f7;
    padding: 18px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.content-box.grid p:hover {
    background: #fd5906;
    color: #fff;
    transform: translateY(-3px);
}

/* =====================================================
   REVEAL ANIMATION
===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
    .section {
        margin: 80px auto;
    }

    .heading {
        font-size: 2.125rem; /* 34px */
    }

    .content-box p {
        font-size: 1rem; /* 16px */
    }
}

@media (max-width: 768px) {
    .section {
        margin: 60px auto;
        padding: 0 16px;
    }

    .heading {
        font-size: 1.75rem; /* 28px */
        line-height: 1.3;
    }

    .content-box {
        padding: 25px;
        border-left-width: 4px;
    }

    .content-box p {
        font-size: 0.9375rem; /* 15px */
        line-height: 1.6;
    }

    .content-box.grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .content-box.grid p {
        font-size: 0.875rem; /* 14px */
        padding: 14px 16px;
    }
}
