/* =====================================================
   STYLE.CSS - PRODI HUKUM UNIVERSITAS DEZTRON
   Biru Muda, Kuning Keemasan, Hitam
   ===================================================== */

:root {
    --nut-blue: #2a6df4;
    --nut-blue-dark: #1e4fb8;
    --nut-blue-light: #4d8df7;
    --nut-gold: #f5b301;
    --nut-gold-dark: #c78f00;
    --nut-black: #101828;
    --nut-gray: #667085;
    --nut-bg-soft: #f5f8ff;
    --nut-border: #e4e7ec;
    --nut-heading: #101828;
    --nut-radius: 16px;
    --nut-shadow: 0 20px 40px rgba(16, 24, 40, 0.08);
}

/* ---------- Base ---------- */
body {
    font-family: 'Inter', sans-serif;
    color: var(--nut-gray);
    background: #fff;
    padding-top: 76px;
    font-size: 16px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: var(--nut-heading);
    font-weight: 700;
}

a {
    color: var(--nut-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover { color: var(--nut-blue-dark); }

img { max-width: 100%; height: auto; }

::selection { background: var(--nut-gold); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c9d4; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--nut-blue); }

/* ---------- Logo ---------- */
.nut-logo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
}
.nut-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Navbar ---------- */
.nut-navbar {
    border-bottom: 1px solid var(--nut-border);
}
.nut-brand-name { font-family: 'Merriweather', serif; }
.nut-brand-sub { font-size: 0.72rem; }

.nut-navbar .nav-link {
    font-weight: 500;
    color: var(--nut-heading);
    padding: 0.5rem 0.85rem !important;
    position: relative;
}

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

.nut-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.1rem;
    height: 2px;
    background: var(--nut-gold);
    border-radius: 2px;
}

.nut-navbar .dropdown-menu {
    border: 1px solid var(--nut-border);
    box-shadow: var(--nut-shadow);
    border-radius: 12px;
    padding: 0.5rem;
}

.nut-navbar .dropdown-item {
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
}

.nut-navbar .dropdown-item:hover {
    background: var(--nut-bg-soft);
    color: var(--nut-blue);
}

@media (max-width: 991.98px) {
    .nut-navbar .nav-link.active::after { display: none; }
    body { padding-top: 68px; }
}

/* ---------- Buttons ---------- */
.btn-primary {
    --bs-btn-bg: var(--nut-blue);
    --bs-btn-border-color: var(--nut-blue);
    --bs-btn-hover-bg: var(--nut-blue-dark);
    --bs-btn-hover-border-color: var(--nut-blue-dark);
}

.btn-gold {
    background: var(--nut-gold);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-gold:hover {
    background: var(--nut-gold-dark);
    color: #fff;
}

.btn-outline-gold {
    border: 2px solid var(--nut-gold);
    color: var(--nut-gold-dark);
    font-weight: 600;
}
.btn-outline-gold:hover {
    background: var(--nut-gold);
    color: #fff;
}

.nut-btn {
    padding: 0.7rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.25s ease;
}

/* ---------- Hero ---------- */
.nut-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(120deg, #0b1e3e, #12335f 45%, #2a6df4);
    overflow: hidden;
}

.nut-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(245, 179, 1, 0.35) 0, transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(42, 109, 244, 0.5) 0, transparent 50%);
}

.nut-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.nut-hero .container { position: relative; z-index: 2; }

.nut-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    max-width: 40ch;
}

.nut-hero p {
    font-size: 1.1rem;
    max-width: 62ch;
    color: rgba(255,255,255,0.85);
}

.nut-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.nut-hero-badge i { color: var(--nut-gold); }

@media (max-width: 767.98px) {
    .nut-hero { min-height: 440px; }
}

/* ---------- Hero Carousel (multi slide) ---------- */
.nut-hero-carousel .carousel-item { min-height: 520px; }
.nut-hero-carousel .carousel-item .nut-hero { min-height: 520px; }

@media (max-width: 767.98px) {
    .nut-hero-carousel .carousel-item { min-height: 440px; }
    .nut-hero-carousel .carousel-item .nut-hero { min-height: 440px; }
}

.carousel-indicators [data-bs-target] { background-color: rgba(255,255,255,0.4); }
.carousel-indicators .active { background-color: var(--nut-gold); }
.carousel-control-prev, .carousel-control-next { width: 6%; }

/* ---------- Kurikulum Semester Badge ---------- */
.nut-semester-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a6df4, #1e4fb8);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ---------- Section Title ---------- */
.nut-section-title {
    margin-bottom: 3rem;
}

.nut-section-title .eyebrow {
    display: inline-block;
    color: var(--nut-blue);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.nut-section-title h2 {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    margin-bottom: 0.6rem;
}

.nut-section-title .title-line {
    width: 56px;
    height: 4px;
    background: var(--nut-gold);
    border-radius: 4px;
    margin: 0 auto;
}

.nut-section-title.text-start .title-line { margin: 0; }

/* ---------- Sections ---------- */
.nut-section { padding: 4.5rem 0; }
.bg-soft { background: var(--nut-bg-soft); }

/* ---------- About / Sekilas ---------- */
.nut-about-img-wrap {
    position: relative;
    border-radius: var(--nut-radius);
    overflow: hidden;
    box-shadow: var(--nut-shadow);
}

.nut-about-img-wrap::after {
    content: '';
    position: absolute;
    inset: auto -16px -16px auto;
    width: 120px;
    height: 120px;
    border-bottom: 3px solid var(--nut-gold);
    border-right: 3px solid var(--nut-gold);
    border-radius: 0 0 1rem 0;
}

.nut-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nut-check-list li {
    padding: 0.45rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.nut-check-list i {
    color: var(--nut-gold);
    margin-top: 0.3rem;
}

/* ---------- Service Cards ---------- */
.nut-card {
    background: #fff;
    border: 1px solid var(--nut-border);
    border-radius: var(--nut-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.nut-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--nut-shadow);
}

.nut-card-img {
    width: 100%;
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    vertical-align: middle;
    background: var(--nut-bg-soft);
}

.nut-card-img-placeholder {
    width: 100%;
    max-width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--nut-blue);
    background: linear-gradient(135deg, var(--nut-blue-light), var(--nut-bg-soft));
}

.nut-card-body { padding: 1.5rem; }

.nut-card-title {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.nut-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--nut-bg-soft);
    color: var(--nut-blue);
    border: 1px solid var(--nut-border);
}

/* ---------- Gallery ---------- */
.nut-gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.nut-filter-btn {
    border: 1px solid var(--nut-border);
    background: #fff;
    color: var(--nut-gray);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nut-filter-btn:hover,
.nut-filter-btn.active {
    background: var(--nut-blue);
    border-color: var(--nut-blue);
    color: #fff;
}

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

.nut-gallery-item img {
    width: 100%;
    max-width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    vertical-align: middle;
    transition: transform 0.4s ease;
}

.nut-gallery-item:hover img { transform: scale(1.06); }

.nut-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16,24,40,0.85), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nut-gallery-item:hover .nut-gallery-overlay { opacity: 1; }

.nut-gallery-overlay h6 { color: #fff; margin: 0; }
.nut-gallery-overlay small { color: var(--nut-gold); }

/* ---------- CTA Banner ---------- */
.nut-cta {
    background: linear-gradient(120deg, var(--nut-blue-dark), var(--nut-blue));
    border-radius: calc(var(--nut-radius) + 6px);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.nut-cta::before {
    content: '\f52d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 9rem;
    color: rgba(255,255,255,0.08);
}

.nut-cta h3 { color: #fff; }
.nut-cta p { color: rgba(255,255,255,0.85); }

/* ---------- Blog / Artikel ---------- */
.nut-post-meta { font-size: 0.85rem; color: var(--nut-gray); }
.nut-post-meta i { color: var(--nut-gold); }

.nut-post-card .nut-card-title { font-size: 1.05rem; line-height: 1.4; }
.nut-post-card .nut-card-title:hover { color: var(--nut-blue); }

/* ---------- Page Header (inner pages) ---------- */
.nut-page-header {
    background: linear-gradient(120deg, #0b1e3e, #12335f 45%, #2a6df4);
    color: #fff;
    padding: 4rem 0 3.2rem;
    position: relative;
    overflow: hidden;
}

.nut-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245,179,1,0.3), transparent 45%);
}

.nut-page-header .container { position: relative; z-index: 1; }

.nut-page-header h1 {
    color: #fff;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 900;
    margin-bottom: 0.3rem;
}

.nut-breadcrumb {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.nut-breadcrumb a { color: var(--nut-gold); }
.nut-breadcrumb i { color: rgba(255,255,255,0.4); font-size: 0.7rem; margin: 0 0.5rem; }

/* ---------- Tab (Profil) ---------- */
.nut-tabs .nav-link {
    border-radius: 10px;
    font-weight: 600;
    color: var(--nut-gray);
    padding: 0.7rem 1.2rem;
}

.nut-tabs .nav-link.active {
    background: var(--nut-blue);
    color: #fff;
}

.nut-alert-badge {
    background: rgba(245,179,1,0.15);
    border: 1px solid rgba(245,179,1,0.4);
    color: var(--nut-gold-dark);
    border-radius: 12px;
}

/* ---------- Dosen Cards ---------- */
.nut-dosen-card {
    text-align: center;
    border: 1px solid var(--nut-border);
    border-radius: var(--nut-radius);
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
}

.nut-dosen-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--nut-shadow);
}

.nut-dosen-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--nut-bg-soft);
    background: var(--nut-bg-soft);
}

.nut-dosen-photo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    background: linear-gradient(135deg, var(--nut-blue-light), var(--nut-blue-dark));
    color: #fff;
    margin: 0 auto;
}

/* ---------- Struktur Organisasi ---------- */
.nut-org-card {
    background: #fff;
    border: 1px solid var(--nut-border);
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.nut-org-card:hover { box-shadow: var(--nut-shadow); }

.nut-org-card .org-name {
    font-weight: 700;
    color: var(--nut-heading);
    font-family: 'Merriweather', serif;
}

.nut-org-card .org-role {
    color: var(--nut-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.nut-org-line {
    width: 2px;
    min-height: 30px;
    background: linear-gradient(var(--nut-gold), var(--nut-blue));
    margin: 0 auto;
}

/* ---------- Article Detail ---------- */
.nut-article-content { font-size: 1.05rem; line-height: 1.9; color: #475467; }
.nut-article-content h2, .nut-article-content h3 { margin-top: 1.8rem; margin-bottom: 0.8rem; }
.nut-article-content img { border-radius: 12px; margin: 1rem 0; }
.nut-article-content blockquote {
    border-left: 4px solid var(--nut-gold);
    background: var(--nut-bg-soft);
    padding: 1rem 1.2rem;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.nut-share a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nut-bg-soft);
    color: var(--nut-gray);
    border: 1px solid var(--nut-border);
    transition: all 0.2s ease;
}
.nut-share a:hover { background: var(--nut-blue); color: #fff; }

/* ---------- Forms ---------- */
.form-control:focus, .form-select:focus {
    border-color: var(--nut-blue);
    box-shadow: 0 0 0 0.2rem rgba(42,109,244,0.15);
}

.nut-form-label { font-weight: 600; color: var(--nut-heading); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.nut-contact-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--nut-border);
    border-radius: var(--nut-radius);
    transition: all 0.25s ease;
}

.nut-contact-item:hover { box-shadow: var(--nut-shadow); border-color: var(--nut-blue-light); }

/* ---------- Footer ---------- */
.nut-footer {
    background: #0b1526;
    margin-top: 4rem;
}

.nut-footer .nut-logo {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.nut-footer-title { color: var(--nut-gold); font-size: 0.85rem; }

.nut-footer-links { margin: 0; }
.nut-footer-links li { margin-bottom: 0.5rem; }
.nut-footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    transition: all 0.2s ease;
}
.nut-footer-links a:hover { color: var(--nut-gold); padding-left: 4px; }

.nut-footer-contact a { color: rgba(255,255,255,0.7); }
.nut-footer-contact a:hover { color: var(--nut-gold); }
.nut-footer-icon { color: var(--nut-gold); margin-top: 0.2rem; width: 18px; text-align: center; }

.nut-social {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s ease;
}
.nut-social:hover { background: var(--nut-gold); color: #0b1526; }

/* ---------- Floating WA ---------- */
.nut-wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 22px rgba(37,211,102,0.4);
    z-index: 999;
    transition: transform 0.25s ease;
}
.nut-wa-float:hover {
    color: #fff;
    transform: scale(1.08);
}

/* ---------- Back to top ---------- */
.nut-back-top {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--nut-blue);
    color: #fff;
    z-index: 998;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(42,109,244,0.35);
    transition: all 0.25s ease;
}
.nut-back-top:hover { background: var(--nut-blue-dark); color: #fff; }

/* ---------- FAQ / Accordion ---------- */
.accordion-button:not(.collapsed) {
    background: var(--nut-bg-soft);
    color: var(--nut-blue-dark);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(42,109,244,0.12); }

/* ---------- Pagination ---------- */
.pagination .page-link {
    color: var(--nut-blue);
    border-color: var(--nut-border);
    transition: all 0.2s ease;
    white-space: nowrap;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.pagination .page-link:hover {
    background: var(--nut-blue);
    border-color: var(--nut-blue);
    color: #fff;
}
.pagination .page-item.active .page-link {
    background: var(--nut-blue);
    border-color: var(--nut-blue);
}
.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    pointer-events: none;
}
.pagination .page-item:first-child .page-link {
    padding-left: 1rem;
}
.pagination .page-item:last-child .page-link {
    padding-right: 1rem;
}

/* ---------- Responsive adjustments ---------- */
@media (max-width: 575.98px) {
    .nut-section { padding: 3rem 0; }
    .nut-hero h1 { font-size: 1.7rem; }
}

/* ---------- Utility ---------- */
.text-gold { color: var(--nut-gold); }
.text-blue { color: var(--nut-blue); }
.bg-blue { background: var(--nut-blue); }
.bg-gold { background: var(--nut-gold); }

/* ---------- Akreditasi Image ---------- */
.akreditasi-img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    object-fit: cover;
}
.akreditasi-doc-img {
    max-width: 220px;
    max-height: 220px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
    .akreditasi-img { max-height: 220px; }
    .akreditasi-doc-img { max-width: 160px; max-height: 160px; }
}