/*
Theme Name: JCS Blog Theme
Theme URI: https://jogjacommunityschool.org/
Author: JCS Web Team
Description: Custom seamless WordPress theme for Jogjakarta Community School Articles & News with Multilingual support.
Version: 1.0.0
Text Domain: jcs-blog
*/

/* ==========================================================================
   Blog Custom Styling & Modern Layout
   ========================================================================== */

:root {
    --jcs-primary: #002c77;
    --jcs-primary-dark: #001f54;
    --jcs-primary-light: #0d47a1;
    --jcs-secondary: #e6683c;
    --jcs-accent: #f09433;
    --jcs-text: #333333;
    --jcs-text-muted: #6c757d;
    --jcs-bg-light: #f8fafc;
    --jcs-card-border: rgba(0, 44, 119, 0.08);
    --jcs-radius: 12px;
    --jcs-shadow: 0 10px 25px -5px rgba(0, 44, 119, 0.08), 0 8px 10px -6px rgba(0, 44, 119, 0.04);
    --jcs-shadow-hover: 0 20px 30px -10px rgba(0, 44, 119, 0.16), 0 10px 12px -6px rgba(0, 44, 119, 0.08);
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--jcs-bg-light);
    color: var(--jcs-text);
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
}

#footer {
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

/* --- Hero Banner Section --- */
.blog-hero {
    background: linear-gradient(135deg, var(--jcs-primary-dark) 0%, var(--jcs-primary) 60%, #1565c0 100%);
    padding: 48px 0 45px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.blog-hero::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.blog-hero h1 {
    font-size: 2.3rem;
    font-weight: 700;
    font-family: "Raleway", sans-serif;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.blog-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 650px;
    margin: 0 auto;
}

.blog-breadcrumbs {
    margin-top: 14px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}

.blog-breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumbs a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* --- Language Switcher in Topbar --- */
.topbar-lang-switcher {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 1px 8px;
    margin-right: 14px;
}

.topbar-lang-link {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    padding: 1px 3px !important;
    transition: all 0.2s ease !important;
}

.topbar-lang-link.active-lang {
    color: #ffd50c !important; /* Gold accent */
}

.topbar-lang-link:hover {
    color: #ffffff !important;
}

.lang-divider {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Blog Post Cards --- */
.jcs-blog-grid {
    padding-top: 45px;
    padding-bottom: 70px;
}

.blog-card {
    background: #ffffff;
    border-radius: var(--jcs-radius);
    border: 1px solid var(--jcs-card-border);
    box-shadow: var(--jcs-shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--jcs-shadow-hover);
}

.blog-thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
}

.blog-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-thumb-wrap img {
    transform: scale(1.05);
}

.blog-badge-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--jcs-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.blog-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta-top {
    font-size: 0.8rem;
    color: var(--jcs-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-meta-top i {
    color: var(--jcs-secondary);
    margin-right: 3px;
}

.blog-card-title {
    font-family: "Raleway", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: var(--jcs-primary-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--jcs-secondary);
}

.blog-excerpt {
    font-size: 0.92rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.blog-card-footer {
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--jcs-text);
}

.blog-author-info img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.blog-read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--jcs-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.blog-read-more:hover {
    color: var(--jcs-secondary);
    gap: 8px;
}

/* --- Pagination --- */
.jcs-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.jcs-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    margin: 0 4px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--jcs-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jcs-pagination .page-numbers.current,
.jcs-pagination .page-numbers:hover {
    background: var(--jcs-primary);
    border-color: var(--jcs-primary);
    color: #ffffff;
}

/* --- Single Post Detail --- */
.single-post-section {
    padding: 40px 0 80px;
}

.article-main-card {
    background: #ffffff;
    border-radius: var(--jcs-radius);
    border: 1px solid var(--jcs-card-border);
    box-shadow: var(--jcs-shadow);
    padding: 40px;
}

@media (max-width: 768px) {
    .article-main-card {
        padding: 22px;
    }
}

.article-header {
    margin-bottom: 28px;
}

.article-cat-badge {
    display: inline-block;
    background: var(--jcs-primary);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.article-title {
    font-family: "Raleway", sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--jcs-primary-dark);
    line-height: 1.3;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.65rem;
    }
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 0.88rem;
    color: var(--jcs-text-muted);
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.article-meta-bar i {
    color: var(--jcs-secondary);
    margin-right: 4px;
}

.article-featured-img {
    margin: 28px 0 35px;
    border-radius: 10px;
    overflow: hidden;
}

.article-featured-img img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

/* Article Content Typography */
.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2c3e50;
}

.article-body p {
    margin-bottom: 22px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    color: var(--jcs-primary-dark);
    margin-top: 35px;
    margin-bottom: 16px;
}

.article-body h2 {
    font-size: 1.65rem;
    border-left: 4px solid var(--jcs-primary);
    padding-left: 12px;
}

.article-body h3 {
    font-size: 1.35rem;
}

.article-body blockquote {
    border-left: 4px solid var(--jcs-secondary);
    background: #fff8f5;
    padding: 18px 24px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
    font-style: italic;
    color: #4a5568;
}

.article-body ul,
.article-body ol {
    margin-bottom: 22px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* --- Social Share Bar --- */
.article-share-box {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.share-title {
    font-weight: 700;
    color: var(--jcs-primary-dark);
    font-size: 0.95rem;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-wa { background-color: #25D366; }
.share-fb { background-color: #1877F2; }
.share-tw { background-color: #1DA1F2; }
.share-li { background-color: #0A66C2; }
.share-copy { background-color: #4a5568; cursor: pointer; }

/* --- Author Bio Box --- */
.author-bio-box {
    margin-top: 35px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--jcs-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-bio-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-info h5 {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--jcs-primary-dark);
}

.author-bio-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--jcs-text-muted);
}

/* --- Sidebar Widgets --- */
.blog-sidebar-widget {
    background: #ffffff;
    border-radius: var(--jcs-radius);
    border: 1px solid var(--jcs-card-border);
    box-shadow: var(--jcs-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-family: "Raleway", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--jcs-primary-dark);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--jcs-primary);
}

.recent-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-thumb {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
}

.recent-post-title a {
    color: var(--jcs-primary-dark);
    text-decoration: none;
}

.recent-post-title a:hover {
    color: var(--jcs-secondary);
}

.recent-post-date {
    font-size: 0.76rem;
    color: var(--jcs-text-muted);
}

/* Enrol CTA Box in Sidebar */
.enrol-cta-box {
    background: linear-gradient(135deg, var(--jcs-primary) 0%, var(--jcs-primary-dark) 100%);
    color: #ffffff;
    border-radius: var(--jcs-radius);
    padding: 30px 24px;
    text-align: center;
}

.enrol-cta-box h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.enrol-cta-box p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.btn-enrol-cta {
    background: var(--jcs-secondary);
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(230, 104, 60, 0.4);
    transition: all 0.2s ease;
}

.btn-enrol-cta:hover {
    background: #d85427;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 104, 60, 0.5);
}
