/* ========================================
   Project 6 - Digital Campaign
======================================== */


/* Smooth anchor scrolling */

html {
    scroll-behavior: smooth;
}


.project6-page #edm-section,
.project6-page #social-media-section,
.project6-page #digital-ad-section {
    scroll-margin-top: 110px;
}



/* ========================================
   Campaign Overview
======================================== */

.project6-page .campaign-overview-intro {
    max-width: 760px;

    margin: 0 0 55px 0;

    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 400;

    line-height: 1.45;

    color: #2b2b2b;
}


.project6-page .campaign-overview-grid {
    display: grid;

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

    gap: 45px;
}


.project6-page .campaign-overview-card {
    display: block;

    width: 100%;

    overflow: hidden;
}


.project6-page .campaign-overview-card img {
    display: block;

    width: 100%;
    height: auto;

    transition: transform 0.4s ease;
}


.project6-page .campaign-overview-card:hover img {
    transform: scale(1.03);
}



/* ========================================
   EDM Accordion
======================================== */

.project6-page .edm-accordion {
    width: 100%;
}


.project6-page .edm-item {
    width: 100%;

    margin-bottom: 16px;
}


.project6-page .edm-item:last-child {
    margin-bottom: 0;
}


/* Accordion bar */

.project6-page .edm-toggle {
    width: 100%;

    min-height: 58px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 0 20px;

    border: none;

    background-color: #F7F1E4;

    color: #2b2b2b;

    font-family: "Roboto", sans-serif;
    font-size: 17px;
    font-weight: 500;

    text-align: left;

    cursor: pointer;
}


/* Arrow */

.project6-page .edm-arrow {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid #2b2b2b;
    border-radius: 50%;

    font-size: 18px;

    transition: transform 0.35s ease;
}


.project6-page .edm-item.is-open .edm-arrow {
    transform: rotate(180deg);
}



/* ========================================
   EDM Expand / Collapse
======================================== */

.project6-page .edm-panel {
    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        max-height 0.6s ease,
        opacity 0.35s ease,
        padding 0.4s ease;

    padding-top: 0;
}


.project6-page .edm-item.is-open .edm-panel {
    max-height: 2200px;

    opacity: 1;

    padding-top: 55px;
}



/* ========================================
   EDM Content
======================================== */

.project6-page .edm-layout {
    display: grid;

    grid-template-columns: 40% 1fr;

    column-gap: 75px;

    align-items: start;

    padding-bottom: 50px;
}


/* Left EDM image */

.project6-page .edm-image {
    width: 100%;
}


.project6-page .edm-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}


/* Right information */

.project6-page .edm-content h3 {
    margin: 0 0 30px 0;

    font-family: "Roboto", sans-serif;
    font-size: 17px;
    font-weight: 500;

    color: #2b2b2b;
}


.project6-page .edm-meta-grid,
.project6-page .edm-key-grid {
    display: grid;

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

    column-gap: 60px;
    row-gap: 35px;
}


.project6-page .edm-info-block h4 {
    margin: 0 0 9px 0;

    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;

    color: #2b2b2b;
}


.project6-page .edm-info-block p {
    margin: 0;

    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 400;

    line-height: 1.4;

    color: #2b2b2b;
}


.project6-page .edm-content-divider {
    width: 100%;
    height: 1px;

    margin: 50px 0;

    background-color: #d4d4d4;
}


/* ========================================
   Social Media
======================================== */

.project6-page .social-media-layout {
    display: grid;

    grid-template-columns: 40% 1fr;

    column-gap: 60px;

    align-items: center;
}


/* Left mobile mockup */

.project6-page .social-mockup {
    width: 100%;
    height: 514px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.project6-page .social-mockup img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* Right 6 feeds — 3 columns × 2 rows */

.project6-page .social-feed-grid {
    display: grid;

    grid-template-columns: repeat(3, 250px);
    grid-template-rows: repeat(2, 250px);

    gap: 14px;

    justify-content: center;
    align-content: center;
}


.project6-page .social-feed-grid img {
    display: block;

    width: 250px;
    height: 250px;

    object-fit: cover;
}

/* ========================================
   Shared Campaign Information
======================================== */

.project6-page .campaign-info-grid {
    display: grid;

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

    gap: 16px;

    margin-top: 45px;
}


.project6-page .campaign-info-card {
    min-height: 90px;

    padding: 18px 22px;

    background-color: #F7F1E4;
}


.project6-page .campaign-info-card h3 {
    margin: 0 0 8px 0;

    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;

    color: #2b2b2b;
}


.project6-page .campaign-info-card p {
    margin: 0;

    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 400;

    line-height: 1.4;

    color: #2b2b2b;
}



/* ========================================
   Digital Ads
======================================== */

.project6-page .digital-ad-layout {
    display: grid;

    grid-template-columns: 40% 1fr;

    column-gap: 30px;

    align-items: start;
}


/* Medium Rectangle */

.project6-page .digital-ad-large img {
    display: block;

    width: 100%;
    height: auto;
}


/* Right banners */

.project6-page .digital-ad-banners {
    display: flex;

    flex-direction: column;

    gap: 25px;
}


.project6-page .digital-ad-banner img {
    display: block;

    width: 100%;
    height: auto;
}


/* Labels */

.project6-page .digital-ad-large p,
.project6-page .digital-ad-banner p {
    margin: 10px 0 0 0;

    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 500;

    color: #2b2b2b;
}



/* ========================================
   Tablet
======================================== */

@media (max-width: 900px) {

    .project6-page .campaign-overview-grid {
        gap: 25px;
    }


    .project6-page .campaign-overview-intro {
        font-size: 12px;
    }


    /* EDM */

    .project6-page .edm-layout {
        grid-template-columns: 40% 1fr;

        column-gap: 45px;
    }


    .project6-page .edm-meta-grid,
    .project6-page .edm-key-grid {
        column-gap: 30px;
        row-gap: 25px;
    }


    .project6-page .edm-content h3 {
        font-size: 15px;
    }


    .project6-page .edm-info-block h4 {
        font-size: 12px;
    }


    .project6-page .edm-info-block p {
        font-size: 11px;
    }


    /* Social */

    .project6-page .social-media-layout {
        grid-template-columns: 44% 1fr;

        column-gap: 40px;
    }


    .project6-page .social-feed-grid {
        gap: 10px;
    }


    /* Info */

    .project6-page .campaign-info-card h3 {
        font-size: 12px;
    }


    .project6-page .campaign-info-card p {
        font-size: 11px;
    }

}



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

@media (max-width: 600px) {


    /* ---------- Overview ---------- */

    .project6-page .campaign-overview-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .project6-page .campaign-overview-intro {
        margin-bottom: 35px;
    }



    /* ---------- EDM Accordion ---------- */

    .project6-page .edm-toggle {
        min-height: 52px;

        padding: 0 15px;

        font-size: 14px;
    }


    .project6-page .edm-arrow {
        width: 26px;
        height: 26px;

        font-size: 15px;
    }


    .project6-page .edm-item.is-open .edm-panel {
        padding-top: 35px;
    }


    .project6-page .edm-layout {
        grid-template-columns: 1fr;

        row-gap: 45px;

        padding-bottom: 35px;
    }


    .project6-page .edm-meta-grid,
    .project6-page .edm-key-grid {
        grid-template-columns: 1fr;

        row-gap: 25px;
    }


    .project6-page .edm-content-divider {
        margin: 35px 0;
    }



 /* ---------- Social Media ---------- */

.project6-page .social-media-layout {
    grid-template-columns: 1fr;

    row-gap: 40px;

    padding-left: 20px;
    padding-right: 20px;

    box-sizing: border-box;
}


/* Mobile mockup */

.project6-page .social-mockup {
    width: 100%;
    height: auto;
}


.project6-page .social-mockup img {
    width: 100%;
    height: auto;

    object-fit: contain;
}


/* Social feeds */

.project6-page .social-feed-grid {
    width: 100%;

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

    gap: 10px;
}


.project6-page .social-feed-grid img {
    width: 100%;
    height: auto;

    aspect-ratio: 1 / 1;

    object-fit: cover;
}



    /* ---------- Campaign Info ---------- */

    .project6-page .campaign-info-grid {
        grid-template-columns: 1fr;

        gap: 12px;

        margin-top: 35px;
    }



    /* ---------- Digital Ads ---------- */

    .project6-page .digital-ad-layout {
        grid-template-columns: 1fr;

        row-gap: 30px;
    }

}