/* ========================================
   RESPONSIVE LAYOUT CONTROL
   ======================================== */

/* Default: Hide desktop layout on mobile */
.desktop-layout {
    display: none;
}

/* Default: Show mobile layout on mobile */
.mobile-layout {
    display: block;
}

/* Desktop view (>768px) */
@media (min-width: 768px) {
    .desktop-layout {
        display: block;
    }

    .mobile-layout {
        display: none;
    }
}

/* ========================================
   DESKTOP LAYOUT STYLES (TABS)
   ======================================== */

/* Tentang Section */
.tentang-section {
    background-color: #9b59b6;
    /* Fallback */
    background: linear-gradient(135deg, #a65ce6 0%, #9042d6 100%);
    min-height: 80vh;
}

/* Tab Navigation */
.nav-pills {
    border-bottom: none;
    z-index: 10;
    position: relative;
    top: 5px;
    width: 90%;
    padding-bottom: 10px;
}

.nav-pills .nav-link {
    background-color: rgba(255, 255, 255, 0.3);
    /* Translucent inactive */
    color: white;
    border-radius: 15px;
    /* Rounded all corners */
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
}

.nav-pills .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.nav-pills .nav-link.active {
    background-color: white;
    color: #8e44ad;
    /* Purple Text */
    font-weight: bold;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

/* Tab Content */
.content-container {
    min-height: 400px;
    position: relative;
    z-index: 5;
    border-radius: 20px;
}

/* Typography */
h3,
h4 {
    color: #333;
}

p,
li {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* ========================================
   MOBILE LAYOUT STYLES (ACCORDION)
   ======================================== */

.tentang-mobile-section {
    padding: 1rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #a65ce6 0%, #9042d6 100%);
}

.mobile-header {
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.mobile-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.mobile-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-accordion {
    border-radius: 1rem;
    overflow: hidden;
}

.mobile-accordion .accordion-item {
    border: none;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.15);
}

.mobile-accordion .accordion-button {
    background: linear-gradient(135deg, #8B5CF6 0%, #6B46C1 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    border: none;
    box-shadow: none;
}

.mobile-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
    color: white;
    box-shadow: none;
}

.mobile-accordion .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.mobile-accordion .accordion-button::after {
    filter: brightness(0) invert(1);
}

.mobile-accordion .accordion-body {
    padding: 1.25rem;
    background-color: #FFFFFF;
}

.mobile-accordion .accordion-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6B46C1;
    margin-bottom: 1rem;
}

.mobile-accordion .accordion-body .content-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #4B5563;
    text-align: justify;
}

.mobile-accordion .accordion-body ul,
.mobile-accordion .accordion-body ol {
    padding-left: 1.25rem;
    margin-top: 0.75rem;
}

.mobile-accordion .accordion-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.mobile-accordion .accordion-body p {
    margin-bottom: 0.75rem;
}

/* Icon styling */
.section-icon {
    display: inline-block;
    margin-right: 0.5rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-accordion .accordion-item {
    animation: fadeIn 0.3s ease-in-out;
}

.mobile-accordion .accordion-item:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-accordion .accordion-item:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-accordion .accordion-item:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-accordion .accordion-item:nth-child(4) {
    animation-delay: 0.4s;
}

.mobile-accordion .accordion-item:nth-child(5) {
    animation-delay: 0.5s;
}