/* Tournesia Native Blog - Frontend Foundation */

:root {
  --tn-primary: #c62828;
  --tn-text: #20242b;
  --tn-muted: #667085;
  --tn-border: #e8ebef;
  --tn-background: #f8f9fb;
  --tn-white: #fff;
}

* {
  box-sizing: border-box;
}

.native-blog {
  color: var(--tn-text);
  background: var(--tn-background);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

.native-blog-container {
  margin: 0 auto;
}

.native-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 0 0 32px 0;
}

.native-blog-section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px;
}

.native-article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.native-article-card {
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}

.native-article-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.native-article-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.native-article-card-content {
  padding: 20px;
}

.native-article-card h2 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.native-article-card a {
  color: inherit;
  text-decoration: none;
}

.native-article-card a:hover {
  color: var(--tn-primary);
}

.native-article-meta {
  color: var(--tn-muted);
  font-size: 13px;
}

.native-blog-sidebar {
  min-width: 0;
}

.native-sidebar-widget {
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.native-article-single {
  background: var(--tn-white);
  padding: 0px;
  border-radius: 12px;
}

.native-article-single h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
}

.native-article-content {
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.native-article-content img {
  max-width: 100%;
  height: auto;
}

.native-comment-form input,
.native-comment-form textarea {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 8px 0 16px;
  border: 1px solid var(--tn-border);
  border-radius: 6px;
}

.native-comment-form button {
  background: var(--tn-primary);
  color: white;
  border: 0;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .native-blog-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .native-article-grid {
    grid-template-columns: 1fr;
  }

  .native-article-single {
    padding: 20px;
  }

  .native-blog-layout {
    padding: 20px 0;
  }
}


/* Shared Tournesia Native Navigation */
.tn-site-header {
  background: #fff;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid #e8ebef;
}
.tn-header-top {
  background: #f5f5f5;
  padding: 5px 0;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  letter-spacing: .4px;
}
.tn-header-main {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tn-header-logo img {
  display: block;
  max-width: 160px;
  height: auto;
}
.tn-primary-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}
.tn-primary-navigation a {
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.tn-primary-navigation a:hover,
.tn-primary-navigation .tn-nav-active {
  color: #c62828;
}
.tn-nav-dropdown {
  position: relative;
}
.tn-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 12px 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid #e8ebef;
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
}
.tn-dropdown-menu a {
  display: block;
  padding: 8px 18px;
}
.tn-nav-dropdown:hover .tn-dropdown-menu,
.tn-nav-dropdown:focus-within .tn-dropdown-menu {
  display: block;
}
.tn-mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.tn-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #222;
}
@media (max-width: 1000px) {
  .tn-mobile-toggle {
    display: block;
  }
  .tn-primary-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    border-top: 1px solid #eee;
    box-shadow: 0 12px 20px rgba(0,0,0,.08);
  }
  .tn-primary-navigation.tn-menu-open {
    display: flex;
  }
  .tn-dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    padding-left: 15px;
  }
}


/* Tournesia Native Footer */
.tn-site-footer {
  background: #1c222b;
  color: #e5e7eb;
  padding: 48px 0 20px;
  margin-top: 48px;
}
.tn-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.tn-site-footer h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 16px;
}
.tn-site-footer p {
  color: #cbd5e1;
}
.tn-site-footer a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 10px;
}
.tn-site-footer a:hover {
  color: #fff;
}
.tn-footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 32px;
  padding-top: 20px;
  font-size: 13px;
  color: #94a3b8;
}
@media (max-width: 700px) {
  .tn-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Native Article Featured Image */
.native-article-featured {
  margin: 24px 0 30px;
}
.native-article-featured img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* WordPress Caption Compatibility */
.tn-native-caption {
  margin: 24px auto;
  max-width: 100%;
  text-align: center;
}
.tn-native-caption img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.tn-native-caption figcaption {
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
  padding-top: 8px;
}


/* Tournesia Blog Native - Featured News */
.tn-featured-news{margin:0 auto 32px;padding:0}
.tn-featured-grid{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:180px 180px;gap:12px}
.tn-featured-item{position:relative;display:block;overflow:hidden;border-radius:8px;background:#263648;color:#fff}
.tn-featured-lead{grid-row:span 2}
.tn-featured-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.tn-featured-item:hover img{transform:scale(1.04)}
.tn-featured-shade{position:absolute;inset:0;background:linear-gradient(transparent 20%,rgba(0,0,0,.78))}
.tn-featured-caption{position:absolute;bottom:0;left:0;right:0;padding:16px;color:#fff}
.tn-featured-caption strong{display:block;font-size:15px;line-height:1.35;color:#fff}
.tn-featured-lead .tn-featured-caption strong{font-size:25px}
.tn-featured-category{display:block;font-size:11px;letter-spacing:.6px;text-transform:uppercase;margin-bottom:6px}
@media(max-width:767px){
.tn-featured-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto}
.tn-featured-lead{grid-column:span 2;grid-row:auto;height:250px}
.tn-featured-item:not(.tn-featured-lead){height:160px}
.tn-featured-caption{padding:10px}
.tn-featured-caption strong{font-size:12px;line-height:1.3}
.tn-featured-lead .tn-featured-caption strong{font-size:19px}
}


/* Tournesia Native Blog - Homepage Pagination */
.tn-home-pagination{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;margin:26px 0 38px}
.tn-home-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;border:1px solid #ddd;border-radius:6px;background:#fff;color:#333;text-decoration:none;font-weight:600}
.tn-home-pagination a:hover,.tn-home-pagination a[aria-current="page"]{background:#c92828;color:#fff;border-color:#c92828}

/* Jarak antarparagraf artikel */
.native-article-content p {
    margin-bottom: 20px;
}


/* TOURNESIA ARTICLE TYPOGRAPHY STANDARD V111 */
.native-article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #252525;
}

.native-article-content p {
    display: block;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 0 24px !important;
}

.native-article-content p span,
.native-article-content p strong,
.native-article-content p em,
.native-article-content p a {
    font-size: inherit !important;
    line-height: inherit;
}

.native-article-content h2,
.native-article-content h3 {
    margin: 32px 0 16px !important;
}

.native-article-content > p:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    .native-article-content {
        font-size: 15px;
    }
    .native-article-content p {
        margin-bottom: 20px !important;
    }
    .native-article-content h2,
    .native-article-content h3 {
        margin: 28px 0 14px !important;
    }
}

/* =========================
   TAG ARTIKEL CARD
========================= */
.native-article-tags-card{
    margin: 38px 0 28px;
    padding: 22px 22px 20px;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.native-article-tags-head{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.native-article-tags-head h2{
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    color: #14213d;
}

.native-article-tags-head h2 i{
    color: #e30613;
    margin-right: 8px;
}

.native-article-tags-head p{
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
}

.native-article-tags-list{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.native-article-tag-pill{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: all .2s ease;
}

.native-article-tag-pill:hover{
    background: #e30613;
    border-color: #e30613;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(227, 6, 19, 0.18);
}

.native-article-tag-hash{
    color: #e30613;
    font-weight: 700;
    transition: inherit;
}

.native-article-tag-pill:hover .native-article-tag-hash{
    color: #fff;
}

/* Mobile */
@media (max-width: 767px){
    .native-article-tags-card{
        margin: 30px 0 22px;
        padding: 18px 16px;
        border-radius: 14px;
    }

    .native-article-tags-head h2{
        font-size: 18px;
    }

    .native-article-tags-head p{
        font-size: 13px;
    }

    .native-article-tags-list{
        gap: 8px;
    }

    .native-article-tag-pill{
        padding: 9px 12px;
        font-size: 13px;
    }
}

.native-article-tags-card--share-style .native-article-tags-head{
    align-items: center;
}

.native-article-tags-icon{
    color: #e30613;
    font-size: 24px;
    flex: 0 0 auto;
}