/*
Theme Name: Fakultas Kesehatan UNSIL
Theme URI: https://fkesehatan.unsil.ac.id
Author: UNSIL
Author URI: https://unsil.ac.id
Description: Theme resmi Fakultas Kesehatan Universitas Siliwangi
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fkesehatan-unsil
Tags: university, health, education, responsive
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    /* === PRIMARY – Wine Rose (menggantikan pink magenta) === */
    --primary:        #C8A98A;   /* Wine rose utama */
    --primary-dark:   #926c46;   /* Deep wine – hover/active */
    --accent:         #7a5129;   /* Dusty rose medium */
    --accent-light:   #9f6e3d;   /* Rose muda */
    --accent-pale:    #F0E0E8;   /* Blush – background ringan / badge */

    /* === BASE – Bone/Cream (backbone baru) === */
    --bone:           #FDFAF5;   /* Background utama halaman */
    --cream:          #F5EDE4;   /* Hero section / section alt */
    --sand:           #EDE0D5;   /* Card background / subtle panel */
    --linen:          #E8DDD0;   /* Border / divider */
    --tan:            #C8A98A;   /* Top bar / decorative stripe */

    /* === PENDUKUNG === */
    --green:          #2E6B40;   /* Hijau gizi */
    --green-light:    #66A878;   /* Sage green */
    --gold:           #7a5129;   /* Warm gold aksen */
    --white:          #ffffff;

    /* === TEKS (warm-toned, bukan cold gray) === */
    --dark:           #2C1F18;   /* Espresso – heading gelap */
    --text:           #4A3428;   /* Body text */
    --text-muted:     #6B5C52;   /* Label / caption / muted */
    --text-hint:      #9E8E84;   /* Placeholder / hint */

    /* === GRAY FUNGSIONAL (tetap netral untuk UI state) === */
    --gray-100:       #F8F4F0;
    --gray-200:       #EDE8E3;
    --gray-400:       #C8BFB8;
    --gray-600:       #8C7D75;
    --gray-800:       #3D3028;

    /* === SHADOW & SHAPE === */
    --shadow-sm:      0 2px 8px rgba(44, 31, 24, .07);
    --shadow-md:      0 4px 20px rgba(44, 31, 24, .10);
    --shadow-lg:      0 8px 40px rgba(44, 31, 24, .15);
    --radius:         8px;
    --radius-lg:      16px;
    --transition:     all .3s ease;

    /* === FONT === */
    --font-heading:   'Lato', Georgia, serif;
    --font-body:      'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

.sarana .wp-block-cover__background {
    background-color: #926c4699;
    opacity: 0.5;
    width: 100%;
    height: 100%;
}   

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--light); /* putih tulang */
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.section-title span { color: var(--accent); }

.section-subtitle {
    font-size: .95rem;
    color: var(--gray-600);
    margin-bottom: 36px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 16px auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-light);
    color: var(--white);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
    background: #C8A98A;
    color: rgba(255,255,255,.85);
    padding: 8px 0;
    font-size: .82rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left a {
    color: rgba(255,255,255,.75);
    font-size: .8rem;
}
.top-bar-left a:hover { color: var(--gold); }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-right a {
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.2);
    transition: var(--transition);
}
.top-bar-right a:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 30px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.site-logo .logo-text {
    line-height: 1.25;
}

.site-logo .logo-text .faculty-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
}

.site-logo .logo-text .university-name {
    font-size: .75rem;
    color: var(--gray-600);
    display: block;
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav > li { position: relative; }

.main-nav > li > a {
    display: block;
    padding: 8px 14px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius);
    white-space: nowrap;
}
.main-nav > li > a:hover,
.main-nav > li.current-menu-item > a,
.main-nav > li.current-menu-ancestor > a {
    color: var(--primary);
    background: var(--light);
}

/* Dropdown */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    padding: 8px 0;
    z-index: 100;
}

.main-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .sub-menu li a {
    display: block;
    padding: 9px 18px;
    font-size: .85rem;
    color: var(--text);
}
.main-nav .sub-menu li a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 24px;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--primary);
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: var(--transition);
}

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 520px;
    background: var(--dark);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}
.slide.active { opacity: 1; }

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.5);
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.slide-text {
    max-width: 600px;
    color: var(--white);
    animation: slideIn .8s ease forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.slide-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.slide-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.slide-text p {
    font-size: 1rem;
    opacity: .9;
    margin-bottom: 28px;
    line-height: 1.6;
}

.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Slider controls */
.slider-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.slider-dot.active {
    background: var(--white);
    width: 28px;
    border-radius: 5px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.3);
    color: var(--white);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    font-size: 1.2rem;
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    background: var(--primary);
    padding: 24px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 16px 20px;
    border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: .82rem;
    opacity: .85;
    font-weight: 500;
}

/* =============================================
   DEAN / WELCOME SECTION
   ============================================= */
.dean-section {
    padding: 80px 0;
    background: var(--white);
}

.dean-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.dean-card {
    text-align: center;
}

.dean-photo {
    width: 200px;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin: 0 auto 20px;
    border: 4px solid var(--light);
    box-shadow: var(--shadow-md);
}

.dean-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.dean-title {
    font-size: .82rem;
    color: var(--gray-600);
    font-weight: 500;
}

.dean-divider {
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto;
    border-radius: 2px;
}

.welcome-content .eyebrow {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.welcome-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.25;
    margin-bottom: 20px;
}

.welcome-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: .95rem;
}

.welcome-content .btn { margin-top: 8px; }

/* =============================================
   VISI MISI
   ============================================= */
.visi-misi {
    background: var(--light);
    padding: 80px 0;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

.vm-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}
.vm-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.vm-card.misi { border-top-color: var(--accent); }

.vm-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}
.vm-card.misi .vm-card-icon { background: var(--accent); }

.vm-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.vm-card p, .vm-card li {
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.vm-card ul { padding-left: 4px; }
.vm-card ul li {
    padding: 6px 0 6px 20px;
    position: relative;
}
.vm-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: .8rem;
}

/* =============================================
   PROGRAM STUDI
   ============================================= */
.programs-section {
    padding: 80px 0;
    background: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.program-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--white);
    border: 1px solid var(--gray-200);
}
.program-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.program-card-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 32px 24px;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.program-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.program-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.program-card-header .degree {
    font-size: .78rem;
    opacity: .85;
    margin-top: 6px;
    background: rgba(255,255,255,.15);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
}

.program-card-body {
    padding: 24px;
}

.program-card-body p {
    font-size: .88rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.6;
}

.program-card-body .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
    font-size: .85rem;
}

/* =============================================
   BERITA / NEWS
   ============================================= */
.news-section {
    padding: 80px 0;
    background: var(--light);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.wp-block-post-template.post-blog > .wp-block-post{
    position: relative
}

.news-card, .wp-block-post-template.post-blog > .wp-block-post {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.news-card:hover, .wp-block-post-template.post-blog > .wp-block-post:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.news-card-img, .wp-block-post-template.post-blog > .wp-block-post > .wp-block-post-featured-image  {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--gray-200);
}

.news-card-img img, .wp-block-post-template.post-blog > .wp-block-post > .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.news-card:hover .news-card-img img,  .wp-block-post-template.post-blog > .wp-block-post:hover > .wp-block-post-featured-image img { transform: scale(1.05); }

.news-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}

.news-card-body { padding: 20px; }
.wp-block-post-template.post-blog > .wp-block-post{
    padding-bottom: 5px
}
.wp-block-post-template.post-blog > .wp-block-post > h2, .wp-block-post-template.post-blog > .wp-block-post > div {
    padding-inline: 20px;
    padding-block: 3px;
}

.news-category {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--accent);
    margin-bottom: 8px;
}

.news-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 10px;
}
.news-card-body h3 a { color: inherit; }
.news-card-body h3 a:hover { color: var(--primary); }

.news-card-body p {
    font-size: .84rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.news-read-more:hover { color: var(--accent); gap: 10px; }

.news-section-footer {
    text-align: center;
    margin-top: 40px;
}

/* =============================================
   AKREDITASI
   ============================================= */
.accreditation-section {
    padding: 80px 0;
    background: var(--tan);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.accreditation-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(27,138,90,.25) 0%, transparent 70%);
    pointer-events: none;
}

.accreditation-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.accreditation-content .eyebrow {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gold);
    margin-bottom: 14px;
}

.accreditation-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.25;
}

.accreditation-content p {
    font-size: .95rem;
    opacity: .85;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 24px;
}

.accreditation-badge {
    text-align: center;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    min-width: 200px;
}

.badge-label {
    font-size: .78rem;
    opacity: .75;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 10px;
}

.badge-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.badge-sub {
    font-size: .78rem;
    opacity: .7;
}

/* =============================================
   GALERI
   ============================================= */
.gallery-section {
    padding: 80px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 12px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,75,141,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay span {
    color: var(--white);
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
    padding: 0 12px;
}

/* =============================================
   PENELITIAN
   ============================================= */
.research-section {
    padding: 80px 0;
    background: var(--light);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.research-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.research-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}
.research-card:hover::after { transform: scaleX(1); }
.research-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.research-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.research-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.research-card p {
    font-size: .88rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* =============================================
   QUICK LINKS
   ============================================= */
.quick-links-section {
    padding: 64px 0;
    background: var(--primary);
}

.quick-links-section .section-title { color: var(--white); }
.quick-links-section .section-title span { color: var(--gold); }
.quick-links-section .section-header::after { background: var(--gold); }

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.quick-link-item {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    color: var(--white);
    transition: var(--transition);
}
.quick-link-item:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.quick-link-icon { font-size: 1.8rem; margin-bottom: 10px; }
.quick-link-item span { font-size: .8rem; font-weight: 600; display: block; }

/* =============================================
   CONTACT & MAP
   ============================================= */
.contact-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: var(--light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-item-text h4 {
    font-size: .88rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
}
.contact-item-text p, .contact-item-text a {
    font-size: .85rem;
    color: var(--gray-600);
}
.contact-item-text a:hover { color: var(--primary); }

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 360px;
    box-shadow: var(--shadow-md);
    background: var(--gray-200);
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.8);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-about .footer-logo img {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-about .footer-logo .logo-text .faculty-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--white);
}
.footer-about .footer-logo .logo-text .university-name {
    font-size: .72rem;
    color: rgba(255,255,255,.5);
}

.footer-about p {
    font-size: .84rem;
    line-height: 1.7;
    opacity: .75;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}
.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--accent);
    color: var(--white);
}

.footer-col h4 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    font-size: .84rem;
    color: rgba(255,255,255,.65);
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    opacity: .65;
}

.footer-top-links {
    display: flex;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 48px;
}
.footer-top-links a {
    font-size: .82rem;
    color: rgba(255,255,255,.65);
}
.footer-top-links a:hover { color: var(--gold); }

/* =============================================
   BLOG TEMPLATES
   ============================================= */

/* Archive / Blog index */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.page-banner h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.page-banner .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: .85rem;
    opacity: .85;
    align-items: center;
}
.page-banner .breadcrumb a { color: rgba(255,255,255,.8); }
.page-banner .breadcrumb a:hover { color: var(--white); }
.page-banner .breadcrumb .sep { opacity: .5; }

.blog-layout {
    padding: 60px 0 80px;
    background: var(--light);
}

.blog-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* Post cards in archive */
.posts-list { display: flex; flex-direction: column; gap: 24px; }

.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 260px 1fr;
    transition: var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.post-card-img {
    height: 100%;
    min-height: 200px;
    overflow: hidden;
}
.post-card-img a { display: block; height: 100%; }
.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.05); }

.post-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: .78rem;
    color: var(--gray-600);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.post-category-badge {
    background: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
}

.post-card-body h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.35;
}
.post-card-body h2 a { color: inherit; }
.post-card-body h2 a:hover { color: var(--primary); }

.post-card-body .excerpt {
    font-size: .88rem;
    color: var(--gray-600);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.read-more-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.read-more-link:hover { color: var(--accent); gap: 10px; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; }

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.sidebar-search {
    display: flex;
    gap: 8px;
}
.sidebar-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gray-400);
    border-radius: var(--radius);
    font-size: .9rem;
    font-family: var(--font-body);
    color: var(--text);
    outline: none;
}
.sidebar-search input:focus { border-color: var(--primary); }
.sidebar-search button {
    padding: 10px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    align-items: flex-start;
}
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }

.recent-post-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.recent-post-info h4 {
    font-size: .84rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 4px;
}
.recent-post-info h4 a { color: inherit; }
.recent-post-info h4 a:hover { color: var(--primary); }
.recent-post-info span { font-size: .75rem; color: var(--gray-600); }

.categories-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
}
.categories-list li:last-child { border-bottom: none; }
.categories-list li a {
    font-size: .88rem;
    color: var(--text);
}
.categories-list li a:hover { color: var(--primary); padding-left: 4px; }
.categories-list li .count {
    background: var(--light);
    color: var(--gray-600);
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
}

/* =============================================
   SINGLE POST
   ============================================= */
.single-post-layout {
    padding: 60px 0 80px;
    background: var(--light);
}

.single-post-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-featured-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.article-body { padding: 40px; }

.article-header { margin-bottom: 28px; }

.article-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: .82rem;
    color: var(--gray-600);
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
}

.article-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 20px 0;
}

/* Article content typography */
.article-content {
    font-size: .95rem;
    color: var(--text);
    line-height: 1.8;
}
.article-content p { margin-bottom: 18px; }
.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin: 32px 0 14px;
}
.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--dark);
    margin: 24px 0 10px;
}
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content img {
    border-radius: var(--radius);
    margin: 24px auto;
    box-shadow: var(--shadow-sm);
}
.article-content ul, .article-content ol {
    margin: 0 0 18px 24px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
    border-left: 4px solid var(--accent);
    background: var(--light);
    padding: 18px 24px;
    margin: 24px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-800);
}

/* Article tags */
.article-tags {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.article-tags span { font-size: .84rem; font-weight: 600; color: var(--gray-600); }
.tag {
    background: var(--light);
    color: var(--text);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    transition: var(--transition);
}
.tag:hover { background: var(--primary); color: var(--white); }

/* Post navigation */
.post-navigation {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-post { font-size: .84rem; }
.nav-post .direction {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    margin-bottom: 6px;
}
.nav-post a {
    font-weight: 600;
    color: var(--dark);
    line-height: 1.35;
}
.nav-post a:hover { color: var(--primary); }
.nav-post.next { text-align: right; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .quick-links-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
    .gallery-item:first-child { grid-column: 1 / 2; grid-row: 1 / 2; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        padding: 12px 20px;
        box-shadow: var(--shadow-lg);
        gap: 2px;
    }
    .main-nav.open > li > a { padding: 10px 0; }
    .main-nav.open .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--accent);
        margin-left: 16px;
        padding: 4px 0;
    }
    .nav-toggle { display: block; }
    .site-header { position: relative; }
    
    .dean-grid, .vm-grid, .news-grid, .research-grid, .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-container, .single-post-container { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .post-card { grid-template-columns: 1fr; }
    .accreditation-inner { grid-template-columns: 1fr; }
    .hero-slider { height: 400px; }
    .slide-content { padding: 0 24px; }
}

@media (max-width: 600px) {
    .top-bar .container { flex-direction: column; gap: 8px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .post-navigation { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* =============================================
   FK DATATABLE BLOCK
   ============================================= */
.fk-datatable-section {
    padding: 80px 0;
    background: var(--white);
}

.fk-datatable-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: opacity .2s ease;
}

/* Controls bar */
.fk-dt-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--light);
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 12px;
}

.fk-dt-left  { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fk-dt-right { display: flex; gap: 10px; align-items: center; }

/* Search */
.fk-dt-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.fk-dt-search-icon {
    position: absolute;
    left: 10px;
    font-size: .85rem;
    pointer-events: none;
}
.fk-dt-search {
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--gray-400);
    border-radius: var(--radius);
    font-size: .88rem;
    font-family: var(--font-body);
    width: 260px;
    outline: none;
    transition: var(--transition);
    background: var(--white);
}
.fk-dt-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,75,141,.1); }

/* Filter dropdowns */
.fk-dt-filter {
    padding: 8px 12px;
    border: 1px solid var(--gray-400);
    border-radius: var(--radius);
    font-size: .85rem;
    font-family: var(--font-body);
    background: var(--white);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}
.fk-dt-filter:focus { border-color: var(--primary); }

/* Per-page */
.fk-dt-perpage-label {
    font-size: .84rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
}
.fk-dt-perpage {
    padding: 6px 10px;
    border: 1px solid var(--gray-400);
    border-radius: var(--radius);
    font-size: .84rem;
    font-family: var(--font-body);
    background: var(--white);
    cursor: pointer;
    outline: none;
}

/* Table wrapper (horizontal scroll on mobile) */
.fk-dt-table-wrap {
    overflow-x: auto;
    transition: opacity .2s ease;
}

/* Table */
.fk-dt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    min-width: 860px;
}

/* Header */
.fk-dt-table thead tr {
    background: var(--primary-dark);
    color: var(--white);
}
.fk-dt-th {
    padding: 13px 14px;
    text-align: left;
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .03em;
    white-space: nowrap;
    user-select: none;
    position: relative;
}
.fk-dt-th.fk-dt-sortable {
    cursor: pointer;
    transition: background .15s ease;
}
.fk-dt-th.fk-dt-sortable:hover { background: rgba(255,255,255,.1); }
.fk-dt-th.fk-dt-sort-asc,
.fk-dt-th.fk-dt-sort-desc { background: var(--accent) !important; }

.fk-dt-sort-icon { font-size: .75rem; }

/* Body rows */
.fk-dt-table tbody tr { border-bottom: 1px solid var(--gray-200); transition: background .15s ease; }
.fk-dt-table tbody tr:hover { background: #EEF3FB; }
.fk-dt-table tbody tr:last-child { border-bottom: none; }

.fk-dt-table td {
    padding: 11px 14px;
    vertical-align: middle;
    color: var(--text);
}
.fk-dt-num  { color: var(--gray-600); font-size: .8rem; text-align: center; }
.fk-dt-nip  { font-family: monospace; font-size: .8rem; color: var(--gray-600); }
.fk-dt-nama strong { color: var(--dark); }

/* Badge */
.fk-dt-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    line-height: 1.4;
}

/* Empty / loading state */
.fk-dt-empty {
    text-align: center;
    padding: 48px 20px !important;
    color: var(--gray-600);
    font-size: .95rem;
}

/* Footer */
.fk-dt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--light);
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 10px;
}

.fk-dt-info {
    font-size: .82rem;
    color: var(--gray-600);
}

/* Pagination */
.fk-dt-pagination {
    display: flex;
    gap: 4px;
    align-items: center;
}
.fk-dt-pg-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
    font-family: var(--font-body);
}
.fk-dt-pg-btn:hover:not([disabled]):not(.active) {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
}
.fk-dt-pg-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.fk-dt-pg-btn[disabled] {
    opacity: .35;
    cursor: not-allowed;
}
.fk-dt-pg-ellipsis {
    padding: 0 4px;
    color: var(--gray-600);
    font-size: .85rem;
}

/* Responsive */
@media (max-width: 640px) {
    .fk-dt-controls { flex-direction: column; align-items: stretch; }
    .fk-dt-left, .fk-dt-right { justify-content: stretch; }
    .fk-dt-search { width: 100%; }
    .fk-dt-footer { flex-direction: column; align-items: center; }
}

/* =============================================
   FK CANVAS TEMPLATE
   ============================================= */

/* Hapus margin/padding default body pada canvas template */
body.fk-canvas-template {
    margin: 0;
    padding: 0;
}

/* Full-width: hapus constraint container dari canvas */
body.fk-canvas-template #fk-canvas-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Pastikan section dalam canvas bisa full-width */
body.fk-canvas-template .hero-slider,
body.fk-canvas-template .stats-bar,
body.fk-canvas-template .accreditation-section,
body.fk-canvas-template .quick-links-section,
body.fk-canvas-template .fk-site-footer {
    width: 100%;
}

/* =============================================
   CUSTOMIZABLE HEADER/FOOTER BLOCK VARS
   (CSS vars yang bisa dioverride via block attrs)
   ============================================= */

/* Scoped override untuk header block */
.fk-site-header {
    transition: box-shadow .3s, background .3s;
}

/* Smooth transition saat scroll */
.fk-site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,.15) !important;
}

/* =============================================
   EDITOR: hide default WP header/footer
   di halaman yang pakai canvas template
   ============================================= */
body.fk-canvas-template .site-header,
body.fk-canvas-template .top-bar,
body.fk-canvas-template .site-footer {
    display: none !important;
}


/* =============================================
   FK STAFF CARDS BLOCK
   ============================================= */
.fk-staff-cards-section {
    padding: 80px 0;
    background: var(--light);
}

/* Controls */
.fk-sc-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    gap: 12px;
    flex-wrap: wrap;
}

.fk-sc-controls-left {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.fk-sc-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 320px;
}

.fk-sc-search-icon {
    position: absolute;
    left: 11px;
    font-size: .85rem;
    pointer-events: none;
}

.fk-sc-search {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border: 1px solid var(--gray-400);
    border-radius: var(--radius);
    font-size: .88rem;
    font-family: var(--font-body);
    background: var(--white);
    outline: none;
    transition: var(--transition);
}
.fk-sc-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(107,45,139,.1); }

.fk-sc-filter {
    padding: 10px 12px;
    border: 1px solid var(--gray-400);
    border-radius: var(--radius);
    font-size: .86rem;
    font-family: var(--font-body);
    background: var(--white);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    min-width: 180px;
}
.fk-sc-filter:focus { border-color: var(--primary); }

.fk-sc-info {
    font-size: .82rem;
    color: var(--gray-600);
    white-space: nowrap;
}

/* ── Card Grid ── */
.fk-sc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transition: opacity .2s ease;
    min-height: 200px;
}

/* ── Individual Card ── */
.fk-sc-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: center;
}
.fk-sc-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Photo */
.fk-sc-photo-wrap {
    width: 100%;
    aspect-ratio: 5 / 6;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}

.fk-sc-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .4s ease;
}
.fk-sc-card:hover .fk-sc-photo { transform: scale(1.04); }

.fk-sc-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    font-family: var(--font-heading);
    letter-spacing: .05em;
}

/* Card body */
.fk-sc-body {
    padding: 16px 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fk-sc-name {
    font-family: var(--font-heading);
    font-size: .92rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
    margin: 0 0 2px;
}

.fk-sc-nip {
    font-size: .72rem;
    font-family: monospace;
    color: var(--gray-600);
    margin: 0;
    letter-spacing: .03em;
}

.fk-sc-jabatan {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.fk-sc-bidang {
    font-size: .75rem;
    color: var(--gray-600);
    margin: 0;
    font-style: italic;
    line-height: 1.3;
}

.fk-sc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: .68rem;
    font-weight: 700;
    margin-top: 6px;
    align-self: center;
    letter-spacing: .02em;
}

/* ── Skeleton loader ── */
.fk-sc-skeleton {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
}

.fk-sc-skel-photo {
    width: 100%;
    aspect-ratio: 5 / 6;
    background: linear-gradient(90deg, #ede8f4 25%, #f5f0fa 50%, #ede8f4 75%);
    background-size: 200% 100%;
    animation: fk-shimmer 1.4s infinite;
}

.fk-sc-skel-line {
    height: 12px;
    background: linear-gradient(90deg, #ede8f4 25%, #f5f0fa 50%, #ede8f4 75%);
    background-size: 200% 100%;
    animation: fk-shimmer 1.4s infinite;
    border-radius: 6px;
    margin: 0 14px;
}

@keyframes fk-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Empty state ── */
.fk-sc-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
    font-size: .95rem;
}

/* ── Pagination ── */
.fk-sc-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
}

.fk-sc-pg-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
    font-family: var(--font-body);
}
.fk-sc-pg-btn:hover:not([disabled]):not(.active) {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
}
.fk-sc-pg-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.fk-sc-pg-btn[disabled] { opacity: .35; cursor: not-allowed; }
.fk-sc-pg-ellipsis { line-height: 36px; color: var(--gray-600); font-size: .85rem; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .fk-sc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .fk-sc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .fk-sc-name    { font-size: .82rem; }
    .fk-sc-nip     { font-size: .68rem; }
    .fk-sc-jabatan { font-size: .72rem; }
    .fk-sc-bidang  { font-size: .7rem; }
    .fk-sc-badge   { font-size: .65rem; padding: 2px 8px; }
    .fk-sc-body    { padding: 12px 10px 14px; }
    .fk-sc-search-wrap { max-width: 100%; }
}

@media (max-width: 400px) {
    .fk-sc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* =============================================
   FK GALLERY BLOCK – Pinterest Style
   ============================================= */
.fk-gallery-section {
    padding: 80px 0;
    background: var(--white);
}

.fk-gal-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}

.fk-gal-tab {
    padding: 8px 20px;
    border: 2px solid var(--gray-300);
    border-radius: 24px;
    background: var(--white);
    font-size: .85rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}
.fk-gal-tab:hover          { border-color: var(--primary); color: var(--primary); }
.fk-gal-tab.active         { background: var(--primary); border-color: var(--primary); color: var(--white); }

.fk-gal-grid {
    columns: 4;
    column-gap: 14px;
    transition: opacity .2s ease;
}

.fk-gal-card {
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    display: block;
}
.fk-gal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.fk-gal-img-wrap { position: relative; overflow: hidden; }

.fk-gal-img {
    width: 100%; height: auto; display: block;
    transition: transform .5s ease;
}
.fk-gal-card:hover .fk-gal-img { transform: scale(1.06); }

.fk-gal-no-img {
    height: 180px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.fk-gal-overlay {
    position: absolute; inset: 0;
    background: rgba(107,45,139,.45);
    opacity: 0;
    transition: opacity .3s ease;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 10px;
}
.fk-gal-card:hover .fk-gal-overlay { opacity: 1; }

.fk-gal-overlay-icon  { font-size: 2rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }

.fk-gal-cat-badge {
    background: rgba(255,255,255,.9);
    color: var(--primary);
    font-size: .72rem; font-weight: 700;
    padding: 3px 12px; border-radius: 20px; letter-spacing: .04em;
}

.fk-gal-meta { padding: 10px 12px 12px; }
.fk-gal-title { font-size: .85rem; font-weight: 700; color: var(--dark); line-height: 1.35; margin-bottom: 3px; }
.fk-gal-desc  { font-size: .75rem; color: var(--gray-600); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.fk-gal-skeleton  { break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); padding-bottom: 14px; }
.fk-gal-skel-img  { width: 100%; background: linear-gradient(90deg,#ede8f4 25%,#f5f0fa 50%,#ede8f4 75%); background-size: 200% 100%; animation: fk-shimmer 1.4s infinite; margin-bottom: 10px; }
.fk-gal-skel-line { height: 11px; margin: 6px 12px 0; border-radius: 6px; background: linear-gradient(90deg,#ede8f4 25%,#f5f0fa 50%,#ede8f4 75%); background-size: 200% 100%; animation: fk-shimmer 1.4s infinite; }

.fk-gal-empty    { text-align: center; padding: 60px; color: var(--gray-600); font-size: .95rem; width: 100%; display: block; }

.fk-gal-footer   { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fk-gal-load-more { min-width: 200px; justify-content: center; }
.fk-gal-load-more.loading { opacity: .7; pointer-events: none; }
.fk-gal-info      { font-size: .82rem; color: var(--gray-600); }

/* Lightbox */
.fk-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    visibility: hidden; opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}
.fk-lightbox.open { visibility: visible; opacity: 1; }

.fk-lb-backdrop {
    position: absolute; inset: 0;
    background: rgba(10,5,20,.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fk-lb-stage {
    position: relative; z-index: 2;
    max-width: min(90vw,1100px); max-height: 90vh;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}

.fk-lb-img {
    max-width: 100%; max-height: 80vh; object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    display: block; transition: opacity .25s ease;
}
.fk-lb-img.loading { opacity: .3; }

.fk-lb-caption { color: rgba(255,255,255,.9); font-size: .9rem; text-align: center; line-height: 1.5; max-width: 600px; }
.fk-lb-caption span { display: block; font-size: .8rem; opacity: .7; margin-top: 4px; }
.fk-lb-caption em   { display: inline-block; font-style: normal; font-size: .72rem; background: rgba(255,255,255,.15); padding: 2px 10px; border-radius: 12px; margin-top: 6px; }

.fk-lb-counter { position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); font-size: .78rem; color: rgba(255,255,255,.5); white-space: nowrap; }

.fk-lb-close, .fk-lb-prev, .fk-lb-next {
    position: fixed; z-index: 3;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--white);
    cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, transform .2s ease;
    font-family: sans-serif; line-height: 1;
}
.fk-lb-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 1.2rem; }
.fk-lb-close:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }

.fk-lb-prev, .fk-lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.8rem; }
.fk-lb-prev { left: 16px; }
.fk-lb-next { right: 16px; }
.fk-lb-prev:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) scale(1.1); }
.fk-lb-next:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) scale(1.1); }

@media (max-width: 1100px) { .fk-gal-grid { columns: 3; } }
@media (max-width: 768px)  { .fk-gal-grid { columns: 2; column-gap: 10px; } .fk-gal-card { margin-bottom: 10px; } .fk-gal-title { font-size: .8rem; } .fk-lb-prev { left: 8px; } .fk-lb-next { right: 8px; } .fk-lb-prev, .fk-lb-next { width: 42px; height: 42px; font-size: 1.4rem; } }
@media (max-width: 480px)  { .fk-gal-grid { columns: 2; column-gap: 8px; } .fk-gal-meta { padding: 8px 8px 10px; } }

.max-w-50 { max-width: 50%!important; }
@media (max-width: 1100px) { .max-w-50 { max-width: 50%!important; } }
@media (max-width: 768px)  { 
    .max-w-50 { max-width: 100%!important; }
}