/*
Theme Name: Khoir
Theme URI: http://example.com/
Author: Nama Anda
Author URI: http://example.com/
Description: Tema WordPress berbasis Bootstrap 5.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: bootstrap, responsive, modern
Text Domain: khoir
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary-900: #0b1f35;
    --primary-700: #11385b;
    --primary-500: #1f6dc5;
    --primary-300: #5da2f0;
    --accent-500: #f5a524;
    --neutral-900: #111928;
    --neutral-700: #1f2a37;
    --neutral-500: #6b7688;
    --neutral-200: #e5e7eb;
    --neutral-100: #f5f7fb;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 24px 48px rgba(9, 20, 42, 0.12);
    --gradient-primary: linear-gradient(135deg, #0f4c81, #195b9a, #278bd6);
    --gradient-dark: linear-gradient(160deg, rgba(8, 17, 35, 0.95), rgba(12, 53, 109, 0.9));
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--neutral-100);
    color: var(--neutral-700);
}

.kaprodi-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        border-radius: 20px;
        padding: 30px;
        margin-bottom: 50px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Bayangan halus */
        border: 1px solid #f0f0f0;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
        position: relative;
    }

    /* Efek hover agar kartu sedikit terangkat */
    .kaprodi-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 115, 170, 0.1);
    }

    /* Aksen garis vertikal di samping */
    .kaprodi-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 6px;
        background: linear-gradient(to bottom, #0073aa, #00a8ff);
    }

    .kaprodi-info {
        flex: 1;
        text-align: right;
        padding-right: 30px;
    }

    .kaprodi-info small {
        display: block;
        color: #0073aa;
        font-weight: 700;
        letter-spacing: 2px;
        margin-bottom: 8px;
        font-size: 0.75rem;
    }

    .kaprodi-info h2 {
        margin: 0 0 12px 0;
        color: #2c3e50;
        font-size: 1.8rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .kaprodi-details {
        color: #555;
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .kaprodi-details strong {
        color: #333;
    }

    /* Badge ID untuk Sinta & Scopus */
    .id-badge-container {
        margin-top: 15px;
        display: flex;
        justify-content: flex-end;
        gap: 8px;
    }

    .id-badge {
        padding: 4px 12px;
        border-radius: 50px;
        font-size: 11px;
        font-weight: 600;
        color: white;
        text-transform: uppercase;
    }

    .sinta-badge { background: #2c3e50; }
    .scopus-badge { background: #e67e22; }

    .kaprodi-img {
        width: 180px;
        height: 180px;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        border: 4px solid #fff;
    }

    /* Responsif untuk HP */
    @media (max-width: 768px) {
        .kaprodi-card {
            flex-direction: column-reverse;
            text-align: center;
            padding: 25px;
        }
        .kaprodi-info {
            text-align: center;
            padding-right: 0;
            margin-top: 20px;
        }
        .id-badge-container {
            justify-content: center;
        }
        .kaprodi-img {
            width: 140px;
            height: 140px;
        }
    }

/* Table Styling */
    .dosen-table-wrapper { overflow-x: auto; margin-top: 20px; }
    .dosen-table { width: 100%; border-collapse: collapse; background: white; }
    .dosen-table th { background-color: #0073aa; color: white; padding: 12px; text-align: left; }
    .dosen-table td { padding: 12px; border-bottom: 1px solid #eee; }
    .dosen-table tr:hover { background-color: #f5f5f5; }
    
    /* Button Styling */
    .btn-detail { 
        background-color: #2196F3; 
        color: white; 
        border: none; 
        padding: 6px 12px; 
        cursor: pointer; 
        border-radius: 4px; 
        font-size: 13px; 
        transition: 0.3s;
    }
    .btn-detail:hover { background-color: #0b7dda; }

   /* MODAL POPUP REFINED */
#modalDosen.modal { 
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.7); 
    backdrop-filter: blur(5px); /* Efek blur di belakang popup */
}

#modalDosen .modal-content { 
    background-color: #fff; 
    margin: 5% auto; 
    padding: 40px 20px; 
    border-radius: 20px; 
    width: 90%; 
    max-width: 450px; 
    position: relative; 
    text-align: center; /* Memastikan semua teks di tengah */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn { 
    position: absolute; 
    right: 20px; 
    top: 15px; 
    font-size: 24px; 
    cursor: pointer; 
    color: #333; 
    line-height: 1;
}

.modal-photo { 
    width: 150px; 
    height: 150px; 
    border-radius: 50%; /* Membuat foto bulat sempurna */
    object-fit: cover; 
    border: 5px solid #0073aa; 
    margin: 0 auto 20px auto; /* Tengahkan foto */
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#pop-nama { 
    margin: 0 0 5px 0; 
    color: #0073aa; 
    font-size: 1.5rem; 
    font-weight: 700;
    line-height: 1.2;
}

#pop-jafung { 
    margin: 0 0 20px 0; 
    color: #666; 
    font-size: 1.1rem;
    font-weight: 500;
}

.modal-detail-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    margin: 0 auto 25px auto; /* 'auto' kiri-kanan akan menengahkan box itu sendiri */
    display: block; /* Mengubah ke block agar margin auto bekerja */
    width: fit-content; /* Lebar mengikuti isi teks */
    min-width: 250px;
    text-align: center; /* Menengahkan teks di dalam box */
}

.modal-detail-box p { 
    margin: 0; 
    color: #444; 
    font-size: 1rem;
    display: block;
}

.pub-links { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
}

.pub-links a { 
    text-decoration: none; 
    padding: 10px 20px; 
    border-radius: 8px; 
    font-size: 14px; 
    font-weight: 600;
    color: white; 
    transition: 0.3s;
    flex: 1; /* Membuat tombol sama lebar */
    max-width: 150px;
}

.sinta-btn { background: #34495e; }
.scopus-btn { background: #ff6f00; }
.pub-links a:hover { opacity: 0.9; transform: translateY(-2px); }

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.letter-spacing-1 {
    letter-spacing: 0.08em;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background-color: #fff;
}

.site-header .top-bar {
    background: var(--gradient-primary);
    font-size: 0.85rem;
    padding: 0.65rem 0;
}

.navbar {
    border-bottom: 1px solid rgba(17, 24, 40, 0.05);
}

.navbar-brand .brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.navbar-brand .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.navbar-brand .brand-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-900);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--neutral-700);
    padding: 0.5rem 0;
    margin: 0 0.85rem;
    position: relative;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.current-menu-item .nav-link {
    color: var(--primary-500);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.current-menu-item .nav-link::after {
    transform: scaleX(1);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-gradient:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(23, 92, 211, 0.3);
}

.btn-outline-light:hover {
    color: #0f4c81;
    background-color: #fff;
}

/* Hero */
.hero-gallery {
    background: linear-gradient(180deg, #f5f8ff 0%, #ecf2f8 100%);
}

.hero-frame {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    width: 100%;
    margin: 0;
    box-shadow: 0 25px 60px rgba(7, 27, 47, 0.25);
}


.hero-carousel .carousel-item,
.hero-carousel .carousel-inner,
.hero-carousel .carousel {
    min-height: 60vh;
}

.hero-slide {
    height: 60vh;
    background-size: cover;
    background-position: center;
}

.hero-floating-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    background: rgba(15, 76, 129, 0.85);
    color: #fff;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-frame .carousel-control-prev,
.hero-frame .carousel-control-next {
    width: auto;
    padding: 0px;
}

.hero-frame .carousel-control-prev-icon,
.hero-frame .carousel-control-next-icon {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.hero-actions-panel {
    position: absolute;
    left: clamp(1rem, 4vw, 3rem);
    right: clamp(1rem, 4vw, 3rem);
    bottom: clamp(7rem, 4vw, 3rem);
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
    pointer-events: none;
}

.hero-action-wrapper {
    background: rgba(12, 38, 66, 0.85);
    border-radius: 30px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 20px 40px rgba(8, 41, 73, 0.25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hero-action-wrapper h2 {
    font-weight: 700;
}

.hero-frame:hover .hero-actions-panel,
.hero-frame:focus-within .hero-actions-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.3s cubic-bezier(0, 0, 0.2, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--accent-500);
}

/* Buttons */
.btn-primary:hover {
    background-color: #083a70;
    color: #fff;
}

/* Cards */
.card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.card {
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    border: none;
}

.card-title {
    font-weight: 600;
    color: var(--primary-900);
}

.card-text {
    font-size: 0.95rem;
    color: var(--neutral-500);
}

.section-heading h2 {
    font-weight: 700;
    color: var(--primary-900);
}

.unit-links {
    background: #fff;
    border-radius: var(--radius-lg);
    margin-top: -94px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-soft);
}

.unit-subtitle {
    max-width: 520px;
}

.unit-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    border: 1px solid rgba(15, 76, 129, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.unit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(45, 120, 196, 0.4);
    box-shadow: 0 20px 30px rgba(15, 76, 129, 0.18);
}

.unit-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(13, 110, 253, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-500);
}

.unit-label {
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 1.05rem;
}

.unit-arrow {
    color: var(--neutral-500);
    font-size: 1.25rem;
}

.info-panels {
    margin-top: 2rem;
}

.info-card {
    background: var(--gradient-dark);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: #fff;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.info-card.bg-white {
    background: #fff;
    color: var(--neutral-700);
}

.info-card.bg-white .info-badge {
    background: rgba(31, 109, 197, 0.12);
    color: var(--primary-500);
}

.info-card.bg-white .icon-circle {
    background: rgba(45, 120, 196, 0.1);
    color: var(--primary-500);
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
}

.info-qr {
    max-height: 200px;
    width: auto;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.mini-carousel {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 35px rgba(15, 76, 129, 0.08);
}

.carousel-dots::before {
    content: '● ● ●';
    color: rgba(15, 76, 129, 0.2);
    letter-spacing: 0.35rem;
}

.mini-carousel img {
    height: 360px;
    object-fit: cover;
}

/* Footer */
.footer {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer p {
    color: #495057;
}

.footer-links a {
    color: #007bff;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0056b3;
}

.quicklinks nav ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.quicklinks nav ul li {
    margin-bottom: 8px;
}

.quicklinks nav ul li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.quicklinks nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.footer-bottom {
    font-size: 14px;
    color: #f8f9fa;
}

/* Sidebar berita */
#news-widget ul {
    padding-left: 0;
    margin: 0;
}

#news-widget li.media {
    display: flex;
    align-items: flex-start;
}

#news-widget li.media img {
    border-radius: 4px;
    border: 1px solid #ddd;
}

#news-widget li.media .media-body h6 {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

#news-widget li.media .media-body small {
    font-size: 0.85rem;
    color: #6c757d;
}

#news-widget li.media + li.media {
    margin-top: 1rem;
}

#news-widget li.media .media-body a {
    text-decoration: none;
    color: #333;
}

#news-widget li.media .media-body a:hover {
    color: #0056b3;
    text-decoration: underline;
}

#news-widget .border-bottom {
    border-color: #ddd !important;
}

/* breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
    margin: 0 0.5rem;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #007bff;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb .breadcrumb-item a {
    font-weight: 500;
}

.breadcrumb .breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}

/* Dropdown */
.navbar-nav .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    border-radius: var(--radius-sm);
    border: none;
    box-shadow: 0 15px 30px rgba(15, 76, 129, 0.1);
    padding: 0.75rem;
}

.navbar-nav .dropdown:hover > .dropdown-menu,
.navbar-nav .dropdown.show > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu {
    margin-top: 0;
    left: 0;
    right: auto;
    z-index: 1000;
}

.navbar-nav .dropdown-menu .dropdown-item {
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    color: #333;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: #007bff;
    color: #fff;
}

.text-justify {
    text-align: justify;
}

.btn-responsive {
    font-size: 0.85rem;
}

@media (min-width: 576px) {
    .btn-responsive {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .btn-responsive {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .btn-responsive {
        font-size: 1.2rem;
    }
}

/* Gutenberg custom block */
.wp-block-media-text {
  margin: 20px 0;
  padding: 20px;
  border-radius: 12px;
  background: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  align-items: center;
}

.wp-block-media-text__media img {
  border-radius: 10px;
  border: 3px solid #ddd;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.wp-block-media-text__media img:hover {
  transform: scale(1.05);
}

.wp-block-media-text__content p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.wp-block-media-text__content strong {
  font-size: 18px;
  color: #1d4ed8;
}

.wp-block-media-text__content a {
  color: #0f766e;
  font-weight: bold;
  text-decoration: none;
}

.wp-block-media-text__content a:hover {
  text-decoration: underline;
  color: #115e59;
}

@media (max-width: 768px) {
    .hero-frame {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .hero-slider,
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-slide {
        height: 65vh;
    }
    .hero-carousel .carousel-item,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel {
        min-height: 50vh;
    }

    .hero-slide {
        height: 50vh;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }


    .unit-links {
        margin-top: -40px;
    }

    .footer-heading {
        font-size: 16px;
    }

    .footer p {
        font-size: 14px;
    }

    .wp-block-media-text {
        flex-direction: column !important;
    }

    .wp-block-media-text__media,
    .wp-block-media-text__content {
        width: 100% !important;
        text-align: center !important;
    }

        .hero-actions-panel {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            pointer-events: auto;
            margin: -7.5rem 1.5rem 3rem;
        }
}

@media (max-width: 576px) {
    .info-card,
    .mini-carousel {
        padding: 1.75rem;
    }
}

