/*
Theme Name: Komunitas Investasi
Theme URI: https://komunitasinvestasi.com
Author: William Foeng
Author URI: https://komunitasinvestasi.com
Description: Theme resmi untuk Komunitas Investasi Saham - Ilmu Sukses Pasti Gratis. Desain minimalis dan elegan.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: komunitasinvestasi
Tags: one-column, custom-menu, featured-images, translation-ready
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #ffffff;
    color: #000000;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   LAYOUT
   ============================================ */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 1rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    width: 100%;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d6d3d1; /* stone-300 */
}

.site-header .site-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #000000;
    text-transform: uppercase;
    word-break: break-word;
    padding: 0 0.5rem;
    margin: 0;
}

.site-header .site-title a {
    color: #000000;
    text-decoration: none;
}

.site-header .site-title a:hover {
    text-decoration: none;
}

.site-header .site-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #000000;
    margin-top: 0.25rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
    text-align: center;
    padding: 0.75rem 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.main-navigation a {
    font-size: 0.875rem;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #44403c; /* stone-700 */
    text-decoration: none;
}

.main-navigation .current-menu-item a {
    border-bottom: 2px solid #000000;
    padding-bottom: 2px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-main {
    width: 100%;
    max-width: 36rem; /* max-w-xl */
    margin: auto;
    text-align: center;
    padding: 1.5rem 0.5rem;
}

.site-main .content-block {
    margin-bottom: 1.25rem;
}

.site-main .content-block p {
    margin: 0.25rem 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding-top: 0.5rem;
}

.contact-section .contact-title {
    margin-bottom: 0.75rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.contact-link svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.contact-link .wa-icon {
    color: #059669; /* emerald-600 */
}

.contact-link .tg-icon {
    color: #0ea5e9; /* sky-500 */
}

.contact-link a {
    color: #000000;
    font-weight: 600;
    word-break: break-all;
}

.contact-link a:hover {
    text-decoration: underline;
}

/* ============================================
   QUOTES
   ============================================ */
.quote-section {
    padding-top: 1rem;
}

.quote-section .quote-text {
    margin: 0.5rem 0;
}

.quote-section .quote-author {
    padding-top: 1rem;
}

.quote-section .quote-author p {
    margin: 0.25rem 0;
}

/* ============================================
   SIGNATURE
   ============================================ */
.signature-section {
    padding-top: 1rem;
}

.signature-section .signature-name {
    padding-top: 0.5rem;
}

.signature-section .signature-name p {
    margin: 0.25rem 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    width: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid #d6d3d1; /* stone-300 */
    text-align: center;
    font-size: 0.75rem;
    color: #44403c; /* stone-700 */
}

.site-footer p {
    margin: 0.25rem 0;
}

/* ============================================
   WORDPRESS BLOG STYLES
   ============================================ */
.blog-posts {
    max-width: 48rem;
    margin: 2rem auto;
    padding: 0 1rem;
}

.post-entry {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e7e5e4; /* stone-200 */
}

.post-entry:last-child {
    border-bottom: none;
}

.post-entry .entry-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.post-entry .entry-title a {
    color: #000000;
}

.post-entry .entry-title a:hover {
    text-decoration: underline;
}

.post-entry .entry-meta {
    font-size: 0.75rem;
    color: #78716c; /* stone-500 */
    margin-bottom: 1rem;
}

.post-entry .entry-content,
.post-entry .entry-excerpt {
    line-height: 1.8;
    color: #1c1917; /* stone-900 */
}

.post-entry .entry-content p {
    margin-bottom: 1rem;
}

.read-more-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #000000;
    border-bottom: 1px solid #000000;
    padding-bottom: 2px;
}

.read-more-link:hover {
    text-decoration: none;
    color: #44403c;
    border-color: #44403c;
}

/* Single Post */
.single-post .post-content {
    max-width: 48rem;
    margin: 2rem auto;
    padding: 0 1rem;
}

.single-post .post-content .entry-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.single-post .post-content .entry-meta {
    text-align: center;
    font-size: 0.8rem;
    color: #78716c;
    margin-bottom: 2rem;
}

.single-post .post-content .entry-content {
    line-height: 1.8;
}

.single-post .post-content .entry-content p {
    margin-bottom: 1.25rem;
}

.single-post .post-content .entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.single-post .post-content .entry-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.single-post .post-content .entry-content img {
    margin: 1.5rem auto;
    border-radius: 0.25rem;
}

.single-post .post-content .entry-content blockquote {
    border-left: 3px solid #d6d3d1;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #44403c;
}

/* Post Navigation */
.post-navigation {
    max-width: 48rem;
    margin: 2rem auto;
    padding: 1.5rem 1rem;
    border-top: 1px solid #e7e5e4;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.post-navigation a {
    font-weight: 600;
}

/* Comments */
.comments-area {
    max-width: 48rem;
    margin: 2rem auto;
    padding: 0 1rem;
}

.comments-area .comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 2rem 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    font-size: 0.875rem;
    border: 1px solid #d6d3d1;
}

.pagination .current {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Page */
.page-content {
    max-width: 48rem;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-content .page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Sidebar / Widget Area */
.widget-area {
    max-width: 48rem;
    margin: 2rem auto;
    padding: 0 1rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget .widget-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #d6d3d1;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.35rem 0;
    font-size: 0.875rem;
}

.widget ul li a {
    color: #000000;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form .search-field {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d6d3d1;
    font-family: inherit;
    font-size: 0.875rem;
}

.search-form .search-submit {
    padding: 0.5rem 1rem;
    background-color: #000000;
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.search-form .search-submit:hover {
    background-color: #1c1917;
}

/* 404 Page */
.error-404 {
    max-width: 36rem;
    margin: 4rem auto;
    text-align: center;
    padding: 0 1rem;
}

.error-404 h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-404 p {
    margin-bottom: 1rem;
    color: #44403c;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
    .site-wrapper {
        padding: 2rem 3rem;
    }

    .site-header .site-title {
        font-size: 1.875rem;
    }

    .site-header .site-tagline {
        font-size: 1rem;
    }

    body {
        font-size: 1.25rem;
    }

    .site-main {
        padding: 2rem 0.5rem;
    }

    .site-footer {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .site-header .site-title {
        font-size: 2.25rem;
    }
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 1.5rem auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.75rem;
    color: #78716c;
    text-align: center;
    padding-top: 0.5rem;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
