/* =========================================================
   CSS PRESET 
   ========================================================= */
:root {
    --wp--preset--aspect-ratio--square: 1;
    --wp--preset--aspect-ratio--4-3: 4/3;
    --wp--preset--aspect-ratio--16-9: 16/9;
    --wp--preset--color--black: #000000;
    --wp--preset--color--cyan-bluish-gray: #abb8c3;
    --wp--preset--color--white: #ffffff;
    --wp--preset--color--vivid-cyan-blue: #0693e3;
    --wp--preset--color--luminous-vivid-amber: #fcb900;
    --wp--preset--font-size--small: 13px;
    --wp--preset--font-size--medium: 20px;
    --wp--preset--font-size--large: 36px;
    
    /* CUSTOM CSS WEBSITE SMKN 6 KONAWE */
    --primary-color: #1e3a8a;
    --secondary-color: #f59e0b;
    --text-dark: #333;
    --light-bg: #f4f7f6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-dark);
}

/* ------------------- TOP BAR ------------------- */
.top-bar {
    background: #fff;
    padding: 8px 3%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    border-bottom: 1px solid #ddd;
    font-size: var(--wp--preset--font-size--small);
    gap: 20px;
}

.top-date { font-weight: 600; color: #555; white-space: nowrap; }
.top-contact { text-align: right; white-space: nowrap; color: #555; }

.running-text-container {
    background: #f0f4f8;
    padding: 5px 15px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    color: var(--primary-color);
    font-weight: 500;
}

.ticker-text {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.ticker-text:hover {
    animation-play-state: paused;
}

/* Link di dalam running text */
.ticker-link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 600;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    transition: color 0.2s;
}

.ticker-link:hover {
    color: #d97706;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ------------------- NAVIGASI ------------------- */
nav {
    background: #0f172a;
    padding: 10px 5%; /* Sedikit disesuaikan untuk mengakomodasi logo */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

/* Efek saat halaman digulir ke bawah */
.nav-scrolled {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Styling untuk gambar Logo */
.site-logo {
    width: 45px;
    height: 45px;
    object-fit: contain; /* Agar logo utuh tidak terpotong */
    background: transparent; /* Memberi background transparan */
    border-radius: 5px;
    padding: 2px;
}

.logo-area h2 {
    margin: 0;
    color: #fff;
    letter-spacing: 1px;
    font-size: 1.2rem;
    font-weight: 300;
    font-stretch: condensed;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    font-stretch: condensed;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--secondary-color); }

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ------------------- HERO ------------------- */
.hero {
    min-height: 350px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    transition: background-image 0.8s ease-in-out;
}

/* Gradient overlay di atas background image */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,40,100,0.3), rgba(0,40,100,0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 { font-size: 2.5rem; margin: 0 0 10px 0; }
.hero-content p { font-size: 1.1rem; margin: 0; color: #000; }

/* ------------------- MAIN CONTENT ------------------- */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section-title {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Profil Kepsek */
.principal-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.principal-wrapper img { border-radius: 5px; max-width: 120px; height: auto; }
.subtitle { color: #666; margin: 5px 0; font-size: 14px; }

/* ------------------- Jurusan Cards dengan Gambar ------------------- */
.jurusan-card {
    display: flex;
    align-items: center;
    gap: 15px; /* Jarak antara gambar dan teks */
    padding: 10px;
    background: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.jurusan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.jurusan-card.active {
    background: #e8f0fe;
    border-left-color: var(--secondary-color);
}

/* Styling Gambar Jurusan */
.jurusan-img {
    width: 80px;
    height: 60px;
    object-fit: cover; /* Agar gambar tidak gepeng */
    border-radius: 4px;
    flex-shrink: 0;
}

.jurusan-text {
    flex: 1;
}

.jurusan-text strong {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Icon Expand */
.jurusan-expand-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.jurusan-card.active .jurusan-expand-icon {
    transform: rotate(180deg);
}

/* Intro Text */
.jurusan-intro {
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Jurusan Detail (Expandable) */
.jurusan-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.3s ease, padding 0.3s ease;
    margin: 0;
    padding: 0 15px;
    border-left: 3px solid var(--secondary-color);
    margin-left: 0;
    border-radius: 0 0 5px 5px;
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.jurusan-detail.open {
    max-height: 800px;
    margin: -5px 0 15px 0;
    padding: 15px;
}

.detail-content h4 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.detail-content h5 {
    color: #444;
    margin: 15px 0 8px 0;
    font-size: 0.95rem;
}

.detail-content p {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 10px 0;
}

.detail-content ul {
    margin: 5px 0 10px 0;
    padding-left: 20px;
}

.detail-content ul li {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    position: relative;
    list-style-type: none;
}

.detail-content ul li::before {
    content: "▸";
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1.2em;
    margin-left: -1.2em;
}

/* Prospek Karir Tags */
.prospek-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.prospek-item {
    background: #e8f0fe;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #d0e0f8;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}

.prospek-item:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
}


/* Berita Sidebar */
.berita-scroll {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}
.berita-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #fafafa;
    margin-bottom: 15px;
    transition: transform 0.2s;
}
.berita-item:hover {
    transform: translateX(5px);
    border-left: 3px solid var(--secondary-color);
}
.berita-item h4 { margin: 0 0 5px 0; color: var(--primary-color); font-size: 16px; }
.berita-item .tanggal { font-size: 12px; color: #888; margin-bottom: 8px; display: block; }
.berita-item p { margin: 0; font-size: 13px; color: #555; line-height: 1.5; }

.berita-scroll::-webkit-scrollbar { width: 6px; }
.berita-scroll::-webkit-scrollbar-track { background: #f1f1f1; }
.berita-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Link Cepat */
.quick-links { padding-left: 0; list-style: none; }
.quick-links li { margin-bottom: 10px; }
.quick-links a { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,0.4); }
.quick-links a:hover { color: var(--secondary-color); border-bottom-color: var(--secondary-color); }

/* Sidebar menu and article lists */
.sidebar-list { padding-left: 0; list-style: none; }
.sidebar-list li { margin-bottom: 10px; }
.sidebar-list a { color: var(--text-dark); text-decoration: none; border-bottom: 1px dashed rgba(30, 58, 138, 0.35); transition: color 0.2s, border-color 0.2s; }
.sidebar-list a:hover { color: var(--primary-color); border-bottom-color: var(--secondary-color); }

/* Footer */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 14px;
    padding: 0;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.footer-title {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Kolom Sosial Media */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.05);
}

.social-item:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

.social-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Kolom Link Terkait */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}

.footer-links a i {
    font-size: 12px;
    color: var(--secondary-color);
}

/* Kolom Alamat */
.footer-address p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 15px 0;
    line-height: 1.6;
    font-size: 13px;
}

.footer-address p i {
    width: 18px;
    text-align: center;
    color: var(--secondary-color);
    margin-top: 3px;
    font-size: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    text-align: center;
    background: #0b1225;
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

/* =========================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================= */
@media (max-width: 900px) {
    .container { grid-template-columns: 1fr; } /* Sidebar turun ke bawah */
}

@media (max-width: 768px) {
    /* Top Bar Stacking */
    .top-bar {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
        padding: 10px;
    }
    .top-contact { text-align: center; white-space: normal; }
    
    /* Hamburger Menu Navigasi */
    .menu-toggle { display: block; }
    nav { flex-wrap: wrap; position: relative; }
    .nav-links {
        display: none; 
        flex-direction: column;
        width: 100%;
        background: #0f172a;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; } 
    .nav-links li { text-align: center; padding: 15px 0; border-top: 1px solid rgba(255,255,255,0.1); }
    
    /* Hero Adjustments */
    .hero-content h1 { font-size: 1.8rem; }
    
    /* Kepsek Profil Stacking */
    .principal-wrapper { flex-direction: column; align-items: center; text-align: center; }
    
    /* Footer Responsive */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}