/* ==========================================
   SMA Negeri 1 Barumun - Official Stylesheet
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: #001280;
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.icon-yellow {
    color: #ffcc00;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 50px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-kiri {
    height: 45px;
    width: auto;
}

.logo-utama {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #001280;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0056b3;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #001280;
    min-width: 260px;
    list-style: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1100;
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu a {
    color: #ffffff;
    padding: 14px 20px;
    display: block;
    font-size: 14px;
    font-weight: normal;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #0023a8;
    color: #ffffff;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Nav Actions & Search */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn {
    background-color: #001280;
    color: white;
    border: none;
    padding: 10px 14px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #0023a8;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    color: #001280;
    cursor: pointer;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 18, 128, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.search-modal.active {
    display: flex;
}

.search-content {
    display: flex;
    gap: 10px;
    width: 80%;
    max-width: 600px;
}

.search-content input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    outline: none;
}

.close-search {
    background: #ffcc00;
    border: none;
    color: #001280;
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

/* Hero Section & Slider */
.hero {
    width: 100%;
    height: 80vh;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    max-width: 650px;
    background: rgba(0, 18, 128, 0.85);
    color: white;
    padding: 25px 35px;
    border-left: 5px solid #ffcc00;
    border-radius: 4px;
    z-index: 10;
}

.hero-overlay h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.hero-overlay p {
    font-size: 15px;
    color: #e0e0e0;
}

/* Section Sambutan */
.section-sambutan {
    padding: 80px 0;
    background-color: #ffffff;
}

.sambutan-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}

.sambutan-img {
    flex: 1;
}

.sambutan-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.sambutan-text {
    flex: 1.2;
}

.badge {
    display: inline-block;
    background-color: rgba(0, 18, 128, 0.1);
    color: #001280;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 15px;
}

.sambutan-text h2 {
    font-size: 32px;
    color: #001280;
    margin-bottom: 18px;
}

.sambutan-text p {
    color: #555;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    background-color: #001280;
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0023a8;
}

/* Section Berita */
.section-berita {
    padding: 80px 0;
    background-color: #f4f6f9;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: #001280;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.berita-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.berita-card:hover {
    transform: translateY(-5px);
}

.berita-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.berita-body {
    padding: 22px;
}

.berita-date {
    font-size: 13px;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

.berita-body h3 {
    font-size: 18px;
    color: #001280;
    margin-bottom: 10px;
    line-height: 1.4;
}

.berita-body p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    text-decoration: none;
    color: #001280;
    font-weight: 700;
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: #001280;
    color: white;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 20px;
    color: #ffcc00;
}

.footer-col p {
    font-size: 14px;
    color: #dcdcdc;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #dcdcdc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: #ffcc00;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #ffcc00;
    color: #001280;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #b0b0b0;
}

/* Responsive Styling */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 25px;
    }
    
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #f8f9fa;
        width: 100%;
    }

    .dropdown-menu a {
        color: #001280;
    }

    .sambutan-grid {
        flex-direction: column;
    }
}