/*
 * Apabedanya News - Main Stylesheet
 * Inspired by tirto.id editorial design
 */

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ==========================================================================
   Header - Black Bar
   ========================================================================== */

.site-header {
    background: #000072;
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
}

.site-logo .logo-link {
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.site-logo-img {
    height: 55px;
    width: auto;
    display: block;
}

/* Search */
.search-form {
    position: relative;
    flex: 1;
    max-width: 380px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 42px;
    background: #D3D3D3;
    border: 1px solid #BBB;
    border-radius: 6px;
    color: #000072;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input::placeholder {
    color: #666666;
}

.search-input:focus {
    border-color: #000072;
}

/* Primary Navigation */
.primary-nav {
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-menu a {
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.nav-menu a:hover {
    opacity: 0.8;
}



/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 1px;
}

/* ==========================================================================
   Topic Navigation
   ========================================================================== */

.topic-nav {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E5E5;
}

.topic-nav-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-menu {
    display: flex;
    list-style: none;
    gap: 36px;
    flex-wrap: wrap;
    justify-content: center;
}

.topic-menu a {
    color: #000072;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.topic-menu a:hover {
    color: #000072;
}

/* ==========================================================================
   Homepage Grid
   ========================================================================== */

.homepage-grid {
    max-width: 1260px;
    margin: 32px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0;
}

.grid-col {
    padding: 0 24px;
}

.news-col {
    border-left: 1px solid #E0E0E0;
}

/* ==========================================================================
   Article Cards
   ========================================================================== */

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

.card-image {
    margin-bottom: 14px;
    line-height: 0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.card-image:hover img {
    transform: scale(1.02);
}

.featured-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-thumb-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Card Meta */
.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 15px;
}

.article-category {
    color: #000072;
    font-weight: 600;
}

.article-category:hover {
    color: #000072;
}

.meta-separator {
    color: #CCCCCC;
    font-weight: 300;
}

.meta-time {
    color: #666666;
}

/* Card Title */
.card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #000000;
}

.card-title a:hover {
    color: #000072;
}

.featured-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.18;
}

/* Card Excerpt */
.card-excerpt {
    margin-top: 10px;
    font-size: 20px;
    line-height: 1.4;
    color: #222222;
}

.card-excerpt p {
    margin: 0;
}

/* Card Divider */
.card-divider {
    border-top: 1px solid #E0E0E0;
    padding-top: 24px;
}

/* ==========================================================================
   Single Post
   ========================================================================== */

main.single-post {
    max-width: 1260px;
    margin: 36px auto;
    padding: 0 20px;
    display: flex;
    gap: 56px;
}

.single-container {
    flex: 1;
    min-width: 0;
}

.single-sidebar {
    flex: 0 0 300px;
}

.single-article {
    background: #FFFFFF;
}

.single-header {
    margin-bottom: 24px;
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
}

.single-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.22;
    color: #000000;
}

.single-author {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.2;
    color: #666666;
}

.single-author .author-name {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #000072;
    line-height: 1.2;
    margin: 0;
}

.single-featured-image {
    margin-bottom: 32px;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-content {
    font-size: 20px;
    line-height: 1.8;
    color: #1A1A1A;
    max-width: 700px;
}

.single-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 40px 0 16px;
    line-height: 1.25;
    color: #000000;
}

.single-content h2 strong {
    font-weight: 800;
}

.single-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 12px;
    line-height: 1.3;
    color: #000000;
}

.single-content h3 strong {
    font-weight: 700;
}

.single-content p {
    margin-bottom: 22px;
}

.single-content p strong {
    font-weight: 700;
}

.single-content img {
    margin: 28px 0;
    width: 100%;
    height: auto;
}

.single-content ul,
.single-content ol {
    margin: 18px 0 22px 24px;
}

.single-content li {
    margin-bottom: 8px;
}

.single-content a {
    color: #000072;
    text-decoration: underline;
}

.single-content a:hover {
    color: #F47C7C;
}

.single-content blockquote {
    border-left: 4px solid #000072;
    margin: 24px 0;
    padding: 8px 20px;
    font-style: italic;
    color: #444;
}

/* Post Navigation */
.post-navigation {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #E0E0E0;
    display: flex;
    justify-content: space-between;
}

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

.post-navigation a:hover {
    color: #000072;
}

/* ==========================================================================
   Single Sidebar
   ========================================================================== */

.single-sidebar {
    border-left: 1px solid #E0E0E0;
    padding-left: 24px;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #000072;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #000072;
}

.sidebar-card {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F0F0F0;
}

.sidebar-card:last-child {
    border-bottom: none;
}

.sidebar-thumb {
    flex-shrink: 0;
    width: 80px;
}

.sidebar-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.sidebar-info h4 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.sidebar-info h4 a:hover {
    color: #000072;
}

.sidebar-info .meta-time {
    font-size: 12px;
}

/* ==========================================================================
   Index / Archive Grid
   ========================================================================== */

.site-main {
    max-width: 1260px;
    margin: 32px auto;
    padding: 0 20px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #DDD;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: #000072;
    color: #FFF;
    border-color: #000072;
}

.pagination .page-numbers:hover:not(.current),
.nav-links .page-numbers:hover:not(.current) {
    background: #F0F0F0;
    border-color: #BBB;
}

.pagination .prev,
.pagination .next,
.nav-links .prev,
.nav-links .next {
    padding: 0 16px;
}

.pagination .dots,
.nav-links .dots {
    border: none;
    min-width: auto;
    padding: 0 4px;
}




/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E0E0E0;
}

.apbd-comments-list-wrap {
    margin-bottom: 44px;
}

.comments-title {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #ECECEC;
}

.comment-list .comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.apbd-comment-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.apbd-comment-main {
    flex: 1;
    min-width: 0;
}

.apbd-comment-header {
    margin-bottom: 14px;
}

.apbd-comment-author,
.apbd-comment-author a {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: #111111;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
}

.apbd-comment-author a:hover {
    color: #A34141;
}

.apbd-comment-date {
    display: block;
    margin-top: 18px;
    font-size: 14px;
    color: #808080;
}

.apbd-comment-content {
    font-size: 16px;
    line-height: 1.7;
    color: #2F2F2F;
}

.apbd-comment-content p {
    margin: 0 0 10px;
}

.apbd-comment-actions {
    flex-shrink: 0;
    padding-top: 4px;
}

.comment-reply-link {
    font-size: 13px;
    color: #5F5F5F;
    font-weight: 500;
    text-decoration: none;
}

.comment-reply-link:hover {
    color: #A34141;
}

/* Comment Form */
.comment-respond {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: 0;
}

.comment-reply-title {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.comment-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
}

.comment-form > p {
    margin: 0 0 14px;
}

.comment-form-comment,
.form-submit,
.comment-form-cookies-consent,
.logged-in-as,
.comment-notes {
    width: 100%;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    width: calc(33.333% - 12px);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #E6E6E6;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 0;
    transition: border-color 0.2s, background-color 0.2s;
    background: #F8F8F8;
    color: #222222;
}

.comment-form textarea::placeholder,
.comment-form input::placeholder {
    color: #8B8B8B;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #A34141;
    outline: none;
    background: #FFFFFF;
}

.comment-form textarea {
    min-height: 210px;
    resize: vertical;
}

.comment-form .submit {
    background: #A34141;
    color: #FFFFFF;
    border: none;
    padding: 12px 28px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .submit:hover {
    background: #863535;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #3C3C3C;
    margin: 4px 0 18px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.comment-notes,
.logged-in-as {
    font-size: 13px;
    color: #777777;
    margin-bottom: 18px;
}

.comment-reply-title small {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
}

.comment-reply-title small a {
    color: #A34141;
    text-decoration: none;
}

.comment-reply-title small a:hover {
    text-decoration: underline;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Author Page
   ========================================================================== */

.author-page {
    max-width: 1260px;
    margin: 48px auto;
    padding: 0 20px;
}

.author-profile {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    margin-bottom: 56px;
    padding: 36px;
    background: #F8F9FA;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}
.author-avatar-wrap {
    flex-shrink: 0;
}

.author-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.author-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #000072;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
}

.author-info {
    flex: 1;
    min-width: 0;
    padding-top: 8px;
}

.author-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 14px;
    line-height: 1.2;
}

.author-bio {
    font-size: 15px;
    line-height: 1.7;
    color: #444444;
    max-width: 600px;
    margin-bottom: 20px;
}

.author-social {
    display: flex;
    gap: 16px;
}

.author-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #555555;
    font-size: 13px;
    transition: color 0.2s;
}

.author-social-link svg {
    flex-shrink: 0;
}

.author-social-link:hover {
    color: #000072;
}

/* Author articles */
.author-articles {
    margin-top: 0;
}

.author-articles-title {
    font-size: 20px;
    font-weight: 700;
    color: #000072;
    margin-bottom: 28px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000072;
}

/* Single article author name link */
.single-author .author-name {
    font-family: inherit;
    font-size: 12px;
    color: #000072;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
}

.single-author .author-name:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .author-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .author-name {
        font-size: 26px;
    }

    .author-bio {
        max-width: 100%;
    }

    .author-social {
        justify-content: center;
    }

    .author-avatar,
    .author-avatar-placeholder {
        width: 120px;
        height: 120px;
    }
}

/* ==========================================================================
   Category Sections (Homepage)
   ========================================================================== */

.category-section {
    background: linear-gradient(135deg, #000072 0%, #0a0a5e 50%, #14145a 100%);
    padding: 48px 0;
    margin-top: 0;
}

.category-section-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.category-section-title {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-section-more {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.category-section-more:hover {
    color: #FFFFFF;
}

.category-section-grid {
    display: flex;
    gap: 28px;
}

.category-section-featured {
    flex: 0 0 360px;
}

.category-section-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-section-img-wrap {
    margin-bottom: 14px;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

.category-section-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-section-card:hover .category-section-img {
    transform: scale(1.03);
}

.category-section-card-body {
    padding: 0 2px;
}

.category-section-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.category-section-card:hover .category-section-card-title {
    text-decoration: underline;
}

.category-section-card-time {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* Category Section List (right column) */
.category-section-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.category-section-list-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.category-section-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-section-list-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
}

.category-section-list-body {
    flex: 1;
    min-width: 0;
}

.category-section-list-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.category-section-list-item:hover .category-section-list-title {
    text-decoration: underline;
}

.category-section-list-time {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 1024px) {
    .category-section-grid {
        flex-direction: column;
    }

    .category-section-featured {
        flex: 1 1 auto;
    }

    .category-section-img {
        height: 200px;
    }

    .category-section-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .category-section-list-item {
        flex: 0 0 calc(50% - 14px);
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .category-section {
        padding: 36px 0;
    }

    .category-section-title {
        font-size: 20px;
    }

    .category-section-list {
        flex-direction: column;
    }

    .category-section-list-item {
        flex: 1 1 auto;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .category-section-list-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #000072;
    color: #FFFFFF;
    margin-top: 64px;
    padding: 48px 0 32px;
    clear: both;
    width: 100%;
}

.footer-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo di atas */
.footer-logo-top {
    text-align: left;
    margin-bottom: 24px;
}

.footer-logo-img {
    display: inline-block;
    height: 30px;
    width: auto;
}

/* Deskripsi di bawah logo */
.footer-desc {
    text-align: left;
    margin-bottom: 56px;
}

.footer-desc p {
    color: #BBBBBB;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 4px;
}

/* Kolom Kategori + Sosmed */
.footer-colums {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(220px, 280px);
    gap: 48px clamp(40px, 6vw, 96px);
    justify-content: start;
    align-items: start;
    padding-top: 48px;
    border-top: 1px solid #222222;
}

.footer-cats {
    min-width: 0;
}

.footer-sosmed {
    min-width: 0;
}

.footer-heading {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-cat-list a {
    color: #BBBBBB;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-cat-list a:hover {
    color: #FFFFFF;
}

.footer-sosmed-icons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.sosmed-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #FFFFFF;
    transition: all 0.2s;
}

.sosmed-icon:hover {
    background: rgba(255,255,255,0.2);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Copyright */
.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #222222;
    text-align: left;
}

.footer-bottom p {
    color: #777777;
    font-size: 12px;
}

/* ==========================================================================
   Mobile Menu (hidden on desktop)
   ========================================================================== */

.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000072;
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav .nav-menu {
    flex-direction: column;
    gap: 0;
}

.mobile-nav .nav-menu a {
    display: block;
    padding: 16px 0;
    font-size: 20px;
    border-bottom: 1px solid #222;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .homepage-grid {
        grid-template-columns: 1fr;
    }

    .news-col {
        border-left: none;
        border-top: 1px solid #E0E0E0;
        padding-top: 24px;
    }

    .featured-title {
        font-size: 28px;
    }

    main.single-post {
        flex-direction: column;
    }

    .single-sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #E0E0E0;
        padding-top: 24px;
        flex: 1 1 auto;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .primary-nav {
        display: none;
    }

    .search-form {
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .apbd-comment-card {
        flex-direction: column;
        gap: 12px;
    }

    .apbd-comment-date {
        margin-top: 12px;
    }

    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        width: 100%;
    }

    .comment-form textarea {
        min-height: 180px;
    }

    .header-inner {
        gap: 12px;
    }

    .site-logo .logo-link {
        font-size: 22px;
    }

    .search-form {
        max-width: 180px;
    }

    .search-input {
        font-size: 12px;
        height: 38px;
    }

    .menu-toggle {
        display: flex;
    }

    .login-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .topic-menu {
        gap: 20px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .topic-menu a {
        font-size: 12px;
        white-space: nowrap;
    }

    .featured-title {
        font-size: 24px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-excerpt {
        font-size: 16px;
    }

    .single-title {
        font-size: 28px;
    }

    .single-content {
        font-size: 16px;
    }

    .footer-colums {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-sosmed {
        min-width: 0;
    }

    .footer-cat-list {
        justify-content: center;
    }

    .footer-logo-top {
        margin-bottom: 20px;
    }

    .footer-desc {
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .comments-area {
        margin-top: 36px;
        padding-top: 24px;
    }

    .comments-title,
    .comment-reply-title {
        font-size: 16px;
    }

    .apbd-comment-author,
    .apbd-comment-author a {
        font-size: 16px;
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        padding: 14px 16px;
    }

    .homepage-grid,
    .site-main,
    main.single-post {
        margin-top: 20px;
        padding: 0 12px;
    }

    .header-inner {
        padding: 0 12px;
    }

    .search-form {
        display: none;
    }

    .grid-col,
    .news-col {
        padding: 0;
    }

    .featured-title {
        font-size: 22px;
    }

    .footer-inner {
        padding: 0 16px;
    }

    .footer-colums {
        gap: 28px;
    }

    .footer-cat-list {
        gap: 6px 14px;
    }
}
