/* =====================================
   Layout Section
===================================== */

#layout {

    background: #F7F9FC;
}

/* =========================
   Diagram  (3-column grid)
========================= */

.layout-diagram {

    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 28px;
    align-items: center;
    margin-top: 70px;
}

/* =========================
   Center Image
========================= */

.layout-image img {

    width: 100%;
    border-radius: 25px;
    box-shadow:
    0 20px 60px rgba(0,0,0,.12);
    display: block;
}

/* =========================
   Annotation Columns
========================= */

.annotation-col {

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.annotation-box {

    background: #fff;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.09);
    border-left: 4px solid var(--accent);
}

.annotation-box h4 {

    color: var(--primary);
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 700;
}

.annotation-box p {

    font-size: 13px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

.annotation-btn {

    display: inline-block;
    margin-top: 10px;
    padding: 7px 16px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.annotation-btn:hover {

    background: var(--accent-hover);
    transform: translateY(-2px);
    opacity: 1;
}

/* =========================
   Important Note
========================= */

.important-note {

    margin-top: 80px;

    background: #fff;

    border-left:
    6px solid var(--accent);

    padding: 40px;

    border-radius: 15px;

    display: flex;

    gap: 30px;

    align-items: flex-start;

    box-shadow:
    0 10px 40px rgba(0,0,0,.08);
}

.note-icon {

    font-size: 48px;
}

.note-content h3 {

    color: var(--primary);

    margin-bottom: 15px;
}

/* =========================
   Points
========================= */

.layout-points {

    display: grid;

    grid-template-columns:
    repeat(3,1fr);

    gap: 30px;

    margin-top: 70px;
}

.point-card {

    background: #fff;

    border-radius: 20px;

    padding: 35px;

    text-align: center;

    box-shadow:
    0 15px 40px rgba(0,0,0,.06);
}

.point-number {

    width: 70px;

    height: 70px;

    margin: auto;

    margin-bottom: 20px;

    border-radius: 50%;

    background: var(--accent);

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;

    font-size: 22px;
}

.point-card h3 {

    margin-bottom: 15px;

    color: var(--primary);
}

/* =========================
   Tablet (collapse side cols)
========================= */

@media screen and (max-width: 992px) {

    .layout-diagram {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .annotation-col {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px;
    }

    .annotation-box {
        flex: 1 1 calc(50% - 7px);
        min-width: 180px;
    }
}

/* =========================
   Mobile
========================= */

@media screen and (max-width: 768px) {

    .annotation-box {
        flex: 1 1 100%;
    }

    .important-note {
        flex-direction: column;
    }

    .layout-points {
        grid-template-columns: 1fr;
    }
}
