/* ================================================================
   HOME PAGE CSS — MAN 2 PARIGI
   ================================================================ */

/* ── HERO DESKTOP ── */
.carousel-header { position:relative; z-index:10; }
.carousel-header .carousel-item {
    min-height:100vh;
    background-color:#040D26;
    overflow:hidden;
    padding-top: var(--navbar-height, 120px); /* Kompensasi fixed navbar */
}
.carousel-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.28; z-index:0; }
.carousel-item.active .carousel-bg { animation:heroZoomSoft 20s ease-out forwards; }
.carousel-header .carousel-item::before { content:""; position:absolute; inset:0; background:linear-gradient(135deg,rgba(0,128,128,.7) 0%,rgba(64,224,208,.4) 100%); z-index:1; pointer-events:none; }
.carousel-caption-1,.carousel-caption-2 { position:absolute; inset:0; display:flex; align-items:center; padding:0 7%; z-index:2; pointer-events:none; }
.carousel-caption-1-content,.carousel-caption-2-content { background:transparent; width:100%; max-width:1320px; margin:0 auto; pointer-events:auto; }
.carousel-neo { display:grid; grid-template-columns:1fr; gap:2rem; align-items:center; }
@media(min-width:992px){ .carousel-header{padding-bottom:80px;} .carousel-neo{grid-template-columns:6fr 5fr; gap:4rem;} .carousel-caption-1,.carousel-caption-2{justify-content:center;} }
.carousel-neo-brand { display:inline-flex; align-items:center; gap:10px; padding:7px 16px; border-radius:100px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); margin-bottom:1.5rem; }
.carousel-neo-brand img { width:30px; height:30px; border-radius:8px; object-fit:contain; }
.carousel-neo-brand span { color:#fff; font-weight:700; font-size:.85rem; }
.carousel-hero-subtitle { color:#40E0D0; font-weight:700; letter-spacing:2px; font-size:.9rem; display:block; margin-bottom:.75rem; }
.carousel-hero-title { font-size:clamp(2rem,4.5vw,3.6rem); font-weight:800; line-height:1.1; color:#fff; margin-bottom:1rem; }
.carousel-hero-desc { color:rgba(255,255,255,.85); font-size:1rem; line-height:1.65; max-width:480px; margin-bottom:2rem; }
.btn-neo-primary { display:inline-flex; align-items:center; gap:8px; padding:.9rem 1.8rem; border-radius:12px; background:linear-gradient(135deg,#008080,#40E0D0); color:#fff!important; font-weight:700; font-size:.95rem; border:none; transition:.3s; text-decoration:none; box-shadow:0 8px 24px rgba(0,128,128,.35); }
.btn-neo-primary:hover { transform:translateY(-2px); box-shadow:0 12px 32px rgba(0,128,128,.5); color:#fff!important; }
.btn-neo-secondary { display:inline-flex; align-items:center; gap:10px; padding:.9rem 1.6rem; border-radius:12px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); color:#fff!important; font-weight:700; font-size:.95rem; transition:.3s; text-decoration:none; }
.btn-neo-secondary:hover { background:rgba(255,255,255,.2); color:#fff!important; }
.hero-play-icon { width:44px; height:44px; }
.carousel-neo-visual { position:relative; width:100%; display:flex; justify-content:center; align-items:center; }
.carousel-neo-phone { position:relative; width:100%; max-width:680px; z-index:2; filter:drop-shadow(0 18px 40px rgba(0,0,0,.45)); animation:heroFloat 5.8s ease-in-out infinite; }
.carousel-hero-buttons { display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.carousel-indicators li { width:10px; height:10px; border-radius:999px; background:rgba(255,255,255,.4); border:none; margin:0 4px; }
.carousel-indicators .active { background:#40E0D0; width:24px; }
.carousel-control-prev,.carousel-control-next { width:auto; padding:0 1rem; }

/* ── HERO MOBILE ── */
.crypto-hero-mobile { position:relative; background-color:#040D26; min-height:100svh; overflow:hidden; display:flex; align-items:stretch; }
.crypto-hero-mobile::before { content:""; position:absolute; inset:0; background:linear-gradient(135deg,rgba(0,128,128,.65) 0%,rgba(64,224,208,.45) 100%); z-index:0; }
.crypto-hero-mobile::after { content:""; position:absolute; inset:0; background-image:var(--crypto-hero-bg); background-repeat:no-repeat; background-position:center; background-size:cover; opacity:.55; z-index:0; pointer-events:none; }
.crypto-hero-mobile-inner { position:relative; z-index:2; width:100%; padding:3.5rem 1.25rem 0; text-align:center; display:flex; flex-direction:column; min-height:100svh; }
.crypto-hero-mobile-title { font-weight:800; font-size:clamp(1.5rem,7vw,2.2rem); line-height:1.12; color:#fff; margin:0 auto .8rem; max-width:420px; }
.crypto-hero-mobile-desc { color:rgba(255,255,255,.88); font-size:.85rem; line-height:1.55; margin:0 auto 1.4rem; max-width:85%; }
.crypto-hero-mobile-actions { display:flex; justify-content:center; align-items:center; flex-wrap:nowrap; gap:1rem; margin-bottom:1.25rem; }
.crypto-hero-mobile-banner { width:100%; max-width:300px; margin:.5rem auto 0; z-index:1; }
.crypto-hero-mobile-banner img { width:100%; height:auto; filter:drop-shadow(0 12px 30px rgba(0,0,0,.35)); }
.crypto-hero-mobile-companies { width:100%; padding:.75rem 0 1.5rem; overflow:hidden; }
.crypto-hero-mobile-nav { position:absolute; top:50%; transform:translateY(-50%); z-index:100; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25); color:#fff; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.5rem; cursor:pointer; }
.crypto-hero-mobile-nav.prev { left:10px; }
.crypto-hero-mobile-nav.next { right:10px; }

/* ── MARQUEE ── */
.hero-logo-marquee { overflow:hidden; position:relative; width:100%; }
.hero-logo-marquee-track { display:flex; align-items:center; gap:2.5rem; width:max-content; animation:heroMarquee 20s linear infinite; }
.hero-logo-marquee-item { display:inline-flex; align-items:center; gap:9px; color:rgba(255,255,255,.9); font-weight:700; font-size:.9rem; text-decoration:none; white-space:nowrap; }
.hero-logo-marquee-item img { height:52px; width:auto; }
.hero-logo-marquee-overlay { position:absolute; left:0; right:0; bottom:20px; z-index:60; padding:0 7%; }

/* ── HERO ANIMATIONS ── */
.carousel-hero-subtitle,.carousel-hero-title,.carousel-hero-desc,.carousel-hero-buttons { opacity:0; transform:translateY(18px); transition:opacity .6s ease,transform .6s ease; }
.carousel-item.active .carousel-hero-subtitle { opacity:1; transform:none; transition-delay:.08s; }
.carousel-item.active .carousel-hero-title { opacity:1; transform:none; transition-delay:.18s; }
.carousel-item.active .carousel-hero-desc { opacity:1; transform:none; transition-delay:.28s; }
.carousel-item.active .carousel-hero-buttons { opacity:1; transform:none; transition-delay:.4s; }
.animated-title { animation:slideInUp .9s cubic-bezier(.22,1,.36,1) forwards; }
.animated-desc { animation:fadeInUp 1.1s cubic-bezier(.22,1,.36,1) .3s both; }
.animated-buttons { animation:fadeInUp 1s cubic-bezier(.22,1,.36,1) .5s both; }
@keyframes heroZoomSoft { 0%{transform:scale(1)} 100%{transform:scale(1.12)} }
@keyframes heroFloat { 0%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-14px) rotate(1deg)} 100%{transform:translateY(0) rotate(-1deg)} }
@keyframes heroMarquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes slideInUp { 0%{opacity:0;transform:translateY(36px)} 100%{opacity:1;transform:none} }
@keyframes fadeInUp { 0%{opacity:0;transform:translateY(20px)} 100%{opacity:1;transform:none} }

/* ── ANNOUNCEMENT WIDGET ── */
.hero-announcement { border-radius:1rem; box-shadow:0 .5rem 1.5rem rgba(0,0,0,.1); overflow:hidden; background:#fff; }
.hero-announcement-bg { background-size:cover; background-position:center; min-height:260px; position:relative; }
.hero-announcement-overlay { background:linear-gradient(135deg,rgba(0,128,128,.85) 0%,rgba(0,0,0,.3) 100%); position:absolute; inset:0; }
.hero-announcement-list { max-height:280px; overflow-y:auto; }
.hero-announcement-item { padding:.75rem 0; border-bottom:1px solid rgba(0,0,0,.06); cursor:pointer; transition:background .2s; }
.hero-announcement-item:hover { background:rgba(0,128,128,.04); }
.hero-announcement-item:last-child { border-bottom:none; }
.hero-announcement-item-title { font-size:.85rem; font-weight:700; color:#111; margin-bottom:.1rem; }
.hero-countdown-item { min-width:58px; background:var(--bs-primary); border-radius:8px; }

/* ── STATS SECTION ── */
.home-stats-section { background:linear-gradient(135deg,#008080 0%,#40E0D0 100%); padding:3rem 0; position:relative; overflow:hidden; }
.home-stats-section::before { content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px); background-size:28px 28px; opacity:.2; pointer-events:none; }
.home-stat-card { background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22); border-radius:20px; padding:1.75rem 1.5rem; transition:.3s; backdrop-filter:blur(10px); text-decoration:none; display:block; color:inherit; }
.home-stat-card:hover { transform:translateY(-5px); background:rgba(255,255,255,.22); box-shadow:0 20px 40px rgba(0,0,0,.2); }
.home-stat-icon { width:64px; height:64px; border-radius:16px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25); display:flex; align-items:center; justify-content:center; margin-bottom:1rem; }
.home-stat-icon i { color:#fff; font-size:1.75rem; }
.home-stat-value { font-size:2.5rem; font-weight:900; color:#fff; line-height:1; margin-bottom:.25rem; }
.home-stat-label { color:rgba(255,255,255,.9); font-weight:700; font-size:1rem; margin-bottom:.2rem; }
.home-stat-desc { color:rgba(255,255,255,.7); font-size:.82rem; }
.home-stat-badge { display:inline-flex; align-items:center; gap:6px; margin-top:.75rem; padding:4px 12px; background:rgba(255,255,255,.15); border-radius:100px; font-size:.7rem; font-weight:700; color:#fff; }

/* ── PARALLAX / CTA BAND ── */
.home-cta-band { position:relative; padding:4rem 0; background-size:cover; background-position:center; background-attachment:scroll; }
.home-cta-band::before { content:""; position:absolute; inset:0; background:linear-gradient(135deg,rgba(0,128,128,.92) 0%,rgba(20,184,166,.88) 100%); }
.home-cta-band .band-inner { position:relative; z-index:1; }
.home-cta-band h2 { font-size:clamp(1.6rem,3.5vw,2.4rem); font-weight:900; color:#fff; margin-bottom:.75rem; }
.home-cta-band p { color:rgba(255,255,255,.9); font-size:1rem; max-width:580px; margin-bottom:1.5rem; }
.btn-cta-white { display:inline-flex; align-items:center; gap:8px; padding:.85rem 2rem; border-radius:100px; background:#fff; color:#008080!important; font-weight:800; font-size:.95rem; text-decoration:none; transition:.3s; box-shadow:0 6px 20px rgba(0,0,0,.15); }
.btn-cta-white:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(0,0,0,.2); }

/* ── NEWS SECTION ── */
.home-news-section { padding:3rem 0; }
.section-heading { margin-bottom:2rem; }
.section-heading .label { display:inline-flex; align-items:center; gap:6px; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.12em; color:#008080; margin-bottom:.5rem; }
.section-heading .label::before { content:""; width:20px; height:2px; background:linear-gradient(90deg,#008080,#40E0D0); border-radius:2px; display:inline-block; }
.section-heading h2 { font-size:clamp(1.4rem,3vw,2rem); font-weight:800; color:#0f172a; margin:0; }
.news-card-h { background:#fff; border:1px solid rgba(0,128,128,.1); border-radius:18px; overflow:hidden; transition:.3s; text-decoration:none; display:block; color:inherit; }
.news-card-h:hover { transform:translateY(-4px); box-shadow:0 16px 48px rgba(0,128,128,.12); border-color:rgba(0,128,128,.3); }
.news-card-h .news-thumb { overflow:hidden; }
.news-card-h .news-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.news-card-h:hover .news-thumb img { transform:scale(1.05); }
.news-card-h .news-body { padding:1.25rem 1.5rem 1.5rem; }
.news-cat-badge { display:inline-block; padding:3px 10px; border-radius:100px; font-size:.68rem; font-weight:700; background:rgba(0,128,128,.1); color:#008080; border:1px solid rgba(0,128,128,.2); margin-bottom:.6rem; text-transform:uppercase; letter-spacing:.06em; }
.news-card-h .news-title { font-size:1rem; font-weight:700; line-height:1.4; color:#0f172a; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:.5rem; }
.news-card-h .news-meta { font-size:.72rem; color:#9ca3af; display:flex; align-items:center; gap:8px; }
.news-headline-card .news-title { font-size:1.3rem; -webkit-line-clamp:3; }
.news-headline-card .news-thumb { height:240px; }
@media(min-width:768px){ .news-headline-card .news-thumb { height:300px; } }

/* ── VIDEO / SHORTS ── */
.home-video-section { padding:3rem 0; background:#f8fafc; }
.video-scroll-track { display:flex; gap:14px; overflow-x:auto; padding-bottom:10px; scroll-behavior:smooth; -webkit-overflow-scrolling:touch; scrollbar-width:thin; scrollbar-color:rgba(0,128,128,.3) transparent; }
.video-scroll-track::-webkit-scrollbar { height:4px; }
.video-scroll-track::-webkit-scrollbar-thumb { background:rgba(0,128,128,.3); border-radius:4px; }
.video-story-card { flex:0 0 auto; width:160px; border-radius:14px; overflow:hidden; position:relative; background:#000; aspect-ratio:9/16; cursor:pointer; transition:.3s; }
.video-story-card:hover { transform:scale(1.03); }
.video-story-card img { width:100%; height:100%; object-fit:cover; opacity:.85; }
.video-story-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.85) 0%,transparent 50%); display:flex; flex-direction:column; justify-content:flex-end; padding:10px; }
.video-story-play { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); color:#fff; font-size:2rem; opacity:.8; pointer-events:none; }
.video-story-card:hover .video-story-play { opacity:1; transform:translate(-50%,-50%) scale(1.1); }
@media(min-width:576px){ .video-story-card { width:180px; } }

/* ── GALLERY ── */
.home-gallery-section { padding:3rem 0; }
.gallery-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:1.5rem; }
.gallery-tab-btn { padding:7px 16px; border-radius:100px; border:2px solid rgba(0,128,128,.2); background:#fff; color:#008080; font-weight:700; font-size:.82rem; cursor:pointer; transition:.2s; }
.gallery-tab-btn:hover, .gallery-tab-btn.active { background:#008080; color:#fff; border-color:#008080; }
.gallery-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
@media(min-width:576px){ .gallery-grid { grid-template-columns:repeat(3,1fr); } }
@media(min-width:992px){ .gallery-grid { grid-template-columns:repeat(4,1fr); gap:14px; } }
.gallery-item { position:relative; aspect-ratio:1; border-radius:12px; overflow:hidden; cursor:pointer; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.gallery-item:hover img { transform:scale(1.07); }
.gallery-item-overlay { position:absolute; inset:0; background:rgba(0,128,128,.0); transition:.3s; display:flex; align-items:center; justify-content:center; }
.gallery-item:hover .gallery-item-overlay { background:rgba(0,128,128,.35); }
.gallery-item-overlay i { color:#fff; font-size:1.5rem; opacity:0; transform:scale(.7); transition:.3s; }
.gallery-item:hover .gallery-item-overlay i { opacity:1; transform:scale(1); }

/* ── ORGANIZATIONS ── */
.home-org-section { padding:3rem 0; background:linear-gradient(135deg,#f0fdfc 0%,#e6fafa 100%); }
.org-card { background:#fff; border:1px solid rgba(0,128,128,.1); border-radius:20px; padding:2rem 1.5rem; text-align:center; text-decoration:none; color:inherit; display:block; transition:.3s; }
.org-card:hover { transform:translateY(-5px); box-shadow:0 16px 48px rgba(0,128,128,.12); border-color:rgba(0,128,128,.3); }
.org-card-icon { width:72px; height:72px; border-radius:18px; background:linear-gradient(135deg,#008080,#40E0D0); display:flex; align-items:center; justify-content:center; margin:0 auto 1rem; }
.org-card-icon i { color:#fff; font-size:1.8rem; }
.org-card h5 { font-weight:800; color:#0f172a; font-size:1rem; margin-bottom:.5rem; }
.org-card p { color:#6b7280; font-size:.82rem; line-height:1.5; margin:0; }

/* ── POLLING ── */
.home-poll-section { padding:3rem 0; }
.poll-card { background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:18px; padding:1.5rem; transition:.3s; }
.poll-card:hover { box-shadow:0 12px 36px rgba(0,0,0,.1); }
.poll-question { font-weight:800; color:#0f172a; font-size:.95rem; line-height:1.3; margin-bottom:1rem; }
.poll-option { display:grid; grid-template-columns:20px 1fr auto; gap:8px; align-items:center; padding:9px 12px; border-radius:12px; border:1px solid rgba(0,0,0,.08); background:#f9fafb; cursor:pointer; margin-bottom:8px; transition:.2s; }
.poll-option:hover { background:#f0fdfc; border-color:rgba(0,128,128,.2); }
.poll-option input[type="radio"] { accent-color:#008080; }
.poll-option-text { font-size:.82rem; font-weight:700; color:#374151; }
.poll-option-pct { font-size:.75rem; font-weight:800; color:#008080; }
.poll-bar { grid-column:1/-1; height:6px; border-radius:100px; background:rgba(0,128,128,.1); overflow:hidden; margin-top:4px; }
.poll-bar-fill { height:100%; border-radius:100px; background:linear-gradient(90deg,#008080,#40E0D0); transform-origin:left; transform:scaleX(var(--ratio,0)); animation:pollGrow .8s cubic-bezier(.2,.9,.2,1) both; }
.poll-submit-btn { width:100%; border-radius:100px; border:none; background:linear-gradient(135deg,#008080,#40E0D0); color:#fff; font-weight:800; padding:10px; margin-top:.5rem; transition:.2s; }
.poll-submit-btn:hover { opacity:.9; transform:translateY(-1px); }
@keyframes pollGrow { from{transform:scaleX(0)} to{transform:scaleX(var(--ratio,0))} }

/* ── AGENDA ── */
.home-agenda-section { padding:3rem 0; background:#f8fafc; }
.agenda-main-card { border-radius:20px; overflow:hidden; text-decoration:none; color:inherit; display:block; transition:.3s; }
.agenda-main-card:hover { transform:translateY(-4px); box-shadow:0 18px 48px rgba(0,0,0,.12); }
.agenda-main-card .thumb { height:240px; overflow:hidden; position:relative; }
.agenda-main-card .thumb img { width:100%; height:100%; object-fit:cover; transition:.4s; }
.agenda-main-card:hover .thumb img { transform:scale(1.05); }
.agenda-item-mini { background:#fff; border-radius:14px; padding:1rem; border:1px solid rgba(0,0,0,.07); text-decoration:none; color:inherit; display:block; transition:.25s; }
.agenda-item-mini:hover { transform:translateX(4px); border-color:rgba(0,128,128,.2); box-shadow:0 6px 18px rgba(0,128,128,.08); }

/* ── EBOOK ── */
.home-ebook-section { padding:3rem 0; background:linear-gradient(135deg,#f0fdfc,#e6fafa); }
.ebook-card { background:#fff; border:1px solid rgba(0,128,128,.1); border-radius:16px; overflow:hidden; text-decoration:none; color:inherit; display:block; transition:.3s; }
.ebook-card:hover { transform:translateY(-4px); box-shadow:0 14px 40px rgba(0,128,128,.12); }
.ebook-card .thumb { aspect-ratio:3/4; overflow:hidden; background:#f3f4f6; }
.ebook-card .thumb img { width:100%; height:100%; object-fit:cover; transition:.4s; }
.ebook-card:hover .thumb img { transform:scale(1.05); }
.ebook-card .body { padding:.9rem 1rem; }
.ebook-card .body h6 { font-size:.85rem; font-weight:700; color:#0f172a; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ── HEADMASTER ── */
.home-headmaster-section { padding:3rem 0; }
.headmaster-card { background:#fff; border:1px solid rgba(0,128,128,.1); border-radius:24px; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.08); }
.headmaster-cover { position:relative; height:200px; overflow:hidden; background:linear-gradient(135deg,#008080,#40E0D0); }
.headmaster-cover img { width:100%; height:100%; object-fit:cover; opacity:.5; }
.headmaster-avatar-wrap { position:absolute; bottom:-40px; left:50%; transform:translateX(-50%); }
.headmaster-avatar { width:90px; height:90px; border-radius:50%; border:4px solid #fff; object-fit:cover; box-shadow:0 8px 24px rgba(0,0,0,.15); }
.headmaster-body { padding:3rem 1.5rem 1.5rem; text-align:center; }

/* ── MOBILE RESPONSIVE ── */
@media(max-width:991.98px) {
    .crypto-hero-mobile-title { font-size:clamp(1.4rem,6.5vw,2rem); }
    .crypto-hero-mobile-desc { font-size:.8rem; max-width:82%; }
    .crypto-hero-mobile-banner { max-width:260px; }
    .hero-logo-marquee-item img { height:42px; }
    .news-headline-card .news-thumb { height:220px; }
}
@media(max-width:575.98px) {
    .home-stats-section { padding:2rem 0; }
    .home-stat-value { font-size:2rem; }
    .home-news-section { padding:2rem 0; }
    .video-story-card { width:145px; }
    .home-cta-band { padding:2.5rem 0; }
    .gallery-grid { grid-template-columns:repeat(2,1fr); gap:8px; }
}

/* ── ARTICLE TABS ── */
.article-tabs-nav { background:#0f2a4a; border-radius:100px; padding:5px; display:flex; }
.article-tab-btn { flex:1; border-radius:100px; color:#c8a84b; font-weight:800; font-size:.9rem; padding:.75rem 1rem; border:none; background:transparent; cursor:pointer; transition:.2s; }
.article-tab-btn.active { background:#c8a84b; color:#0f2a4a; }
.article-card { background:#fff; border-radius:16px; overflow:hidden; border:1px solid rgba(0,0,0,.06); box-shadow:0 4px 16px rgba(0,0,0,.05); text-decoration:none; color:inherit; display:block; transition:.3s; height:100%; }
.article-card:hover { transform:translateY(-4px); box-shadow:0 16px 40px rgba(0,0,0,.1); }
.article-card .thumb { height:180px; overflow:hidden; background:#f3f4f6; }
.article-card .thumb img { width:100%; height:100%; object-fit:cover; transition:.4s; }
.article-card:hover .thumb img { transform:scale(1.05); }
.article-card .body { padding:1rem 1.25rem 1.25rem; }
.article-card .title { font-weight:700; font-size:.9rem; line-height:1.4; color:#0f172a; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:.5rem; }
.article-card .meta { font-size:.7rem; color:#9ca3af; }

/* ── HEADMASTER SECTION (REDESIGN) ── */
.home-headmaster-section { padding: 3rem 0; background: #fff; }

/* Featured Card — Kepala Madrasah */
.hm-featured-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,128,128,.12);
    border: 1px solid rgba(0,128,128,.1);
    display: flex;
    flex-direction: column;
}
.hm-featured-cover {
    position: relative;
    height: 320px;                  /* ← portrait penuh */
    background: linear-gradient(135deg, #008080 0%, #40E0D0 100%);
    overflow: hidden;
    flex-shrink: 0;
}
.hm-featured-bg-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;    /* ← prioritaskan wajah */
    opacity: 1;                     /* ← tampil penuh */
    transition: transform .5s ease, opacity .3s;
}
.hm-featured-card:hover .hm-featured-bg-photo { transform: scale(1.04); }
.hm-featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.08) 0%,
        rgba(0,0,0,.05) 40%,
        rgba(0,128,128,.7) 80%,
        rgba(0,100,80,.92) 100%
    );                              /* ← gelap hanya di bawah untuk teks */
}
.hm-featured-pos-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}
/* Nama & jabatan di atas foto (overlay bawah) */
.hm-cover-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.5rem 1.5rem 1.25rem;
}
.hm-featured-name-cover {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: .2rem;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hm-featured-role-cover {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0;
}
.hm-featured-body {
    padding: 1.25rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.hm-featured-bio {
    font-size: .875rem;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: .75rem;
}
.hm-featured-quote {
    background: rgba(0,128,128,.06);
    border-left: 3px solid #40E0D0;
    border-radius: 0 10px 10px 0;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.hm-quote-icon { color: #40E0D0; font-size: 1rem; margin-bottom: .35rem; display: block; }
.hm-quote-text {
    font-size: .85rem;
    font-style: italic;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}
.hm-featured-btn {
    display: inline-flex;
    align-items: center;
    padding: .65rem 1.5rem;
    border-radius: 100px;
    background: linear-gradient(135deg, #008080, #40E0D0);
    color: #fff !important;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    transition: .25s;
    align-self: flex-start;
    margin-top: auto;
    box-shadow: 0 6px 18px rgba(0,128,128,.3);
}
.hm-featured-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,128,128,.4);
    color: #fff !important;
}

/* Leader Cards — Pimpinan Lainnya */
.hm-leader-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
    transition: transform .25s, box-shadow .25s;
}
.hm-leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,128,128,.1);
    border-color: rgba(0,128,128,.2);
}
.hm-leader-photo-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdfc 0%, #e6fafa 100%);
    aspect-ratio: 4/3;
}
.hm-leader-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .4s ease;
}
.hm-leader-card:hover .hm-leader-photo { transform: scale(1.05); }
.hm-leader-info {
    padding: .75rem .85rem .85rem;
    border-top: 2px solid rgba(0,128,128,.08);
}
.hm-leader-name {
    font-weight: 800;
    font-size: .82rem;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: .2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2em;
}
.hm-leader-role {
    font-size: .7rem;
    color: #008080;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .hm-featured-cover { height: 130px; }
    .hm-featured-body { padding: 0 1.25rem 1.25rem; }
    .hm-featured-avatar { width: 80px; height: 80px; }
    .hm-featured-name { font-size: 1rem; }
}
