/* ============================================================
   STYLE.CSS - Business Law Community FH UB
   ============================================================ */

/* ============================================================
   1. ROOT VARIABLES & GLOBAL RESET
   ============================================================ */
:root {
    --primary: #7A0C0C;
    /* Merah Khas BLC */
    --primary-light: #A4161A;
    --dark: #1a1a1a;
    --gray: #64748b;
    --light: #fdfdfd;
    /* Putih bersih */
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--dark);
}

/* ============================================================
   2. NAVIGATION
   ============================================================ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    padding: 0.7rem 10%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.logo-text {
    font-size: 0.85rem;
    color: var(--dark);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    transition: var(--transition);
    opacity: 0.8;
}

nav a:hover {
    color: var(--primary);
    opacity: 1;
}

/* Indikator Garis Bawah saat Hover */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* ============================================================
   2a. HAMBURGER MENU (Mobile)
   ============================================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
}

/* ============================================================
   3. HERO SECTION
   ============================================================ */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8vh;

    background-color: #000;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%),
        url("assets/fotokabinet.JPEG");

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 70px;
    background-attachment: scroll;

    color: white;
    position: relative;
    text-align: center;
}

.hero-content {
    margin-top: 60px;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero h2 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-transform: uppercase;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.btn:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ============================================================
   5. SECTIONS (Global)
   ============================================================ */
section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h3 {
    font-size: 2.2rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--gray);
    font-weight: 500;
}

/* ============================================================
   6. CARDS (Generic)
   ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 3rem 2rem;
    border: 1px solid #eee;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 4px solid var(--primary);
}

.card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
}

/* ============================================================
   7. IMPACT SECTION
   ============================================================ */
.impact {
    background: var(--primary);
    color: var(--white);
    padding: 80px 10%;
    text-align: center;
}

.impact h3 {
    color: white;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.impact-item h4 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: #FFD700;
}

.impact-item p {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* ============================================================
   8. GOVERNANCE / MEMBER CARDS
   ============================================================ */
.member-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #1a1a1a;
    width: 200px;
    height: 260px;
    margin: 0 auto;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(122, 12, 12, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.member-container:hover .member-overlay {
    opacity: 1;
    transform: translateY(0);
}

.member-container:hover .member-image {
    transform: scale(1.1);
}

.social-link {
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid white;
    padding: 5px 10px;
    margin-top: 10px;
    display: inline-block;
    transition: 0.3s;
}

.social-link:hover {
    background: white;
    color: #7A0C0C;
}

.member-card {
    position: relative;
    overflow: hidden;
}

.member-card .member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(122, 12, 12, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.5s ease;
}

.member-card:hover .member-overlay {
    opacity: 1;
}

.social-icon {
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 5px 15px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* --- Governance Section: Board of Directors --- */
.member-box {
    width: 180px;
    text-align: center;
}

.member-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 4px;
    background: #1a1a1a;
    margin-bottom: 15px;
}

.member-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0%;
    transition: 0.4s ease;
}

/* LinkedIn bar di bawah foto */
.linkedin-bar {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    background: #7A0C0C;
    padding: 8px 0;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-frame:hover .linkedin-bar {
    bottom: 0;
}

.member-frame:hover img {
    transform: scale(1.05);
}

.ln-text {
    color: white;
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.name-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

.role-tag {
    font-size: 0.65rem;
    color: #7A0C0C;
    font-weight: 700;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leadership-tier {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    border-top: 1px solid #222;
    padding-top: 50px;
}

/* ============================================================
   9. PROGRAMS SLIDER
   ============================================================ */
#viewport {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    cursor: grab;
}

.slider-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.prog-card {
    flex: 0 0 260px;
    height: 350px;
    position: relative;
    border-radius: 8px;
    background: #1a1a1a;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.prog-card:hover {
    transform: scale(1.12);
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.prog-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.prog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.9) 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.4s;
}

.prog-card:hover .prog-overlay {
    background: rgba(122, 12, 12, 0.9);
}

.prog-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    pointer-events: none;
}

.prog-desc {
    font-size: 0.8rem;
    color: #fff;
    margin-top: 10px;
    line-height: 1.4;
    display: none;
    pointer-events: none;
}

.prog-card:hover .prog-desc {
    display: block;
}

button:hover {
    background: #1a1a1a !important;
    transform: scale(1.1);
}

/* ============================================================
   10. PUBLICATIONS SLIDER
   ============================================================ */
#pub-viewport {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    cursor: grab;
}

.pub-track {
    display: flex;
    gap: 30px;
    width: max-content;
    will-change: transform;
}

.pub-card-link {
    flex: 0 0 350px;
    text-decoration: none;
    display: block;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    color: inherit;
}

.pub-card-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pub-img-header {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

/* ============================================================
   11. LEGAL NEWS CARDS
   ============================================================ */
.news-card {
    flex: 0 0 320px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    pointer-events: none;
}

.news-tag {
    background: #1a1a1a;
    color: white;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
}

.news-title {
    margin: 15px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    height: 2.8em;
    overflow: hidden;
    line-height: 1.4;
}

.news-desc {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Style Link READ PAGE agar pasti bisa diklik */
.news-read-btn {
    display: block;
    padding: 15px 25px;
    border-top: 1px solid #eee;
    text-decoration: none;
    color: #7A0C0C;
    font-weight: 800;
    font-size: 0.75rem;
    background: #fff;
    transition: 0.2s;
    position: relative;
    z-index: 5;
}

.news-read-btn:hover {
    background: #f9f9f9;
    color: #000;
}

/* ============================================================
   12. PARTNERS / LOGO SLIDER
   ============================================================ */
.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.logo-track {
    display: flex;
    width: calc(250px * 10);
    animation: scroll-logo 25s linear infinite;
}

.logo-item {
    width: 270px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
}

.logo-item img {
    width: 150%;
    max-width: 500px;
    height: auto;
    filter: grayscale(0%);
    opacity: 0.6;
    transition: 0.4s;
    cursor: pointer;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Animasi Berjalan Logo Partner */
@keyframes scroll-logo {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 5));
    }
}

/* ============================================================
   13. FOOTER
   ============================================================ */
footer {
    background: #000;
    color: var(--white);
    padding: 4rem 10% 2rem;
    text-align: center;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

footer p {
    opacity: 0.7;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

/* ============================================================
   14. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   15. RESPONSIVE - TABLET (max-width: 992px)
   ============================================================ */
@media(max-width: 992px) {
    nav ul {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    section {
        padding: 70px 5%;
    }

    .hero h2 {
        font-size: 2.2rem;
    }
}

/* ============================================================
   16. RESPONSIVE - MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* --- Navigasi Mobile --- */
    nav {
        padding: 0.8rem 5%;
    }

    .logo-text {
        font-size: 0.7rem;
    }

    /* --- Hero Section --- */
    .hero {
        padding: 0 5%;
        text-align: center;
        justify-content: center;
    }

    .hero h2 {
        font-size: 1.8rem;
        letter-spacing: 0;
    }

    /* --- About Section --- */
    #about {
        padding: 60px 5% !important;
    }

    #about div[style*="flex-wrap: wrap"] {
        flex-direction: column-reverse;
        gap: 40px !important;
    }

    #about h3 {
        font-size: 1.8rem !important;
    }

    /* --- Governance / Structure --- */
    .leadership-tier {
        flex-direction: column;
        align-items: center;
        gap: 30px !important;
    }

    .directors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .member-box {
        width: 100% !important;
        max-width: 160px;
    }

    /* --- Strategic Programs Slider --- */
    #programs {
        padding: 60px 0 !important;
    }

    #programs h3 {
        font-size: 2.2rem !important;
    }

    .prog-card {
        flex: 0 0 200px !important;
        height: 280px !important;
    }

    /* Sembunyikan tombol navigasi slider di HP */
    #programs button {
        display: none !important;
    }

    #viewport {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* --- Tombol Kontak Sosmed --- */
    .social-btn-container {
        justify-content: center;
    }

    .social-btn {
        flex: 1 1 100% !important;
    }

    /* --- Legal News Section --- */
    #legal-news-section {
        overflow: hidden !important;
    }

    /* --- News Cards --- */
    .news-card {
        flex: 0 0 280px;
    }

    /* --- Partner Logo Slider --- */
    .logo-item {
        width: 180px;
        padding: 0 20px;
    }

    .logo-item img {
        max-width: 100px;
    }

    @keyframes scroll-logo {
        100% {
            transform: translateX(calc(-180px * 5));
        }
    }
}