/* Poltekpel Sulut V3.2 — portal berita & galeri kampus; tanpa library atau API pihak ketiga. */
.v32-news-section{background:linear-gradient(180deg,#f6fafc 0%,#edf5f8 100%);padding-block:clamp(54px,6.2vw,90px)}
.v32-gallery-section{background:#fff;padding-block:clamp(52px,5.8vw,86px)}
.v32-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin:0 0 27px}
.v32-section-head>div{max-width:760px;min-width:0}
.v32-section-head h2{margin:12px 0 0;color:#0c3149;font-size:clamp(27px,3.5vw,46px);font-weight:850;line-height:1.15;letter-spacing:-.035em;text-wrap:balance}
.v32-section-head h2 i{font-style:normal;color:#087e91}
.v32-section-head p{margin:11px 0 0;color:#627e8b;line-height:1.68;font-size:14px;max-width:640px}
.v32-outline-link{display:inline-flex;align-items:center;justify-content:space-between;gap:14px;flex:none;min-height:44px;padding:12px 17px;color:#0e576e!important;background:#fff;border:1px solid #b9d8e1;border-radius:13px;box-shadow:0 5px 14px rgba(5,51,69,.035);text-decoration:none!important;font-weight:800;font-size:13px;transition:border-color .2s,box-shadow .2s,transform .2s}
.v32-outline-link:hover{border-color:#1c8a98;box-shadow:0 10px 22px rgba(3,76,96,.12);transform:translateY(-2px)}
.v32-news-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(235px,auto));gap:17px;align-items:stretch}
.v32-news-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;position:relative;border:1px solid #e0eaef;border-radius:19px;background:#fff;box-shadow:0 13px 35px rgba(8,42,65,.065);transition:transform .2s,box-shadow .2s}
.v32-news-card:hover{transform:translateY(-3px);box-shadow:0 19px 39px rgba(8,42,65,.13)}
.v32-news-card:first-child{grid-column:1/2;grid-row:1/3;min-height:480px}
.v32-news-card:nth-child(2){grid-column:2/4;grid-row:1;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1fr)}
.v32-news-card:nth-child(3){grid-column:2/3;grid-row:2}
.v32-news-card:nth-child(4){grid-column:3/4;grid-row:2}
.v32-news-media{display:block;min-height:0;overflow:hidden;background:linear-gradient(125deg,#08334d 0%,#0b788d 100%);aspect-ratio:16/9}
.v32-news-card:nth-child(2) .v32-news-media{aspect-ratio:auto;height:100%}
.v32-news-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s;vertical-align:middle}
.v32-news-card:hover img{transform:scale(1.05)}
.v32-media-placeholder{width:100%;height:100%;display:flex;min-height:155px;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#e0f3f6;background:radial-gradient(circle at 75% 5%,rgba(255,255,255,.19),transparent 52%),repeating-linear-gradient(145deg,transparent,transparent 34px,rgba(255,255,255,.035) 35px,rgba(255,255,255,.035) 36px)}
.v32-media-placeholder>span{font-size:48px;line-height:1;opacity:.9}.v32-media-placeholder small{font-size:10px;letter-spacing:.18em;font-weight:850;opacity:.85}
.v32-news-copy{padding:19px 19px 22px;display:flex;flex-direction:column;min-width:0;flex:1}
.v32-news-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;justify-content:space-between;font-size:10px;color:#78909d;font-weight:700}
.v32-type-badge{font-size:9px;color:#087d8e;background:#e9f6f7;border-radius:6px;padding:6px 9px;letter-spacing:.07em;font-weight:900}
.v32-news-copy h3{margin:12px 0 8px;font-size:clamp(16px,1.5vw,20px);font-weight:850;line-height:1.36;letter-spacing:-.012em;overflow-wrap:anywhere}
.v32-news-copy h3 a{color:#16384c;text-decoration:none}.v32-news-copy h3 a:hover{color:#087e91}
.v32-news-copy p{margin:0 0 16px;color:#677f8c;line-height:1.65;font-size:12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.v32-news-read{color:#0c7689;font-size:12px;font-weight:850;text-decoration:none;margin-top:auto;display:inline-flex;align-items:center;gap:9px}
.v32-news-read:hover{color:#9f6b20}
.v32-news-featured{isolation:isolate;display:flex;justify-content:flex-end;background:#07334a}
.v32-news-featured .v32-news-media{position:absolute;inset:0;aspect-ratio:auto;z-index:-2}
.v32-news-featured .v32-news-media:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(1,25,40,.04) 0%,rgba(3,31,48,.42) 36%,rgba(3,28,45,.98) 100%)}
.v32-news-featured .v32-news-copy{padding:clamp(20px,2.8vw,33px);justify-content:flex-end;flex:0 0 auto}
.v32-news-featured .v32-news-meta{justify-content:flex-start;color:#c8e0e8}
.v32-news-featured .v32-type-badge{color:#eafcfa;background:rgba(0,149,161,.74)}
.v32-news-featured .v32-news-copy h3{font-size:clamp(23px,2.5vw,34px);line-height:1.22;margin:16px 0 12px}
.v32-news-featured .v32-news-copy h3 a{color:#fff}.v32-news-featured .v32-news-copy h3 a:hover{color:#f3d18a}
.v32-news-featured .v32-news-copy p{color:#cce2e9;font-size:13px;-webkit-line-clamp:3}
.v32-news-featured .v32-news-read{color:#f3d18a}
.v32-bottom-links{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:15px;margin-top:21px;color:#78919f;font-size:12px}
.v32-bottom-links a{font-weight:850;color:#086d86;text-decoration:none}
.v32-news-empty{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-height:112px;padding:25px!important;border-radius:17px!important;border:1px dashed #bad9e2!important;background:#fff!important;box-shadow:none!important;text-align:left!important}
.v32-news-empty .news-placeholder{width:52px;height:52px;border-radius:50%;background:#e8f6f7;color:#0f7589;display:grid;place-items:center;font-size:30px}
.v32-news-empty h3{margin:0!important;max-width:100%;font-size:19px!important;color:#194458!important}
.v32-news-empty p{color:#698491;margin:0!important;max-width:650px;font-size:13px!important;line-height:1.6}
.v32-news-empty>a{display:inline-flex;font-size:12px;font-weight:850;color:#07758c;text-decoration:none;margin-left:auto}
.v32-gallery-mosaic{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:minmax(145px,auto);gap:14px}
.v32-gallery-card{grid-column:span 4;position:relative;min-width:0;min-height:232px;overflow:hidden;border-radius:18px;background:#0d3d56;isolation:isolate;box-shadow:0 12px 31px rgba(12,46,64,.13)}
.v32-gallery-card:first-child{grid-column:span 8;grid-row:span 2;min-height:478px}
.v32-gallery-link{position:absolute;inset:0;color:#fff!important;text-decoration:none!important;display:block;overflow:hidden}
.v32-gallery-media{display:block;position:absolute;inset:0;z-index:-2}
.v32-gallery-media:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,30,43,.1) 8%,rgba(4,30,47,.48) 55%,rgba(4,27,43,.96) 100%)}
.v32-gallery-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.v32-gallery-link:hover .v32-gallery-media img{transform:scale(1.055)}
.v32-gallery-media .v32-media-placeholder{position:absolute;inset:0}
.v32-gallery-type{display:inline-flex;position:absolute;top:17px;left:18px;padding:8px 12px;font-size:11px;font-weight:850;border:1px solid rgba(255,255,255,.2);border-radius:40px;background:rgba(0,57,78,.72);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.v32-gallery-caption{display:flex;position:absolute;bottom:0;left:0;right:0;flex-direction:column;gap:7px;padding:22px;color:#fff}
.v32-gallery-caption small{font-size:10px;color:#c8e4ed;font-weight:750;letter-spacing:.06em}
.v32-gallery-caption strong{color:#fff;font-weight:850;font-size:18px;line-height:1.32;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.v32-gallery-caption em{font-size:11px;color:#f2d18d;font-style:normal;font-weight:800;display:flex;justify-content:space-between;align-items:center;margin-top:3px}
.v32-gallery-card:first-child .v32-gallery-caption{padding:clamp(24px,3vw,37px)}
.v32-gallery-card:first-child .v32-gallery-caption strong{font-size:clamp(23px,2.5vw,33px)}
.v32-gallery-empty{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:22px 25px!important;border:1px dashed #bed7df;border-radius:15px;background:#f7fbfc;color:#678090;line-height:1.5}
.v32-gallery-empty strong{color:#245166;font-size:14px}.v32-gallery-empty span{font-size:13px}
/* Empat dokumentasi membentuk satu mosaik tanpa kartu yatim. */
.v32-gallery-mosaic.v32-count-4{grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:minmax(165px,auto)}
.v32-gallery-mosaic.v32-count-4 .v32-gallery-card:first-child{grid-column:1/8;grid-row:1/4;min-height:560px}
.v32-gallery-mosaic.v32-count-4 .v32-gallery-card:not(:first-child){grid-column:8/13;min-height:178px}
/* Proporsi tetap rapi meskipun baru ada satu, dua, atau tiga publikasi. */
.v32-news-grid.v32-count-1{display:block}
.v32-news-grid.v32-count-1 .v32-news-card:first-child{max-width:960px;min-height:425px}
.v32-news-grid.v32-count-2{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(400px,auto)}
.v32-news-grid.v32-count-2 .v32-news-card:first-child{grid-column:1;grid-row:1;min-height:400px}
.v32-news-grid.v32-count-2 .v32-news-card:nth-child(2){grid-column:2;grid-row:1;display:flex}
.v32-news-grid.v32-count-2 .v32-news-card:nth-child(2) .v32-news-media{aspect-ratio:16/9;height:auto}
.v32-news-grid.v32-count-3{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(200px,auto))}
.v32-news-grid.v32-count-3 .v32-news-card:first-child{grid-column:1;grid-row:1/3}
.v32-news-grid.v32-count-3 .v32-news-card:nth-child(2){grid-column:2;grid-row:1;display:flex}
.v32-news-grid.v32-count-3 .v32-news-card:nth-child(2) .v32-news-media{aspect-ratio:16/9;height:auto}
.v32-news-grid.v32-count-3 .v32-news-card:nth-child(3){grid-column:2;grid-row:2}
.v32-gallery-mosaic.v32-count-1{display:block}
.v32-gallery-mosaic.v32-count-1 .v32-gallery-card:first-child{max-width:960px;min-height:400px}
.v32-gallery-mosaic.v32-count-2{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:380px}
.v32-gallery-mosaic.v32-count-2 .v32-gallery-card{grid-column:auto!important;grid-row:auto!important;min-height:380px}
.v32-gallery-mosaic.v32-count-3{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(175px,auto)}
.v32-gallery-mosaic.v32-count-3 .v32-gallery-card:first-child{grid-column:1;grid-row:1/3;min-height:380px}
.v32-gallery-mosaic.v32-count-3 .v32-gallery-card:not(:first-child){grid-column:2;min-height:200px}
/* Galeri lengkap: ritme, ruang dan filter yang jelas. */
.v32-gallery-page .gallery-hero{background:radial-gradient(circle at 87% 4%,rgba(98,199,205,.23),transparent 45%),linear-gradient(121deg,#07273c,#0c5e71 84%)}
.v32-gallery-page .gallery-hero h1{font-size:clamp(36px,5vw,66px);letter-spacing:-.04em}
.v32-gallery-intro-lines{display:flex;gap:9px;flex-wrap:wrap;margin-top:23px}
.v32-gallery-intro-lines span{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.24);border-radius:30px;padding:8px 12px;color:#d1eef2;font-size:11px;font-weight:750}
.v32-gallery-intro-lines span:before{content:"✦";color:#f5d597}
.v32-gallery-page .gallery-content{background:#f5fafb}
.v32-gallery-page .gallery-filter{display:flex;flex-wrap:wrap;gap:8px;padding:7px;width:fit-content;max-width:100%;border-radius:16px;border:1px solid #d8e8ed;background:#fff;box-shadow:0 9px 25px rgba(8,42,58,.06)}
.v32-gallery-page .gallery-filter a{border-radius:10px;min-width:88px;display:inline-flex;justify-content:center;align-items:center}
.v32-gallery-page .gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.v32-gallery-page .gallery-card{border-radius:17px;box-shadow:0 12px 32px rgba(6,47,69,.085);overflow:hidden}
.v32-gallery-page .gallery-card-media{aspect-ratio:4/3;min-height:0}
.v32-gallery-page .gallery-card-info h3{min-height:0;font-size:18px;line-height:1.35}
.v32-gallery-page .gallery-card-info{background:#fff}
.v32-news-section :is(a):focus-visible,.v32-gallery-section :is(a):focus-visible,.v32-gallery-page :is(a):focus-visible{outline:3px solid #f6c868;outline-offset:3px}
@media(max-width:1100px){
 .v32-news-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);grid-template-rows:auto}
 .v32-news-card:first-child{grid-column:1/2;grid-row:1/3}
 .v32-news-card:nth-child(2){grid-column:2/3;grid-row:1;display:flex}
 .v32-news-card:nth-child(2) .v32-news-media{aspect-ratio:16/9;height:auto}
 .v32-news-card:nth-child(3){grid-column:2/3;grid-row:2}
 .v32-news-card:nth-child(4){grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr)}
 .v32-news-card:nth-child(4) .v32-news-media{aspect-ratio:auto;height:100%}
 .v32-gallery-card{grid-column:span 6}
 .v32-gallery-card:first-child{grid-column:span 12;grid-row:span 1;min-height:380px}
}
@media(min-width:761px) and (max-width:1100px){
 .v32-gallery-mosaic.v32-count-4 .v32-gallery-card:first-child{grid-column:1/-1;grid-row:auto;min-height:340px}
 .v32-gallery-mosaic.v32-count-4 .v32-gallery-card:not(:first-child){grid-column:span 4;grid-row:auto;min-height:230px}
}
@media(max-width:760px){
 .v32-section-head{align-items:stretch;flex-direction:column;gap:15px}
 .v32-section-head p{font-size:13px}
 .v32-outline-link{width:fit-content}
 .v32-news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;grid-template-rows:auto}
 .v32-news-card:first-child{grid-column:1/-1;grid-row:auto;min-height:370px}
 .v32-news-card:nth-child(2){grid-column:1/-1;grid-row:auto;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr)}
 .v32-news-card:nth-child(2) .v32-news-media{aspect-ratio:auto;height:100%}
 .v32-news-card:nth-child(3){grid-column:1;grid-row:auto}
 .v32-news-card:nth-child(4){grid-column:2;grid-row:auto;display:flex}
 .v32-news-card:nth-child(4) .v32-news-media{aspect-ratio:16/9;height:auto}
 .v32-gallery-mosaic{gap:11px}
 .v32-gallery-card{min-height:210px}
 .v32-gallery-card:first-child{min-height:330px}
 .v32-gallery-page .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:541px) and (max-width:760px){
 .v32-gallery-mosaic.v32-count-4 .v32-gallery-card:first-child{grid-column:1/-1;grid-row:auto;min-height:330px}
 .v32-gallery-mosaic.v32-count-4 .v32-gallery-card:not(:first-child){grid-column:span 4;grid-row:auto;min-height:210px}
}
@media(max-width:540px){
 .v32-news-section,.v32-gallery-section{padding-block:43px}
 .v32-section-head h2{font-size:29px}
 .v32-outline-link{width:100%;justify-content:center}
 .v32-news-grid{grid-template-columns:1fr;gap:13px}
 .v32-news-card,.v32-news-card:nth-child(2),.v32-news-card:nth-child(4){grid-column:1/-1;grid-row:auto;display:flex}
 .v32-news-card:first-child{min-height:340px}
 .v32-news-card:nth-child(2) .v32-news-media,.v32-news-card:nth-child(4) .v32-news-media{height:auto;aspect-ratio:16/9}
 .v32-news-copy{padding:18px}
 .v32-news-copy h3{font-size:18px}
 .v32-news-featured .v32-news-copy h3{font-size:27px}
 .v32-news-empty{display:flex;gap:7px;padding:20px!important}
 .v32-news-empty>a{width:100%;margin-left:0}
 .v32-bottom-links{gap:8px}
 .v32-gallery-mosaic{grid-template-columns:1fr;gap:12px}
 .v32-gallery-card,.v32-gallery-card:first-child{grid-column:1/-1;grid-row:auto;min-height:225px}
 .v32-gallery-card:first-child{min-height:300px}
 .v32-gallery-caption{padding:18px}
 .v32-gallery-page .gallery-grid{grid-template-columns:1fr;gap:15px}
 .v32-gallery-page .gallery-filter{width:100%}
 .v32-gallery-page .gallery-filter a{flex:1;min-width:72px}
 .v32-gallery-page .gallery-hero{padding-top:45px;padding-bottom:48px}
}
@media(prefers-reduced-motion:reduce){
 .v32-news-card,.v32-outline-link,.v32-news-media img,.v32-gallery-media img{transition:none!important}
 .v32-news-card:hover,.v32-outline-link:hover{transform:none!important}
}

/* Pada HP, jumlah kartu berapa pun tampil satu kolom penuh. */
@media(min-width:541px) and (max-width:760px){
 .v32-gallery-mosaic.v32-count-4 .v32-gallery-card:first-child{grid-column:1/-1;grid-row:auto;min-height:330px}
 .v32-gallery-mosaic.v32-count-4 .v32-gallery-card:not(:first-child){grid-column:span 4;grid-row:auto;min-height:210px}
}
@media(max-width:540px){
.v32-news-grid.v32-count-2,.v32-news-grid.v32-count-3{grid-template-columns:1fr;grid-template-rows:auto}
.v32-news-grid.v32-count-2 .v32-news-card,.v32-news-grid.v32-count-3 .v32-news-card{grid-column:1!important;grid-row:auto!important;min-height:0}
.v32-news-grid.v32-count-2 .v32-news-card:first-child,.v32-news-grid.v32-count-3 .v32-news-card:first-child{min-height:330px}
.v32-news-grid.v32-count-1 .v32-news-card:first-child{min-height:330px}
.v32-gallery-mosaic.v32-count-2,.v32-gallery-mosaic.v32-count-3{grid-template-columns:1fr;grid-auto-rows:auto}
.v32-gallery-mosaic.v32-count-2 .v32-gallery-card,.v32-gallery-mosaic.v32-count-3 .v32-gallery-card{grid-column:1!important;grid-row:auto!important;min-height:225px}
.v32-gallery-mosaic.v32-count-1 .v32-gallery-card:first-child{min-height:300px}
}

@media(max-width:540px){
 .v32-gallery-mosaic.v32-count-4 .v32-gallery-card:first-child,
 .v32-gallery-mosaic.v32-count-4 .v32-gallery-card:not(:first-child){grid-column:1/-1;grid-row:auto;min-height:225px}
 .v32-gallery-mosaic.v32-count-4 .v32-gallery-card:first-child{min-height:300px}
}
