/* MyGov Social Links — every rule sits under .myg_social */

.myg_social { --myg_accent: #EC7026; --myg_radius: 15px; --myg_gap: 20px; margin: 0 0 20px; }
.myg_social, .myg_social * { box-sizing: border-box; }

.myg_social .myg_title { display: block; text-transform: uppercase; font-size: 1.125em; font-weight: 700; color: #333; margin: 0 0 18px; padding: 0 0 10px; position: relative; }
.myg_social .myg_title:after { content: ""; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background: var(--myg_accent); }

.myg_social .myg_row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--myg_gap); }

.myg_social .myg_tab {
    display: flex; align-items: center; gap: 12px; padding: 15px;
    background: #fff; color: #333; border: 0; border-radius: var(--myg_radius); box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 4px;
    font-size: 1em; font-weight: 600; text-decoration: none;
    transition: background .2s, color .2s;
}
.myg_social .myg_tab:hover, .myg_social .myg_tab:focus { background: var(--myg_accent); color: #fff; text-decoration: none; }
.myg_social .myg_tab--instagram:hover, .myg_social .myg_tab--instagram:focus { background: linear-gradient(45deg, #FA7E1E, #D62976 40%, #962FBF 70%, #4F5BD5); }
.myg_social .myg_tab--facebook:hover, .myg_social .myg_tab--facebook:focus { background: #1877F2; }
.myg_social .myg_tab--x:hover, .myg_social .myg_tab--x:focus { background: #000; }
.myg_social .myg_tab--whatsapp:hover, .myg_social .myg_tab--whatsapp:focus { background: #25D366; }
.myg_social .myg_tab--youtube:hover, .myg_social .myg_tab--youtube:focus { background: #FF0000; }
.myg_social .myg_tab--linkedin:hover, .myg_social .myg_tab--linkedin:focus { background: #0A66C2; }
.myg_social .myg_tab--website:hover, .myg_social .myg_tab--website:focus { background: var(--myg_accent); }
.myg_social .myg_tab:focus-visible { outline: 3px solid #333; outline-offset: 2px; }

.myg_social .myg_icon { --c: #EC7026; --bg: rgba(236,112,38,.12); width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--bg); flex: none; transition: background .2s; }
.myg_social .myg_icon svg { width: 22px; height: 22px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.myg_social .myg_icon svg .fill { fill: var(--c); stroke: none; }
.myg_social .myg_icon--instagram { --c: #D62976; --bg: rgba(214,41,118,.12); }
.myg_social .myg_icon--facebook { --c: #1877F2; --bg: rgba(24,119,242,.12); }
.myg_social .myg_icon--x { --c: #000; --bg: rgba(0,0,0,.08); }
.myg_social .myg_icon--whatsapp { --c: #1DA851; --bg: rgba(37,211,102,.15); }
.myg_social .myg_icon--youtube { --c: #FF0000; --bg: rgba(255,0,0,.10); }
.myg_social .myg_icon--linkedin { --c: #0A66C2; --bg: rgba(10,102,194,.12); }
.myg_social .myg_icon--website { --c: #EC7026; --bg: rgba(236,112,38,.12); }
.myg_social .myg_icon--custom { --c: var(--myg_brand, #555); --bg: rgba(0,0,0,.07); background: color-mix(in srgb, var(--myg_brand, #555) 12%, #fff); }
.myg_social .myg_icon--mygov { --bg: rgba(61,101,152,.10); }
.myg_social .myg_icon .myg_logo { width: 22px; height: 22px; object-fit: contain; display: block; }
.myg_social .myg_icon--mygov .myg_logo { width: 30px; height: 30px; }
.myg_social .myg_tab--mygov:hover, .myg_social .myg_tab--mygov:focus { background: #3D6598; }
.myg_social .myg_tab--custom:hover, .myg_social .myg_tab--custom:focus { background: var(--myg_brand, #555); }
.myg_social .myg_tab:hover .myg_icon, .myg_social .myg_tab:focus .myg_icon { background: #fff; }

@media (max-width: 991px) { .myg_social .myg_row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .myg_social .myg_row { grid-template-columns: 1fr; } }

/* Campus page spacing */
.wp-theme-volunteer .myg_social {
    margin-bottom: 50px;
    padding-bottom: 70px;
}

@media (max-width: 768px) {
    .wp-theme-volunteer .myg_social {
        margin-bottom: 30px;
        padding-bottom: 40px;
    }
}

/* Dark mode (the header Dark button adds body.contrast): the hover-state design shown by default */
body.contrast .myg_social .myg_title { color: #fff; }
body.contrast .myg_social .myg_tab { color: #fff; box-shadow: none; border: 1px solid transparent; }
body.contrast .myg_social .myg_tab--instagram { background: linear-gradient(45deg, #FA7E1E, #D62976 40%, #962FBF 70%, #4F5BD5); }
body.contrast .myg_social .myg_tab--facebook { background: #1877F2; }
body.contrast .myg_social .myg_tab--x { background: #555; }
body.contrast .myg_social .myg_tab--whatsapp { background: #128C7E; }
body.contrast .myg_social .myg_tab--youtube { background: #CC0000; }
body.contrast .myg_social .myg_tab--linkedin { background: #0A66C2; }
body.contrast .myg_social .myg_tab--website { background: var(--myg_accent); }
body.contrast .myg_social .myg_tab--mygov { background: #3D6598; }
body.contrast .myg_social .myg_tab--custom { background: var(--myg_brand, #555); }
body.contrast .myg_social .myg_icon { --bg: #fff; }
body.contrast .myg_social .myg_tab:hover, body.contrast .myg_social .myg_tab:focus { outline: 2px solid #fff; outline-offset: 2px; }
body.contrast .myg_social .myg_tab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
