@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --header-blue: #84a2d4;
    --nav-green: #00a65a;
    --sidebar-yellow: #f39c12;
    --bg-light: #f4f7f6;
    --text-dark: #333333;
    --border-color: #dddddd;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Top Title Bar */
.top-bar {
    background: var(--header-blue);
    padding: 15px 20px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

/* Navigation */
nav {
    background: var(--nav-green);
    display: flex;
    flex-wrap: wrap;
    /* Let it grow if items wrap */
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    /* Compact padding */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    /* Allow menu items to flow to bottom lines */
    list-style: none;
    align-items: center;
}

nav ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    /* More compact padding for better fit */
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
    /* Subtle rounded effect */
}

nav ul li a i {
    font-size: 1.1rem;
    opacity: 0.9;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--sidebar-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 60%;
}

nav ul li {
    position: relative;
}

/* Dropdown Menu Container */
nav ul li .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    border-top: 3px solid var(--sidebar-yellow);
    overflow: hidden;
}

/* Show Dropdown on Hover */
nav ul li:hover .dropdown-menu {
    display: flex;
}

/* Dropdown Item Styling */
nav ul li .dropdown-menu a {
    color: #333;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid #f5f5f5;
    width: 100%;
    border-radius: 0;
}

nav ul li .dropdown-menu a:last-child {
    border-bottom: none;
}

nav ul li .dropdown-menu a:hover {
    background: #f8f9fa;
    color: var(--nav-green);
    padding-left: 25px;
    text-shadow: none;
}

nav ul li .dropdown-menu a::after {
    display: none;
    /* Remove the underline effect from dropdown items */
}

nav ul li a i.fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 4px;
    opacity: 0.7;
}

.nav-right ul li a {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-left: 10px;
    padding: 10px 25px;
}

.nav-right ul li a.btn-login-nav {
    background: var(--sidebar-yellow);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-right ul li a:hover {
    background: var(--white);
    color: var(--nav-green);
}

.nav-right ul li a.btn-login-nav:hover {
    background: white;
    color: var(--sidebar-yellow);
}

.user-info {
    display: flex;
    align-items: center;
}

.btn-logout-nav {
    color: white;
    text-decoration: none;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    transition: all 0.3s ease;
}

.btn-logout-nav:hover {
    background: white !important;
    color: #c0392b !important;
    border-color: white !important;
}

/* Main Layout: 3 Columns */
.main-wrapper {
    display: flex;
    gap: 15px;
    /* Jarak antara kolom Berita, Gambar, dan Serba-serbi */
    padding: 0 15px;
    margin-top: 15px;
}

.sidebar {
    width: 250px;
    background: #fff;
    border-right: 1px solid var(--border-color);
}

.sidebar-header {
    background: var(--sidebar-yellow);
    padding: 12px 15px;
    font-weight: 700;
    color: white;
    text-align: center;
}

.sidebar-content {
    padding: 15px;
}

.content-center {
    flex: 1;
    border-right: 1px solid var(--border-color);
}

/* === MODERN NEWS SLIDER STYLES === */
.slider-container {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
    background: #eee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}

.slides {
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.slider-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 30px 30px;
    text-align: left;
}

.slider-text h3 {
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-text p {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 80%;
    line-height: 1.4;
}

/* Navigation Buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 45px;
    height: 45px;
    margin-top: -22px;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover,
.next:hover {
    background: var(--nav-green);
    border-color: var(--nav-green);
    transform: scale(1.1);
}

.dot-container {
    text-align: center;
    position: absolute;
    bottom: 25px;
    width: 100%;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 8px;
    width: 8px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white;
    width: 30px;
    border-radius: 4px;
}

/* Fading animation */
.fade {
    animation: fadeAnimation 0.8s ease;
}

@keyframes fadeAnimation {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* Bottom Grid */
.bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-top: 2px solid #eee;
}

.info-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.info-card h4 {
    background: #f8f9fa;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.info-card-body {
    padding: 15px;
    min-height: 150px;
}

/* Main Footer Layout */
.main-footer {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 0 0;
    margin-top: 40px;
    border-top: 5px solid var(--sidebar-yellow);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--nav-green);
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--sidebar-yellow);
}

.footer-about {
    line-height: 1.8;
    color: #aaa;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--nav-green);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.footer-links li a:hover {
    color: var(--nav-green);
    padding-left: 10px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-info li i {
    color: var(--nav-green);
    margin-top: 3px;
}

.footer-bottom {
    background: #111;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content.login-modal {
    background: white;
    width: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content.login-modal {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.modal-header h3 span {
    color: var(--nav-green);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.form-group label i {
    color: var(--nav-green);
    margin-right: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--nav-green);
}

.btn-primary-block {
    width: 100%;
    background: var(--nav-green);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-primary-block:hover {
    background: #1e8449;
}

.modal-footer-text {
    margin-top: 20px;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

/* Global Table Styles - Premium Zebra Striped */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

table th {
    background: linear-gradient(135deg, #00a65a, #008d4c);
    padding: 15px 20px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
}

table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.9rem;
    color: #444;
    vertical-align: middle;
}

table tbody tr:nth-child(even) {
    background-color: #f8fbf9 !important;
}

table tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

table tbody tr:hover {
    background-color: #e8f5ed !important;
    transition: all 0.2s ease;
}

table tr:last-child td {
    border-bottom: none;
}