/*
 * fh-global.css
 * Sistem Desain Global — Website Fakultas Hukum
 * Berlaku untuk semua halaman user
 * =========================================================
 */

/* =========================================================
   1. CSS VARIABLES
========================================================= */

:root {
    /* Warna utama */
    --fh-primary:       #620000;
    --fh-primary-dk:    #3b0000;
    --fh-primary-lt:    #8b1a1a;
    --fh-primary-pale:  #fdf5f5;

    /* Warna netral */
    --fh-bg:            #f5f7fa;
    --fh-bg-2:          #eef1f5;
    --fh-white:         #ffffff;
    --fh-text:          #222222;
    --fh-muted:         #6b6b6b;
    --fh-border:        #e2e5ea;

    /* Warna aksen */
    --fh-success:       #22c55e;
    --fh-warning:       #f59e0b;
    --fh-info:          #3b82f6;

    /* Radius */
    --fh-radius-sm:     6px;
    --fh-radius:        12px;
    --fh-radius-lg:     18px;

    /* Shadow */
    --fh-shadow-sm:     0 2px 12px rgba(0,0,0,.06);
    --fh-shadow:        0 4px 24px rgba(0,0,0,.07);
    --fh-shadow-lg:     0 8px 36px rgba(0,0,0,.10);
    --fh-shadow-focus:  0 0 0 3px rgba(98,0,0,.12);

    /* Transition */
    --fh-transition:    .2s ease;
}


/* =========================================================
   2. RESET DASAR
========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

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


/* =========================================================
   3. HERO SECTION
========================================================= */

.page-hero {
    position: relative;
    padding: 80px 0 115px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, var(--fh-primary) 0%, var(--fh-primary-dk) 100%);
}

/* Dekorasi: lingkaran transparan */
.page-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -170px;
    top: -220px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}

/* Gelombang bawah */
.page-hero::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -72px;
    height: 130px;
    background: var(--fh-bg);
    border-radius: 50% 50% 0 0;
}

/* Konten dalam hero */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.88);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.3px;
    color: #fff;
}

.hero-desc {
    max-width: 650px;
    margin: 0;
    font-size: 16px;
    color: rgba(255,255,255,.82);
    line-height: 1.8;
}

/* Hero tanpa deskripsi (minimal) */
.page-hero--simple {
    padding: 65px 0 100px;
}

.page-hero--simple h1 {
    font-size: 34px;
}


/* =========================================================
   4. CONTENT SECTION
========================================================= */

.content-section {
    padding: 50px 0 75px;
    background: var(--fh-bg);
}


/* =========================================================
   5. CONTENT CARD (card putih utama)
========================================================= */

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

/* Header card */
.content-card__header {
    padding: 28px 32px 24px;
    border-bottom: 1px solid var(--fh-border);
    background: linear-gradient(to right, #fdfafa, #fff);
}

.content-card__label {
    display: block;
    margin-bottom: 7px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--fh-primary);
}

.content-card__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 750;
    color: var(--fh-primary);
    line-height: 1.3;
}

.content-card__desc {
    margin: 0;
    font-size: 15px;
    color: var(--fh-muted);
    line-height: 1.8;
    max-width: 620px;
}

/* Body card */
.content-card__body {
    padding: 28px 32px 32px;
}

/* Card minimal (tanpa header) */
.content-card--flat {
    padding: 32px;
}

/* Teks isi konten */
.content-card__body p,
.content-card--flat p {
    font-size: 15.5px;
    color: #3a3a3a;
    line-height: 1.9;
    margin-bottom: 16px;
    text-align: justify;
}

.content-card__body p:last-child,
.content-card--flat p:last-child {
    margin-bottom: 0;
}

/* Gambar dalam card */
.content-img {
    width: 100%;
    border-radius: var(--fh-radius);
    object-fit: cover;
    margin-bottom: 24px;
}

.content-img--hero {
    max-height: 380px;
}


/* =========================================================
   6. SECTION DIVIDER (judul bagian dalam card)
========================================================= */

.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 18px;
}

.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--fh-border);
}

.section-divider h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
    color: var(--fh-primary);
    white-space: nowrap;
}

.section-divider--top {
    margin-top: 0;
}


/* =========================================================
   7. ITEM KONTEN (visi/misi/program)
========================================================= */

.content-item {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--fh-border);
}

.content-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.content-item__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--fh-radius-sm);
    background: var(--fh-primary-pale);
    color: var(--fh-primary);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.content-item h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 700;
    color: var(--fh-primary);
    line-height: 1.4;
    padding-left: 14px;
    border-left: 3px solid var(--fh-primary);
}

.content-item p {
    font-size: 15.5px;
    color: #3a3a3a;
    line-height: 1.9;
    text-align: justify;
}


/* =========================================================
   8. FH TABLE (tabel responsif)
========================================================= */

.fh-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--fh-radius);
    box-shadow: var(--fh-shadow-sm);
}

.fh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    background: var(--fh-white);
}

.fh-table thead th {
    padding: 14px 16px;
    background: var(--fh-primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .3px;
    text-align: left;
    white-space: nowrap;
    border: none;
}

.fh-table tbody td {
    padding: 12px 16px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    line-height: 1.6;
}

.fh-table tbody tr:last-child td {
    border-bottom: none;
}

.fh-table tbody tr:hover td {
    background: #fdf5f5;
    transition: background var(--fh-transition);
}

.fh-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.fh-table tbody tr:nth-child(even):hover td {
    background: #fdf5f5;
}


/* =========================================================
   9. BADGE / LABEL
========================================================= */

.fh-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.fh-badge--primary {
    background: var(--fh-primary-pale);
    color: var(--fh-primary);
}

.fh-badge--green {
    background: #f0fdf4;
    color: #166534;
}

.fh-badge--blue {
    background: #eff6ff;
    color: #1d4ed8;
}

.fh-badge--yellow {
    background: #fffbeb;
    color: #92400e;
}


/* =========================================================
   10. INFO BOX (kotak informasi)
========================================================= */

.fh-info-box {
    padding: 18px 20px;
    border-radius: var(--fh-radius);
    border-left: 4px solid var(--fh-primary);
    background: var(--fh-primary-pale);
    margin-bottom: 24px;
}

.fh-info-box h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--fh-primary);
}

.fh-info-box p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}


/* =========================================================
   11. EMPTY STATE
========================================================= */

.fh-empty {
    padding: 50px 20px;
    text-align: center;
    color: var(--fh-muted);
}

.fh-empty i {
    font-size: 40px;
    margin-bottom: 14px;
    color: #ccc;
    display: block;
}

.fh-empty h4 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #555;
}

.fh-empty p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   12. BUTTON
========================================================= */

.fh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: none;
    border-radius: var(--fh-radius-sm);
    background: linear-gradient(135deg, var(--fh-primary), var(--fh-primary-dk));
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--fh-transition), box-shadow var(--fh-transition);
    box-shadow: 0 4px 14px rgba(98,0,0,.2);
}

.fh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(98,0,0,.26);
    color: #fff;
    text-decoration: none;
}

.fh-btn:active { transform: translateY(0); }

.fh-btn--outline {
    background: transparent;
    border: 1.5px solid var(--fh-primary);
    color: var(--fh-primary);
    box-shadow: none;
}

.fh-btn--outline:hover {
    background: var(--fh-primary-pale);
    box-shadow: none;
    color: var(--fh-primary);
}

.fh-btn--sm {
    padding: 8px 16px;
    font-size: 13px;
}


/* =========================================================
   13. GRID CARD (card grid item)
========================================================= */

.fh-grid {
    display: grid;
    gap: 20px;
}

.fh-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fh-grid--3 { grid-template-columns: repeat(3, 1fr); }

.fh-grid-card {
    background: var(--fh-white);
    border-radius: var(--fh-radius);
    padding: 22px;
    box-shadow: var(--fh-shadow-sm);
    border: 1px solid var(--fh-border);
    transition: transform var(--fh-transition), box-shadow var(--fh-transition);
}

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


/* =========================================================
   14. LINK DAFTAR (list download / file)
========================================================= */

.fh-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fh-link-list li {
    border-bottom: 1px solid var(--fh-border);
}

.fh-link-list li:last-child { border-bottom: none; }

.fh-link-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
    color: var(--fh-text);
    text-decoration: none;
    font-size: 14.5px;
    line-height: 1.5;
    transition: color var(--fh-transition), padding-left var(--fh-transition);
}

.fh-link-list a:hover {
    color: var(--fh-primary);
    padding-left: 8px;
    text-decoration: none;
}

.fh-link-list a i {
    font-size: 18px;
    color: var(--fh-primary);
    flex-shrink: 0;
}


/* =========================================================
   15. ALERT / PESAN SUKSES
========================================================= */

.fh-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--fh-radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.fh-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.fh-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.fh-alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.fh-alert strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 700;
}


/* =========================================================
   16. UTILS
========================================================= */

.fh-mt-0  { margin-top: 0 !important; }
.fh-mb-0  { margin-bottom: 0 !important; }
.fh-text-primary { color: var(--fh-primary) !important; }
.fh-text-muted   { color: var(--fh-muted) !important; }
.fh-fw-bold      { font-weight: 700 !important; }
.fh-small        { font-size: 13px !important; }


/* =========================================================
   17. RESPONSIVE — TABLET (≤ 991px)
========================================================= */

@media (max-width: 991px) {

    .page-hero {
        padding: 65px 0 100px;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .page-hero--simple {
        padding: 55px 0 90px;
    }

    .content-section {
        padding: 40px 0 60px;
    }

    .content-card__header {
        padding: 22px 24px 18px;
    }

    .content-card__body {
        padding: 22px 24px 26px;
    }

    .content-card--flat {
        padding: 24px;
    }

    .fh-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   18. RESPONSIVE — MOBILE (≤ 768px)
========================================================= */

@media (max-width: 768px) {

    .page-hero {
        padding: 55px 0 90px;
    }

    .page-hero h1 {
        font-size: 27px;
        line-height: 1.25;
    }

    .page-hero--simple {
        padding: 50px 0 85px;
    }

    .page-hero--simple h1 {
        font-size: 26px;
    }

    .hero-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    .content-section {
        padding: 30px 0 50px;
    }

    .content-card {
        border-radius: var(--fh-radius);
    }

    .content-card__header {
        padding: 18px 18px 16px;
    }

    .content-card__title {
        font-size: 19px;
    }

    .content-card__body {
        padding: 18px 18px 22px;
    }

    .content-card--flat {
        padding: 20px 18px;
    }

    .fh-grid--2,
    .fh-grid--3 {
        grid-template-columns: 1fr;
    }

    .section-divider h3 {
        font-size: 15px;
    }

    .content-item h3 {
        font-size: 17px;
    }

}


/* =========================================================
   19. RESPONSIVE — MOBILE KECIL (≤ 575px)
========================================================= */

@media (max-width: 575px) {

    .page-hero {
        padding: 48px 0 82px;
    }

    .page-hero h1 {
        font-size: 24px;
    }

    .hero-label {
        font-size: 10px;
        padding: 4px 11px;
    }

    .content-section {
        padding: 24px 0 40px;
    }

    .content-card__header {
        padding: 16px 16px 14px;
    }

    .content-card__body {
        padding: 16px 16px 20px;
    }

    .content-card--flat {
        padding: 18px 16px;
    }

    .fh-table {
        font-size: 13.5px;
    }

    .fh-table thead th,
    .fh-table tbody td {
        padding: 10px 12px;
    }

}
