/* =========================================================
   STYLE - Fakultas Hukum UNTIKA
   Design inspired by FH UGM layout
   Font: Playfair Display (heading) + Inter (body)
   Warna: Dark Maroon #7a1e2b + White
========================================================= */
:root {
    --primary: #7a1e2b;
    --primary-light: #a32e3d;
    --primary-dark: #5a1620;
    --primary-darker: #3f0f17;
    --secondary: #d4a745;
    --secondary-light: #f0d080;
    --bg-light: #f7f7f7;
    --bg-soft: #faf7f7;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --white: #ffffff;
    --border: #e5e5e5;
    --border-light: #f0f0f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.2px;
    font-weight: 700;
}

.container {
    width: min(1200px, 94%);
    margin: auto;
}

/* =========================================================
   HEADER - Top bar
========================================================= */
.top-bar {
    background: var(--primary-dark);
    color: #f0d0d5;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.top-bar-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.top-bar-menu a {
    color: #f0d0d5;
    font-size: 12px;
    font-weight: 500;
    transition: 0.2s;
}
.top-bar-menu a:hover { color: #ffffff; }
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.top-bar-right a {
    color: #f0d0d5;
    font-size: 12px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.top-bar-right a:hover { color: #ffffff; }
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,0.15);
}
.lang-switch span {
    cursor: pointer;
    font-weight: 600;
}
.lang-switch .active { color: #ffffff; }

/* =========================================================
   HEADER - Main
========================================================= */
header.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}
.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.brand-text strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}
.brand-text span {
    display: block;
    font-size: 11px;
    color: var(--text-gray);
    letter-spacing: 0.3px;
}
nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
nav ul li { position: relative; }
nav a {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: 0.2s;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}
nav a:hover {
    color: var(--primary);
    background: var(--bg-light);
}
.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--primary);
}

/* =========================================================
   HERO SLIDER
========================================================= */
.hero-slider {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--primary-dark);
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-badge {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    padding: 10px 24px;
    border-radius: 4px;
    text-align: center;
    z-index: 3;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hero-badge small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}
.hero-badge strong {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 700;
}
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
}
.hero-dots span.active {
    background: #ffffff;
    width: 30px;
    border-radius: 5px;
}

/* =========================================================
   ABOUT SECTION
========================================================= */
.about-section {
    background: var(--primary);
    color: white;
    padding: 60px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: white;
}
.about-text p {
    font-size: 14px;
    line-height: 1.9;
    color: #f5d5da;
    margin-bottom: 25px;
}
.btn-about {
    display: inline-block;
    padding: 12px 28px;
    background: var(--secondary);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    transition: 0.3s;
}
.btn-about:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}
.about-image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.about-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* =========================================================
   SECTION HEADING
========================================================= */
.section-heading {
    text-align: center;
    margin-bottom: 40px;
}
.section-heading h2 {
    font-size: 30px;
    color: var(--text-dark);
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
}
.section-heading h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* =========================================================
   NEWS GRID (Berita Terbaru & Kabar Prestasi)
========================================================= */
.news-section {
    padding: 70px 0 50px;
    background: #ffffff;
}
.news-section.alt-bg {
    background: var(--bg-light);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.news-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(122,30,43,0.12);
    border-color: var(--primary);
}
.news-image {
    height: 150px;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.news-card:hover .news-image img {
    transform: scale(1.06);
}
.news-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-body h4 {
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
}
.news-body .meta {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-body .read-more {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.news-footer {
    text-align: right;
    padding: 10px 0;
}
.news-footer a {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

/* =========================================================
   PUBLIKASI SECTION
========================================================= */
.publikasi-section {
    position: relative;
    padding: 70px 0;
    background-image: linear-gradient(rgba(245,245,245,0.92), rgba(245,245,245,0.92)), url('../images/bg-building.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.publikasi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.publikasi-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.publikasi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(122,30,43,0.15);
}
.publikasi-image {
    height: 220px;
    overflow: hidden;
    background: var(--primary-dark);
}
.publikasi-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.publikasi-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.publikasi-body h4 {
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 10px;
}
.publikasi-body .meta {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 10px;
}
.publikasi-body p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 15px;
}
.publikasi-body .read-more {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}

/* =========================================================
   PENGUMUMAN & UNDUHAN
========================================================= */
.info-section {
    padding: 60px 0;
    background: #ffffff;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.info-col h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.info-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}
.info-list li a {
    color: var(--text-dark);
    font-weight: 600;
    display: block;
    line-height: 1.5;
    transition: 0.2s;
}
.info-list li a:hover { color: var(--primary); }
.info-list .info-date {
    font-size: 11px;
    color: var(--text-gray);
    font-style: italic;
    margin-top: 4px;
    display: block;
}
.info-more {
    text-align: right;
    margin-top: 15px;
}
.info-more a {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

/* =========================================================
   SDGs SECTION
========================================================= */
.sdgs-section {
    padding: 60px 0;
    background: var(--bg-light);
}
.sdgs-header {
    text-align: center;
    margin-bottom: 30px;
}
.sdgs-header h2 {
    font-size: 26px;
    color: var(--text-dark);
    font-weight: 700;
}
.sdgs-header h2 span { color: var(--primary); }
.sdgs-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.sdgs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}
.sdg-tile {
    aspect-ratio: 1;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: transform 0.2s;
}
.sdg-tile:hover { transform: scale(1.08); }
.sdg-tile small {
    display: block;
    font-size: 7px;
    font-weight: 600;
    text-align: center;
    margin-top: 2px;
    line-height: 1.1;
}
.sdgs-video {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sdgs-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}
.sdgs-video .play-btn {
    position: absolute;
    width: 70px;
    height: 50px;
    background: #dc2626;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.3s;
}
.sdgs-video .play-btn:hover { transform: scale(1.1); }

/* =========================================================
   PERATURAN SECTION
========================================================= */
.peraturan-section {
    padding: 60px 0;
    background: #ffffff;
}
.peraturan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.peraturan-card {
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.peraturan-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.peraturan-header {
    padding: 16px;
    background: linear-gradient(135deg, #fef9e7, #fef5d5);
    border-bottom: 3px solid var(--primary);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.peraturan-header::before {
    content: "⚖";
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 22px;
    color: var(--primary);
    opacity: 0.3;
}
.peraturan-header h4 {
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}
.peraturan-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 800;
    border-radius: 3px;
    letter-spacing: 0.5px;
}
.peraturan-body {
    padding: 12px 16px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   TAUTAN SECTION
========================================================= */
.tautan-section {
    padding: 60px 0 80px;
    background: #ffffff;
}
.tautan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.tautan-card {
    background: #f9f9f9;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.tautan-card:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(122,30,43,0.12);
}
.tautan-icon {
    font-size: 32px;
    color: var(--primary);
    line-height: 1;
}
.tautan-card span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
    background: var(--primary-darker);
    color: #d4b8bd;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.footer-brand img {
    height: 60px;
    width: auto;
}
.footer-brand h3 {
    font-size: 16px;
    color: white;
    margin: 0;
}
.footer-brand span {
    display: block;
    font-size: 12px;
    color: #d4b8bd;
}
.footer-text {
    font-size: 13px;
    line-height: 1.8;
    color: #c9a5ab;
    margin-bottom: 15px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4b8bd;
    transition: 0.3s;
    font-size: 15px;
}
.footer-social a:hover {
    background: var(--secondary);
    color: var(--primary-dark);
}
footer h4 {
    color: white;
    font-size: 15px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 13px;
    color: #c9a5ab;
    transition: 0.2s;
}
.footer-links a:hover { color: white; }
.footer-cert {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.footer-cert img {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}
.copyright {
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #a37c83;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .publikasi-grid { grid-template-columns: repeat(2, 1fr); }
    .peraturan-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .sdgs-layout { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .top-bar-menu { display: none; }
    nav ul {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 15px 5%;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    nav ul.active { display: flex; }
    nav a { width: 100%; padding: 14px 16px; border-bottom: 1px solid var(--border-light); }
    .menu-toggle { display: block; }
    .hero-slider { height: 400px; }
    .hero-badge strong { font-size: 15px; }
    .hero-badge small { font-size: 9px; }
}

@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; }
    .publikasi-grid { grid-template-columns: 1fr; }
    .peraturan-grid { grid-template-columns: 1fr; }
    .tautan-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
    .hero-slider { height: 300px; }
    .section-heading h2 { font-size: 22px; }
    .about-text h2 { font-size: 24px; }
    .sdgs-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 400px) {
    .footer-grid { grid-template-columns: 1fr; }
    .sdgs-grid { grid-template-columns: repeat(3, 1fr); }
}