/* ==========================================================================
   Web Profil Pondok Pesantren
   Warna tema diambil dari CSS variable (--primary, --secondary, --dark)
   yang dicetak dinamis di <head> dari Admin > Pengaturan > Tampilan.
   ========================================================================== */

:root {
    --primary: #0f5132;
    --primary-rgb: 15, 81, 50;
    --primary-dark: #0b3923;
    --primary-light: #e7eeeb;
    --secondary: #c9a227;
    --secondary-rgb: 201, 162, 39;
    --secondary-dark: #a1821f;
    --dark: #0b2a1d;
    --dark-rgb: 11, 42, 29;
    --text: #334155;
    --muted: #64748b;
    --border: #e7e5df;
    --soft: #f8f6f1;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
    --shadow: 0 12px 36px rgba(15, 23, 42, .09);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z'/%3E%3Cpath d='M40 18l6 16 16 6-16 6-6 16-6-16-16-6 16-6z'/%3E%3Ccircle cx='0' cy='0' r='10'/%3E%3Ccircle cx='80' cy='0' r='10'/%3E%3Ccircle cx='0' cy='80' r='10'/%3E%3Ccircle cx='80' cy='80' r='10'/%3E%3C/g%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.7;
    background: #fff;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 700; line-height: 1.3; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
::selection { background: rgba(var(--secondary-rgb), .35); }

/* ---------- Tombol ---------- */
.btn { font-weight: 600; border-radius: 50px; padding: .6rem 1.4rem; transition: all .25s; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .4rem 1rem; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(var(--primary-rgb), .3); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-gold { background: var(--secondary); color: #fff; border: 1px solid var(--secondary); }
.btn-gold:hover, .btn-gold:focus { background: var(--secondary-dark); border-color: var(--secondary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(var(--secondary-rgb), .35); }
.btn-outline-light:hover { color: var(--primary); }

.link-more { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }
.link-more i { transition: transform .2s; }
.link-more:hover i { transform: translateX(4px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark); color: rgba(255, 255, 255, .78); font-size: .82rem; padding: .5rem 0; }
.topbar-info span { margin-right: 1.5rem; }
.topbar-info i { color: var(--secondary); margin-right: .4rem; }
.topbar-social a { color: rgba(255, 255, 255, .78); margin-left: .9rem; }
.topbar-social a:hover { color: var(--secondary); }

/* ---------- Navbar ---------- */
.navbar-main { background: #fff; padding: .7rem 0; box-shadow: 0 1px 0 var(--border); transition: all .3s; z-index: 1030; }
.navbar-main.scrolled { padding: .45rem 0; box-shadow: var(--shadow); }
.navbar-brand { display: flex; align-items: center; gap: .7rem; margin-right: 1rem; }
.brand-logo { height: 48px; width: auto; }
.brand-mark { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--secondary); font-size: 1.35rem; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-heading); color: var(--dark); font-size: 1.15rem; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .02em; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar-main .nav-link { color: var(--dark); font-weight: 600; font-size: .9rem; padding: .5rem .75rem !important; position: relative; }
.navbar-main .nav-link:hover, .navbar-main .nav-link.active, .navbar-main .nav-link.show { color: var(--primary); }
.navbar-main .dropdown-menu { border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .5rem; min-width: 230px; }
.navbar-main .dropdown-item { border-radius: 8px; padding: .55rem .8rem; font-size: .9rem; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: .5rem; }
.navbar-main .dropdown-item i { color: var(--primary); }
.navbar-main .dropdown-item:hover, .navbar-main .dropdown-item:focus { background: var(--primary-light); color: var(--primary); }
.navbar-toggler { border: 0; padding: .4rem; display: flex; flex-direction: column; gap: 5px; box-shadow: none !important; }
.toggler-bar { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--dark); }
.toggler-bar:nth-child(2) { width: 16px; margin-left: auto; }

@media (min-width: 1200px) {
    .navbar-main .nav-link::after { content: none; }
    .navbar-main .nav-item > .nav-link:not(.dropdown-toggle)::before,
    .navbar-main .nav-link.dropdown-toggle::before { content: ''; position: absolute; left: .75rem; right: .75rem; bottom: 2px; height: 2px; border-radius: 2px; background: var(--secondary); transform: scaleX(0); transition: transform .25s; }
    .navbar-main .nav-link:hover::before, .navbar-main .nav-link.active::before { transform: scaleX(1); }
    .navbar-main .dropdown-toggle::after { content: '\F282'; font-family: 'bootstrap-icons'; border: 0; vertical-align: -1px; font-size: .7rem; margin-left: .3rem; }
    .navbar-main .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; animation: dropIn .2s ease; }
    .navbar-main .offcanvas { visibility: visible !important; }
    .navbar-main .nav-link, .navbar-main .btn { white-space: nowrap; }
}
/* Layar desktop sedang (mis. monitor 19" 1280–1366px): rapatkan menu agar tetap satu baris */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-main .nav-link { font-size: .86rem; padding: .5rem .55rem !important; }
    .navbar-main .nav-link.dropdown-toggle::before, .navbar-main .nav-item > .nav-link:not(.dropdown-toggle)::before { left: .55rem; right: .55rem; }
    .navbar-main .ms-xl-3 { margin-left: .6rem !important; }
    .navbar-brand { flex-shrink: 0; margin-right: .5rem; gap: .55rem; }
    .brand-logo { height: 44px; }
    .brand-text strong { font-size: .98rem; }
    .brand-text small { max-width: 180px; }
}
@media (min-width: 1200px) and (max-width: 1299.98px) {
    .navbar-main .nav-link { font-size: .84rem; padding: .5rem .45rem !important; }
    .navbar-main .nav-link.dropdown-toggle::before, .navbar-main .nav-item > .nav-link:not(.dropdown-toggle)::before { left: .45rem; right: .45rem; }
    .navbar-main .btn-sm { padding: .4rem .8rem; font-size: .82rem; }
    .brand-text small { display: none; }
}
@keyframes dropIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1199.98px) {
    .navbar-main .offcanvas { max-width: 320px; }
    .navbar-main .offcanvas-header { border-bottom: 1px solid var(--border); }
    .navbar-main .offcanvas-title { font-family: var(--font-heading); color: var(--primary); }
    .navbar-main .nav-link { padding: .75rem .5rem !important; border-bottom: 1px solid #f1f1ee; }
    .navbar-main .nav-link.active { color: var(--primary); }
    .navbar-main .dropdown-menu { box-shadow: none; background: var(--soft); margin-bottom: .5rem; }
    .navbar-main .dropdown-toggle::after { float: right; margin-top: .6rem; }
    .navbar-main .btn-gold { width: 100%; padding: .7rem; }
    .brand-text strong { font-size: 1.02rem; }
    .brand-text small { max-width: 170px; }
}
/* HP: nama lembaga boleh turun baris agar tombol menu tetap terlihat */
@media (max-width: 575.98px) {
    .navbar-brand { min-width: 0; flex: 1 1 0; margin-right: .5rem; gap: .55rem; white-space: normal; }
    .brand-text { min-width: 0; }
    .brand-text strong { font-size: .92rem; }
    .brand-logo { height: 42px; }
    .brand-mark { width: 42px; height: 42px; font-size: 1.2rem; }
}

/* ---------- Section umum ---------- */
.section { padding: 90px 0; }
.section-page { padding: 70px 0 90px; }
.bg-soft { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.section-sub { display: inline-flex; align-items: center; gap: .5rem; color: var(--secondary-dark); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }
.section-sub::before { content: ''; width: 28px; height: 2px; background: var(--secondary); border-radius: 2px; }
.text-center .section-sub::after { content: ''; width: 28px; height: 2px; background: var(--secondary); border-radius: 2px; }
.section-title { font-family: var(--font-heading); font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.section-desc { color: var(--muted); font-size: 1.02rem; margin: 0; }
@media (max-width: 767.98px) {
    .section { padding: 64px 0; }
    .section-page { padding: 48px 0 64px; }
    .section-head { margin-bottom: 2rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); }
.hero-swiper { height: min(88vh, 760px); min-height: 520px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); transition: transform 7s ease; }
.swiper-slide-active .hero-bg { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(var(--dark-rgb), .94) 0%, rgba(var(--primary-rgb), .78) 45%, rgba(var(--dark-rgb), .25) 100%); }
.hero-overlay::after { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .06; }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-bottom: 80px; }
.hero-content .row { width: 100%; }
.hero-label { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem; border-radius: 50px; background: rgba(var(--secondary-rgb), .18); border: 1px solid rgba(var(--secondary-rgb), .5); color: var(--secondary); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.2rem; }
.hero-title { font-family: var(--font-heading); color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.15; margin-bottom: 1.2rem; }
.hero-text { color: rgba(255, 255, 255, .85); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.swiper-slide-active .hero-label, .swiper-slide-active .hero-title, .swiper-slide-active .hero-text, .swiper-slide-active .hero-actions { animation: heroUp .9s both; }
.swiper-slide-active .hero-title { animation-delay: .15s; }
.swiper-slide-active .hero-text { animation-delay: .3s; }
.swiper-slide-active .hero-actions { animation-delay: .45s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero-nav { position: absolute; left: 0; right: 0; bottom: 120px; z-index: 5; display: flex; justify-content: space-between; align-items: center; }
.hero-pagination.swiper-pagination { position: static; width: auto; text-align: left; }
.hero-pagination .swiper-pagination-bullet { width: 10px; height: 10px; background: #fff; opacity: .45; transition: all .3s; }
.hero-pagination .swiper-pagination-bullet-active { width: 32px; border-radius: 6px; background: var(--secondary); opacity: 1; }
.hero-arrows { display: flex; gap: .5rem; }
.hero-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; backdrop-filter: blur(6px); transition: all .25s; }
.hero-arrows button:hover { background: var(--secondary); border-color: var(--secondary); }
@media (max-width: 991.98px) {
    .hero-swiper { height: 78vh; min-height: 480px; }
    .hero-overlay { background: linear-gradient(180deg, rgba(var(--dark-rgb), .55), rgba(var(--primary-rgb), .85) 60%, rgba(var(--dark-rgb), .95)); }
    .hero-content { padding-bottom: 110px; }
    .hero-arrows { display: none; }
    .hero-nav { bottom: 90px; }
}

/* ---------- Keunggulan (menumpuk di bawah hero) ---------- */
.features { position: relative; z-index: 6; }
.features-overlap { margin-top: -80px; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem; height: 100%; box-shadow: var(--shadow); border-bottom: 3px solid transparent; transition: all .3s; }
.feature-card:hover { transform: translateY(-6px); border-bottom-color: var(--secondary); box-shadow: var(--shadow-lg); }
.feature-icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: var(--primary-light); color: var(--primary); margin-bottom: 1.1rem; transition: all .3s; }
.feature-card:hover .feature-icon { background: var(--primary); color: var(--secondary); }
.feature-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.feature-card p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 575.98px) {
    .features-overlap { margin-top: -60px; }
    .feature-card { padding: 1.2rem 1rem; }
    .feature-icon { width: 46px; height: 46px; font-size: 1.25rem; margin-bottom: .8rem; }
    .feature-card h3 { font-size: .95rem; }
    .feature-card p { font-size: .8rem; line-height: 1.5; }
}

/* ---------- Sambutan ---------- */
.welcome-media { position: relative; padding: 0 2rem 2rem 0; }
.welcome-frame { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.welcome-frame img { width: 100%; height: 100%; object-fit: cover; }
.welcome-media::before { content: ''; position: absolute; top: 2rem; left: 2rem; right: 0; bottom: 0; border: 2px solid var(--secondary); border-radius: 24px; z-index: -1; }
.welcome-badge { position: absolute; left: -1rem; bottom: 3.5rem; background: var(--primary); color: #fff; padding: 1.1rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center; }
.welcome-badge strong { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--secondary); line-height: 1; }
.welcome-badge span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.arabic-quote { font-family: 'Amiri', serif; font-size: 1.6rem; color: var(--primary); margin-bottom: 1rem; direction: rtl; text-align: left; }
.welcome-text { color: var(--text); }
.welcome-text p:last-child { margin-bottom: 0; }
.welcome-sign { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px dashed var(--border); }
.welcome-sign strong { display: block; font-family: var(--font-heading); font-size: 1.2rem; color: var(--dark); }
.welcome-sign span { color: var(--muted); font-size: .9rem; }
@media (max-width: 575.98px) { .welcome-media { padding: 0 1rem 1rem 0; } .welcome-media::before { top: 1rem; left: 1rem; } .welcome-badge { left: .5rem; bottom: 2rem; } }

/* ---------- Statistik ---------- */
.stats { position: relative; padding: 70px 0; background: linear-gradient(135deg, var(--primary), var(--dark)); color: #fff; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .07; }
.stat-item { position: relative; text-align: center; }
.stat-item i { font-size: 2rem; color: var(--secondary); }
.stat-number { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; margin-top: .3rem; }
.stat-number::after { content: '+'; color: var(--secondary); }
.stat-label { color: rgba(255, 255, 255, .78); font-size: .92rem; }

/* ---------- Program ---------- */
.program-card { background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; box-shadow: var(--shadow-sm); transition: all .3s; }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-img { aspect-ratio: 16 / 10; overflow: hidden; }
.program-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.program-card:hover .program-img img { transform: scale(1.08); }
.program-body { position: relative; padding: 2.2rem 1.4rem 1.5rem; }
.program-icon { position: absolute; top: -28px; left: 1.4rem; width: 56px; height: 56px; border-radius: 14px; background: var(--secondary); color: #fff; display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 8px 20px rgba(var(--secondary-rgb), .4); }
.program-body h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.program-body p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Post / artikel ---------- */
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all .3s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-thumb img { transform: scale(1.07); }
.post-badge { position: absolute; top: 1rem; left: 1rem; background: var(--secondary); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .75rem; border-radius: 50px; text-transform: uppercase; letter-spacing: .05em; }
.post-badge.static { position: static; display: inline-block; margin-bottom: .8rem; }
.post-body { padding: 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.post-meta i { margin-right: .3rem; color: var(--secondary); }
.post-meta.light { color: rgba(255, 255, 255, .8); margin: 0; }
.post-title { font-size: 1.1rem; line-height: 1.45; margin-bottom: .6rem; }
.post-title a { color: var(--dark); }
.post-title a:hover { color: var(--primary); }
.post-excerpt { color: var(--muted); font-size: .9rem; flex-grow: 1; }

.post-featured { position: relative; display: block; border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 420px; box-shadow: var(--shadow); }
.post-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.post-featured:hover img { transform: scale(1.05); }
.post-featured::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(var(--dark-rgb), .95)); }
.post-featured-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem; z-index: 2; color: #fff; }
.post-featured-body h3 { color: #fff; font-family: var(--font-heading); font-size: clamp(1.3rem, 2.5vw, 1.75rem); margin-bottom: .6rem; }
.post-featured-body p { color: rgba(255, 255, 255, .82); font-size: .93rem; margin-bottom: 1rem; }
.post-list-item { display: flex; gap: 1.1rem; align-items: center; background: #fff; padding: .9rem; border-radius: var(--radius); border: 1px solid var(--border); transition: all .3s; flex: 1; }
.post-list-item:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateX(4px); }
.post-list-item img { width: 130px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.post-cat { font-size: .72rem; font-weight: 700; color: var(--secondary-dark); text-transform: uppercase; letter-spacing: .06em; }
.post-list-item h4 { font-size: 1rem; line-height: 1.45; margin: .2rem 0 .35rem; color: var(--dark); }
.post-list-item small { color: var(--muted); }
@media (max-width: 575.98px) {
    .post-featured { min-height: 340px; }
    .post-featured-body { padding: 1.4rem; }
    .post-list-item img { width: 96px; height: 80px; }
    .post-list-item h4 { font-size: .92rem; }
}

/* ---------- Pengumuman & Agenda ---------- */
.info-list, .agenda-list { display: flex; flex-direction: column; gap: .9rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; background: #fff; padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--border); color: inherit; transition: all .3s; }
.info-item:hover { border-color: transparent; box-shadow: var(--shadow); color: inherit; }
.info-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(var(--secondary-rgb), .15); color: var(--secondary-dark); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.info-meta { font-size: .78rem; color: var(--muted); }
.info-item h4 { font-size: 1rem; margin: .2rem 0 .3rem; }
.info-item p { font-size: .87rem; color: var(--muted); margin: 0; }
.info-arrow { color: var(--muted); align-self: center; transition: transform .2s; }
.info-item:hover .info-arrow { transform: translateX(4px); color: var(--primary); }
.agenda-item { display: flex; gap: 1rem; align-items: center; background: #fff; padding: 1rem 1.2rem; border-radius: var(--radius); border-left: 4px solid var(--secondary); box-shadow: var(--shadow-sm); }
.agenda-item h4 { font-size: 1rem; margin-bottom: .3rem; }
.agenda-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--muted); }
.agenda-meta i { color: var(--primary); margin-right: .3rem; }
.date-badge { width: 54px; flex-shrink: 0; border-radius: 12px; overflow: hidden; text-align: center; background: var(--primary); color: #fff; line-height: 1; padding: .55rem 0 .45rem; }
.date-badge strong { display: block; font-size: 1.25rem; font-family: var(--font-heading); }
.date-badge span { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--secondary); }
.date-badge.lg { width: 64px; padding: .7rem 0 .55rem; }
.date-badge.lg strong { font-size: 1.55rem; }

/* ---------- Pena Santri ---------- */
.pena-section { background: linear-gradient(180deg, #fff, var(--soft)); }
.pena-swiper { padding: .5rem .25rem 1.5rem !important; }
.pena-swiper .swiper-slide { height: auto; }
.pena-card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; box-shadow: var(--shadow-sm); border: 1px solid var(--border); color: inherit; transition: all .3s; }
.pena-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); color: inherit; }
.pena-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.pena-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pena-card:hover .pena-img img { transform: scale(1.06); }
.pena-body { position: relative; padding: 1.4rem; }
.pena-quote { position: absolute; top: -26px; right: 1.2rem; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--secondary); font-size: 1.5rem; box-shadow: var(--shadow); }
.pena-body h4 { font-size: 1.05rem; margin-bottom: .5rem; line-height: 1.45; }
.pena-body p { font-size: .88rem; color: var(--muted); min-height: 3.2em; }
.pena-author { display: flex; align-items: center; gap: .7rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.pena-author strong { display: block; font-size: .88rem; color: var(--dark); }
.pena-author small { color: var(--muted); font-size: .78rem; }
.swiper-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--dark); transition: all .25s; }
.swiper-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.swiper-btn.swiper-button-disabled { opacity: .4; pointer-events: none; }

/* ---------- Avatar ---------- */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 38px; height: 38px; font-size: .8rem; }
.avatar-initial { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--secondary); font-weight: 700; }

/* ---------- Pengasuh ---------- */
.person-card { display: block; text-align: center; background: #fff; border-radius: var(--radius); padding: 1.8rem 1.2rem 1.5rem; height: 100%; box-shadow: var(--shadow-sm); color: inherit; transition: all .3s; position: relative; overflow: hidden; }
.person-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 90px; background: linear-gradient(135deg, var(--primary), var(--dark)); }
.person-card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 90px; background: var(--pattern); opacity: .1; }
.person-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.person-photo { position: relative; z-index: 1; width: 120px; height: 120px; margin: 0 auto 1rem; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--secondary), #fff); }
.person-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; display: grid; place-items: center; font-size: 2rem; font-family: var(--font-heading); }
.person-card h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.person-card span { color: var(--secondary-dark); font-size: .85rem; font-weight: 600; }
@media (max-width: 575.98px) { .person-photo { width: 92px; height: 92px; } .person-card { padding: 1.4rem .8rem 1.2rem; } .person-card h3 { font-size: .9rem; } .person-card span { font-size: .78rem; } }

/* ---------- Galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 1rem; grid-auto-flow: dense; }
.gallery-grid .gallery-item:nth-child(8n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid .gallery-item:nth-child(8n+6) { grid-column: span 2; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem; color: #fff; background: linear-gradient(180deg, transparent 40%, rgba(var(--dark-rgb), .85)); opacity: 0; transition: opacity .3s; }
.gallery-caption i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.6); width: 52px; height: 52px; border-radius: 50%; background: var(--secondary); display: grid; place-items: center; font-size: 1.1rem; transition: transform .3s; }
.gallery-caption span { font-weight: 600; font-size: .92rem; }
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-item:hover .gallery-caption i { transform: translate(-50%, -50%) scale(1); }
@media (max-width: 991.98px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 575.98px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: .6rem; }
    .gallery-grid .gallery-item:nth-child(8n+6) { grid-column: span 2; }
    .gallery-caption { opacity: 1; background: linear-gradient(180deg, transparent 55%, rgba(var(--dark-rgb), .8)); padding: .6rem; }
    .gallery-caption i { display: none; }
    .gallery-caption span { font-size: .75rem; }
}
.gallery-filter { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.gallery-filter a { padding: .45rem 1.1rem; border-radius: 50px; border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .88rem; background: #fff; }
.gallery-filter a.active, .gallery-filter a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.gallery-uniform { grid-auto-rows: 230px; }
.gallery-uniform .gallery-item:nth-child(n) { grid-column: auto; grid-row: auto; }
@media (max-width: 575.98px) { .gallery-uniform { grid-auto-rows: 150px; } }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 90px 0; color: #fff; background: var(--bg) center / cover no-repeat; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(var(--dark-rgb), .95), rgba(var(--primary-rgb), .85)); }
.cta::after { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .06; }
.cta .container { z-index: 2; }
.cta-label { display: inline-flex; gap: .5rem; align-items: center; color: var(--secondary); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.cta h2 { color: #fff; font-family: var(--font-heading); font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: .8rem; }
.cta p { color: rgba(255, 255, 255, .82); font-size: 1.05rem; margin: 0; max-width: 640px; }

/* ---------- Kontak ---------- */
.contact-strip { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.contact-strip-info { padding: 3rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li { display: flex; gap: 1rem; padding: .8rem 0; }
.contact-list li > i { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-list strong { display: block; color: var(--dark); font-size: .9rem; }
.contact-list span { color: var(--muted); font-size: .9rem; }
.map-wrap { height: 100%; min-height: 380px; background: var(--soft); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 575.98px) { .contact-strip-info { padding: 1.8rem 1.4rem; } .map-wrap, .map-wrap iframe { min-height: 280px; } }

.contact-card { background: #fff; border-radius: var(--radius); padding: 1.6rem; text-align: center; height: 100%; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all .3s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card i { width: 60px; height: 60px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--primary); color: var(--secondary); font-size: 1.4rem; margin-bottom: 1rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.contact-card p { color: var(--muted); font-size: .9rem; margin: 0; word-break: break-word; }

/* ---------- Form ---------- */
.form-card { background: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.form-label { font-weight: 600; font-size: .88rem; color: var(--dark); }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--border); padding: .7rem 1rem; font-size: .93rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(var(--primary-rgb), .15); }
@media (max-width: 575.98px) { .form-card { padding: 1.4rem; } }

/* ---------- Page header (banner halaman dalam) ---------- */
.page-header { position: relative; padding: 90px 0 80px; background: var(--bg) center / cover no-repeat; color: #fff; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(var(--dark-rgb), .95), rgba(var(--primary-rgb), .82)); }
.page-header::after { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .06; }
.page-header .container { z-index: 2; }
.page-title { color: #fff; font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .8rem; max-width: 860px; }
.page-header .breadcrumb { margin: 0; font-size: .9rem; }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: rgba(255, 255, 255, .8); }
.page-header .breadcrumb-item a:hover { color: var(--secondary); }
.page-header .breadcrumb-item.active { color: var(--secondary); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); content: '\F285'; font-family: 'bootstrap-icons'; font-size: .7rem; vertical-align: middle; }
@media (max-width: 575.98px) { .page-header { padding: 60px 0 52px; } }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }
.widget-title { font-size: 1.05rem; padding-bottom: .8rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); position: relative; }
.widget-title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--secondary); }
.search-form { position: relative; }
.search-form .form-control { padding-right: 3rem; border-radius: 50px; }
.search-form button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; }
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list a { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; color: var(--text); border-bottom: 1px dashed var(--border); font-size: .92rem; }
.category-list li:last-child a { border-bottom: 0; }
.category-list a i { font-size: .7rem; margin-right: .5rem; color: var(--secondary); }
.category-list a:hover { color: var(--primary); }
.category-list .badge { background: var(--primary-light); color: var(--primary); border-radius: 50px; font-weight: 600; }
.recent-post { display: flex; gap: .9rem; align-items: center; padding: .6rem 0; color: inherit; }
.recent-post + .recent-post { border-top: 1px dashed var(--border); }
.recent-post img { width: 72px; height: 60px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.recent-post h6 { font-size: .88rem; line-height: 1.4; margin-bottom: .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.recent-post:hover h6 { color: var(--primary); }
.recent-post small { color: var(--muted); font-size: .76rem; }
.mini-agenda { display: flex; gap: .9rem; align-items: center; padding: .55rem 0; }
.mini-agenda h6 { font-size: .88rem; margin-bottom: .1rem; }
.mini-agenda small { color: var(--muted); font-size: .76rem; }
.widget-cta { background: linear-gradient(135deg, var(--primary), var(--dark)); color: #fff; text-align: center; border: 0; position: relative; overflow: hidden; }
.widget-cta::before { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .08; }
.widget-cta > * { position: relative; }
.widget-cta > i { font-size: 2.2rem; color: var(--secondary); }
.widget-cta h5 { color: #fff; margin: .6rem 0 .4rem; }
.widget-cta p { color: rgba(255, 255, 255, .8); font-size: .88rem; }

/* ---------- Detail konten ---------- */
.article-detail { background: #fff; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6rem; aspect-ratio: 16 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.article-meta i { color: var(--secondary); margin-right: .35rem; }
.article-title { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.content-body { font-size: 1.02rem; line-height: 1.85; color: #3b4556; }
.content-body img { border-radius: var(--radius-sm); height: auto; margin: .5rem 0; }
.content-body h2, .content-body h3, .content-body h4, .content-body h5 { margin: 1.6rem 0 .8rem; }
.content-body blockquote { border-left: 4px solid var(--secondary); background: var(--soft); padding: 1rem 1.4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--dark); margin: 1.4rem 0; }
.content-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.content-body table td, .content-body table th { border: 1px solid var(--border); padding: .6rem .8rem; }
.content-body iframe { max-width: 100%; border-radius: var(--radius-sm); }
.author-box { display: flex; gap: 1rem; align-items: center; background: var(--soft); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-top: 2rem; }
.author-box strong { display: block; color: var(--dark); }
.author-box small { color: var(--muted); }
.share-box { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.share-box span { font-weight: 700; color: var(--dark); margin-right: .3rem; }
.share-box a, .share-box button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; transition: transform .2s; }
.share-box a:hover, .share-box button:hover { transform: translateY(-3px); color: #fff; }
.share-wa { background: #25d366; } .share-fb { background: #1877f2; } .share-x { background: #111; } .share-tg { background: #229ed9; } .share-copy { background: var(--primary); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--dark); font-weight: 600; font-size: .9rem; transition: all .2s; }
.post-nav a:hover { border-color: var(--primary); color: var(--primary); }
.post-nav small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; margin-bottom: .2rem; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 575.98px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } }

.filter-info { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; background: var(--primary-light); color: var(--primary); padding: .8rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: .92rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--border); display: block; margin-bottom: .8rem; }

.pagination .page-link { border: 1px solid var(--border); margin: 0 .2rem; border-radius: 10px !important; color: var(--text); min-width: 40px; text-align: center; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-link:hover { color: var(--primary); }

/* ---------- Profil & Halaman ---------- */
.profile-card { display: block; background: #fff; border-radius: var(--radius); padding: 1.8rem; height: 100%; border: 1px solid var(--border); color: inherit; transition: all .3s; }
.profile-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.profile-card .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--primary); color: var(--secondary); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; }
.profile-card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.profile-card p { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.about-img { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .35rem 0 .35rem 2rem; position: relative; }
.check-list li::before { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: .35rem; color: var(--secondary); font-size: 1.1rem; }

/* ---------- Fasilitas ---------- */
.facility-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.facility-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.facility-card:hover img { transform: scale(1.08); }
.facility-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: #fff; background: linear-gradient(180deg, transparent 35%, rgba(var(--dark-rgb), .92)); }
.facility-body .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--secondary); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: .8rem; }
.facility-body h3 { color: #fff; font-size: 1.15rem; margin-bottom: .3rem; }
.facility-body p { font-size: .87rem; color: rgba(255, 255, 255, .82); margin: 0; max-height: 0; overflow: hidden; transition: max-height .4s; }
.facility-card:hover .facility-body p { max-height: 120px; }
@media (hover: none) { .facility-body p { max-height: none; } }

/* ---------- Pengasuh (halaman) ---------- */
.pengasuh-card { background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all .3s; display: flex; flex-direction: column; }
.pengasuh-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.pengasuh-photo { aspect-ratio: 1; background: linear-gradient(135deg, var(--primary), var(--dark)); position: relative; overflow: hidden; display: grid; place-items: center; }
.pengasuh-photo::before { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .1; }
.pengasuh-photo img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.pengasuh-photo .avatar-initial { width: 130px; height: 130px; border-radius: 50%; font-size: 2.6rem; font-family: var(--font-heading); border: 3px solid var(--secondary); position: relative; background: rgba(255, 255, 255, .08); }
.pengasuh-body { padding: 1.4rem; text-align: center; flex-grow: 1; display: flex; flex-direction: column; }
.pengasuh-body h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.pengasuh-body .role { color: var(--secondary-dark); font-weight: 600; font-size: .86rem; margin-bottom: .8rem; }
.pengasuh-body p { color: var(--muted); font-size: .88rem; flex-grow: 1; }
.modal-content { border: 0; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--dark); color: rgba(255, 255, 255, .72); padding: 80px 0 0; font-size: .92rem; overflow: hidden; }
.footer-pattern { position: absolute; inset: 0; background: var(--pattern); opacity: .04; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary)); }
.footer-brand { display: flex; align-items: center; gap: .8rem; color: #fff; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.footer-brand:hover { color: #fff; }
.footer-brand img { height: 52px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .7rem; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--secondary); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255, 255, 255, .72); transition: all .2s; }
.footer-links a:hover { color: var(--secondary); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .8rem; margin-bottom: .8rem; }
.footer-contact i { color: var(--secondary); margin-top: .15rem; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: all .25s; }
.footer-social a:hover { background: var(--secondary); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 3.5rem; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom a { color: rgba(255, 255, 255, .72); }
.footer-bottom a:hover { color: var(--secondary); }

/* ---------- Tombol melayang ---------- */
.float-wa { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); z-index: 1040; animation: pulseWa 2.4s infinite; }
.float-wa:hover { color: #fff; transform: scale(1.08); }
@keyframes pulseWa { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }
.back-to-top { position: fixed; right: 26px; bottom: 88px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; box-shadow: var(--shadow); z-index: 1040; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--secondary); }

/* ---------- Alert ---------- */
.alert { border-radius: var(--radius-sm); border: 0; }
.alert-success { background: var(--primary-light); color: var(--primary-dark); }
