/* ========================================
1. GOOGLE FONTS & ROOT VARIABLES
========================================
*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Viga&family=PT+Serif:wght@400;700&display=swap");

:root {
    /* Color Palette */
    --primary-blue: #271e92;
    /*--primary-blue: #007bff;*/
    --accent-orange: #ffa51c;
    --dark-bg: #212529;
    --light-bg: #f1f3f7;
    --white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-standard: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
2. GLOBAL RESET
========================================
*/
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    position: relative;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
3. NAVIGATION BAR (MODERNIZED)
========================================
*/

/* TOPBAR */
.topbar {
    background-color: #0056b3;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    height: 30px;
    z-index: 1031;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.topbar-social a {
    color: white;
    margin-right: 15px;
    transition: 0.3s;
    font-size: 0.7rem;
}

.top-social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05) !important;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.top-social-btn:hover {
    transform: translateY(-5px);
    color: #fff;
}

.top-social-btn.wa:hover { background-color: #25D366 !important; }
.top-social-btn.fb:hover { background-color: #1877F2 !important; }
.top-social-btn.ig:hover { background-color: #E4405F !important; }
.top-social-btn.yt:hover { background-color: #FF0000 !important; }
.top-social-btn.tt:hover { background-color: #FE2C55 !important; }

.topbar-links a {
    color: rgba(255,255,255,0.9);
    margin-left: 20px;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
    font-size: 0.7rem;
}

.topbar-links a:hover {
    color: white;
}

.btn-portal {
    background-color: var(--accent-orange);
    padding: 3px 12px;
    border-radius: 4px;
    color: white !important;
    font-weight: 600;
}

/* NAVBAR */

.navbar {
    top: 26px !important;
    padding: 10px 0;
    transition: var(--transition-smooth);
    background-color: var(--primary-blue);
}

/* Navbar saat di-scroll (Jika menggunakan JS sticky) */
.navbar.scroll-active {
    padding: 10px 0;
    background-color: rgba(39, 30, 146, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo-img {
    width: 50px;
    height: auto;
}

.brand-text .sub-title {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-orange);
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.brand-text .main-title {
    font-size: 1rem;
    font-family: 'Viga', sans-serif;
    color: var(--white);
    margin: 0;
    letter-spacing: 0.5px;
}

/* Nav Links */
.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255,255,255,0.85) !important;
    padding: 10px 15px !important;
    transition: var(--transition-smooth);
}

.navbar-nav .nav-item:hover .nav-link {
    color: var(--accent-orange) !important;
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 10px;
    margin-top: 10px;
    padding: 10px 0;
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 8px 20px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--dark-bg);
    padding-left: 25px;
}

/* RESPONSIVE NAVBAR */
@media (max-width: 991.98px) {
    .topbar {
        height: 30px; /* Lebih pendek di HP */
        font-size: 0.5rem;
    }
    
    .topbar-social a {
        margin-right: 10px;
        font-size: 0.7rem;
    }

    .btn-portal {
        padding: 1px 8px !important;
        font-size: 0.7rem;
    }
    
    .navbar-collapse {
        background: white;
        margin-top: 15px;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    .navbar-nav .nav-link {
        color: #333 !important;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .brand-text .main-title {
        font-size: 1rem;
    }

    .site-footer {
        padding-top: 50px;
        text-align: left; /* Paksa teks ke kiri */
    }
    
    .footer-brand-wrapper {
        justify-content: flex-start; /* Logo ke kiri */
    }
    
    .footer-title::after {
        left: 0; /* Garis bawah judul ke kiri */
        transform: none;
    }
    
    .contact-details .d-flex {
        justify-content: flex-start;
        flex-direction: row; /* Icon dan teks sejajar horizontal */
        align-items: flex-start;
        text-align: left;
    }
    
    .footer-icon {
        margin-bottom: 0;
        margin-right: 15px; /* Jarak icon ke teks */
        width: 20px;
    }
    
    .footer-social-icons {
        justify-content: flex-start; /* Sosmed ke kiri */
    }

    .footer-bottom {
        text-align: left; /* Copyright ke kiri */
    }
}

/* ========================================
4. SLIDESHOW / HERO SECTION
========================================
*/
/* Slideshow Styling */
.slideshow {
    position: relative;
    height: 80vh; /* Tinggi hampir semenu layar */
    overflow: hidden;
    background-color: #000;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.8; 
}

.slideshow .shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.slideshow .container {
    position: absolute;
    bottom: 80px;
    left: 40px;
    z-index: 2;
}

.slideshow .container .mainText {
	position: relative;
}

.slideshow .container .mainText .garis {
	position: absolute;
	width: 7px;
	height: 80px;
	border-radius: 10px;
	background-color: #ffa51c;
}

.slideshow .container .mainText h3 {
	font-size: 1.5rem;
	margin-left: 30px;
	color: #fff;
}

.slideshow .container .mainText h1 {
    margin: 10px 0 10px 30px;
    font-weight: 650;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
}

.slideshow .container h3 {
	color: #fff;
	font-size: 1.1rem;
}

/* ========================================
5. CONTENT SECTIONS (DOSEN & SEJARAH)
========================================
*/
.background_putih {
    background-color: #f8f9fa;
    padding: 80px 0;
    margin-top: -60px;
    margin-bottom: -80px;
}

.dosen .background_card {
    background-color: var(--light-bg);
    margin: 20px 0;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.dosen .background_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.dosen .kotak_img {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.dosen .kotak_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Konten Sejarah */
.sejarah_isi {
    padding: 20px 0 80px 0;
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: -80px;
}

.sejarah_text_header {
    color: var(--accent-orange);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.sejarah_isi h2 {
    color: var(--dark-bg);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.sejarah_isi hr {
    border-top: 2px solid #eee;
    margin-bottom: 30px;
}

.sejarah_text_body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

/* Memberikan dropcap (huruf besar di awal) untuk paragraf pertama agar lebih formal */
.sejarah_text_body p:first-child::first-letter {
    font-size: 3rem;
    font-weight: 700;
    float: left;
    margin-right: 10px;
    line-height: 1;
    color: var(--dark-bg);
}

/* ========================================
8. TITLE & TYPOGRAPHY SECTION
========================================
*/
.title {
    margin: 100px auto 50px auto; /* Margin atas disesuaikan */
    max-width: 800px;
}

.title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2; /* Diperbaiki agar tidak tumpang tindih */
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.3;
    text-align: center;
    color: var(--accent-orange);
}

.title p {
    font-size: 1.1rem;
    text-align: center;
    color: #666;
    margin-top: 15px;
}

/* ========================================
9. GALLERY & SAMBUTAN
========================================
*/
.perGaleri {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; /* Menggunakan gap lebih modern daripada margin manual */
}

.perGaleri img {
    width: 280px; /* Sedikit diperbesar */
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.perGaleri img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-standard);
}

.sambutan {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 10%;
}

.sambutan h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark-bg);
    position: relative;
    margin-bottom: 40px;
}

/* Memberikan garis bawah dekoratif pada sambutan */
.sambutan h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    margin: 10px auto;
    border-radius: 10px;
}

/* ========================================
10. BANNER PENDAFTARAN (CTA)
========================================
*/
.banner-pendaftaran {
    background: linear-gradient(45deg, var(--primary-blue), #4e44d4);
    padding: 40px 0;
    color: white;
}

.banner-pendaftaran .text-header {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.banner-pendaftaran .text-daftar {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.banner-pendaftaran .btn-daftar {
    background-color: var(--accent-orange);
    color: #fff;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.3s;
    text-transform: uppercase;
    display: inline-block;
}

.banner-pendaftaran .btn-daftar:hover {
    background-color: #e69516;
    transform: translateY(-3px);
    color: #fff;
}

/* ========================================
11. NEWS & VIDEO SECTION
===========================================
*/
.galeri-foto-video .video_background {
    width: 100%;
    height: 20rem; /* Lebih tinggi agar proporsional */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-standard);
}

.news-body .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.news-body .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-body .card-header .jam {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

/* Style untuk Detail Berita */
    .news-detail-container {
        padding-top: 40px;
        padding-bottom: 60px;
        background-color: #fff;
    }
    .news-header {
        margin-bottom: 30px;
    }
    .news-title {
        font-weight: 700;
        font-size: 2.5rem;
        color: #333;
        line-height: 1.2;
    }
    .news-meta {
        color: #777;
        font-size: 0.9rem;
        margin-top: 10px;
    }
    .news-meta span {
        margin-right: 15px;
    }
    .news-featured-img {
        width: 100%;
        max-height: 500px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 30px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .news-content {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #444;
        text-align: justify;
    }
    .sidebar-card {
        border: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        margin-bottom: 20px;
    }
    .btn-back {
        margin-bottom: 20px;
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        color: #555;
    }
    .btn-back:hover {
        color: #000;
    }

/* ========================================
12. BANNER SEJARAH (HERO IMAGE)
========================================
*/
.banner-sejarah-yayasan {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                      url("../images/otistas_background.jpg"); /* Pastikan path gambar benar */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 40px 0;
    color: white;
    margin-bottom: 50px;
}

.banner-sejarah-yayasan .container .row {
    margin-top: 20px;
    margin-left: 10px;
    text-align: left;
}

.banner-sejarah-yayasan .text-header {
    font-size: 1.5rem;
    font-weight: 350;
    margin-bottom: 10px;
    font-family: 'Viga', sans-serif;
}

.banner-sejarah-yayasan .garis {
    width: 60px;
    height: 4px;
    background-color: var(--accent-orange);
    border: none;
    margin-left: 0 !important;
}

.banner-sejarah-yayasan .text-daftar {
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* ========================================
13. PRODI PAI & TAB SYSTEM
========================================
*/
/* Container: Jangan gunakan margin negatif yang ekstrem */
.prodi-pai .container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.prodi-pai .body {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Kotak Gambar */
.prodi-pai .kotak {
    width: 100%;
    height: 400px; /* Tinggi default untuk Desktop */
    border-radius: 15px;
    background-color: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    margin-bottom: 20px; /* Jarak agar tidak nempel teks di bawahnya saat mobile */
}

.prodi-pai .kotak img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

.prodi-pai .kotak:hover img {
    transform: scale(1.05);
}

/* --- PERBAIKAN KHUSUS MOBILE --- */
@media (max-width: 767px) {
    .prodi-pai .container {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .prodi-pai .kotak {
        /* Ubah tinggi agar teks naik ke atas dan terlihat di layar HP */
        height: 250px; 
        margin-bottom: 15px;
    }

    /* Memastikan teks sejarah tidak terlalu renggang */
    .prodi-pai h3 {
        font-size: 1.3rem;
    }
    
    .prodi-pai .sejarah-singkat {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Tab Navigation Modern */
.prodi-pai .nav-tabs {
    border-bottom: none;
    background-color: #eee;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    display: flex;
}

.prodi-pai .nav-tabs .nav-item {
    flex: 1;
    margin-bottom: 0;
}

.prodi-pai .nav-tabs .nav-link {
    width: 100%;
    padding: 15px;
    text-align: center;
    border: none;
    border-radius: 0;
    font-weight: 600;
    color: #555;
    transition: var(--transition-smooth);
}

.prodi-pai .nav-tabs .nav-tanda {
    border-right: 1px solid rgba(0,0,0,0.1);
}

/* Active State Tab (Kelas .cek) */
.prodi-pai .nav-tabs .nav-link.cek, 
.prodi-pai .nav-tabs .nav-link.active {
    background-color: var(--primary-blue);
    color: var(--white) !important;
}

.prodi-pai .nav-tabs .nav-link:hover:not(.active) {
    background-color: rgba(39, 30, 146, 0.1);
    color: var(--dark-bg);
}

/* ========================================
14. MOTTO SECTION
========================================
*/
/* Motto Section */
.motto {
    padding: 20px 0;
    background-color: var(--white);
}

.motto .kotak {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-standard);
    border: 8px solid var(--light-bg);
}

.motto .kotak img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.motto .kotak:hover img {
    transform: scale(1.05);
}

.centered-text h5 {
    color: var(--accent-orange);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.centered-text p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.centered-text p i {
    color: var(--accent-orange);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* ========================================
15. VISI MISI SECTION (STANDARD)
========================================
*/
/* Visi Misi Section */
.visi_misi {
    padding: 60px 0 100px;
    background-color: var(--light-bg);
    margin-top: 80px;
    margin-bottom: -80px;
}

.visi_misi h4 {
    color: var(--dark-bg);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 5px;
}

.visi_misi .sub-title {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.visi_misi hr {
    border-top: 3px solid var(--accent-orange);
    width: 50px;
    margin: 15px 0 25px 0;
}

.visi_misi p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Styling List Misi */
.misi-list {
    padding-left: 0;
    list-style: none; /* Kita ganti nomor bawaan dengan gaya kustom */
    counter-reset: misi-counter;
}

.misi-list li {
    counter-increment: misi-counter;
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.misi-list li::before {
    content: counter(misi-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background-color: var(--dark-bg);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ========================================
16. STRUKTUR MANAJEMEN
========================================
*/
.struktur_manajemen .kotak-img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background-color: #333;
    overflow: hidden;
    margin-bottom: 15px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.struktur_manajemen .kotak-img:hover {
    transform: scale(1.05);
}

.struktur_manajemen .centered-text .text-header {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.struktur_manajemen .centered-text .text-body {
    font-weight: 600;
    color: #777;
    font-size: 0.95rem;
}

/* ========================================
17. PROFIL KEPALA SEKOLAH (MODERNIZED)
========================================
*/
.kepsek {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.kepsek .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Agar responsif di HP */
}

.kepsek .kotak {
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-standard);
    border: 5px solid white;
}

.kepsek .kotak img {
    width: 100%;
    transition: transform 0.5s;
}

.kepsek .kotak:hover img {
    transform: scale(1.1);
}

.isi-kepsek {
    padding-left: 30px;
}

.isi-kepsek h2 {
    color: var(--dark-bg);
    font-weight: 700;
}

.isi-kepsek p {
    text-align: justify;
    font-size: 0.95rem;
    color: #555;
}

/* ========================================
19. ARTIKEL LIST SECTION
========================================
*/
.titleArtikel {
    padding: 140px 0 30px 0; /* Memberikan ruang ekstra di bawah navbar */
}

.titleArtikel h1 {
    text-transform: uppercase;
    font-size: 1.8rem;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--dark-bg);
    position: relative;
    padding-left: 15px;
}

/* Aksen garis di samping judul artikel */
.titleArtikel h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background-color: var(--accent-orange);
    border-radius: 10px;
}

.artikel .perArtikel {
    display: flex;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    background-color: transparent;
}

.artikel .perArtikel:hover {
    background-color: rgba(0, 0, 0, 0.03); /* Efek highlight saat di-hover */
}

.artikel .perArtikel:hover h3 {
    color: var(--accent-color); /* Menggunakan variabel warna biru modern */
}

.artikel .perArtikel img {
    width: 250px;
    height: 160px;
    margin-right: 25px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.artikel .perArtikel h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.artikel .perArtikel p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
20. FLOATING SOCIAL SIDEBAR (iconBox)
========================================
*/
.iconBox {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999; /* Nilai sewajarnya untuk tetap di atas */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px 0 0 10px; /* Lengkungan hanya di sisi kiri */
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
}

.iconBox .perIconBox {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.iconBox .perIconBox:hover {
    width: 65px; /* Sedikit melebar saat hover */
    color: var(--white);
    padding-right: 15px;
}

.iconBox .perIconBox i {
    font-size: 1.2rem;
}

/* Social Media Branding Colors */
.wa { background-color: #25D366; }
.fb { background-color: #1877F2; }
.yt { background-color: #FF0000; }
.linkin { background-color: #0077B5; }

.ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* ========================================
21. JURUSAN / PROGRAM KEAHLIAN
========================================
*/
.jurusan {
    padding: 60px 0;
    text-align: center;
}

.jurusan .container h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark-bg);
    position: relative;
    margin-bottom: 40px;
}

.jurusan .container h2:after {
    content: '';
    display: block;
    width: 90px;
    height: 4px;
    background: var(--accent-orange);
    margin: 10px auto;
    border-radius: 10px;
}

.boxJurusan {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.perBox {
    flex: 1 1 400px; 
    max-width: 460px; 
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    padding-bottom: 20px !important;
    text-align: center;
}

.perBox:hover {
    transform: translateY(-10px);
}

.perBox img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.perBox h3 {
    margin: 20px 15px 10px 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-bg);
}

/* ========================================
22. ARTIKEL BERANDA (HOME)
========================================
*/
.containerArtikelBeranda {
    padding-top: 40px;
}

.containerArtikelHome h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark-bg);
    position: relative;
    margin-bottom: 40px;
}

/* Garis bawah dekoratif h2 */
.containerArtikelHome h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    margin: 10px auto;
    border-radius: 10px;
}

.containerArtikelHome .artikelHome {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Diperbaiki dari 'left' (invalid) ke 'flex-start' */
    flex-wrap: wrap;
    gap: 30px; /* Menggunakan gap untuk jarak antar card */
    margin-top: 20px;
}

.containerArtikelHome .artikelHome .perArtikelHome {
    width: 350px;
    text-decoration: none;
    cursor: pointer;
    background: var(--white);
    border-radius: 15px;
    padding: 15px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.containerArtikelHome .artikelHome .perArtikelHome:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-standard);
}

.containerArtikelHome .artikelHome .perArtikelHome:hover h3 {
    color: var(--accent-color);
}

.containerArtikelHome .artikelHome .perArtikelHome img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px; /* Menggunakan px agar sudut melengkung sempurna */
    margin-bottom: 15px;
}

.containerArtikelHome .artikelHome .perArtikelHome h3 {
    font-size: 1.3rem;
    text-align: left; /* Beranda modern biasanya teks rata kiri/justify */
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin-bottom: 10px;
}

.containerArtikelHome .artikelHome .perArtikelHome small {
    display: block;
    color: #777;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.containerArtikelHome .artikelHome .perArtikelHome small span {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
}

.containerArtikelHome .artikelHome .perArtikelHome p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* ========================================
   MODERN SITE FOOTER
   ======================================== */
.site-footer {
    background-color: #11142d; /* Warna biru gelap pekat */
    color: #ffffff;
    padding: 80px 0 0 0;
    font-family: 'Poppins', sans-serif;
    border-top: 5px solid var(--accent-orange);
    margin-top: 80px;
}

.footer-logo {
    width: 65px;
    height: auto;
}

.college-name-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.college-name-main {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.footer-description {
    color: #b5b5c3;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-icon {
    background-color: var(--accent-orange);
    border-radius: 50%;
    padding: 5px;
    width: 35px;
    color: var(--dark-bg);
    font-size: 1.2rem;
    margin-top: 5px;
}

.footer-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--accent-orange);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #b5b5c3;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-orange);
    padding-left: 10px;
}

/* Social Buttons */
.footer-social-icons {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.social-btn:hover {
    transform: translateY(-5px);
    color: #fff;
}

.social-btn.wa:hover { background-color: #25D366; }
.social-btn.fb:hover { background-color: #1877F2; }
.social-btn.ig:hover { background-color: #E4405F; }
.social-btn.yt:hover { background-color: #FF0000; }

/* Copyright Bar */
.footer-bottom {
    background-color: #0c0e22;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: #7e8299;
}

.btn-newsletter {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background-color: var(--accent-orange);
    border: none;
    border-radius: 8px;
    color: var(--dark-bg);
    font-weight: 700;
    transition: var(--transition-smooth);
}

.btn-newsletter:hover {
    background-color: var(--white);
    transform: scale(1.02);
}

/* ========================================
24. EKSTRAKURIKULER SECTION
========================================
*/
.containerEkstra {
    margin-top: 80px;
    width: 100%;
    height: 60vh; /* Sedikit dikurangi agar lebih proporsional */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("../images/basket.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.titleEkstrakulikuler {
    font-weight: 800;
    text-transform: uppercase;
    margin: 60px 0 30px 0;
    text-align: center;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

.ekstrakulikuler {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ekstrakulikuler .perEkstrakulikuler {
    width: 320px;
    height: 220px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-standard);
    cursor: pointer;
}

/* Background Image via Pseudo-element */
.ekstrakulikuler .perEkstrakulikuler::before {
    content: "";
    position: absolute;
    inset: 0; /* Shortcut untuk top, left, bottom, right: 0 */
    background-image: url("../images/4.jpeg");
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1;
}

.ekstrakulikuler .perEkstrakulikuler p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    z-index: 2;
    font-weight: 600;
    transform: translateY(100%); /* Sembunyi di bawah */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover Effects */
.ekstrakulikuler .perEkstrakulikuler:hover::before {
    transform: scale(1.1);
    opacity: 0.8;
}

.ekstrakulikuler .perEkstrakulikuler:hover p {
    transform: translateY(0);
}

/* ========================================
25. PEMBINA EKSTRAKURIKULER
========================================
*/
.pembinaEkstrakulikuler {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
}

.pembinaEkstrakulikuler .perPembina {
    width: 260px;
    height: 220px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}

.pembinaEkstrakulikuler .perPembina:hover {
    transform: translateY(-10px);
}

.pembinaEkstrakulikuler .perPembina img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.pembinaEkstrakulikuler .perPembina h5 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: rgba(0, 119, 181, 0.9); /* Transparansi sedikit agar modern */
    backdrop-filter: blur(5px); /* Efek blur di belakang nama pembina */
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.fasilitas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 50px 0;
}

/* ========================================
26. DETAIL ARTIKEL (Single Post)
========================================
*/
.detailArtikel {
    margin: 150px 0 60px 0;
}

.detailArtikel h2 {
    font-weight: 800;
    margin-bottom: 30px;
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--primary-blue);
}

.imgArtikel {
    width: 100%;
    height: auto; /* Mengubah height tetap 700px menjadi auto agar tidak stretch */
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-standard);
}

.mainDetailArtikel p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

/* Sidebar Penulis & Share */
.shareArtikel p,
.penulis p {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--accent-orange);
    letter-spacing: 1px;
}

.penulis img {
    width: 100px; /* Diperkecil agar lebih masuk akal sebagai foto profil */
    height: 100px;
    border-radius: 50%; /* Foto penulis biasanya lingkaran */
    object-fit: cover;
    margin-bottom: 15px;
}

.containerIconShare {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.containerIconShare .iconShare {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition-smooth);
}

.containerIconShare .iconShare:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Sidebar Sticky */
.fixed {
    position: sticky; /* Sticky lebih modern & aman dibanding Fixed untuk sidebar */
    top: 100px;
}

/* ========================================
27. HALAMAN KONTAK & FORM
========================================
*/
.kontak {
    padding: 100px 0;
}

.kontak form {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.kontak form .formKontakKiri,
.kontak form .formKontakKanan {
    width: 100%; /* Default mobile 100% */
}

/* ========================================
28. RESPONSIVE DESIGN (CLEANED VERSION)
======================================== */

/* --- TABLET & LAPTOP KECIL (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .detailArtikel h2 { font-size: 2rem; }
    .jurusan .boxJurusan .perBox { width: 45%; height: 225px; }
    
    .kepsek .container { flex-direction: column; text-align: center; }
    .kepsek .container .kotak { margin: 0 auto 30px; }
    .kepsek .container .visiMisi { align-items: center; }
}

/* --- SMARTPHONE & TABLET PORTRAIT (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Navbar Reset */
    .navbar-collapse {
        background-color: var(--white);
        border-radius: 12px;
        padding: 20px;
        box-shadow: var(--shadow-standard);
    }
    .navbar .nav-link { color: #333 !important; border-bottom: 1px solid #eee; }

    /* RESET MARGIN NEGATIF (PENTING!) */
    .dosen, .prodi-pai, .visi_misi, .sejarah_isi {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    /* Slideshow Reset */
    .slideshow .mainText h1 { font-size: 2.5rem; }
    
    .isi-kepsek {
        padding-left: 0;
        margin-top: 30px;
        text-align: center;
    }
    
    .col-btn-daftar {
        text-align: center;
        margin-top: 20px;
    }

    .banner-pendaftaran .text-header {
        font-size: 1.5rem;
        text-align: center;
    }

    .banner-pendaftaran .text-daftar {
        font-size: 1.6rem;
        text-align: center;
    }

    .banner-pendaftaran .btn-daftar {
        width: 100%;
        max-width: 300px;
    }

    .boxJurusan {
        padding: 0 10px;
        gap: 15px;
    }

    .perBox {
        width: 100%;
        max-width: none;
        margin-bottom: 20px;
    }

    .perBox img {
        height: 180px;
    }

    .perBox h3 {
        font-size: 1rem;
        margin: 10px 5px;
        line-height: 1.2;
    }
    /* Layout Artikel */
    .artikel .perArtikel { flex-direction: column; }
    .artikel .perArtikel img { width: 100%; margin-bottom: 15px; }

    .banner-sejarah-yayasan {
        padding: 80px 0 40px 0;
        text-align: center;
    }
    
    .banner-sejarah-yayasan .garis {
        margin: 15px auto;
    }

    .sejarah_isi h2 {
        font-size: 1.5rem;
    }
    
    .sejarah_text_body p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .motto {
        padding: 50px 0;
        text-align: center;
    }
    
    .centered-text p {
        justify-content: center;
        font-size: 1.2rem;
    }
    
    .visi_misi h4 {
        font-size: 1.6rem;
    }
    
    .misi-list li {
        padding-left: 45px;
        font-size: 1rem;
    }

    .prodi-pai .kotak {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .prodi-pai h2 {
        font-size: 1.5rem;
        text-align: center;
    }
}

/* --- HP KECIL / ULTRA MOBILE (max-width: 480px) --- */
@media (max-width: 480px) {
    /* Hide non-essential elements */
    .motto, .prodi-pai .nav-tabs .nav-link span { display: none !important; }

    .navbar-brand h1 { font-size: 13px; }
    
    /* Social Bar Bottom (Floating) */
    .iconBox {
        top: auto; bottom: 0; left: 0; width: 100%;
        height: 55px; flex-direction: row; transform: none;
        display: flex !important; /* Pastikan muncul jika sebelumnya di-hide */
    }
    .iconBox .perIconBox { flex: 1; }

    /* Banner Pendaftaran */
    .banner-pendaftaran .text-header { font-size: 14px; }
    .banner-pendaftaran .btn-daftar { padding: 10px 25px; font-size: 12px; }
}