/* Reset Dasar */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; line-height: 1.6; color: #333; background: #f9f9f9; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: #007bff; transition: 0.3s; }
a:hover { color: #0056b3; }

/* Header & Navigasi */
.main-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 15px 0; position: sticky; top: 0; z-index: 100; }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.logo { font-size: 1.5rem; font-weight: 800; color: #222; letter-spacing: -1px; }
.logo span { color: #007bff; }

.main-nav ul { display: flex; list-style: none; gap: 20px; }
.main-nav a { color: #555; font-weight: 500; }

.search-form { display: flex; background: #eee; border-radius: 20px; padding: 5px 15px; }
.search-form input { border: none; background: transparent; padding: 5px; outline: none; width: 150px; }
.search-form button { border: none; background: transparent; cursor: pointer; }

/* Konten Utama */
.content-area { padding: 40px 20px; min-height: 80vh; background: #fff; margin-top: 20px; margin-bottom: 20px; border-radius: 8px; }
.content-area p { margin: 0 0 20px 0; }
.content-area ul, .content-area ol { margin-bottom: 20px; padding-left: 25px; }
.content-area li { margin-bottom: 8px; padding-left: 5px; }

/* Legal */
.legal-content { line-height: 1.8; color: #444; }
.legal-content h1 { margin-bottom: 10px; color: #222; }
.legal-content h3 { margin-top: 30px; margin-bottom: 10px; color: #333; }
.legal-content hr { border: 0; border-top: 1px solid #eee; margin: 20px 0; }

/* Contact */
.contact-content { line-height: 1.8; color: #444; }
.contact-content h1 { margin-bottom: 10px; color: #222; }
.contact-content h3 { margin-top: 30px; margin-bottom: 10px; color: #333; }
.contact-content hr { border: 0; border-top: 1px solid #eee; margin: 20px 0; }
.contact-container { max-width: 600px; margin: 40px auto; padding: 20px; }
.hp-field { display: none !important; visibility: hidden; }

/* Footer */
.main-footer { background: #222; color: #ccc; padding: 50px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-info h3 { color: #fff; margin-bottom: 15px; }
.footer-links h4 { color: #fff; margin-bottom: 15px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #aaa; }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 0.9rem; }

/* Responsif HP */
@media (max-width: 768px) {
    .nav-wrapper { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .search-form { width: 100%; }
    .search-form input { width: 100%; }
}

/* Hero Styles */
.hero { 
    background: #ffffff; 
    padding: 60px 0; 
    text-align: center; 
    border-bottom: 1px solid #eee;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; color: #111; margin-bottom: 20px; letter-spacing: -1px; }
.hero p { font-size: 1.2rem; color: #666; max-width: 700px; margin: 0 auto 30px; }

.hero-search { 
    max-width: 650px; margin: 0 auto; display: flex; 
    border: 2px solid #007bff; border-radius: 50px; overflow: hidden; padding: 5px;
}
.hero-search input { flex: 1; border: none; padding: 12px 25px; outline: none; font-size: 1.1rem; }
.hero-search button { background: #007bff; color: #fff; border: none; padding: 0 30px; border-radius: 40px; font-weight: 600; cursor: pointer; }

.hero-tags { margin-top: 20px; font-size: 0.9rem; color: #888; line-height: 1.8; }
.hero-tags a { margin-left: 10px; color: #007bff; text-decoration: underline; display: inline-block; }

/* Grid Styles */
.section-home { padding: 60px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.bg-light { background: #fcfcfc; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tool-card { border: 1px solid #eee; padding: 25px; border-radius: 12px; transition: 0.3s; }
.tool-card:hover { border-color: #007bff; box-shadow: 0 10px 30px rgba(0,111,255,0.1); }
.btn-outline { display: inline-block; margin-top: 15px; padding: 8px 20px; border: 1px solid #007bff; border-radius: 5px; font-weight: 600; }

.blog-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.blog-card-mini h3 { margin: 10px 0; font-size: 1.3rem; }
.blog-card-mini a { color: #222; }

/* Page Header */
.page-header { text-align: center; margin-bottom: 40px; }
.page-header h1 { font-size: 2.5rem; color: #111; }

/* Category Pills */
.category-pills { 
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 50px; 
}
.pill { 
    background: #fff; border: 1px solid #ddd; padding: 10px 20px; border-radius: 30px; 
    color: #555; font-weight: 500; font-size: 0.9rem; transition: 0.3s;
}
.pill:hover { border-color: #007bff; color: #007bff; background: #f0f7ff; }

/* Category Sections */
.category-section { margin-bottom: 60px; scroll-margin-top: 100px; }
.cat-title { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.cat-title span { font-size: 1.8rem; }
.cat-title h2 { font-size: 1.5rem; color: #222; }

/* Tool Grid Mini */
.tool-grid-mini { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; 
}
.tool-item { 
    background: #fff; border: 1px solid #f0f0f0; padding: 20px; border-radius: 8px; transition: 0.2s;
}
.tool-item:hover { border-color: #007bff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.tool-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.tool-item h3 a { color: #007bff; }
.tool-item p { font-size: 0.85rem; color: #777; line-height: 1.4; }

/* Maintenance */
.maintenance-box { background: #fffaf0; border: 2px solid #feebc8; border-radius: 12px; padding: 30px 20px; text-align: center; max-width: 600px; margin: 40px auto; box-shadow: 0 4px 6px -1px rgba(221, 107, 32, 0.05); }
.maintenance-icon { font-size: 3rem; margin-bottom: 15px; display: inline-block; animation: pulse 2s infinite; }
.maintenance-box h2 { color: #dd6b20; font-size: 1.4rem; margin: 0 0 10px 0; font-weight: 700; }
.maintenance-box p { color: #718096; font-size: 0.95rem; line-height: 1.6; margin: 0 0 20px 0; }
.btn-back-home { display: inline-block; background: #dd6b20; color: #ffffff; text-decoration: none; padding: 10px 20px; border-radius: 6px; font-weight: 600; font-size: 0.9rem; transition: background 0.2s; }
.btn-back-home:hover { background: #c05621; }

/* Animasi denyut halus pada ikon agar menarik perhatian */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Social sharing */
.share-section { margin-top: 30px; padding: 15px 0; border-top: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.share-label { font-size: 0.9rem; font-weight: 600; color: #4a5568; }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; text-decoration: none; color: #fff; transition: transform 0.2s, filter 0.2s; cursor: pointer; border: none; }
.share-btn:hover { transform: translateY(-2px); filter: brightness(0.9); }
/* Warna Khas Masing-masing Platform */
.btn-whatsapp { background-color: #25D366; }
.btn-facebook { background-color: #1877F2; }
.btn-twitter { background-color: #1DA1F2; }
.btn-copy { background-color: #4a5568; color: #fff; }
.share-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* Related tools */
.related-tools-section { margin-top: 50px; padding-top: 30px; border-top: 2px dashed #e2e8f0; }
.related-tools-section h3 { font-size: 1.3rem; color: #2d3748; margin-bottom: 20px; font-weight: 700; }
/* Menggunakan CSS Grid agar responsif otomatis tanpa banyak media query */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
/* Mengubah link menjadi Card yang interaktif */
.related-card { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: #4a5568; font-weight: 600; font-size: 0.95rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); transition: all 0.25s ease-in-out; }
/* Efek Hover: Card sedikit terangkat, border berubah warna, dan ada bayangan */
.related-card:hover { color: #007bff; border-color: #007bff; background: #f8faff; transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0, 123, 255, 0.1), 0 4px 6px -2px rgba(0, 123, 255, 0.05); }
/* Gaya ikon panah agar posisinya manis di pojok kanan */
.related-card .arrow-icon { font-size: 0.85rem; color: #a0aec0; transition: transform 0.2s ease; }
.related-card:hover .arrow-icon { color: #007bff; transform: translate(2px, -2px); }

/* Tool Action */
.tool-container h1 { font-size: 2rem; color: #111; margin-bottom: 5px; }
.tool-container p { margin: 0 0 20px 0; }
.tool-box { margin-bottom: 25px; }
#input-text, #output-text { 
    width: 100%; padding: 15px; font-family: monospace; font-size: 1rem;
    border: 1px solid #ddd; border-radius: 8px; background: #fff; resize: vertical;
}
#output-text { background: #f9f9f9; }
.tool-actions { display: flex; gap: 10px; }
.btn-main { flex: 1; padding: 12px; background: #007bff; color: #fff; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; }
.btn-secondary { flex: 1; padding: 12px; background: #6c757d; color: #fff; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; }
.btn-outline-success { flex: 2; padding: 10px; border: 1px solid #28a745; color: #28a745; background: transparent; border-radius: 5px; cursor: pointer; }
.btn-outline-danger { flex: 1; padding: 10px; border: 1px solid #dc3545; color: #dc3545; background: transparent; border-radius: 5px; cursor: pointer; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: #444; }

/* General style form, button, alert, message */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9rem; }
.form-group input[type="text"], .form-group input[type="email"], .form-group textarea { 
	width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; box-sizing: border-box;
}

.btn-submit { background-color: #007bff; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; width: 100%; }
.btn-submit:hover { background-color: #0056b3; }

.alert { padding: 10px; margin-bottom: 15px; border-radius: 4px; font-size: 0.9rem; }
.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.empty-msg { color: #bbb; font-style: italic; font-size: 0.9rem; }

/* Ads Related */
.gsn-ads-wrapper { margin: 30px auto; padding: 0; width: 100%; max-width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; clear: both; }
.gsn-ads-wrapper::before { content: "ADVERTISEMENT"; display: block; font-size: 10px; color: #a0aec0; letter-spacing: 1px; margin-bottom: 6px; text-align: center; width: 100%; }
.ads-banner { min-height: 90px; background-color: #fafafa; border: 1px dashed #e2e8f0; border-radius: 8px; width: 100%; display: flex; justify-content: center; align-items: center; }

/* Responsivitas Layar Lebar (Tablet & PC Desktop) */
@media (min-width: 768px) {
    .ads-banner {
        min-height: 120px; 
    }
}