/* ============================================================
   PUSTAKA ILMU - SMK Muhammadiyah 1 Pati
   Modern Library Theme - Professional & Clean
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ── RESET & BASE ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── CSS VARIABLES ── */
:root {
    --primary: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .08), 0 2px 8px rgba(0, 0, 0, .05);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .12), 0 4px 16px rgba(0, 0, 0, .08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, .15);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── UTILITY ── */
.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.text-gradient {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   STICKY NAVBAR
   ============================================================ */
.pti-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--neutral-200);
    transition: var(--transition);
    padding: 0;
}

.pti-navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.pti-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 12px 0;
}

.pti-navbar .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.pti-navbar .brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pti-navbar .brand-text .name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--neutral-800);
    line-height: 1.2;
    display: block;
}

.pti-navbar .brand-text .sub {
    font-size: 11px;
    color: var(--neutral-400);
    font-weight: 400;
    display: block;
}

.pti-navbar .nav-link {
    color: var(--neutral-600) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.pti-navbar .nav-link:hover,
.pti-navbar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(29, 78, 216, 0.07);
}

.pti-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.pti-navbar .btn-nav-login {
    background: var(--primary);
    color: #fff !important;
    border-radius: var(--radius-sm);
    padding: 8px 18px !important;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
}

.pti-navbar .btn-nav-login:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
    transform: translateY(-1px);
}

/* dropdown nav */
.pti-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 180px;
}

.pti-navbar .dropdown-item {
    border-radius: var(--radius-sm);
    font-size: 14px;
    padding: 8px 12px;
    color: var(--neutral-700);
    transition: var(--transition);
}

.pti-navbar .dropdown-item:hover {
    background: var(--neutral-100);
    color: var(--primary);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.pti-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #1d4ed8 70%, #2563eb 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.pti-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 110% 50%, rgba(96, 165, 250, .18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at -10% 80%, rgba(245, 158, 11, .10) 0%, transparent 60%);
    pointer-events: none;
}

/* animated grid pattern background */
.pti-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.pti-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #93c5fd;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.pti-hero .hero-badge .dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.pti-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.pti-hero h1 .highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pti-hero .hero-desc {
    font-size: 1.05rem;
    color: #bfdbfe;
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 520px;
}

/* Search box in hero */
.pti-hero-search {
    position: relative;
}

.pti-hero-search .search-wrapper {
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 540px;
}

.pti-hero-search .search-icon {
    color: var(--neutral-400);
    font-size: 18px;
    flex-shrink: 0;
}

.pti-hero-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--neutral-800);
    font-family: 'Inter', sans-serif;
}

.pti-hero-search input::placeholder {
    color: var(--neutral-400);
}

.pti-hero-search .btn-search {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.pti-hero-search .btn-search:hover {
    box-shadow: 0 4px 20px rgba(29, 78, 216, 0.45);
    transform: translateY(-1px);
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hero-quick-links span {
    font-size: 12px;
    color: #93c5fd;
}

.hero-quick-links a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-quick-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-item .stat-num {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
}

.hero-stat-item .stat-label {
    font-size: 11px;
    color: #93c5fd;
    margin-top: 2px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Hero visual card */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-book-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 24px;
    max-width: 320px;
    width: 100%;
    position: relative;
}

.hero-book-card .book-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.hero-book-card .book-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hero-book-card .book-item:last-child {
    margin-bottom: 0;
}

.hero-book-card .book-cover {
    width: 48px;
    height: 64px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hero-book-card .book-info .book-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: block;
    line-height: 1.3;
}

.hero-book-card .book-info .book-author {
    font-size: 11px;
    color: #93c5fd;
    display: block;
    margin-top: 3px;
}

.hero-book-card .book-info .book-badge {
    font-size: 10px;
    background: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    padding: 2px 8px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 5px;
}

.hero-floating-badge {
    position: absolute;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-800);
    animation: float 3s ease-in-out infinite;
}

.hero-floating-badge.badge-1 {
    top: -16px;
    right: -20px;
}

.hero-floating-badge.badge-2 {
    bottom: 16px;
    left: -28px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-floating-badge .badge-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

/* ============================================================
   SCROLL DOWN INDICATOR
   ============================================================ */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 10;
    animation: bounce-slow 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scroll-indicator .scroll-arrow {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.pti-section {
    padding: 80px 0;
}

.pti-section-alt {
    padding: 80px 0;
    background: var(--neutral-50);
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    display: inline-block;
    background: rgba(29, 78, 216, 0.08);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--neutral-800);
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 15px;
    color: var(--neutral-600);
    line-height: 1.75;
    max-width: 560px;
}

/* ============================================================
   TOPIC PILLS / KATEGORI
   ============================================================ */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.topic-card {
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--neutral-700);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.topic-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.12);
    transform: translateY(-4px);
    color: var(--primary);
    text-decoration: none;
}

.topic-card .topic-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: var(--transition);
}

.topic-card:hover .topic-icon {
    transform: scale(1.1);
}

.topic-card .topic-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.topic-more-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: transparent;
    color: #fff !important;
}

.topic-more-card:hover {
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
    color: #fff !important;
}

.topic-more-card .topic-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   FEATURE CARDS (Keunggulan)
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.feature-card .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.feature-card .feature-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 10px;
}

.feature-card .feature-desc {
    font-size: 14px;
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ============================================================
   COLLECTION SECTION
   ============================================================ */
.collection-section {
    background: var(--neutral-900);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.collection-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 78, 216, .2) 0%, transparent 70%);
    pointer-events: none;
}

.collection-section .section-label {
    color: #93c5fd;
    background: rgba(147, 197, 253, 0.15);
}

.collection-section .section-title {
    color: #fff;
}

.collection-section .section-subtitle {
    color: #94a3b8;
}

/* slims collection component overrides */
.collection-wrapper slims-collection,
.collection-section slims-collection {
    display: block;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.stat-card:last-child::after {
    display: none;
}

.stat-card .stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
}

.stat-card .stat-plus {
    color: var(--accent);
}

.stat-card .stat-label {
    font-size: 13px;
    color: #bfdbfe;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.8;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    padding: 80px 0;
    background: var(--neutral-50);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.cta-box .cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-box .cta-desc {
    color: #bfdbfe;
    font-size: 15px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.cta-box .btn-cta-primary {
    background: #fff;
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    margin: 6px;
}

.cta-box .btn-cta-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    color: var(--primary-dark);
    text-decoration: none;
}

.cta-box .btn-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 12px 34px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    margin: 6px;
}

.cta-box .btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ============================================================
   MAP & INFO SECTION
   ============================================================ */
.info-section {
    background: #fff;
    padding: 80px 0;
}

.info-section .info-card {
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 100%;
}

.info-section .info-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 16px;
}

.info-section .info-desc {
    font-size: 14px;
    color: var(--neutral-600);
    line-height: 1.75;
    margin-bottom: 20px;
}

.info-section .map-embed {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.info-section .map-embed iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: none;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.social-btn.fb {
    background: #1877f2;
    color: #fff;
}

.social-btn.fb:hover {
    background: #0d65d9;
    box-shadow: 0 4px 12px rgba(24, 119, 242, .4);
    color: #fff;
}

.social-btn.tw {
    background: #1da1f2;
    color: #fff;
}

.social-btn.tw:hover {
    box-shadow: 0 4px 12px rgba(29, 161, 242, .4);
    color: #fff;
}

.social-btn.yt {
    background: #ff0000;
    color: #fff;
}

.social-btn.yt:hover {
    box-shadow: 0 4px 12px rgba(255, 0, 0, .4);
    color: #fff;
}

.social-btn.ig {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.social-btn.ig:hover {
    box-shadow: 0 4px 12px rgba(220, 39, 67, .4);
    color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.pti-footer {
    background: var(--neutral-900);
    color: #94a3b8;
    padding: 64px 0 0;
    position: relative;
}

.pti-footer .footer-brand .name {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.pti-footer .footer-brand .sub {
    font-size: 13px;
    color: #64748b;
    display: block;
    margin-bottom: 16px;
}

.pti-footer .footer-desc {
    font-size: 14px;
    line-height: 1.75;
}

.pti-footer .footer-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pti-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pti-footer .footer-links li {
    margin-bottom: 10px;
}

.pti-footer .footer-links a {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pti-footer .footer-links a:hover {
    color: #93c5fd;
    padding-left: 4px;
}

.pti-footer .footer-search input {
    background: var(--neutral-800);
    border: 1px solid #334155;
    color: #e2e8f0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    width: 100%;
}

.pti-footer .footer-search input::placeholder {
    color: #475569;
}

.pti-footer .footer-search input:focus {
    outline: none;
    border-color: var(--primary-light);
}

.pti-footer .footer-search .btn-footer-search {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.pti-footer .footer-search .btn-footer-search:hover {
    background: var(--primary-dark);
}

.pti-footer .footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 48px;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pti-footer .footer-bottom p {
    font-size: 13px;
    margin: 0;
}

.pti-footer .footer-bottom .powered {
    font-size: 13px;
    color: #475569;
}

.pti-footer .footer-bottom .powered code {
    color: var(--primary-light);
    font-weight: 600;
}

/* ============================================================
   TOP READER SECTION
   ============================================================ */
.pti-section .top-reader-label {
    font-size: 11px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ============================================================
   SEARCH ADVANCED WRAPPER
   ============================================================ */
.advanced-wraper {
    background: #fff;
    padding: 20px;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border-radius: var(--radius-md);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}

/* ============================================================
   OVERRIDES FOR SLIMS COMPONENTS
   ============================================================ */
.pti-section.dark-section slims-group-subject,
.collection-section slims-group-subject {
    --chip-bg: rgba(255, 255, 255, 0.1);
}

/* Retain SLiMS core functionality classes */
.subtitle-section {
    font-size: 13px;
    color: var(--neutral-400);
}

/* Biblio cards inside collections */
.collection .card {
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    transition: var(--transition);
}

.collection .card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.collection .card-text {
    font-size: 12px;
}

.card-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Search result overrides */
.result-search .c-header {
    min-height: 120px;
}

.member-area .c-header {
    min-height: 40px;
}

.result-search .pti-navbar,
.page-member .pti-navbar {
    position: sticky;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fade-up 0.6s ease both;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .pti-hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-stat-item .stat-num {
        font-size: 1.4rem;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .pti-hero-search .search-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pti-hero-search .btn-search {
        width: 100%;
        text-align: center;
    }

    .stat-card::after {
        display: none;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .pti-footer .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .topic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 16px;
        justify-content: center;
    }
}

/* ============================================================
   FEAT CARDS (Keunggulan – NEW SVG design)
   ============================================================ */
.feat-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
    border-radius: 0 0 0 var(--radius-lg);
}

.feat-card:hover::before {
    transform: scaleY(1);
}

.feat-card:hover {
    box-shadow: 0 12px 32px rgba(29, 78, 216, 0.10);
    transform: translateY(-3px);
    border-color: transparent;
}

.feat-icon-wrap {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feat-card:hover .feat-icon-wrap {
    transform: scale(1.08) rotate(-3deg);
}

.feat-body {
    flex: 1;
    min-width: 0;
}

.feat-title {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 8px;
    line-height: 1.3;
}

.feat-desc {
    font-size: 13.5px;
    color: var(--neutral-500);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 576px) {
    .feat-card {
        flex-direction: column;
    }
}