 /* style.css - Desain Web Media Massa untuk Halaman Artikel AJAT NEWS */

/* Reset dan Font Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f4f4f4 0%, #e0e0e0 100%);
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(90deg, #000 0%, #333 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

header:hover {
    background: linear-gradient(90deg, #333 0%, #000 100%);
}

.logo img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #ffcc00;
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #ffcc00;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    gap: 30px;
    padding: 0 20px;
}

.article-detail {
    flex: 2;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-detail:hover {
    transform: translateY(-5px);
}

.article-detail h1 {
    font-size: 32px;
    color: #222;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.byline {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
    font-style: italic;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.article-image:hover {
    transform: scale(1.02);
}

.lead {
    font-size: 18px;
    color: #555;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.5;
    border-left: 4px solid #007bff;
    padding-left: 15px;
}

.article-detail h2 {
    font-size: 24px;
    color: #222;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
}

.article-detail p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.related-articles {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.related-articles h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 15px;
    font-weight: 600;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.sidebar {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.sidebar h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #0056b3;
}

.sidebar p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.sidebar iframe {
    width: 100%;
    height: 236px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: linear-gradient(90deg, #000 0%, #333 100%);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
}

footer p {
    font-size: 14px;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

/* Responsivitas */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .article-detail {
        padding: 20px;
    }

    .article-detail h1 {
        font-size: 28px;
    }

    .article-detail h2 {
        font-size: 20px;
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .article-detail h1 {
        font-size: 24px;
    }

    .lead {
        font-size: 16px;
    }

    .sidebar iframe {
        height: 200px;
    }
}
/* Tambahan untuk JS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #000;
    padding: 10px;
}

.mobile-menu.active {
    display: flex;
}

body.loaded {
    /* Animasi awal jika diperlukan */
    animation: fadeInBody 0.5s ease-in;
}

@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}
