/* Panduan Penggunaan (FAQ) Page Styles */
.footer-bottom-center, .site-footer {
    display: none;
}
/* Page container */
.papikost-faq-page {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 2rem 0;
}

.papikost-faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header section */
.papikost-faq-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.papikost-faq-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    pointer-events: none;
}

.papikost-faq-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: white;
    position: relative;
    z-index: 2;
}

.papikost-faq-subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* Main layout */
.faq-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Sidebar */
.faq-sidebar {
    flex: 0 0 280px;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.faq-sidebar h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #4299e1;
    position: relative;
}

.faq-sidebar h3::after {
    display: none; /* Remove the gradient line */
}

.faq-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-categories li {
    margin-bottom: 0.5rem;
}

.faq-category-link {
    display: block;
    color: #4a5568;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
    position: relative;
    margin-bottom: 0.25rem;
}

.faq-category-link:hover {
    background-color: #f7fafc;
    color: #2d3748;
    border-left-color: #4299e1;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

.faq-category-link.active {
    background-color: #4299e1;
    color: white;
    font-weight: 600;
    border-left-color: #3182ce;
    text-decoration: none;
    transform: none;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.2);
}

/* Main content */
.faq-main-content {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section titles */
.faq-section {
    margin-bottom: 3rem;
}

.faq-section-title {
    color: #2d3748;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 2.5rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    border-left: 6px solid #667eea;
    border: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.faq-section-title:before {
    content: "";
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.faq-section-title[data-icon="general"]:before { content: "ℹ️"; }
.faq-section-title[data-icon="tenant"]:before { content: "🏠"; }
.faq-section-title[data-icon="owner"]:before { content: "👤"; }
.faq-section-title[data-icon="booking"]:before { content: "💳"; }
.faq-section-title[data-icon="features"]:before { content: "⚙️"; }

/* FAQ Items */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
    transform: none;
}

.faq-item-head {
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e2e8f0;
}

.faq-item-head:hover {
    background: #edf2f7;
}

.faq-item-text {
    font-weight: 600;
    color: #333;
    flex: 1;
    margin-right: 1rem;
    font-size: 1rem;
    line-height: 1.4;
}

.faq-item-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4299e1;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    box-shadow: 0 1px 4px rgba(66, 153, 225, 0.2);
}

.faq-item-icon:hover {
    transform: none;
    background: #3182ce;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.faq-item-body {
    padding: 0 1.5rem;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.faq-item-body.show-para {
    padding: 1.5rem;
    max-height: 1000px;
    border-bottom-color: #e2e8f0;
}

.faq-item-body p {
    margin: 0 0 1rem 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 400;
}

.faq-item-body p:last-child {
    margin-bottom: 0;
}

.faq-item-body ul,
.faq-item-body ol {
    color: #4a5568;
    line-height: 1.6;
    padding-left: 1.5rem;
    margin: 0 0 1rem 0;
}

.faq-item-body li {
    margin-bottom: 0.5rem;
    position: relative;
}

.faq-item-body li::marker {
    color: #4299e1;
}

.faq-item-body strong {
    color: #2d3748;
    font-weight: 600;
}

/* Support section */
.faq-support-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.faq-support-card {
    background: #f7fafc;
    color: #2d3748;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
}

.faq-support-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #2d3748;
}

.faq-support-content p {
    margin: 0 0 1.5rem 0;
    opacity: 0.8;
    line-height: 1.5;
    font-size: 0.95rem;
    color: #4a5568;
}

.faq-support-buttons {
    display: flex;
    gap: 0rem;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-support-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    border: 1px solid transparent;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn {
    background: #25d366;
    border-color: #25d366;
}

.whatsapp-btn:hover {
    background: #22c55e;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.email-btn {
    display: none; /* Hide email button */
}

/* Responsive design */
@media (max-width: 768px) {
    .papikost-faq-page {
        padding: 1rem 0;
    }
    
    .faq-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .faq-sidebar {
        position: static;
        flex: none;
        order: 0;
        padding: 1rem 0;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border: 1px solid #e2e8f0;
        width: 100%;
        overflow: hidden;
    }
    
    .faq-sidebar h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        text-align: center;
        color: #2d3748;
        font-weight: 600;
        padding: 0 1rem;
    }
    
    .faq-categories {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        gap: 8px;
        margin-bottom: 18px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 1rem;
        margin: 0;
        list-style: none;
    }
    
    .faq-categories::-webkit-scrollbar {
        display: none;
        height: 0;
    }
    
    .faq-categories li {
        margin: 0;
        display: inline-block;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .faq-category-link {
        padding: 6px 12px;
        border: 1px solid #E5E7EB;
        background: white;
        color: #6B7280;
        border-radius: 16px;
        font-size: 13px;
        font-weight: 400;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        display: inline-block;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .faq-category-link:hover {
        border-color: #1b75bb;
        color: #1b75bb;
        background: rgba(27, 117, 187, 0.08);
        box-shadow: 0 2px 6px rgba(27, 117, 187, 0.15);
        text-decoration: none;
    }
    
    .faq-category-link.active {
        font-weight: 500;
        box-shadow: 0 2px 6px rgba(27, 117, 187, 0.15);
        text-decoration: none;
    }
    
    .faq-section-title {
        font-size: 1.2rem;
        padding: 1rem 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-section-title:before {
        width: 32px;
        height: 32px;
        margin-right: 0.5rem;
        font-size: 1rem;
    }
    
    .faq-item-head {
        padding: 1rem 1.25rem;
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 0.75rem;
    }
    
    .faq-item-text {
        margin-right: 1rem;
        font-size: 0.9rem;
        line-height: 1.4;
        flex: 1;
    }
    
    .faq-item-icon {
        align-self: center;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .faq-item-body.show-para {
        padding: 1.25rem;
    }
    
    .faq-support-card {
        padding: 1.5rem 1.25rem;
        border-radius: 10px;
    }
    
    .faq-support-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0rem;
    }
    
    .support-btn {
        width: 100%;
        justify-content: center;
        max-width: 200px;
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .papikost-faq-container {
        padding: 0 0.75rem;
    }
    
    .papikost-faq-header {
        padding: 1rem 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .papikost-faq-title {
        font-size: 1.3rem;
    }
    
    .papikost-faq-subtitle {
        font-size: 0.8rem;
    }
    
    .faq-categories {
        gap: 0.5rem;
        padding: 0.25rem 0;
    }
    
    .faq-category-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
        min-width: 70px;
        border-radius: 20px;
    }
    
    .faq-section-title {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .faq-section-title:before {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .faq-item {
        margin-bottom: 0.5rem;
    }
    
    .faq-item-head {
        padding: 0.75rem;
    }
    
    .faq-item-text {
        font-size: 0.8rem;
    }
    
    .faq-item-icon {
        width: 18px;
        height: 18px;
    }
    
    .faq-item-body.show-para {
        padding: 0.75rem;
    }
    
    .faq-item-body p,
    .faq-item-body ul,
    .faq-item-body ol {
        font-size: 0.75rem;
    }
    
    .papikost-faq-title {
        font-size: 1.75rem;
    }
    
    .faq-main-content {
        padding: 1rem;
    }
    
    .faq-sidebar {
        padding: 1rem;
    }
    
    .faq-section-title {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
    
    .faq-item-head {
        padding: 0.875rem 1rem;
    }
    
    .faq-item-text {
        font-size: 0.875rem;
    }
    
    .faq-item-body.show-para {
        padding: 1rem;
    }
    
    .faq-item-body p,
    .faq-item-body ul,
    .faq-item-body ol {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .papikost-faq-container {
        padding: 0 0.5rem;
    }
    
    .papikost-faq-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .papikost-faq-title {
        font-size: 1.8rem;
    }
    
    .faq-main-content {
        padding: 1rem;
    }
    
    .faq-sidebar {
        padding: 1rem;
    }
    
    .faq-section-title {
        font-size: 1.2rem;
        padding: 0.75rem 1rem;
    }
    
    .faq-item-head {
        padding: 0.75rem;
    }
    
    .faq-item-text {
        font-size: 0.9rem;
    }
    
    .faq-item-body.show-para {
        padding: 0.75rem;
    }
    
    .faq-item-body p,
    .faq-item-body ul,
    .faq-item-body ol {
        font-size: 0.9rem;
    }
}

/* Accessibility improvements */
.faq-item-head:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.2);
}

.faq-category-link:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.2);
}

/* Subtle animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeIn 0.4s ease-out forwards;
}

.faq-item:nth-child(n+2) {
    animation-delay: 0.05s;
}

.faq-item:nth-child(n+3) {
    animation-delay: 0.1s;
}

/* Loading state */
.faq-item-body.show-para::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #4299e1;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Ensure no underlines anywhere */
a, .faq-category-link, .support-btn {
    text-decoration: none !important;
}

a:hover, .faq-category-link:hover, .support-btn:hover {
    text-decoration: none !important;
}

/* Print styles */
@media print {
    .faq-sidebar {
        display: none;
    }
    
    .faq-layout {
        flex-direction: column;
    }
    
    .faq-item-body {
        max-height: none !important;
        padding: 1rem 1.5rem !important;
        display: block !important;
    }
    
    .faq-item-icon {
        display: none;
    }
    
    .faq-support-section {
        display: none;
    }
    
    .papikost-faq-header {
        background: #f8fafc !important;
        color: #2d3748 !important;
    }
    
    .faq-section-title {
        background: #f8fafc !important;
        border-left: 3px solid #4299e1 !important;
    }
}

/* Mobile Responsive - Mobile only styles */
@media (max-width: 480px) {
    .faq-categories {
        grid-template-columns: 1fr;
    }
}