/* =========================================================
   PERPUSDA PALUTA — Landing Modern Polish
   Overrides template NiceSchool (hijau institutional).
   ========================================================= */

:root {
    --pm-accent: #08915e;
    --pm-accent-dark: #067048;
    --pm-accent-soft: rgba(8, 145, 94, 0.12);
    --pm-heading: #153047;
    --pm-body: #4b5a66;
    --pm-radius: 14px;
    --pm-shadow-sm: 0 6px 18px rgba(21, 48, 71, 0.07);
    --pm-shadow-lg: 0 18px 42px rgba(21, 48, 71, 0.16);
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--pm-accent);
    color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #eef3f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--pm-accent), var(--pm-accent-dark));
    border-radius: 8px;
    border: 2px solid #eef3f1;
}

body {
    letter-spacing: 0.1px;
}

/* ---------- Header / Navbar ---------- */
.header {
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.header.scrolled {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(21, 48, 71, 0.12);
}

.navmenu > ul > li > a {
    font-weight: 600;
    letter-spacing: 0.2px;
    position: relative;
}

.navmenu > ul > li > a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2px;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--pm-accent);
}

/* ---------- Hero ---------- */
.hero .hero-container {
    min-height: 92vh;
}

.hero .hero-container .overlay {
    background: linear-gradient(115deg,
            rgba(9, 53, 38, 0.82) 0%,
            rgba(9, 53, 38, 0.55) 45%,
            rgba(8, 145, 94, 0.18) 100%);
}

.hero .hero-container .hero-background {
    transform: scale(1.02);
}

.hero .hero-container .hero-content h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.18;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.25);
}

.hero .hero-container .hero-content p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.18rem;
    max-width: 560px;
}

.hero .hero-container .hero-content .cta-buttons .btn-primary,
.hero .hero-container .hero-content .cta-buttons .btn-secondary {
    border-radius: 50px;
    padding: 0.85rem 2.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
}

.hero .hero-container .hero-content .cta-buttons .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.hero .hero-container .hero-content .cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: #fff;
}

.hero .hero-container .hero-content .cta-buttons .btn-secondary:hover {
    background: #fff;
    color: var(--pm-accent-dark);
    transform: translateY(-4px);
}

/* ---------- Event ticker ---------- */
.hero .event-ticker {
    background: linear-gradient(90deg, var(--pm-accent-dark) 0%, var(--pm-accent) 100%);
}

.hero .event-ticker .ticker-item .date {
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero .event-ticker .ticker-item .btn-register {
    border-radius: 50px;
    font-weight: 600;
}

/* ---------- Page title (inner pages) ---------- */
.page-title {
    padding: 170px 0 90px 0;
}

.page-title:before {
    background: linear-gradient(180deg,
            rgba(7, 46, 32, 0.88) 0%,
            rgba(10, 70, 47, 0.72) 60%,
            rgba(8, 145, 94, 0.5) 100%);
}

.page-title h1 {
    font-weight: 700;
    letter-spacing: -0.4px;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.3);
}

.page-title .breadcrumbs ol {
    gap: 8px;
}

.page-title .breadcrumbs ol li a,
.page-title .breadcrumbs ol li.current {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-title .breadcrumbs ol li a:hover {
    background: var(--pm-accent);
    color: #fff;
}

.page-title .breadcrumbs ol li+li {
    padding-left: 0;
}

.page-title .breadcrumbs ol li+li::before {
    content: none;
}

.page-title .breadcrumbs ol li.current {
    background: var(--pm-accent);
    color: #fff;
}

/* ---------- Section titles ---------- */
.section-title h2 {
    font-weight: 700;
    letter-spacing: -0.4px;
}

.section-title p {
    color: var(--pm-body);
    font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn-explore {
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(8, 145, 94, 0.28);
}

.impact-buttons .btn-learn-more,
.events .event-actions .btn-learn-more {
    border-radius: 50px;
    font-weight: 600;
}

/* ---------- Cards (book / service / event / news) ---------- */
.book-card,
.service-card,
.event-card,
.related-card {
    border: 1px solid rgba(21, 48, 71, 0.04);
}

.book-card:hover .book-cover img,
.post-item:hover .post-img img,
.event-card:hover .event-date {
    transform: scale(1.06);
}

.book-cover,
.post-img {
    overflow: hidden;
}

.book-cover img,
.post-img img {
    transition: transform 0.45s ease;
}

.side-posts .post-item {
    background: var(--surface-color);
    border: 1px solid rgba(21, 48, 71, 0.05);
    box-shadow: var(--pm-shadow-sm);
    transition: all 0.35s ease;
}

.side-posts .post-item:hover {
    box-shadow: var(--pm-shadow-lg);
    transform: translateY(-6px);
}

/* ---------- Category pills / badges ---------- */
.post-category,
.book-category,
.event-tag,
.category-wrapper .category span {
    border-radius: 50px !important;
    letter-spacing: 0.3px;
    font-weight: 600;
}

/* ---------- Blog detail ---------- */
.article {
    box-shadow: var(--pm-shadow-sm);
    border: 1px solid rgba(21, 48, 71, 0.04);
}

.article .title {
    font-weight: 700;
    letter-spacing: -0.4px;
}

.article-featured-image {
    border-radius: var(--pm-radius);
    overflow: hidden;
}

.share-buttons .share-button {
    border-radius: 50px;
    transition: all 0.3s ease;
}

.share-buttons .share-button:hover {
    transform: translateY(-3px);
}

.table-of-contents {
    background: #f6faf8;
    border: 1px solid rgba(8, 145, 94, 0.15);
    border-radius: var(--pm-radius);
}

/* ---------- Book detail ---------- */
.book-detail {
    border: 1px solid rgba(21, 48, 71, 0.04);
}

.book-detail .book-cover {
    min-height: 420px;
}

/* ---------- Pagination ---------- */
.pagination .page-link {
    border-radius: 50px !important;
    margin: 0 3px;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(21, 48, 71, 0.06);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--pm-accent), var(--pm-accent-dark));
    box-shadow: 0 8px 18px rgba(8, 145, 94, 0.32);
}

/* ---------- Search box (koleksi) ---------- */
.search-container {
    border: 1px solid rgba(21, 48, 71, 0.05);
    box-shadow: var(--pm-shadow-sm);
}

.search-container .search-btn {
    border-radius: 0 8px 8px 0;
    font-weight: 600;
}

.search-container .form-control {
    border-radius: 8px 0 0 8px;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 4px solid var(--pm-accent);
}

.footer .footer-about .logo span {
    font-weight: 800;
    letter-spacing: 0.5px;
}

.footer .footer-links ul li a {
    transition: all 0.3s ease;
}

.footer .footer-links ul li a:hover {
    padding-left: 8px;
    color: #4fd1a4;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.2rem;
}

/* ---------- Scroll top ---------- */
.scroll-top {
    background: linear-gradient(135deg, var(--pm-accent), var(--pm-accent-dark));
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(8, 145, 94, 0.4);
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--pm-accent-dark), var(--pm-accent));
    transform: translateY(-4px);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero .hero-container {
        min-height: 84vh;
        padding: 150px 0 70px 0;
    }

    .page-title {
        padding: 140px 0 70px 0;
    }
}

@media (max-width: 576px) {
    .hero .hero-container .hero-content p {
        font-size: 1rem;
    }

    .page-title h1 {
        font-size: 1.55rem;
    }

    .hero .event-ticker .ticker-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* =========================================================
   Typography — Skala Font Elegan
   Judul proporsional (tidak kebesaran), hierarki konsisten.
   ========================================================= */

body {
    font-size: 0.95rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

h1 {
    font-size: clamp(1.55rem, 2.5vw, 2rem);
}

h2 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
}

h3 {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

h4 {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

/* Page title (halaman dalam) */
.page-title h1 {
    font-size: clamp(1.6rem, 3vw, 2rem);
}

/* Section title */
.section-title h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

/* Hero */
.hero .hero-container .hero-content h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

/* Blog detail */
.blog-details .article-header .title {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.blog-details .article-wrapper .article-content .content-section h2 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
}

/* Angka statistik / penekan */
.stats .stats-overview .stats-title,
.stats .stats-card .stats-number {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
}

.students-life .students-life-tabs .tab-content .stats-container .stat-item .number,
.campus-facilities .intro-row .intro-content .stats-container .stat-item .stat-number,
.alumni .alumni-hero .hero-content .alumni-metrics .metric .counter {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
}

/* Bagian template lain yang tadinya sangat besar (2.2–2.8rem) */
.events .section-title h2,
.history .about-content h2,
.leadership .section-heading,
.admissions h2,
.alumni .section-header h3,
.alumni .impact-banner .impact-content h3,
.event .event-content h2,
.campus-facilities .intro-row .intro-content h2,
.students-life-block .students-life-content h2,
.students-life .students-life-banner .banner-content h2,
.privacy .privacy-header .header-content h1,
.error-404 .error-title {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

/* Ikon besar dalam blok (bukan teks judul) */
.history .core-values .value-card .value-icon i,
.admissions .cta-wrapper .cta-item i,
.blog-details .article-wrapper .article-content .content-section .info-box .icon i,
.blog-details .article-wrapper .article-content .content-section .future-trends .trend i {
    font-size: 1.6rem;
}

@media (max-width: 992px) {
    .hero .hero-container .hero-content h1 {
        font-size: 2.1rem;
    }

    .page-title h1 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .blog-details .article-header .title {
        font-size: 1.6rem;
    }
}
