/* =========================================================
   KEHAKTOMPOR Profile — Responsive overrides
   ========================================================= */

/* Tablets */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .section { padding: 64px 0; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.7rem; }

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

    .post-sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Roadmap becomes single column on tablet */
    .roadmap::before {
        left: 16px;
    }
    .roadmap-item,
    .roadmap-item:nth-child(odd),
    .roadmap-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        text-align: left;
        padding: 16px 16px 16px 44px;
    }
    .roadmap-item:nth-child(odd) .dot,
    .roadmap-item:nth-child(even) .dot {
        left: 8px;
        right: auto;
    }
    .roadmap-item:nth-child(even) ul li::before {
        margin-left: 0;
        margin-right: 8px;
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .hero { padding: 80px 0 64px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .menu-toggle { display: inline-block; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .main-nav.is-open {
        max-height: 600px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 12px 20px 20px;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border);
    }

    .main-nav li:last-child { border-bottom: 0; }

    .main-nav a {
        display: block;
        padding: 14px 0;
    }

    .main-nav .current-menu-item > a::after {
        display: none;
    }

    .header-inner {
        flex-wrap: wrap;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .cta-block {
        padding: 40px 22px;
    }

    .cta-block h2 { font-size: 1.5rem; }

    .post-main {
        padding: 24px;
    }

    .entry-title { font-size: 1.6rem; }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    /* Top Highlights — confirm scroll behavior on mobile */
    .kk-top-cards {
        gap: 14px;
        padding: 6px 4px 14px;
    }

    .kk-card {
        width: 240px;
        min-height: 130px;
    }

    .kk-top-highlights .strip-head h2 {
        font-size: 1.35rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }

    .btn {
        padding: 12px 22px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .stat-card .stat-num { font-size: 1.8rem; }

    .kk-card {
        width: 84vw;
        max-width: 320px;
    }

    .post-main { padding: 18px; }
}

/* Print */
@media print {
    .site-header,
    .site-footer,
    .kk-top-highlights,
    .hero-actions,
    .pagination { display: none !important; }

    body { background: #fff; color: #000; }
    .container { max-width: 100%; padding: 0; }
}
