/* ==========================================================================
   AL-BAYAN BALAI LITERASI - FULL CSS STYLESHEET
   ========================================================================== */

/* ===== RESET & STYLING DASAR ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e8f5e8;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.logo-img {
    width: 60px;
    height: 60px;
    margin-right: 12px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
    object-fit: contain;
}

.logo {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
    min-width: 0;
    flex-shrink: 1;
    line-height: 1.2;
}

.logo span {
    font-size: 12px;
    font-weight: normal;
    color: #27ae60;
    white-space: nowrap;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

/* ===== HEADER BOTTOM ROW ===== */
.header-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #e8f5e8;
    margin-top: 10px;
    position: relative;
}

/* Navigation dalam header-bottom-row */
.header-bottom-row .nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: center;
    margin: 0 25px;
}

.header-bottom-row .nav-menu li {
    font-weight: 500;
    position: relative;
}

.header-bottom-row .nav-menu li:hover {
    color: #27ae60;
}

.header-bottom-row .nav-menu a {
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    font-size: 15px;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
}

.header-bottom-row .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #27ae60;
    transition: width 0.3s ease;
}

.header-bottom-row .nav-menu a:hover::after {
    width: 100%;
}

/* Active menu styling */
.nav-menu a.active {
    color: #27ae60 !important;
    font-weight: bold !important;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 2px;
    background: #27ae60 !important;
}

/* Desktop: Tampilkan menu di header-bottom-row */
.header-bottom-row > .nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: center;
    margin: 0 25px;
}

/* Mobile: Sembunyikan menu di header-bottom-row, tampilkan yang di menu-toggle */
@media (max-width: 768px) {
    .header-bottom-row > .nav-menu {
        display: none !important;
    }
    
    .menu-toggle .nav-menu {
        display: none; /* Default hidden, akan ditampilkan saat checkbox checked */
    }
}

/* Search Bar dalam header-bottom-row */
.header-bottom-row .search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 15px;
    border: 2px solid #2b8f55;
    flex-shrink: 0;
    min-width: 180px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.1);
    height: 50px;
}

.header-bottom-row .search-bar:focus-within {
    border-color: #27864e;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.1);
    background: #fff;
    transform: translateY(-2px);
}

.header-bottom-row .search-bar input {
    border: none;
    background: transparent;
    padding: 6px;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.header-bottom-row .search-bar input::placeholder {
    color: #999;
    font-style: italic;
}

.header-bottom-row .search-bar span {
    color: #27ae60;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    white-space: nowrap;
    font-weight: 600;
    padding: 4px 8px;
    background: #27ae60;
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.header-bottom-row .search-bar:hover span {
    color: #219955;
    transform: translateY(-1px);
}

/* ===== HAMBURGER MENU YANG DIPERBAIKI ===== */
/* Menu Toggle Container */
.menu-toggle {
    position: relative;
    order: 1;
    display: none; /* Sembunyikan di desktop */
    align-items: center;
    z-index: 1001;
}

/* Hide checkbox */
.menu-checkbox {
    display: none;
}

/* Hamburger button styling */
.menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    margin-right: 15px;
    background: none;
    border: none;
    padding: 0;
}

.menu-button span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== MAIN CONTENT LAYOUT ===== */
.main-content {
    display: flex;
    margin: 30px 0;
    gap: 30px;
}

.content-left {
    flex: 7;
}

.content-right {
    flex: 3;
}

/* ===== COMPONENTS ===== */

/* Date Section */
.date-section {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 14px;
    color: #666;
}

/* Breadcrumb */
.breadcrumb {
    background: #27ae60;
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 15px;
    border-left: 4px solid #27ae60;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.breadcrumb a,
.breadcrumb span {
    color: #27ae60;
    background: rgb(250, 246, 246);
    padding: 5px 5px;
    border-radius: 5px;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.breadcrumb a:first-child {
    width: 100px;
    text-align: center;
}

/* ========= MARQUEE FIX ========= */
.breadcrumb-marquee-inline {
    flex-grow: 1;
    height: 34px;
    overflow: hidden;
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
}

.breadcrumb-marquee-inline .marquee-text {
    position: absolute;
    left: 100%;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
    color: white !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-200%); }
}

/* Manual Navigation */
.manual-nav {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.manual-nav a {
    color: #27ae60;
    text-decoration: none;
    margin-right: 15px;
}

.manual-nav a:hover {
    text-decoration: underline;
}

/* Form Sections */
.form-section {
    background: #fff;
    padding: 25px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e8f5e8;
}

.form-section h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 22px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #27ae60, #219955);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(135deg, #219955, #1e8449);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Content Pages */
.content-page {
    background: #fff;
    padding: 25px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.content-page h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 24px;
}

.content-page h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 20px;
}

.content-page p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Terms Section */
.terms-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #27ae60;
}

.terms-list {
    margin-left: 20px;
    margin-bottom: 15px;
}

.terms-list li {
    list-style-type: decimal;
    margin-bottom: 10px;
}

.contact-info p {
    margin-bottom: 10px;
}

/* ===== ARTICLES & CARDS ===== */

.articles-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.article-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e8f5e8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.15);
    transform: translateY(-2px);
}

.article-img {
    height: 180px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.article-content {
    padding: 15px;
}

.article-tag {
    display: inline-block;
    background: #f1f1f1;
    color: #666;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.hero-article .article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.article-date {
    color: #27ae60;
    font-weight: 600;
    font-size: 14px;
    background: rgba(39, 174, 96, 0.1);
    padding: 5px 12px;
    border-radius: 20px;

}

.article-author {
    color: #666;
    font-style: italic;
}

/* Hero Article */
.hero-article {
    display: flex;
    flex-direction: column !important;
    background: #fff; /* BACKGROUND PUTIH */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Shadow lebih soft */
    transition: transform 0.3s ease;
    border: 1px solid #e8f5e8;
}

.hero-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(39, 174, 96, 0.15);
}

.hero-content {
    padding: 30px;
    background: #ffffff !important; /* WARNA putih */
    width: 100% !important; /* PASTIKAN FULL WIDTH */
}

.hero-title {
    font-size: 15px;
    font-weight: 500;
    color: rgb(0, 0, 0) !important; /* TEKS PUTIH */
    line-height: 1.3;
    margin-bottom: 0;
}

.hero-image {
    width: 100% !important; /* PASTIKAN FULL WIDTH */
    height: 300px;
    background: linear-gradient(45deg, #2c3e50, #27ae60);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #27ae60;
}
.article-category {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

/* Popular Posts */
.popular-posts {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.popular-posts h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #27ae60;
    color: #2c3e50;
    font-size: 18px;
}

.popular-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8f5e8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popular-item:hover {
    transform: translateX(5px);
    color: #27ae60;
}

.popular-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.popular-number {
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
    margin-right: 15px;
    min-width: 30px;
}

.popular-title {
    font-size: 14px;
    line-height: 1.4;
}

/* ===== FORM SARAN & KRITIK HORIZONTAL ===== */
.form-section-full {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    padding: 50px 0;
    margin-top: 40px;
}

.form-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-section-header h2 {
    color: #27ae60;
    font-size: 32px;
    margin-bottom: 15px;
}

.form-section-header p {
    font-size: 18px;
    color: #bdc3c7;
    max-width: 600px;
    margin: 0 auto;
}

.form-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.form-left {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-left h3 {
    color: #27ae60;
    margin-bottom: 20px;
    font-size: 22px;
}

.benefits-list {
    list-style: none;
    margin-bottom: 30px;
}

.benefits-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.contact-info {
    background: rgba(39, 174, 96, 0.1);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.contact-info h4 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.form-right {
    flex: 1.2;
}

.saran-form-horizontal {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-half {
    flex: 1;
}

.form-group-full {
    margin-bottom: 20px;
}

.saran-form-horizontal label {
    display: block;
    margin-bottom: 8px;
    color: #ecf0f1;
    font-weight: 500;
    font-size: 14px;
}

.saran-form-horizontal input,
.saran-form-horizontal textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ecf0f1;
    font-size: 15px;
    transition: all 0.3s ease;
}

.saran-form-horizontal input:focus,
.saran-form-horizontal textarea:focus {
    outline: none;
    border-color: #27ae60;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.saran-form-horizontal input::placeholder,
.saran-form-horizontal textarea::placeholder {
    color: rgba(236, 240, 241, 0.6);
}

.saran-form-horizontal textarea {
    resize: vertical;
    min-height: 150px;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.radio-option input {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input:checked + .radio-custom {
    border-color: #27ae60;
}

.radio-option input:checked + .radio-custom:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #27ae60;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-label {
    font-size: 14px;
    color: #ecf0f1;
}

/* Checkbox */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-option input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-option:hover .checkbox-custom {
    border-color: #27ae60;
}

.checkbox-option input:checked + .checkbox-custom {
    background: #27ae60;
    border-color: #27ae60;
}

.checkbox-option input:checked + .checkbox-custom:after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label {
    font-size: 14px;
    color: #ecf0f1;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-submit-large {
    flex: 1;
    background: linear-gradient(135deg, #27ae60, #219955);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-large:hover {
    background: linear-gradient(135deg, #219955, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-reset {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Message Notification Horizontal */
.form-message-horizontal {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-message-horizontal.success {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60;
    color: #27ae60;
    display: block;
}

.form-message-horizontal.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    display: block;
}



/* ===== RESPONSIVE HERO ===== */
@media (max-width: 1024px) {
    .hero-image {
        height: 250px;
    }
    
    .hero-content {
        padding: 25px;
    }
    
    .hero-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .hero-article {
        margin-bottom: 25px;
    }
    
    .hero-image {
        height: 200px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-article .article-meta {
        gap: 10px;
    }
    
    .hero-article .article-date,
    .hero-article .article-category {
        font-size: 12px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 180px;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .hero-title {
        font-size: 18px;
    }
}



/* ===== FOOTER ===== */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #27ae60;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section a {
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #27ae60;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #27ae60;
    font-size: 14px;
    color: #bdc3c7;
}

/* ===== NOTIFICATION STYLES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #27ae60;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.notification-error {
    background: #e74c3c;
}

.notification-info {
    background: #3498db;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet */
@media (max-width: 1024px) {
    .header-top {
        gap: 15px;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .logo span {
        font-size: 11px;
    }
    
    .header-bottom-row .nav-menu {
        gap: 20px;
        margin: 0 15px;
    }
    
    .header-bottom-row .nav-menu a {
        font-size: 14px;
    }
    
    .header-bottom-row .search-bar {
        min-width: 160px;
        padding: 7px 12px;
    }
    
    .main-content {
        gap: 20px;
    }
    
    .form-container {
        gap: 30px;
    }
    
    .form-left, .form-right {
        padding: 25px;
    }
    
    .form-section-header h2 {
        font-size: 28px;
    }
}

/* Mobile Landscape (768px dan di bawah) */
@media (max-width: 768px) {
    /* Perbaikan utama: Struktur hamburger menu */
    .header-top {
        flex-wrap: wrap;
        padding: 10px 0;
        position: relative;
    }
    
    /* Logo di baris atas */
    .logo-container {
        order: 1;
        flex: 1 1 100%;
        margin-bottom: 10px;
        justify-content: flex-start;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
        margin-right: 8px;
    }
    
    .logo {
        font-size: 15px;
    }
    
    .logo span {
        font-size: 10px;
    }
    
    /* Baris bawah dengan menu toggle dan search */
    .header-bottom-row {
        order: 2;
        flex: 1 1 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        width: 100%;
        padding: 8px 0;
        margin-top: 5px;
        position: relative;
    }
    
    /* Tampilkan hamburger menu toggle */
    .menu-toggle {
        display: block;
        order: 1;
        margin: 0;
    }
    
    .menu-button {
        display: flex;
        width: 28px;
        height: 22px;
        margin: 0;
        z-index: 1002;
    }
    
    /* Search bar */
    .header-bottom-row .search-bar {
        order: 2;
        flex: 1;
        margin: 0;
        min-width: auto;
        max-width: none;
        padding: 8px 12px;
        border: 2px solid #e8f5e8;
        height: 45px;
    }
    
    /* Navigation menu - hidden by default */
    .header-bottom-row .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: auto;
        width: 280px;
        background: #fff;
        flex-direction: column;
        margin: 0;
        padding: 15px;
        box-shadow: 8px 8px 30px rgba(0,0,0,0.15);
        border-top: 2px solid #27ae60;
        border-right: 2px solid #27ae60;
        border-bottom: 2px solid #27ae60;
        border-radius: 0 0 15px 0;
        gap: 0;
        z-index: 1000;
        animation: slideFromLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* CSS-only: Show menu when checkbox is checked */
    .menu-checkbox:checked ~ .nav-menu {
        display: flex;
    }
    
    /* Hamburger animation when menu is open */
    .menu-checkbox:checked ~ .menu-button span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background-color: #27ae60;
    }
    
    .menu-checkbox:checked ~ .menu-button span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-checkbox:checked ~ .menu-button span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background-color: #27ae60;
    }
    
    /* Menu items styling */
    .header-bottom-row .nav-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .header-bottom-row .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .header-bottom-row .nav-menu a {
        padding: 12px 15px;
        font-size: 14px;
        display: block;
        width: 100%;
        transition: all 0.3s ease;
        border-radius: 6px;
        color: #2c3e50;
        font-weight: 500;
        margin: 1px 0;
    }
    
    .header-bottom-row .nav-menu a::after {
        display: none;
    }
    
    .header-bottom-row .nav-menu a:hover {
        background: linear-gradient(135deg, #27ae60, #219955);
        color: white;
        padding-left: 20px;
        transform: translateX(3px);
        box-shadow: 0 3px 8px rgba(39, 174, 96, 0.2);
    }
    
    /* Mobile active menu styling */
    .nav-menu a.active {
        background: rgba(39, 174, 96, 0.1) !important;
        color: #27ae60 !important;
        border-left: 3px solid #27ae60;
        font-weight: bold;
    }
    
    .nav-menu a.active:hover {
        background: linear-gradient(135deg, #27ae60, #219955) !important;
        color: white !important;
    }
    
    /* Main content adjustments */
    .main-content {
        flex-direction: column;
        gap: 0;
        margin: 20px 0;
    }
    
    .content-left {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .articles-section {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    /* Responsive form section */
    .form-section-full {
        padding: 30px 0;
    }
    
    .form-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .form-left, .form-right {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .radio-group {
        justify-content: space-between;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-submit-large, .btn-reset {
        width: 100%;
    }
    
    @keyframes slideFromLeft {
        from { 
            transform: translateX(-100%); 
            opacity: 0; 
        }
        to { 
            transform: translateX(0); 
            opacity: 1; 
        }
    }
}

/* Mobile Portrait (480px dan di bawah) */
@media (max-width: 480px) {
    .header-top {
        gap: 8px;
    }
    
    .logo-container {
        margin-bottom: 8px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
        margin-right: 6px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .logo span {
        font-size: 9px;
    }
    
    .header-bottom-row {
        gap: 10px;
    }
    
    .menu-button {
        width: 22px;
        height: 18px;
    }
    
    .menu-button span {
        height: 2.5px;
    }
    
    .header-bottom-row .nav-menu {
        width: 240px;
        padding: 12px;
    }
    
    .header-bottom-row .nav-menu a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .header-bottom-row .search-bar {
        padding: 6px 10px;
        height: 40px;
    }
    
    .header-bottom-row .search-bar input {
        font-size: 13px;
        padding: 5px;
    }
    
    .header-bottom-row .search-bar span {
        font-size: 12px;
        padding: 3px 6px;
        min-width: 50px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-image {
        height: 200px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .content-page {
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    /* Responsive form section */
    .form-section-header h2 {
        font-size: 24px;
    }
    
    .form-section-header p {
        font-size: 16px;
    }
    
    .form-left, .form-right {
        padding: 20px;
    }
    
    .saran-form-horizontal {
        padding: 20px;
    }
    
    .form-left h3 {
        font-size: 20px;
    }
    
    .btn-submit-large, .btn-reset {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Very Small Mobile (360px dan di bawah) */
@media (max-width: 360px) {
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo {
        font-size: 13px;
    }
    
    .logo span {
        font-size: 8px;
    }
    
    .header-bottom-row {
        gap: 8px;
    }
    
    .menu-button {
        width: 20px;
        height: 16px;
    }
    
    .header-bottom-row .nav-menu {
        width: 220px;
        padding: 10px;
    }
    
    .header-bottom-row .nav-menu a {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .header-bottom-row .search-bar {
        padding: 5px 8px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-image {
        height: 150px;
    }
    
    /* Responsive form section */
    .form-section-full {
        padding: 20px 0;
    }
    
    .form-left, .form-right {
        padding: 15px;
    }
    
    .saran-form-horizontal {
        padding: 15px;
    }
    
    .form-section-header h2 {
        font-size: 22px;
    }
    
    .form-section-header p {
        font-size: 14px;
    }
}

/* ===== LINK HOVER EFFECTS ===== */
a:hover {
    color: #219955;
}

/* ===== TRANSITIONS ===== */
.header-bottom-row .search-bar,
.article-card,
.btn,
.header-bottom-row .nav-menu a,
.menu-button span,
.popular-item,
.form-group input,
.form-group textarea,
.form-group select,
.saran-form-horizontal input,
.saran-form-horizontal textarea,
.radio-option,
.checkbox-option,
.btn-submit-large,
.btn-reset {
    transition: all 0.3s ease;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header-bottom-row,
    .content-right,
    footer,
    .form-section-full {
        display: none;
    }
    
    .content-left {
        width: 100%;
        margin: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ===== NOSCRIPT & FALLBACK STYLES ===== */
noscript {
    display: block;
    padding: 10px;
    margin: 10px 0;
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 4px;
    color: #c62828;
}

/* Fallback jika JavaScript dinonaktifkan */
.no-js .menu-toggle {
    display: none !important;
}

.no-js .nav-menu {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    transform: none !important;
    opacity: 1 !important;
    background: transparent !important;
}

/* JavaScript enhancement - untuk close on click outside */
.js-enabled .menu-checkbox:checked ~ .nav-menu {
    display: flex;
}

/* Ensure footer stays at bottom */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

.main-content {
    flex: 1;
}

/* NAV MENU DEFAULT DESKTOP */
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 9999;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: black;
    border-radius: 4px;
}

/* RESPONSIVE MOBILE */
@media (max-width: 900px) {

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        padding: 15px 0;
        flex-direction: column;
        gap: 15px;
        z-index: 9998;
    }

    .nav-menu.show {
        display: flex !important;
    }
}





.hero-image {
    width: 40%;
    height: 240px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-form input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-form button {
    padding: 6px 12px;
    border: none;
    background: green;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.btn {
    padding: 12px 22px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
}

.btn-green {
    background: #25a744;
}

.btn-green:hover {
    background: #1e8b3a;
}

.btn-grey {
    background: #7f8c8d;
}

.btn-grey:hover {
    background: #6c7a7a;
}
.search-results {
    margin-top: 120px; /* sesuaikan sesuai tinggi header */
}
header {
    position: relative;
    z-index: 9999;
}
.overlay {
    pointer-events: none;
}
.search-result-container {
    margin-top: 120px !important; /* kasih jarak biar tidak menutup header */
}


/* Sidebar Container */
.sidebar {
    width: 240px;
    background: #2c3e50;
    height: 100vh;
    padding: 25px 20px;
    position: fixed;
    top: 0;
    left: 0;
    color: white;
    box-sizing: border-box;
}

/* Header */
.sidebar-header h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 1px;
}

/* Menu List */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Menu Item */
.menu-item {
    display: block;
    padding: 12px 15px;
    background: #34495e;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.25s;
    font-size: 15px;
}

.menu-item:hover {
    background: #3d566e;
}

/* Active item */
.menu-item.active {
    background: #1abc9c;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(26, 188, 156, 0.6);
}

/* Logout Button */
.logout {
    margin-top: 40px;
    border-top: 1px solid #3f5160;
    padding-top: 20px;
    background: #c0392b !important;
}

.logout:hover {
    background: #e74c3c !important;
}
.btn-login-icon {
    background: none;    /* Tidak ada background */
    padding: 0;          /* Hilangkan padding */
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.btn-login-icon svg {
    width: 24px;
    height: 24px;
    fill: black;         /* Ikon hitam */
    transition: 0.2s;
}

.btn-login-icon:hover svg {
    transform: scale(1.1);
    opacity: 0.7;
}
