/* mobile.css - LiputanJatim Modern Mobile UI */

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
    line-height: 1.65;
    background: #f6f8fc;
  }

  .lj-container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ======================
     HEADER MOBILE
  ====================== */

  .lj-clean-header {
    position: sticky;
    top: 0;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .08);
  }

  .lj-clean-main .lj-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: auto;
  }

  .lj-clean-main .lj-logo img,
  .lj-logo-img {
    max-height: 42px !important;
    width: auto;
  }

  .lj-clean-primary {
    grid-column: 1 / -1;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 0 4px;
    scrollbar-width: none;
  }

  .lj-clean-primary::-webkit-scrollbar {
    display: none;
  }

  .lj-clean-primary a {
    font-size: 14px;
    font-weight: 600;
    color: #071d33;
  }

  .lj-clean-main .lj-search {
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .lj-clean-main .lj-search input[type="search"] {
    height: 38px;
    font-size: 13px;
    border-radius: 999px;
    padding: 0 14px;
  }

  .lj-account-menu {
    gap: 6px;
  }

  .lj-account-btn,
  .lj-account-logout,
  .lj-account-register {
    padding: 8px 11px;
    font-size: 12px;
    border-radius: 999px;
  }

  .lj-account-logout {
    display: none;
  }

  /* ======================
     FLOATING ADS OFF
  ====================== */

  .lj-floating-ad {
    display: none !important;
  }

  /* ======================
     HOMEPAGE MOBILE
  ====================== */

  .lj-kompas-page,
  .lj-home {
    padding-top: 16px;
    padding-bottom: 42px;
  }

  .lj-kompas-top,
  .lj-home-featured,
  .lj-home-top,
  .lj-home-content-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .lj-kompas-hero,
  .lj-kompas-hero img,
  .lj-hero-card,
  .lj-hero-card img {
    height: 330px !important;
    min-height: 330px !important;
    border-radius: 22px;
  }

  .lj-kompas-hero-text,
  .lj-hero-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .lj-kompas-hero-text h1,
  .lj-hero-content h1 {
    font-size: 27px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
  }

  .lj-kompas-hero-text p,
  .lj-hero-content p {
    display: none;
  }

  .lj-meta {
    font-size: 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .lj-kompas-mini-grid,
  .lj-news-grid,
  .lj-video-home-grid,
  .lj-editor-picks-row {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .lj-news-card,
  .lj-video-home-card,
  .lj-pick-card,
  .lj-kompas-popular,
  .lj-home-widget {
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  }

  .lj-news-card img,
  .lj-pick-card img {
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
  }

  .lj-news-card-body,
  .lj-pick-body {
    padding: 16px;
  }

  .lj-news-card h3,
  .lj-pick-body h3,
  .lj-video-home-body h3 {
    font-size: 18px !important;
    line-height: 1.42 !important;
    font-weight: 600 !important;
  }

  .lj-latest-modern-list {
    border-radius: 22px;
    overflow: hidden;
  }

.lj-latest-modern-item a{
    display:flex !important;
    flex-direction:column !important;
}

.lj-latest-modern-thumb{
    width:100% !important;
    height:220px !important;
}

.lj-latest-modern-thumb img{
    width:100% !important;
    height:100% !important;
    object-fit:cover;
}

  .lj-latest-modern-content p {
    display: none;
  }

  /* ======================
     SINGLE ARTICLE MOBILE
  ====================== */

  .lj-layout {
    display: block !important;
    max-width: 100% !important;
    margin: 18px auto 44px !important;
    padding: 0 14px !important;
  }

  .lj-single {
    padding: 20px !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06) !important;
  }

  .lj-single h1 {
    font-size: 30px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
  }

  .lj-featured-figure,
  .lj-single .featured {
    margin: 18px 0 !important;
  }

  .lj-single .featured,
  .lj-single img.featured {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 18px !important;
  }

  .lj-image-caption {
    font-size: 12.5px;
    line-height: 1.6;
  }

  .lj-ai-summary {
    border-left: 4px solid #e30613 !important;
    border-radius: 18px !important;
    padding: 16px !important;
    margin: 20px 0 !important;
    font-size: 14px !important;
  }

  .lj-entry {
    font-size: 17px !important;
    line-height: 1.85 !important;
    color: #1f2937;
  }

  .lj-entry p {
    margin-bottom: 22px !important;
  }

  .lj-entry h2 {
    font-size: 24px !important;
    line-height: 1.28 !important;
  }

  .lj-entry h3 {
    font-size: 21px !important;
    line-height: 1.3 !important;
  }

  .lj-sidebar {
    margin-top: 24px !important;
    display: grid !important;
    gap: 18px !important;
  }

  .lj-widget,
  .lj-panel {
    border-radius: 22px !important;
    padding: 18px !important;
  }

  /* ======================
     ARTICLE ACTION BAR
  ====================== */

  .lj-article-actionbar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin: 18px 0 22px;
    scrollbar-width: none;
  }

  .lj-article-actionbar::-webkit-scrollbar {
    display: none;
  }

  .lj-action-btn,
  .lj-action-google {
    flex: 0 0 auto;
    height: 40px;
    border-radius: 999px;
    font-size: 12.5px;
    padding: 0 13px;
  }

  .lj-share-box {
    width: calc(100% - 28px);
    border-radius: 20px;
    padding: 22px;
  }

  .lj-share-options {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ======================
     AUTHOR / DASHBOARD MOBILE
  ====================== */

  .lj-user-dashboard,
  .lj-author-layout,
  .lj-author-page {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    max-width: 100% !important;
    margin: 18px auto 40px !important;
    padding: 0 14px !important;
  }

  .lj-user-sidebar,
  .lj-author-sidebar {
    position: static !important;
    border-radius: 24px !important;
    padding: 22px !important;
  }

  .lj-user-nav,
  .lj-author-sidebar nav {
    display: flex !important;
    overflow-x: auto;
    gap: 10px;
    scrollbar-width: none;
  }

  .lj-user-nav::-webkit-scrollbar,
  .lj-author-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .lj-user-nav a,
  .lj-author-sidebar nav a {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 10px 13px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.08);
  }

  .lj-user-main,
  .lj-author-main,
  .lj-author-content {
    min-width: 0;
  }

  .lj-user-panel,
  .lj-author-card {
    border-radius: 24px !important;
    padding: 20px !important;
  }

  .lj-user-cards {
    grid-template-columns: 1fr !important;
  }

  .lj-author-table-head {
    display: none !important;
  }

  .lj-author-table-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 16px !important;
  }

  .lj-author-actions {
    flex-direction: row !important;
  }

  .lj-saved-item {
    grid-template-columns: 86px 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .lj-saved-thumb img,
  .lj-saved-thumb {
    width: 86px !important;
    height: 66px !important;
    border-radius: 12px !important;
  }

  .lj-saved-content b {
    font-size: 14.5px;
    line-height: 1.35;
  }

  /* ======================
     FOOTER MOBILE
  ====================== */

  .lj-footer {
    margin-top: 40px !important;
    padding: 38px 0 22px !important;
    border-radius: 28px 28px 0 0 !important;
  }

  .lj-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    text-align: center !important;
  }

  .lj-footer-logo {
    display: flex !important;
    justify-content: center !important;
  }

  .lj-footer-logo img {
    width: 220px !important;
    max-width: 80% !important;
  }

  .lj-footer p {
    max-width: 330px !important;
    margin: 0 auto !important;
    font-size: 14px !important;
  }

  .lj-footer a {
    display: inline-flex !important;
    margin: 5px 6px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.08) !important;
    font-size: 13px !important;
  }

  .lj-footer-newsletter {
    max-width: 330px !important;
    margin: 16px auto 0 !important;
    display: grid !important;
    gap: 10px !important;
  }

  .lj-footer-newsletter input,
  .lj-footer-newsletter button {
    width: 100% !important;
    height: 46px !important;
  }
}
/* ==================================
   MOBILE NEWS CARD
================================== */

@media (max-width:768px){

    .lj-news-card,
    .lj-latest-modern-item,
    .lj-home-news-item{
        display:block !important;
        width:100% !important;
        overflow:hidden;
        border-radius:22px;
        background:#fff;
    }

    .lj-news-card img,
    .lj-latest-modern-thumb img,
    .lj-home-news-item img{
        width:100% !important;
        height:220px !important;
        object-fit:cover;
        display:block;
        border-radius:22px 22px 0 0;
    }

    .lj-news-card-body,
    .lj-latest-modern-content,
    .lj-home-news-content{
        width:100% !important;
        padding:16px !important;
    }

    .lj-news-card h3,
    .lj-latest-modern-content h3,
    .lj-home-news-content h3{
        font-size:24px;
        line-height:1.3;
        font-weight:700;
        margin:10px 0;
    }

    .lj-news-card small,
    .lj-latest-modern-content small{
        display:block;
        margin-top:8px;
    }

}

/* FIX BERANDA MOBILE - LIPUTANJATIM */

@media (max-width: 768px) {

  .lj-kompas-page {
    width: 100% !important;
    overflow-x: hidden !important;
    padding: 16px 0 40px !important;
  }

  .lj-kompas-container,
  .lj-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .lj-kompas-top {
    display: block !important;
    width: 100% !important;
  }

  .lj-kompas-main {
    width: 100% !important;
    min-width: 0 !important;
  }

  .lj-kompas-hero {
    width: 100% !important;
    height: 330px !important;
    border-radius: 22px !important;
    margin-bottom: 18px !important;
  }

  .lj-kompas-hero img {
    width: 100% !important;
    height: 330px !important;
    object-fit: cover !important;
  }

  .lj-kompas-hero-text {
    left: 18px !important;
    right: 18px !important;
    bottom: 18px !important;
  }

  .lj-kompas-hero-text h1 {
    font-size: 28px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
  }

  .lj-kompas-mini-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .lj-kompas-mini-card {
    display: grid !important;
    grid-template-columns: 120px 1fr !important;
    gap: 14px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 22px !important;
    padding: 12px !important;
    box-shadow: 0 10px 28px rgba(15,23,42,.06) !important;
  }

  .lj-kompas-mini-card img {
    width: 120px !important;
    height: 92px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
  }

  .lj-kompas-mini-card h3 {
    font-size: 19px !important;
    line-height: 1.32 !important;
    font-weight: 700 !important;
    margin: 4px 0 8px !important;
  }

  .lj-kompas-popular {
    margin-top: 20px !important;
  }

  .lj-floating-ad {
    display: none !important;
  }
}

/* FINAL FIX BERANDA MOBILE */

@media (max-width: 768px) {

  .lj-kompas-page,
  .lj-home-modern {
    overflow-x: hidden !important;
    padding-top: 14px !important;
  }

  .lj-kompas-container,
  .lj-home-container,
  .lj-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .lj-kompas-top {
    display: block !important;
  }

  .lj-kompas-main {
    width: 100% !important;
    max-width: 100% !important;
  }

  .lj-kompas-hero {
    width: 100% !important;
    height: 320px !important;
    border-radius: 22px !important;
    margin-bottom: 18px !important;
  }

  .lj-kompas-hero img {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
  }

  .lj-kompas-hero-text {
    left: 18px !important;
    right: 18px !important;
    bottom: 18px !important;
  }

  .lj-kompas-hero-text h1 {
    font-size: 27px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
  }

  .lj-kompas-hero-text p {
    display: none !important;
  }

  .lj-kompas-mini-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 14px !important;
  }

  .lj-kompas-mini-card {
    display: grid !important;
    grid-template-columns: 118px 1fr !important;
    gap: 14px !important;
    align-items: start !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 20px !important;
    padding: 12px !important;
    box-shadow: 0 8px 24px rgba(15,23,42,.06) !important;
  }

  .lj-kompas-mini-card img {
    width: 118px !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
  }

  .lj-kompas-mini-card h3 {
    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    margin: 4px 0 8px !important;
  }

  .lj-kompas-mini-card small {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #64748b !important;
  }

  .lj-kompas-popular {
    display: none !important;
  }

  .lj-floating-ad {
    display: none !important;
  }
}