/*
Theme Name: Kanopi Astra Child
Theme URI: https://kanopitangerang.com
Description: Child theme untuk blog Kanopi Tangerang
Author: Kanopi Tangerang
Author URI: https://kanopitangerang.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: kanopi-astra-child
*/

/* ============================================
   KANOPY CHILD THEME STYLES
   ============================================ */

/* --- Variables --- */
:root {
    --primary: #1a5f2a;
    --primary-light: #2d8a44;
    --wa-green: #25D366;
    --wa-dark: #128C7E;
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-light: #7a7a8a;
    --text-muted: #999;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --bg-footer: #141428;
    --border: #e8e8f0;
    --border-light: #f0f0f5;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; text-decoration: none !important; }
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--wa-green); color: #fff !important; border-color: var(--wa-green); }
.btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.btn-primary { background: var(--wa-green); color: #fff !important; border-color: var(--wa-green); }
.btn-primary:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.btn-outline { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* --- WhatsApp Float --- */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--wa-green); color: #fff; border-radius: 50px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: all 0.3s ease; animation: waPulse 2s infinite; text-decoration: none !important; }
.wa-float i { font-size: 1.5rem; }
.wa-float:hover { background: var(--wa-dark); transform: translateY(-3px); color: #fff; }
@keyframes waPulse { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); } }

/* --- Header --- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-sm); }
.header.scrolled { box-shadow: var(--shadow-md); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo-icon { width: 42px; height: 42px; background: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-primary { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--text-dark); }
.logo-secondary { font-size: 0.7rem; font-weight: 500; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 8px 16px; border-radius: 50px; font-size: 0.9rem; font-weight: 500; color: var(--text-body); transition: all 0.3s ease; text-decoration: none !important; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(26,95,42,0.06); }
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .nav-link i { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 100; }
.dropdown-menu li a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text-body); transition: all 0.3s ease; text-decoration: none !important; }
.dropdown-menu li a:hover { background: var(--bg-light); color: var(--primary); }
.dropdown-menu li a i { color: var(--primary); font-size: 0.9rem; width: 18px; }
.btn-header { padding: 10px 20px; font-size: 0.9rem; gap: 6px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 5px; z-index: 1001; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* --- Blog Main --- */
.blog-main { padding-top: 96px; padding-bottom: 80px; background: var(--bg-light); min-height: 60vh; }
.blog-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.blog-header { text-align: center; padding: 40px 32px; background: var(--bg-dark); border-radius: var(--radius-lg); margin-bottom: 40px; }
.blog-header h1 { font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 2.2rem); color: #fff; margin: 0; }
.blog-header h1 i { color: #f8b500; margin-right: 8px; }
.blog-header p { color: rgba(255,255,255,0.7); font-size: 1rem; margin: 8px 0 0; }

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.blog-posts { display: flex; flex-direction: column; gap: 32px; }

/* Blog Card */
.blog-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: all 0.3s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-image { height: 240px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.08); }
.blog-card-content { padding: 28px; }
.blog-card-content .post-category { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; background: rgba(26,95,42,0.08); color: var(--primary); border-radius: 50px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; margin-bottom: 12px; text-decoration: none !important; }
.blog-card-content .post-category:hover { background: var(--primary); color: #fff; }
.blog-card-content h2 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin: 0 0 12px; line-height: 1.3; }
.blog-card-content h2 a { color: var(--text-dark); text-decoration: none !important; }
.blog-card-content h2 a:hover { color: var(--primary); }
.blog-meta { display: flex; align-items: center; gap: 16px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; flex-wrap: wrap; }
.blog-meta span { display: flex; align-items: center; gap: 4px; }
.blog-excerpt { font-size: 0.92rem; color: var(--text-body); line-height: 1.7; margin-bottom: 18px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--primary); text-decoration: none !important; }
.read-more:hover { gap: 10px; }

/* Empty State */
.blog-empty { text-align: center; padding: 60px 40px; }
.blog-empty i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; display: block; }
.blog-empty h2 { color: var(--text-dark); margin-bottom: 8px; font-family: var(--font-heading); }
.blog-empty p { color: var(--text-light); margin-bottom: 20px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; transition: all 0.3s ease; }
.pagination a { background: #fff; color: var(--text-body); border: 1px solid var(--border); text-decoration: none !important; }
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; }

/* Sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.sidebar-widget h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border-light); }
.sidebar-widget h3 i { color: var(--primary); margin-right: 6px; }
.sidebar-widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar-widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-body); text-decoration: none !important; transition: all 0.3s ease; }
.sidebar-widget ul li a:hover { color: var(--primary); padding-left: 4px; }
.sidebar-widget ul li a i { color: var(--primary); font-size: 0.75rem; }
.sidebar-widget p { font-size: 0.88rem; color: var(--text-body); line-height: 1.6; margin: 0 0 16px; }
.sidebar-dark { background: var(--bg-dark); color: #fff; }
.sidebar-dark h3 { color: #fff; border-color: rgba(255,255,255,0.2); }
.sidebar-dark h3 i { color: var(--wa-green); }
.sidebar-dark p { color: rgba(255,255,255,0.8); }
.sidebar-dark ul li a { color: rgba(255,255,255,0.85); }
.sidebar-dark ul li a:hover { color: #fff; }

/* Single Post */
.single-post { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.post-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.single-post h1 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--text-dark); margin: 0 0 16px; line-height: 1.3; }
.post-meta { display: flex; align-items: center; gap: 20px; font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; }
.post-meta span { display: flex; align-items: center; gap: 6px; }
.featured-image { width: 100%; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 32px; }
.featured-image img { width: 100%; height: auto; object-fit: cover; }

/* Post Content */
.post-content { font-size: 1rem; line-height: 1.8; color: var(--text-body); }
.post-content h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin: 40px 0 16px; }
.post-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin: 28px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content ul { list-style: disc; margin-bottom: 16px; padding-left: 24px; }
.post-content ul li { margin-bottom: 8px; }
.post-content strong { color: var(--primary); }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content a:hover { color: var(--primary-light); }
.post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; border-radius: var(--radius-sm); overflow: hidden; }
.post-content th { background: var(--primary); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; }
.post-content td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.post-content tr:nth-child(even) { background: var(--bg-light); }

/* CTA Box */
.post-cta { background: var(--bg-dark); border-radius: var(--radius-lg); padding: 32px; margin-top: 40px; text-align: center; }
.post-cta h3 { font-family: var(--font-heading); color: #fff; font-size: 1.3rem; margin: 0 0 8px; }
.post-cta h3 i { color: var(--wa-green); margin-right: 8px; }
.post-cta p { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin: 0 0 20px; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-light); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); text-decoration: none !important; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.7rem; color: var(--text-muted); }

/* --- Footer --- */
.footer { background: var(--bg-footer); color: rgba(255,255,255,0.7); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr 2fr; gap: 48px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-logo { margin-bottom: 20px; }
.footer-logo .logo-icon { background: var(--primary-light); }
.footer-logo .logo-primary, .footer-logo .logo-secondary { color: #fff; }
.footer-about { font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.footer-sosmed { display: flex; gap: 12px; }
.footer-sosmed a { width: 40px; height: 40px; background: rgba(255,255,255,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.95rem; transition: all 0.3s ease; text-decoration: none !important; }
.footer-sosmed a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: 1.05rem; font-weight: 700; margin: 0 0 20px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: all 0.3s ease; text-decoration: none !important; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-links a i { font-size: 0.7rem; color: var(--primary); }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 0.9rem; line-height: 1.6; }
.footer-contact li i { color: var(--primary); font-size: 1rem; margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.7); text-decoration: none !important; }
.footer-contact a:hover { color: #fff; }
.footer-maps iframe { margin-bottom: 10px; border: 0; border-radius: 8px; }
.maps-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--primary-light); text-decoration: none !important; transition: all 0.3s ease; }
.maps-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; max-width: 1200px; margin: 0 auto; }
.footer-bottom p { font-size: 0.85rem; margin: 0; }
.footer-nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-size: 0.85rem; color: rgba(255,255,255,0.7); text-decoration: none !important; transition: all 0.3s ease; }
.footer-nav a:hover { color: #fff; }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 1024px) {
    .btn-header { display: none; }
    .hamburger { display: flex; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: #fff; flex-direction: column; align-items: flex-start; padding: 100px 24px 24px; gap: 0; transition: right 0.4s ease; box-shadow: var(--shadow-lg); z-index: 999; overflow-y: auto; list-style: none; margin: 0; }
    .nav-menu.active { right: 0; }
    .nav-item { width: 100%; }
    .nav-link { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--border-light); justify-content: space-between; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; display: none; min-width: auto; }
    .dropdown-menu.show { display: block; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-sidebar { order: -1; }
}

@media (max-width: 768px) {
    .navbar { height: 64px; padding: 0 16px; }
    .logo-primary { font-size: 1.1rem; }
    .logo-icon { width: 36px; height: 36px; font-size: 1rem; }
    .blog-main { padding-top: 80px; padding-bottom: 60px; }
    .blog-container { padding: 0 16px; }
    .blog-header { padding: 28px 20px; margin-bottom: 28px; }
    .blog-card-image { height: 200px; }
    .blog-card-content { padding: 20px; }
    .single-post { padding: 24px; }
    .wa-float { bottom: 16px; right: 16px; padding: 12px 16px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; padding: 0 16px; }
    .footer { padding: 60px 0 0; }
}

@media (max-width: 480px) {
    .nav-menu { width: 280px; padding: 90px 20px 20px; }
    .blog-container { padding: 0 12px; }
    .blog-header { padding: 24px 16px; }
    .single-post { padding: 20px 16px; }
    .post-cta { padding: 24px 16px; }
    .wa-float { bottom: 12px; right: 12px; padding: 10px 14px; }
    .wa-float-text { display: none; }
    .wa-float i { font-size: 1.3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 20px 16px; }
    .footer-nav { gap: 16px; }
}