/* 
* Custom Styles for Batu Outbound Website
* Author: Syahnan
* Framework: Bootstrap 5 (Base)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
    --primary: #2e7d32; /* Green for nature/outbound */
    --secondary: #fbc02d; /* Yellow for sun/energy */
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --wa-green: #25d366;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar-brand img {
    height: 40px;
}

/* Floating Elements */
.floating-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    background: var(--wa-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
    text-decoration: none;
}

.floating-wa:hover {
    transform: scale(1.1);
    color: white;
}

.floating-up {
    position: fixed;
    bottom: 100px;
    right: 25px;
    z-index: 1000;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    text-decoration: none;
}

.floating-up.active {
    display: flex;
}

/* Article Styles */
.article-content {
    font-size: 1.1rem;
    color: #333;
}

.article-content h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.article-content h2 { font-size: 1.8rem; margin-top: 2rem; margin-bottom: 1rem; border-left: 5px solid var(--primary); padding-left: 15px; }
.article-content h3 { font-size: 1.4rem; margin-top: 1.5rem; }

.toc-container {
    background: #f1f3f5;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.toc-title {
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
}

.toc-list {
    margin-top: 10px;
    list-style: none;
    padding-left: 0;
}

.toc-list li { margin: 5px 0; }
.toc-list a { text-decoration: none; color: var(--primary); font-weight: 500; }

blockquote {
    border-left: 8px solid var(--primary);
    background: #e8f5e9;
    padding: 25px;
    font-style: italic;
    font-size: 1.2rem;
    margin: 30px 0;
    border-radius: 0 15px 15px 0;
}

.promo-gif {
    width: 100%;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .navbar-collapse {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    .article-content { font-size: 1rem; }
    .floating-wa { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 25px; }
    .floating-up { width: 40px; height: 40px; bottom: 85px; right: 25px; }
}

/* Social Share */
.share-buttons .btn {
    border-radius: 50px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Related Articles Card */
.related-card {
    transition: 0.3s;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background-color: #e8f5e9;
    color: var(--primary);
}

/* General Layout spacing */
section {
    padding: 80px 0;
}
