@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Agdasima:wght@400;700&display=swap');

/* =========================================
   CSS VARIABLES (TEMA)
   Biar ganti warna/font gampang
   ========================================= */
:root {
    /* Fonts */
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Agdasima', sans-serif;
    
    /* Colors */
    --color-text-main: #1a1a1a;
    --color-text-light: #ffffff;
    --color-text-muted: #cccccc;
    
    --color-bg-right: #555d84;
    --color-bg-dark: #555555;
    --color-bg-news: #606494;

}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    color: var(--color-text-main);
    overflow-x: hidden;
    position: relative;
}

/* Efek Gradient di Atas */
body::before {

    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;

}
body::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    pointer-events: none;
}


/* =========================================
   MAIN LAYOUT (SPLIT SCREEN HEADER)
   ========================================= */
.container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* --- PANEL KIRI --- */
.left-panel {
    flex: 1;
    background-image: url('assets/unity.jpeg'); 
    background-size: cover;
    background-position: center;
    padding: 4rem;
    position: relative;
}

.title-container h1 {
    font-size: 1.2rem;
    font-weight: normal;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.dashed-line {
    width: 220px;
    border-bottom: 1.5px dashed var(--color-text-main);
}

/* --- PANEL KANAN --- */
.right-panel {
    flex: 1; 
    background-color: var(--color-bg-right);
    padding: 4rem;
    display: flex;
    flex-direction: column;
}

/* =========================================
   NAVIGATION MENU
   ========================================= */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3.5rem;
    justify-content: flex-end;
}

nav a {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 1.1rem;
    transition: opacity 0.3s ease, color 0.2s ease;
}

nav a:hover {
    opacity: 0.6;
}

/* --- DROPDOWN MENU --- */
nav ul li.dropdown {
    position: relative;
    padding: 12px 20px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

nav ul li.dropdown:hover {
    background-color: var(--color-bg-dark);
    border-radius: 12px 12px 0 0; 
}

nav ul li.dropdown:hover > a {
    color: var(--color-text-light);
    opacity: 1;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-dark);
    border-radius: 0 0 12px 12px;
    padding: 10px 0 12px 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease-out; 
}

nav ul li.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--color-text-light);
    padding: 5px 16px;
    display: block;
    text-align: center;
    font-size: 1rem;
}

.dropdown-content a:hover {
    color: var(--color-text-muted); 
    background-color: transparent;
    opacity: 1; 
}

/* --- NEWS MENU (OUTLINE HOVER) --- */
nav ul li.news-item {
    padding: 12px 20px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
}

nav ul li.news-item:hover {
    border: 1.5px solid var(--color-text-light); 
    border-radius: 12px; 
}

nav ul li.news-item:hover a {
    opacity: 1;
    color: var(--color-text-light); 
}

/* =========================================
   AREA TEKS PENGENALAN (KAMI EL-MA'RIFAH)
   ========================================= */
.intro-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding: 0 40px; 
    color: var(--color-text-light);
    text-align: center;
}

.intro-content h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: var(--font-sans); 
}

.intro-content p {
    font-size: 16px;
    line-height: 1.6;
}

#typewriter {
    display: inline;
}

#typewriter::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

/* =========================================
   SLIDER BERITA UPKM (SWIPER)
   ========================================= */
.berita-section {
    background: linear-gradient(to bottom, var(--color-bg-news) 80%, #0f1c2e 100%);
    color: var(--color-text-light);
    text-align: center;
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 50px;
    font-family: var(--font-sans);
    letter-spacing: 1px;
}

/* Swiper Container & Slides */
.swiper {
    width: 100%;
    padding-bottom: 40px;
}

.swiper-slide {
    width: 60%; 
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.5; 
    transform: scale(0.85); 
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.swiper-slide img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    display: block;
}

/* Teks Bawah Slider */
.text-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 80px;
}

#deskripsi-berita {
    font-size: 18px;
    line-height: 1.6;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

/* =========================================
   VISI & MISI SECTION
   ========================================= */
.visi-misi-section {
    padding: 80px 20px;
    background-color: #0f1c2e;
    color: #e0e0e0;
    font-family: var(--font-mono);
}

.visi-misi-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    gap: 120px;
}

.visi-misi-box {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.visi-misi-box h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.visi-misi-box p {
    font-size: 16px;
    line-height: 1.6;
}
/* =========================================
   CONTACT US SECTION
   ========================================= */
.contact-section {
    
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('assets/emvisi-misi.jpeg');
    background-size: cover, !important;
    background-position: center;
    background-repeat: no-repeat, !important;

    color: var(--color-text-light);
    padding: 120px 20px;
    text-align: center;
    font-family: var(--font-mono);
}

.contact-section h2 {
    margin-bottom: 50px;
    font-size: 32px;
    font-weight: bold;
    font-family: var(--font-sans); /* Pakai font Agdasima seperti section lain */
    letter-spacing: 1px;
}

.contact-container {
    display: flex;
    justify-content: space-around;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.contact-left, .contact-right {
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    text-align: left;
}

.contact-icon {
    width: 35px;
    height: 35px;
    margin-right: 15px;
    object-fit: contain;
}
/* Styling khusus untuk teks link di Contact Us */
.contact-item a {
    text-decoration: none; /* Menghilangkan garis bawah bawaan link */
    color: inherit; /* Bikin warnanya ngikutin warna teks (#e0e0e0) yang udah abang atur di .contact-left */
    transition: color 0.3s ease, transform 0.3s ease; /* Bikin efek transisinya mulus */
}

/* Efek saat link disorot (hover) sama mouse */
.contact-item a:hover {
    color: var(--color-text-light); /* Warnanya berubah jadi putih terang (#ffffff) */
    text-decoration: underline; /* Munculin garis bawah tipis biar makin jelas kalau itu bisa diklik */
    text-underline-offset: 4px; /* Kasih jarak sedikit antara teks dan garis bawahnya */
}
/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================= */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto; 
    }
    
    .left-panel, 
    .right-panel {
        min-height: 50vh;
        padding: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
    }

    .swiper-slide {
        width: 85%;
    }
    
    .section-title {
        font-size: 24px;
    }

    #deskripsi-berita {
        font-size: 15px;
    }
    .contact-container {
        flex-direction: column;
        align-items: flex-start; /* Rata kiri di layar HP */
        gap: 40px;
        padding-left: 20px;
    }
}
/* =========================================
   MARS PAGE STYLES (LYRICS & VIDEO)
   ========================================= */

/* Menggunakan warna solid navy blue untuk menggantikan gambar panel kiri (opsional kalau nggak pakai background image) */
.mars-left-panel {
    background-image: none;
    background-color: #000080;
}

/* Container khusus untuk lirik agar tidak bertabrakan dengan navbar */
.mars-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding: 0 40px; 
    color: var(--color-text-light);
    text-align: center;
    margin-top: 60px; /* Menurunkan posisi konten agar aman dari overlap dengan navigasi */
}

.mars-content h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
    font-family: var(--font-sans);
}

.lyrics {
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-wrap; /* Menjaga format enter/spasi pada lirik */
    font-family: var(--font-mono);
}

/* --- VIDEO CONTAINER --- */
.video-container {
    margin-top: 40px;
    text-align: center; 
}

.video-container h3 {
    margin-bottom: 15px;
    font-family: var(--font-sans);
    color: var(--color-text-light);
}

.video-container iframe {
    max-width: 100%; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
}
