/* =========================================================
   PSAS MEDIA PARTNERS
   Public + logged-in partner directory
========================================================= */

:root{
    --mp-ink:#172333;
    --mp-muted:#677686;
    --mp-green:#4cc28a;
    --mp-green-dark:#173f33;
    --mp-blue:#214a6b;
    --mp-line:rgba(23,35,51,.09);
    --mp-soft:#f7faf8;
    --mp-white:#fff;
}

.mp-public-page,
.mp-member-page{
    min-height:100vh;
}

.mp-member-page{
    max-width:1180px;
    margin:0 auto;
    padding:0 0 40px;
}

.mp-container{
    width:min(1180px,calc(100% - 34px));
    margin-inline:auto;
}


/* =========================================================
   PUBLIC HEADER
========================================================= */

.mp-public-header{
    position:relative;
    z-index:30;
    border-bottom:1px solid var(--mp-line);
    background:#fff;
}

.mp-public-header-row{
    min-height:72px;
    display:flex;
    align-items:center;
    gap:22px;
}

.mp-public-brand{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--mp-ink);
    text-decoration:none;
    font-weight:950;
    white-space:nowrap;
}

.mp-public-brand img{
    display:block;
    width:42px;
    height:42px;
    object-fit:contain;
}

.mp-public-nav{
    display:flex;
    align-items:center;
    gap:5px;
    margin-left:auto;
}

.mp-public-nav a{
    padding:9px 11px;
    border-radius:999px;
    color:#536272;
    text-decoration:none;
    font-size:13px;
    font-weight:850;
}

.mp-public-nav a:hover,
.mp-public-nav a.active{
    background:#eef8f3;
    color:#246d51;
}

.mp-public-actions{
    display:flex;
    gap:8px;
}


/* =========================================================
   BUTTONS
========================================================= */

.mp-btn{
    display:inline-flex;
    min-height:42px;
    align-items:center;
    justify-content:center;
    padding:10px 15px;
    border:1px solid transparent;
    border-radius:999px;
    text-decoration:none;
    font:inherit;
    font-size:13px;
    font-weight:950;
    cursor:pointer;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.mp-btn:hover{
    transform:translateY(-1px);
}

.mp-btn-main{
    background:var(--mp-green);
    color:#07301e;
    box-shadow:0 10px 22px rgba(76,194,138,.18);
}

.mp-btn-soft{
    border-color:var(--mp-line);
    background:#fff;
    color:#304456;
}

.mp-btn-glass{
    border-color:rgba(255,255,255,.18);
    background:rgba(255,255,255,.10);
    color:#fff;
}


/* =========================================================
   HERO
========================================================= */

.mp-hero{
    position:relative;
    overflow:hidden;

    background:
        radial-gradient(
            circle at 88% 8%,
            rgba(255,255,255,.14),
            transparent 27%
        ),
        radial-gradient(
            circle at 8% 90%,
            rgba(76,194,138,.17),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #17354f 0%,
            #214f6b 50%,
            #173f33 100%
        );

    color:#fff;
}

.mp-member-page .mp-hero{
    margin-top:4px;
    border-radius:28px;
}

.mp-hero-grid{
    display:grid;
    grid-template-columns:
        minmax(0,1.2fr)
        minmax(300px,.8fr);
    gap:38px;
    align-items:center;
    padding-top:70px;
    padding-bottom:64px;
}

.mp-member-page .mp-hero-grid{
    padding-left:28px;
    padding-right:28px;
}

.mp-kicker{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:7px 11px;
    margin-bottom:15px;
    border:1px solid rgba(255,255,255,.17);
    border-radius:999px;
    background:rgba(255,255,255,.09);
    font-size:11px;
    font-weight:950;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.mp-hero-copy h1{
    max-width:760px;
    margin:0;
    color:#fff;
    font-size:clamp(42px,6vw,70px);
    line-height:.96;
    letter-spacing:-.05em;
}

.mp-hero-copy p{
    max-width:730px;
    margin:20px 0 0;
    color:rgba(255,255,255,.84);
    font-size:17px;
    line-height:1.7;
}

.mp-hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:25px;
}

.mp-hero-card{
    padding:24px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:25px;
    background:rgba(255,255,255,.09);
    backdrop-filter:blur(10px);
    box-shadow:0 20px 45px rgba(0,0,0,.11);
}

.mp-hero-card strong{
    display:block;
    margin-bottom:8px;
    color:#fff;
    font-size:20px;
}

.mp-hero-card p{
    margin:0 0 16px;
    color:rgba(255,255,255,.78);
    font-size:13px;
    line-height:1.6;
}

.mp-hero-points{
    display:grid;
    gap:7px;
}

.mp-hero-points span{
    padding:8px 10px;
    border-radius:12px;
    background:rgba(255,255,255,.08);
    color:rgba(255,255,255,.88);
    font-size:11px;
    font-weight:850;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.mp-intro-section{
    padding:60px 0;
    background:#fff;
}

.mp-member-page .mp-intro-section{
    background:transparent;
}

.mp-intro-grid{
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    gap:36px;
    align-items:start;
}

.mp-section-kicker{
    display:inline-flex;
    padding:6px 9px;
    margin-bottom:9px;
    border-radius:999px;
    background:#eaf8f0;
    color:#2e7356;
    font-size:10px;
    font-weight:950;
    letter-spacing:.07em;
    text-transform:uppercase;
}

.mp-intro-grid h2{
    margin:0;
    color:var(--mp-ink);
    font-size:clamp(31px,4vw,47px);
    line-height:1.03;
    letter-spacing:-.045em;
}

.mp-intro-grid p{
    margin:0 0 14px;
    color:var(--mp-muted);
    font-size:14px;
    line-height:1.72;
}

.mp-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-top:30px;
}

.mp-stat{
    padding:17px;
    border:1px solid var(--mp-line);
    border-radius:18px;
    background:#f9fcfa;
}

.mp-stat strong{
    display:block;
    margin-bottom:4px;
    color:var(--mp-green-dark);
    font-size:27px;
    letter-spacing:-.03em;
}

.mp-stat span{
    color:var(--mp-muted);
    font-size:11px;
}


/* =========================================================
   DIRECTORY
========================================================= */

.mp-directory-section{
    padding:58px 0 72px;
    background:#f7faf8;
}

.mp-member-page .mp-directory-section{
    border-radius:26px;
}

.mp-section-head{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-bottom:22px;
}

.mp-section-head h2{
    margin:0;
    color:var(--mp-ink);
    font-size:clamp(31px,4vw,46px);
    line-height:1.03;
    letter-spacing:-.04em;
}

.mp-section-head p{
    margin:10px 0 0;
    color:var(--mp-muted);
    line-height:1.6;
}


/* =========================================================
   FILTERS
========================================================= */

.mp-filters{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(170px,220px) auto;
    gap:10px;
    padding:15px;
    border:1px solid var(--mp-line);
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 28px rgba(23,35,51,.045);
}

.mp-search{
    min-width:0;
}

.mp-filters input,
.mp-filters select{
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border:1px solid rgba(23,35,51,.11);
    border-radius:12px;
    background:#fff;
    color:var(--mp-ink);
    font:inherit;
}

.mp-results-meta{
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:center;
    margin:18px 0;
    color:var(--mp-muted);
    font-size:13px;
}

.mp-results-meta strong{
    color:#405449;
}

.mp-results-meta a{
    color:#2a7657;
    text-decoration:none;
    font-weight:900;
}


/* =========================================================
   PARTNER GRID
========================================================= */

.mp-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.mp-card{
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    min-width:0;
    border:1px solid var(--mp-line);
    border-radius:25px;
    background:#fff;
    box-shadow:0 14px 36px rgba(23,35,51,.065);
}

.mp-card.is-featured{
    border-color:rgba(76,194,138,.42);
    box-shadow:
        0 0 0 4px rgba(76,194,138,.07),
        0 17px 38px rgba(23,35,51,.08);
}

.mp-featured-badge{
    position:absolute;
    z-index:3;
    top:14px;
    right:14px;
    padding:6px 9px;
    border-radius:999px;
    background:var(--mp-green);
    color:#08301e;
    font-size:9px;
    font-weight:950;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.mp-logo{
    height:155px;
    display:grid;
    place-items:center;
    padding:24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(76,194,138,.08),
            transparent 32%
        ),
        #fff;
    border-bottom:1px solid var(--mp-line);
}

.mp-logo img{
    display:block;
    max-width:100%;
    max-height:98px;
    object-fit:contain;
}

.mp-logo > span{
    display:grid;
    place-items:center;
    width:72px;
    height:72px;
    border-radius:50%;
    background:#ecf8f2;
    font-size:34px;
}

.mp-card-body{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:20px;
}

.mp-category{
    display:inline-flex;
    width:fit-content;
    padding:6px 9px;
    margin-bottom:11px;
    border-radius:999px;
    background:#edf8f2;
    color:#307356;
    font-size:10px;
    font-weight:950;
}

.mp-card h3{
    margin:0 0 8px;
    color:var(--mp-ink);
    font-size:22px;
    line-height:1.15;
}

.mp-card p{
    margin:0 0 20px;
    color:var(--mp-muted);
    font-size:13px;
    line-height:1.62;
}

.mp-card-actions{
    margin-top:auto;
}

.mp-card-actions .mp-btn{
    width:100%;
}

.mp-empty{
    grid-column:1/-1;
    padding:35px;
    border:1px dashed rgba(23,35,51,.15);
    border-radius:22px;
    background:#fff;
    text-align:center;
    color:var(--mp-muted);
}

.mp-empty strong{
    display:block;
    color:#405449;
}

.mp-empty p{
    margin:7px 0 0;
}


/* =========================================================
   PARTNER WITH US
========================================================= */

.mp-partner-section{
    padding:68px 0;
    background:#fff;
}

.mp-member-page .mp-partner-section{
    background:transparent;
}

.mp-partner-panel{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(310px,.7fr);
    gap:35px;
    align-items:center;
    padding:38px;
    border-radius:30px;
    background:
        radial-gradient(
            circle at 90% 8%,
            rgba(255,255,255,.14),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #173f33,
            #214a6b
        );
    color:#fff;
    box-shadow:0 20px 48px rgba(23,63,51,.14);
}

.mp-partner-panel .mp-section-kicker{
    border:1px solid rgba(255,255,255,.15);
    background:rgba(255,255,255,.10);
    color:#d7f8e8;
}

.mp-partner-panel h2{
    max-width:690px;
    margin:0 0 14px;
    color:#fff;
    font-size:clamp(32px,4vw,50px);
    line-height:1;
    letter-spacing:-.045em;
}

.mp-partner-panel p{
    max-width:720px;
    margin:0 0 13px;
    color:rgba(255,255,255,.80);
    font-size:14px;
    line-height:1.65;
}

.mp-partner-side{
    display:grid;
    gap:9px;
}

.mp-partner-benefit{
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:12px;
    border:1px solid rgba(255,255,255,.11);
    border-radius:15px;
    background:rgba(255,255,255,.08);
}

.mp-partner-benefit > span{
    font-size:22px;
}

.mp-partner-benefit strong{
    display:block;
    color:#fff;
    font-size:12px;
}

.mp-partner-benefit small{
    display:block;
    margin-top:3px;
    color:rgba(255,255,255,.70);
    line-height:1.45;
}

.mp-partner-contact{
    margin-top:5px;
}


/* =========================================================
   PUBLIC FOOTER
========================================================= */

.mp-public-footer{
    padding:25px 0;
    border-top:1px solid var(--mp-line);
    background:#fff;
}

.mp-public-footer-row{
    display:flex;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
    color:#6e7c75;
    font-size:12px;
}

.mp-public-footer nav{
    display:flex;
    gap:13px;
    flex-wrap:wrap;
}

.mp-public-footer a{
    color:#536961;
    text-decoration:none;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:920px){

    .mp-hero-grid,
    .mp-intro-grid,
    .mp-partner-panel{
        grid-template-columns:1fr;
    }

    .mp-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .mp-stats{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .mp-public-nav{
        display:none;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:650px){

    .mp-container{
        width:min(100% - 22px,1180px);
    }

    .mp-member-page{
        padding-bottom:24px;
    }

    .mp-public-header-row{
        min-height:64px;
    }

    .mp-public-brand span{
        display:none;
    }

    .mp-public-actions{
        margin-left:auto;
    }

    .mp-public-actions .mp-btn{
        padding-left:11px;
        padding-right:11px;
        font-size:11px;
    }

    .mp-member-page .mp-hero{
        margin-top:0;
        border-radius:20px;
    }

    .mp-hero-grid{
        padding-top:46px;
        padding-bottom:44px;
    }

    .mp-member-page .mp-hero-grid{
        padding-left:17px;
        padding-right:17px;
    }

    .mp-hero-copy h1{
        font-size:40px;
    }

    .mp-hero-copy p{
        font-size:15px;
    }

    .mp-intro-section,
    .mp-directory-section,
    .mp-partner-section{
        padding-top:45px;
        padding-bottom:52px;
    }

    .mp-stats,
    .mp-grid{
        grid-template-columns:1fr;
    }

    .mp-filters{
        grid-template-columns:1fr;
        padding:12px;
    }

    .mp-filters .mp-btn{
        width:100%;
    }

    .mp-results-meta{
        align-items:flex-start;
        flex-direction:column;
    }

    .mp-partner-panel{
        padding:23px 19px;
    }

    .mp-partner-contact{
        width:100%;
    }

    .mp-public-footer-row{
        flex-direction:column;
    }

}