/*
Theme Name: Tema Pagar Ayu & Absen QR
Theme URI: https://viqyfazrian.web.id
Author: Viqy Fazrian
Author URI: https://viqyfazrian.web.id
Description: Tema WordPress modern, super ringan, dan responsif khusus untuk sistem absensi QR Code dan Panitia Pagar Ayu.
Version: 1.4.0
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* MENGIKAT LEBAR AGAR TIDAK BISA DIGESER KE SAMPING DI MOBILE */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* HEADER & NAVIGATION */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    width: 100%;
    max-width: 100%;
}

.header-top-bar {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* BRANDING LOGO & NAMA KAMPUS */
.site-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.campus-logo {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
    display: block !important;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.campus-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.site-subtext {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

/* NAV MENU HEADER */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #2563eb;
}

/* BAR NAVIGASI KHUSUS PAGAR AYU / PETUGAS */
.pagar-ayu-bar {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 10px 15px;
    border-top: 1px solid #334155;
    width: 100%;
    box-sizing: border-box;
}

.pagar-ayu-bar-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    box-sizing: border-box;
}

.pagar-ayu-label {
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagar-ayu-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.pagar-ayu-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pagar-ayu-btn:hover, .pagar-ayu-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    transform: translateY(-1px);
}

/* HOVER EFFECTS UNTUK HOVER CARD & BUTTONS */
.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
}

/* MAIN CONTENT CONTAINER */
.site-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 25px 20px;
    box-sizing: border-box;
}

/* FOOTER */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 20px 20px 20px;
    margin-top: auto;
    border-top: 1px solid #1e293b;
    width: 100%;
    box-sizing: border-box;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.footer-col h4 {
    color: #f8fafc;
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    display: block;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #38bdf8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 15px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

/* MENCEGAH WORDPRESS ADMIN BAR MERUSAK LEBAR MOBILE */
#wpadminbar {
    max-width: 100vw !important;
}

/* OPTIMASI RESPONSIVE MOBILE */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        position: relative;
    }
    .site-main {
        padding: 15px 12px;
    }
    .campus-logo {
        height: 38px !important;
        max-height: 38px !important;
    }
    .campus-name {
        font-size: 14px;
    }
    .site-subtext {
        font-size: 11px;
    }
    .hero-section {
        padding: 25px 18px !important;
        border-radius: 16px !important;
    }
    .hero-section h1 {
        font-size: 24px !important;
    }
    .header-top-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        width: 100%;
    }
    .main-nav {
        width: 100%;
        overflow-x: auto;
    }
    .pagar-ayu-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .pagar-ayu-nav {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }
}