/* ======================================= */
/* ====== GAYA GLOBAL / DESKTOP (> 768px) ====== */
/* ======================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f3f4f6;
    color: #222;
    line-height: 1.6;
}

.navbar {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed; 
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Sembunyikan tombol hamburger secara default (Desktop) */
.mobile-menu-toggle {
    display: none; 
}

/* Container untuk navigasi */
.navbar nav {
    /* Di desktop: Tampilkan menu horizontal */
    display: flex;
    align-items: center;
    transform: translateX(0); 
    position: static; 
    width: auto;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    padding-top: 0;
    overflow-y: visible;
}

/* Overlay untuk Sidebar Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001; 
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.logo-image {
    height: 100px;
    width: auto;
}

.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.navbar a:hover {
    color: #333;
}

.navbar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #000;
  transition: width 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.navbar a:hover::after {
  width: 100%;
}

.navbar nav a.active {
    border-bottom: 3px solid black;
    padding-bottom: 6px; /* bikin garis lebih turun & panjang */
}

/* Aturan ini memastikan LI (menu utama) akan menjadi kontainer untuk dropdown */
.admin-dropdown, .admin-dropdown-admin {
    position: relative; 
    overflow: visible; 
}

/* ===== DROPDOWN DESKTOP UMUM ===== */
.admin-dropdown-content, .admin-dropdown-contentadmin {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; 
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    overflow: visible;
    margin-top: 10px;
    padding: 10px 0;
}
.navbar a i {
    position: relative;
    z-index: 2000;
}

.admin-dropdown:hover .admin-dropdown-content,
.admin-dropdown-admin:hover .admin-dropdown-contentadmin {
    display: block;
}

.admin-dropdown-item, .admin-dropdown-itemadmin {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    z-index: 1002;
}

.admin-dropdown-item:last-child, .admin-dropdown-itemadmin:last-child {
    border-bottom: none;
}

.admin-dropdown-item:hover, .admin-dropdown-itemadmin:hover {
    color: white;
}

.admin-dropdown-item i, .admin-dropdown-itemadmin i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Ikon panah dropdown desktop */
.dropdown-toggle::after {
    content: '\f0d7'; /* Panah ke bawah */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s;
    position: static;
    right: auto;
    top: auto;
    transform: none;
}

.admin-dropdown:hover .dropdown-toggle::after,
.admin-dropdown-admin:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}
/* ======================================= */
/* PERBAIKAN AREA KURSOR DROPDOWN */
/* ======================================= */

/* Area buffer di atas dropdown untuk kursor */
.admin-dropdown-content::before,
.admin-dropdown-contentadmin::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

/* Area transisi antara menu utama dan dropdown */
.admin-dropdown:hover::after,
.admin-dropdown-admin:hover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

/* Dropdown dengan margin lebih kecil agar dekat dengan menu */
.admin-dropdown-content,
.admin-dropdown-contentadmin {
    margin-top: 5px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - 0px); 
    padding-top: 100px; 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #000;
    padding-left: 60px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero .overlay {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.hero-content {
    position: relative;
    max-width: 1000px;
    text-align: left;
    z-index: 2;
}

.hero h1 {
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 30px;
    font-weight: 500;
    color: #ffffff; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== DESKRIPSI SECTION ===== */
.deskripsi-section {
    background: #ffffff;
    padding: 60px 20px;
}

.deskripsi-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.deskripsi-background {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.deskripsi-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(182, 0, 0, 0.03)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.deskripsi-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 0;
    color: #2e2e2e;
    text-align: left;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Tombol outline dengan panah */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 400;
    font-size: 20px;
    color: #cacaca; 
    border: 1px solid #cacaca; 
    border-radius: 9999px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    font-weight: 700;
    background-color: #b60000;
    color: #fff;
    border-color: #b60000;
}

.btn-primary::after {
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-left: 6px;
}

.btn-primary:hover::after {
    transform: translateX(5px);
}
.btn-set {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    color: #2e2e2e; 
    border: 1px solid #000000; 
    border-radius: 9999px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-set:hover {
    font-weight: 700;
    background-color: #b60000;
    color: #fff;
    border-color: #b60000;
}

.btn-set::after {
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-left: 6px;
}

.btn-set:hover::after {
    transform: translateX(5px);
}
/* Event Section */
.event {
    padding: 50px 20px;
    text-align: center;
}

.event-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Scroll Horizontal */
.horizontal-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: #747474;
    border-radius: 5px;
}

/* Card HANYA UNTUK FOTO */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 320px;
    transition: all 0.3s ease;
    overflow: hidden;
    margin: 10px;
    padding: 0;
    display: inline-block;
    vertical-align: top;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Container untuk gambar poster dengan bingkai */
.card-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border: 8px solid #ffffff;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px #e0e0e0;
}

/* Gambar poster yang responsif */
.card-image {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.card:hover .card-image {
    transform: scale(1.05);
}

/* Efek bingkai saat hover */
.card:hover .card-image-container {
    border-color: #f0f0f0;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px #d0d0d0;
}

/* Style untuk pesan tidak ada event */
.no-event-message {
    text-align: center;
    padding: 60px 40px;
    background-color: #fff;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 20px 0;
    width: 100%;
    display: inline-block;
}

.no-event-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-event-message h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 600;
}

/* === Scroll Button Style === */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: #b60000;
    color: #fff;
}

.scroll-btn.left {
    left: -20px;
}

.scroll-btn.right {
    right: -20px;
}

/* Download Section */
.download-section {
    background: #ffffff;
    padding: 60px 20px;
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.download-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #2e2e2e;
    text-align: left;
    font-weight: 500;
}

.download-button-container {
    margin: 25px 0;
    text-align: left;
}

.btn-download {
    background: transparent;
    color: #2e2e2e;
    border: 1px solid #000;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download:hover {
    font-weight: 700;
    background: #b60000;
    color: #fff;
    border-color: #b60000;
}

.app-description {
    font-size: 20px;
    line-height: 1.5;
    color: #2e2e2e;
    text-align: left;
    margin-top: 20px;
    font-weight: 500;
}

/* Footer Section */
.footer-section {
    background: #b60000;
    color: #ffffff;
    padding: 10px 20px 10px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    text-align: left;
    justify-self: start;
}

.footer-logo-image {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 100px;
    width: auto;
}

.company-name {
    font-size: 12px;
    font-weight: 400;
    color: #ffffff;
    text-align: left;
}

.footer-nav {
    text-align: center;
    justify-self: center;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    padding: 5px 0;
    display: inline-block;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.footer-contact {
    text-align: right;
    justify-self: end;
    max-width: 200px;
}

.contact-info {
    margin-bottom: 20px;
    text-align: right;
}

.contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    align-items: flex-end;
}

.contact-note {
    font-size: 12px;
    color: #ffffff;
    line-height: 1.4;
    margin-top: 15px;
    opacity: 0.9;
    text-align: right;
}

.contact-email {
    font-weight: bold;
    margin-top: 5px;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

.social-link {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ffffff;
    color: #b60000;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #ffffff;
}

/* ===== MODAL POPUP STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.large-modal {
    max-width: 1200px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    color: #b60000;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #000;
    text-align: center;
}

.modal-form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.modal-left-column {
    display: flex;
    flex-direction: column;
}

.modal-right-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.image-upload-section {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #b60000;
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
    line-height: 1.5;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-button {
    display: inline-block;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    margin-bottom: 10px;
}

.file-input-button:hover {
    border-color: #b60000;
    background: #f0f0f0;
    color: #333;
}

.file-name {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

.current-image-label {
    margin-top: 15px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.current-image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: block;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.current-image-preview:hover {
    transform: scale(1.02);
    border-color: #b60000;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    color: #2e2e2e; 
    border: 1px solid #000000; 
    border-radius: 9999px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    font-weight: 700;
    background-color: #b60000;
    color: #fff;
    border-color: #b60000;
    transform: translateY(-2px);
}

.btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    color: #2e2e2e; 
    border: 1px solid #000000; 
    border-radius: 9999px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    font-weight: 700;
    background-color: #b60000;
    color: #fff;
    border-color: #b60000;
    transform: translateY(-2px);
}

/* ===== PHOTO EDITOR STYLES ===== */
.photo-editor-container {
    margin-top: 20px;
}

.editor-layout-horizontal {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
}

.editor-preview-section {
    display: flex;
    flex-direction: column;
}

.editor-instructions-section {
    display: flex;
    flex-direction: column;
}

.image-crop-container {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    min-height: 400px;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-crop-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

.crop-info {
    margin-top: 10px;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.crop-info p {
    margin: 5px 0;
    color: #333;
    font-weight: 500;
}

.crop-info small {
    color: #666;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.crop-instructions {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.crop-instructions h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.crop-instructions p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

.instruction-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.tip-item i {
    color: #b60000;
    width: 20px;
    text-align: center;
}

.tip-item span {
    color: #555;
    font-size: 14px;
}

.editor-actions-bottom {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    border: 2px solid #000;
    border-radius: 9999px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    background-color: #b60000;
    color: #fff;
    border-color: #b60000;
    transform: translateY(-2px);
}

/* Cropper.js Custom Styles */
.cropper-view-box,
.cropper-face {
    border-radius: 8px;
}

.cropper-view-box {
    outline: 2px solid #b60000;
    outline-color: rgba(182, 0, 0, 0.75);
}

.cropper-line {
    background-color: #b60000;
}

.cropper-point {
    background-color: #b60000;
    width: 8px;
    height: 8px;
}

.cropper-point.point-se {
    width: 12px;
    height: 12px;
}
/* ===== POPUP DOWNLOAD ===== */
.popup-download {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content-download {
    background: #ffffff;
    padding: 25px 35px;
    border-radius: 12px;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    animation: fadeInScale 0.25s ease;
}

.popup-content-download p {
    font-size: 15px;
    margin-bottom: 20px;
}

.popup-btn {
    background: transparent;
    color: #2e2e2e;
    border: 1px solid #000;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    font-weight: 700;
    background: #b60000;
    color: #fff;
    border-color: #b60000;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}


/* ================================================= */
/* MEDIA QUERY UNTUK TAMPILAN MOBILE (Maksimal 768px) */
/* ================================================= */
/* ================================================= */
/* MEDIA QUERY UNTUK TAMPILAN MOBILE (Maksimal 768px) */
/* ================================================= */
@media (max-width: 768px) {
   
    /* 1. Navbar Mobile Header - TIDAK DIUBAH */
    .navbar {
        padding: 15px 20px;
        height: 70px; 
        display: flex; 
        justify-content: space-between; 
        align-items: center;
        flex-direction: row; 
    }
    
    /* 2. Tombol Mobile (Hamburger) - TIDAK DIUBAH */
    .mobile-menu-toggle {
        display: block; /* TAMPILKAN tombol hamburger */
        order: 1; /* TOMBOL DI POSISI PERTAMA (KIRI) */
        z-index: 1003; 
        color: #333; 
        background: none;
        border: none;
        font-size: 1.8em; 
        cursor: pointer;
    }
    
    /* 3. Logo (Di Kanan) - TIDAK DIUBAH */
    .logo {
        order: 2; /* LOGO DI POSISI KEDUA (KANAN) */
        margin-left: auto; 
    }
    
    .logo-image {
        height: 40px; 
        width: auto;
    }
    
    /* 4. Navigasi Utama (Sidebar) - INI YANG DIPERBAIKI */
    /* Sebelum: sidebar langsung muncul */
    /* Sesudah: sidebar tersembunyi */
    .navbar nav {
        display: block; 
        position: fixed;
        top: 0;
        left: 0;
        width: 280px; 
        height: 100%;
        background-color: white; 
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        z-index: 1002;
        padding-top: 70px; 
        
        /* PERBAIKAN DI SINI: Sidebar awalnya tersembunyi */
        transform: translateX(-100%); /* Sidebar di luar layar kiri */
        transition: transform 0.3s ease-in-out;
        overflow-y: auto; 
    }
    
    /* 5. Sidebar Aktif (Terlihat) - INI YANG DIPERBAIKI */
    .navbar nav.open {
        transform: translateX(0); /* Sidebar masuk ke layar */
    }

    /* 6. List Menu (Sidebar Vertikal) - TIDAK DIUBAH */
    .navbar ul {
        flex-direction: column; 
        padding: 0;
        list-style: none;
        gap: 0; 
        width: 100%; 
    }
    
    .navbar li {
        border-bottom: 1px solid #eee;
    }
    
    .navbar li:last-child {
        border-bottom: none;
    }

    .navbar a {
        padding: 15px 20px;
        display: flex; 
        align-items: center;
        font-weight: 500;
        color: #000000;
        position: relative; 
    }
    
    .navbar a i {
        font-size: 1.2em;
        width: 30px; 
        text-align: center;
        margin-right: 10px;
        color: #000000;
        display: inline-block;
    }

    .navbar a:hover {
        background-color: #f5f5f5;
        color: #000000;
    }
    
    .navbar a::after {
        display: none; 
    }

    /* 7. Dropdown Admin (Khusus Sidebar) - TIDAK DIUBAH */
    .admin-dropdown > a, .admin-dropdown-admin > a {
        position: relative;
    }
    
    .admin-dropdown > a::after, .admin-dropdown-admin > a::after {
        content: '\f0d7';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        color: #333; 
        display: block; 
    }

    .admin-dropdown.active > a::after, .admin-dropdown-admin.active > a::after {
        content: '\f0d8';
    }

    .admin-dropdown-content, .admin-dropdown-contentadmin {
        position: static; 
        display: block; 
        box-shadow: none; 
        background-color: #f8f8f8; 
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        padding: 0; 
    }
    
    .admin-dropdown.active .admin-dropdown-content, 
    .admin-dropdown-admin.active .admin-dropdown-contentadmin {
        max-height: 500px; 
        padding: 10px 0;
    }

    .admin-dropdown-item, .admin-dropdown-itemadmin {
        padding: 10px 20px 10px 60px;
        border-bottom: none;
        font-weight: 400;
    }
    
    .admin-dropdown-item i, .admin-dropdown-itemadmin i {
        display: none;
    }
    
    .admin-dropdown:hover .admin-dropdown-content,
    .admin-dropdown-admin:hover .admin-dropdown-contentadmin {
        display: none; 
        opacity: 0;
    }

    .hero-content {
         position: relative;
    max-width: 1000px;
    text-align: left;
    z-index: 2;
    }

    .hero h1 {
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 30px;
    font-weight: 500;
    color: #ffffff; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
    
    .btn-primary {
        align-self: flex-start; /* Tombol rata kiri */
        padding: 12px 30px; /* Ukuran ideal untuk tombol mobile */
        font-size: 18px; /* Font ukuran mobile */
        margin-top: 15px;
        width: auto; /* Tidak full width */
        min-width: 140px; /* Lebar minimum */
    }
    
    /* 3. DESKRIPSI - Ukuran Font Ideal Mobile & Rata Kiri */
    .deskripsi-text {
        font-size: 1rem; /* Ukuran font ideal untuk mobile (16px) */
        line-height: 1.6;
        text-align: left; /* Rata kiri */
        font-weight: 500;
    }
    
    /* 4. TOMBOL EDIT DESKRIPSI - Rata Kiri & Ukuran Diperkecil */
    .deskripsi-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Konten rata kiri */
    }
    
    .btn-set {
        padding: 12px 28px; /* Ukuran ideal untuk mobile */
        font-size: 16px; /* Font ukuran mobile */
        margin-top: 20px;
        align-self: flex-start; /* Tombol rata kiri */
        min-width: 120px;
    }
    
    .card-image {
        object-fit: contain !important; /* Tampilkan foto full, tidak dipotong */
        object-position: center;
        background-color: #f8f9fa; /* Background jika foto lebih kecil dari container */
    }
    
    .card-image-container {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
    }
    
    /* 2. DOWNLOAD SECTION - RATA KIRI SEMUA */
    .download-container {
        text-align: left !important; /* Override rata tengah yang ada */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .download-text {
        text-align: left !important;
        font-size: 1rem; /* Ukuran font mobile ideal */
        line-height: 1.5;
        margin-bottom: 20px;
        font-weight: 500;
        width: 100%;
    }
    
    .download-button-container {
        text-align: left !important;
        margin: 15px 0;
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    
    .btn-download {
        padding: 12px 30px; /* Ukuran tombol ideal mobile */
        font-size: 16px; /* Font size mobile */
        align-self: flex-start; /* Rata kiri */
    }
    
    .app-description {
        text-align: left !important;
        font-size: 0.95rem; /* Sedikit lebih kecil dari teks utama */
        line-height: 1.5;
        margin-top: 15px;
        width: 100%;
    }
    
    /* 3. JUDUL HERO - RATA KIRI & UKURAN BESAR */
    .hero h1 {
        text-align: left;
        font-size: 40px; /* Ukuran besar untuk mobile */
        font-weight: 700;
        margin-bottom: 25px;
        line-height: 1.2;
        padding-left: 0;
        width: 100%;
    }
    
    /* 4. TOMBOL EVENT - RATA KIRI & UKURAN IDEAL MOBILE */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Rata kiri */
        text-align: left;
        width: 100%;
    }
    
    .btn-primary {
        align-self: flex-start; /* Tombol rata kiri */
        padding: 12px 28px; /* Ukuran ideal mobile */
        font-size: 17px;
        margin-top: 15px;
        width: auto;
        min-width: 130px;
    }
    
    /* 5. DESKRIPSI - UKURAN FONT IDEAL MOBILE & RATA KIRI */
    .deskripsi-text {
        font-size: 1rem; /* 16px - ukuran ideal untuk mobile */
        line-height: 1.6;
        text-align: left;
        font-weight: 500;
    }
    
    /* 6. TOMBOL EDIT DESKRIPSI - RATA KIRI & UKURAN MOBILE */
    .deskripsi-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-set {
        padding: 11px 26px;
        font-size: 15px;
        margin-top: 20px;
        align-self: flex-start;
        min-width: 110px;
    }
    .footer-nav {
        display: none !important;
    }
    
    /* 2. TETAPKAN LAYOUT 3 KOLOM TAPI KOLOM TENGAH KOSONG */
    .footer-container {
        grid-template-columns: 1fr auto 1fr; /* TETAP 3 KOLOM */
        gap: 40px;
        text-align: left; /* TETAP RATA KIRI */
    }
    
    /* 3. LOGO TETAP DI KIRI, TIDAK DIUBAH */
    .footer-logo {
        text-align: left;
        justify-self: start;
    }
    
    .company-name {
        text-align: left;
    }
    
    /* 4. KONTAK TETAP DI KANAN, TIDAK DIUBAH */
    .footer-contact {
        text-align: right;
        justify-self: end;
        max-width: 200px;
    }
    
    .contact-note {
        text-align: right;
    }
    
    .social-media {
        justify-content: flex-end;
    }
    
    .contact-item {
        align-items: flex-end;
    }
    
    /* 5. FOOTER BOTTOM TETAP TENGAH */
    .footer-bottom {
        text-align: center;
    }
    /* 8. Penyesuaian Konten */
    .hero {
        margin-top: 70px; 
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
        min-height: 60vh;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .deskripsi-section {
        padding: 30px 15px;
    }
    
    .deskripsi-background {
        padding: 25px;
    }
    
    .deskripsi-text {
        font-size: 1rem;
        font-weight: 500;
    }
    
    .event-wrapper {
        padding: 0; /* Hapus padding horizontal di mobile untuk event wrapper */
    }
    
    .horizontal-scroll {
        padding: 0 10px 10px; /* Tambahkan sedikit padding agar card tidak menempel */
    }
    
    .card {
        max-width: 90vw; /* Card mengambil 90% lebar viewport */
        margin: 0 10px;
        scroll-snap-align: start; /* Memastikan card berhenti tepat saat di-scroll */
    }
    
    .card-image-container {
        height: 350px;
        border-width: 6px;
    }
    
    .download-container {
        text-align: center;
    }
    
    .download-text,
    .app-description {
        text-align: center;
    }
    
    .download-button-container {
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        text-align: center;
        justify-self: center;
    }
    
    .nav-links {
        align-items: center;
    }
    
    .footer-contact {
        text-align: center;
        justify-self: center;
        max-width: 100%;
    }
    
    .contact-item {
        align-items: center;
    }
    
    .contact-note {
        text-align: center;
    }
    
    .social-media {
        justify-content: center;
    }
    
    .company-name {
        text-align: center;
    }
    
    .modal-form-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .editor-layout-horizontal {
        grid-template-columns: 1fr;
        height: auto;
        gap: 20px;
    }
    
    .modal-content {
        max-width: 95%;
        padding: 20px;
    }
    
    .large-modal {
        max-width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-save {
        width: 100%;
    }
    
    textarea.form-control {
        min-height: 150px;
    }
    
    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .scroll-btn.left {
        left: 0;
    }

    .scroll-btn.right {
        right: 0;
    }
}

/* =========================
    MEDIA QUERY LEBIH KECIL (<= 480px)
    ========================= */

@media (max-width: 480px) {
    .hero {
        padding: 20px;
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 28px;
        font-weight: 500;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .deskripsi-section {
        padding: 20px 10px;
    }
    
    .deskripsi-background {
        padding: 20px;
    }
    
    .deskripsi-text {
        font-size: 0.95rem;
        font-weight: 500;
    }
    
    .event {
        padding: 30px 15px;
    }
    
    .card-image-container {
        height: 300px;
        border-width: 4px;
    }
    
    .no-event-message {
        padding: 40px 20px;
    }
    
    .no-event-icon {
        font-size: 3rem;
    }
    
    .no-event-message h3 {
        font-size: 1.4rem;
    }

    .modal-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
}

/* =========================
    LOGIN PAGE STYLE (Dipertahankan)
    ========================= */

.login-body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #a61111; 
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: #ffffff;
    width: 380px;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
}

.login-header img.login-logo {
    width: 70px;
    height: auto;
    margin-bottom: 5px;
}

.login-header h1 {
    margin-top: 5px;
    font-size: 26px;
    color: black;
    font-weight: bold;
}

.error-message {
    background: #ffdddd;
    padding: 10px;
    border-left: 4px solid #ff3333;
    margin-bottom: 15px;
    color: #b00000;
    text-align: left;
    border-radius: 5px;
    font-size: 14px;
}

.login-form {
    margin-top: 10px;
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    background: #f5f5f5;
}

.input-group i {
    font-size: 15px;
    color: #555;
    margin-right: 8px;
}

.input-group input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    padding: 8px 0;
}

.toggle-password {
    border: none;
    background: none;
    cursor: pointer;
    margin-left: 5px;
}

.toggle-password i {
    font-size: 16px;
    color: #555;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 20px;
}

.login-btn {
    width: 100%;
    background: #000000;
    color: rgb(0, 0, 0);
    padding: 10px 0;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border: 2px solid #000;
    border-radius: 99px;
    background: transparent;
    cursor: pointer;
}

.login-btn:hover {
    background-color: #000000;
    color: #fff;
    border-color: #000000;
}

/* RESPONSIVE LOGIN */
@media (max-width: 420px) {

    .login-body {
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: auto;
    }

    .login-container {
        width: 95%;
        padding: 22px 18px;
        border-radius: 10px;
    }

    .login-header .login-logo {
        width: 60px;
    }

    .login-header h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .form-group label {
        font-size: 12px;
    }

    .input-group {
        padding: 6px 10px;
        gap: 6px;
    }

    .input-group i {
        font-size: 14px;
    }

    .input-group input {
        font-size: 13px;
        padding: 7px 0;
    }

    .checkbox-group label {
        font-size: 12px;
    }

    .login-btn {
        padding: 12px;
        font-size: 14px;
        border-radius: 50px;
    }

    .error-message {
        font-size: 12px;
        padding: 8px;
    }
}