/* =========================================================
   LP2M UTM - GLOBAL STYLESHEET
   Dipakai bersama oleh seluruh halaman HTML
   Bootstrap 5.3.3 + Font Awesome 6.5.2
========================================================= */

:root {
    --primary: #0d6efd;
    --primary-dark: #0872d9;
    --primary-light: #e9f2ff;
    --body-bg: #f5f7fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --footer-bg: #1f2d3d;
    --white: #ffffff;

    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --shadow-sm: 0 3px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.10);

    --transition: all 0.2s ease;
}


/* =========================================================
   BODY / GLOBAL
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--body-bg);
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    transition: var(--transition);
}

img {
    max-width: 100%;
}


/* =========================================================
   NAVBAR
   Standar untuk semua halaman
========================================================= */

.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    line-height: 1.2;
}

.navbar-brand small {
    display: block;
    font-size: 11px;
    color: #555;
    font-weight: 400;
    margin-top: 2px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    margin-left: 8px;
    margin-right: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link.active {
    font-weight: 600;
}

.navbar-toggler {
    border: 1px solid #ddd;
    padding: 6px 9px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}


/* =========================================================
   HOMEPAGE - BANNER
========================================================= */

.banner-section {
    background: var(--white);
    padding: 0;
}

.banner-wrapper {
    width: 100%;
    overflow: hidden;
    background: var(--primary);
}

.banner-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   HOMEPAGE - SEARCH
========================================================= */

.search-section {
    margin-top: -25px;
    position: relative;
    z-index: 10;
}

/* Search setelah banner homepage */
.banner-section + .search-section {
    margin-top: -35px;
}

.search-box,
.search-card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.search-box {
    padding: 20px;
}

.search-box .form-control {
    height: 48px;
}

.search-box .btn {
    height: 48px;
}

.search-input,
.search-select,
.search-button {
    height: 48px;
}

.search-wrapper {
    margin-top: -25px;
    position: relative;
    z-index: 10;
}

.search-card {
    box-shadow: var(--shadow-md);
}


/* =========================================================
   PAGE HEADER
   Dipakai halaman Penelitian, PkM, Publikasi, Dosen,
   Pengumuman, Download dan halaman detail
========================================================= */

.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 50px 0;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.page-header p {
    margin-bottom: 0;
    opacity: 0.9;
}

.page-header .meta {
    font-size: 14px;
    opacity: 0.9;
}

.back-link,
.back-button {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
}

.back-link:hover {
    color: #e9f2ff;
    text-decoration: underline;
}

.back-button {
    display: inline-block;
}

.back-button:hover {
    color: var(--primary);
}


/* =========================================================
   SECTION / HEADING
========================================================= */

.section-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-subtitle {
    color: #777;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.detail-wrapper .section-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
}


/* =========================================================
   HOMEPAGE - STATISTICS
========================================================= */

.stats-section {
    padding: 55px 0 35px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px 15px;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf3ff;
    color: var(--primary);
    font-size: 22px;
}

.stat-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: #777;
    font-size: 14px;
}


/* =========================================================
   HOMEPAGE - LAYANAN
========================================================= */

.services-section {
    padding: 45px 0;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px 20px;
    height: 100%;
    text-align: center;
    text-decoration: none;
    color: #333;
    display: block;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    background: #eaf3ff;
    color: var(--primary);
}

.service-card h5 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 7px;
}

.service-card p {
    color: #777;
    font-size: 13px;
    margin: 0;
}


/* =========================================================
   HOMEPAGE - CONTENT CARD
========================================================= */

.content-section {
    padding: 45px 0;
}

.content-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.content-card-body {
    padding: 22px;
}

.content-card h5 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.content-card h5 a {
    text-decoration: none;
    color: #222;
}

.content-card h5 a:hover {
    color: var(--primary);
}

.content-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.content-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.content-meta i {
    color: var(--primary);
    margin-right: 4px;
}

.badge-category {
    display: inline-block;
    background: #eaf3ff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 20px;
    margin-bottom: 10px;
}


/* =========================================================
   DETAIL - WRAPPER / CARD
========================================================= */

.detail-wrapper {
    margin-top: -25px;
    position: relative;
    z-index: 10;
}

.detail-card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}


/* =========================================================
   DETAIL - INFORMATION
========================================================= */

.info-item {
    margin-bottom: 20px;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
}

.info-icon {
    width: 30px;
    color: var(--primary);
}


/* =========================================================
   DETAIL - AUTHOR / MEMBER
========================================================= */

.author-item,
.member-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    margin-bottom: 10px;
    background: var(--white);
}


/* =========================================================
   DETAIL - ABSTRACT
========================================================= */

.abstract {
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

.abstract p {
    margin-bottom: 15px;
}


/* =========================================================
   DETAIL - KEYWORD
========================================================= */

.keyword {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 5px;
    margin-bottom: 5px;
}


/* =========================================================
   DETAIL PUBLIKASI - DOI
========================================================= */

.doi-box {
    background-color: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
}


/* =========================================================
   PDF BUTTON
========================================================= */

.btn-pdf {
    color: #dc3545;
    border-color: #dc3545;
    white-space: nowrap;
}

.btn-pdf:hover {
    background-color: #dc3545;
    color: var(--white);
}


/* =========================================================
   DETAIL / PDF SECTION
========================================================= */

.pdf-section {
    background-color: #f8f9fa;
    border-radius: var(--radius-md);
    padding: 20px;
}


/* =========================================================
   DOSEN - SEARCH / CARD
========================================================= */

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.lecturer-card {
    background-color: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.lecturer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.lecturer-photo-wrapper {
    padding-top: 25px;
    text-align: center;
}

.lecturer-photo {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f1f3f5;
}

.lecturer-info {
    padding: 18px 10px 22px;
    text-align: center;
}

.lecturer-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 4px;
}

.lecturer-degree {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.lecturer-study {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 15px;
    min-height: 40px;
}

.result-info {
    color: #495057;
    font-size: 0.95rem;
}


/* =========================================================
   PENELITIAN
========================================================= */

.research-card {
    border: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.research-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.research-title {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
}

.research-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.research-meta i {
    width: 18px;
}

.research-year {
    background-color: var(--primary-light);
    color: var(--primary);
}


/* =========================================================
   PKM
========================================================= */

.pkm-card {
    border: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.pkm-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.pkm-title {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
}

.pkm-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pkm-meta i {
    width: 18px;
}

.pkm-year {
    background-color: var(--primary-light);
    color: var(--primary);
}


/* =========================================================
   PUBLIKASI
========================================================= */

.publication-card {
    border: 1px solid #e9ecef;
    border-radius: var(--radius-md);
    background-color: var(--white);
    transition: var(--transition);
}

.publication-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.publication-title {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
}

.publication-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.publication-meta i {
    width: 20px;
    color: var(--primary);
}

.publication-badge {
    background-color: var(--primary-light);
    color: var(--primary);
}


/* =========================================================
   PENGUMUMAN
========================================================= */

.announcement-card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    transition: var(--transition);
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.announcement-date {
    width: 65px;
    min-width: 65px;
    height: 65px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.announcement-date .day {
    font-size: 24px;
    font-weight: 700;
}

.announcement-date .month {
    font-size: 12px;
    margin-top: 5px;
    text-transform: uppercase;
}

.announcement-title {
    color: var(--text-dark);
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
}

.announcement-title:hover {
    color: var(--primary);
}

.announcement-summary {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.announcement-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.badge-pengumuman {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}


/* =========================================================
   DOWNLOAD
========================================================= */

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.category-title i {
    color: var(--primary);
}

.document-card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
    transition: var(--transition);
}

/* Kartu dokumen pada homepage */
.document-card.home-document,
.document-card.document-home {
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Tetap kompatibel dengan HTML homepage lama
   yang masih memakai class document-card saja. */
.home-document {
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.document-icon {
    width: 55px;
    min-width: 55px;
    height: 55px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.document-card h6 {
    margin-bottom: 5px;
    font-weight: 700;
}

.document-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.document-description {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.document-meta {
    color: var(--text-muted);
    font-size: 12px;
}

.btn-download {
    white-space: nowrap;
}

.badge-document {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination .page-link {
    color: var(--primary);
    border-radius: 6px;
    margin: 0 3px;
}

.pagination .page-item.active .page-link,
.pagination .active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}


/* =========================================================
   PDF VIEWER
========================================================= */

.pdf-wrapper {
    padding: 25px 0 40px;
}

.pdf-card {
    background-color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.pdf-toolbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pdf-toolbar-title,
.pdf-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #495057;
}

.pdf-toolbar-info {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-back {
    border-color: #6c757d;
    color: #495057;
}

.btn-back:hover {
    background-color: #6c757d;
    color: var(--white);
}

.pdf-viewer {
    width: 100%;
    height: 900px;
    border: none;
    display: block;
    background-color: #525659;
}


/* =========================================================
   FOOTER
   Diseragamkan mengikuti desain index.html
========================================================= */

footer {
    background-color: var(--footer-bg);
    color: #ddd;
    padding: 50px 0 20px;
    margin-top: 50px;
}

footer h5,
footer h6 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 18px;
}

footer p {
    font-size: 14px;
    line-height: 1.7;
    color: #c5c5c5;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 9px;
}

footer ul li a {
    color: #c5c5c5;
    text-decoration: none;
    font-size: 14px;
}

footer ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 30px;
    padding-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #aaa;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 991px) {

    .navbar-nav {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        margin-right: 0;
        padding: 10px 0;
        border-bottom: 1px solid #f1f1f1;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .banner-image {
        max-height: none;
    }

    .lecturer-photo {
        width: 115px;
        height: 115px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .search-section {
        margin-top: -20px;
    }

    .banner-section + .search-section {
        margin-top: -20px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 767px) {

    .banner-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .search-box {
        padding: 15px;
    }

    .search-box .form-control {
        border-radius: var(--radius-sm);
        margin-bottom: 10px;
    }

    .search-box .btn {
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .stats-section {
        padding-top: 40px;
    }

    .section-header {
        display: block;
    }

    .section-header a {
        display: inline-block;
        margin-top: 8px;
    }

    .page-header {
        padding: 35px 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .pdf-viewer {
        height: 700px;
    }

    .pdf-toolbar {
        padding: 10px 12px;
    }

    .document-card.home-document {
        padding: 15px;
    }
}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 576px) {

    .document-icon {
        width: 48px;
        min-width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .document-title {
        font-size: 15px;
    }

    .btn-download {
        margin-top: 10px;
    }

    .announcement-card .card-body {
        padding: 15px;
    }

    .announcement-date {
        width: 55px;
        min-width: 55px;
        height: 55px;
    }

    .announcement-date .day {
        font-size: 20px;
    }

    .announcement-title {
        font-size: 17px;
    }

    .btn-pdf {
        margin-top: 12px;
    }

    .pdf-viewer {
        height: 600px;
    }

    .pdf-toolbar-title {
        font-size: 13px;
    }

    .pdf-toolbar-info {
        display: none;
    }
}


/* =========================================================
   CATATAN:
   Untuk kartu dokumen pada homepage, gunakan:
   class="document-card home-document"

   Jika HTML lama masih menggunakan:
   class="document-card"
   tanpa "home-document", tampilan tetap berfungsi,
   tetapi versi homepage akan lebih tepat dengan class tersebut.
========================================================= */
