/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

/*@import url("../generatepress/style.css");*/

/* =====================
   CSS RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.home .entry-title,
.front-page .entry-title {
  display: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
}

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

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

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.tress-front-page {
  width: 100%;
}

/* Spacing antar section homepage */
.tress-front-page .gb-container {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Hero section lebih besar paddingnya */
.tress-front-page .gb-container:first-child {
  padding-top: 80px;
  padding-bottom: 80px;
}

.tress-front-page .entry-content,
.tress-front-page > div {
  max-width: 100%;
  padding: 0;
}

/* Blog/Index page */
.tress-blog-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.tress-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* Static page */
.tress-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.tress-page-inner {
  max-width: 720px;
  margin: 0 auto;
}

.tress-page-inner h1 {
  font-size: 42px;
  margin-bottom: 32px;
}

.tress-page-content {
  font-size: 17px;
  line-height: 1.8;
}

.wp-block-image img {
  border-radius: 20px;
}

.newsletter-section {
  background-color: #e8d9c8;
  position: relative;
  padding: 80px 40px;
  text-align: center;
  margin-bottom: 120px; /* dorong section berikutnya ke bawah */
}

/* Wave atas */
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -119px; /* 1px overlap biar tidak ada garis putih */
  left: 0;
  width: 100%;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,60 C240,120 480,0 720,60 C960,120 1200,0 1440,60 L1440,120 L0,120 Z' fill='%23e8d9c8'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
}

/* Wave bawah */
.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -119px;
  left: 0;
  width: 100%;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,60 C240,0 480,120 720,60 C960,0 1200,120 1440,60 L1440,0 L0,0 Z' fill='%23e8d9c8'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
}

.carousel-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  margin-bottom: 32px;
  text-align: center;
}

.carousel-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 4px;
  text-align: center;
}

.carousel-viewall {
  font-size: 13px;
  text-decoration: underline;
  color: #333;
  white-space: nowrap;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scroll-behavior: smooth;
  width: 100%;
}

.carousel-section-e .carousel-card {
  width: calc(25% - 15px);
  flex-shrink: 0;
  text-align: center;
}

.carousel-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 25px;
  margin-bottom: 12px;
  
}

.carousel-cat {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  display: block;  
  text-align: center;
}

.carousel-btn {
  background: white;
  border: 1px solid #555;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  line-height: 1;
}

.carousel-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.carousel-viewall {
  position: absolute;
  right: 0;
  bottom: 0;
}

.carousel-2col .carousel-col-g-card { min-width: calc(50% - 10px); }
.carousel-3col .carousel-col-g-card { min-width: calc(33.333% - 14px); }
.carousel-4col .carousel-col-g-card { min-width: calc(25% - 15px); }

/* Gambar carousel rounded */
.carousel-col-g-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  display: block;
}

/* Title dan kategori center */
.carousel-col-g-card h5 {
  text-align: center;
  line-height: 1.4;
  margin: 0 0 8px;
  text-decoration: none;
}

.carousel-col-g-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
}

/* Single Post Layout */
.tress-single-post {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.tress-post-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 0;
}

.tress-post-image img {
  width: 80%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}

.tress-post-title {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 32px;
}

.tress-post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tress-post-author img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.tress-author-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}

.tress-author-name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tress-post-date {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}

.tress-post-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  line-height: 1.8;
}

.tress-author-box-name {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tress-author-box-bio {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 0;
  font-style: italic;
}

/* Related Posts */
.tress-related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.tress-related-title {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
  color: #888;
}

.tress-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tress-related-card {
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.tress-related-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.tress-related-card h5 {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.tress-related-cat {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}

.tress-comments-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  border-top: 1px solid #eee;
}

.tress-comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.tress-comments-count,
.tress-comments-sort {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
}

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

.tress-comment-item {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}

.tress-comment-author {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.tress-comment-text p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin: 0;
}

/* Form */
.tress-comments-area .comment-respond {
  margin-top: 0;
}

.tress-comments-area textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 16px;
  font-size: 15px;
  min-height: 120px;
  resize: vertical;
  display: block;
  margin-bottom: 12px;
  font-family: inherit;
}

.tress-submit-btn {
  background: transparent;
  color: #333;
  border: 1px solid #333;
  padding: 12px 28px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 24px;
  float: right;
}

.tress-submit-btn:hover {
  background: #1a1a1a;
  color: white;
}

/* Hide avatar & unnecessary elements */
.tress-comments-area .comment-author img,
.tress-comments-area .logged-in-as,
.tress-comments-area .comment-notes,
.tress-comments-area .comment-form-cookies-consent {
  display: none;
}

/* Footer Newsletter */
.tress-footer-newsletter {
  background-color: #e8ddd0;
  padding: 80px 40px;
  text-align: center;
}

.tress-footer-newsletter-inner {
  max-width: 800px;
  margin: 0 auto;
}

.tress-footer-newsletter h2 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}

.tress-footer-newsletter p {
  font-size: 16px;
  color: #555;
  margin-bottom: 32px;
  line-height: 1.6;
}

.tress-footer-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
}

.tress-footer-form input[type="email"] {
  flex: 1;
  padding: 14px 24px;
  border: 1px solid #333;
  border-right: none;
  border-radius: 40px 0 0 40px;
  font-size: 15px;
  background: transparent;
  outline: none;
}

.tress-footer-form button {
  padding: 14px 28px;
  background: #1a1a1a;
  color: white;
  border: 1px solid #1a1a1a;
  border-radius: 0 40px 40px 0;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
}

.tress-footer-form button:hover {
  background: #333;
}

.tress-footer {
  width: 100%;
  overflow: hidden;
}


/* Footer Bottom */
.tress-footer-bottom {
  background-color: #e8ddd0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-top: 1px solid #d4c9ba;
  max-width: 100%;
  box-sizing: border-box;
}

.tress-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
}


.tress-footer-links {
  display: flex;
  gap: 32px;
}

.tress-footer-links a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #333;
  text-decoration: none;
}

.tress-footer-links a:hover {
  text-decoration: underline;
}

.tress-footer-social {
  display: flex;
  gap: 20px;
}

.tress-footer-social a {
  font-size: 18px;
  color: #333;
  text-decoration: none;
}

/* Copyright */
.tress-footer-copyright {
  background-color: #e8ddd0;
  padding: 8px 0 24px;
  font-size: 11px;
  color: #888;
  width: 100%;
}

.tress-footer-copyright-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: right;
  box-sizing: border-box;
}

/* Mobile */
@media (max-width: 768px) {
  .tress-footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .tress-footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .tress-footer-newsletter h2 {
    font-size: 26px;
  }
}

/* Header */
/* Top bar */
.tress-topbar {
  background-color: #ede8e0;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
}

.tress-topbar a {
  color: #333;
  text-decoration: none;
}

/* Header */
.tress-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 999;
  border-bottom: 1px solid #f0f0f0;
}

.tress-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.tress-logo a {
  font-family: Georgia, serif;
  font-size: 28px;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Nav kiri */
.tress-nav-left {
  justify-self: start;
}

/* Nav kanan */
.tress-nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Menu items */
.tress-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  align-items: center;
}

.tress-menu li {
  position: relative;
}

.tress-menu a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.tress-menu a:hover {
  color: #000;
}

/* Dropdown */
.tress-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 180px;
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  list-style: none;
  margin: 0;
  z-index: 999;
}

.tress-menu li:hover ul {
  display: block;
}

.tress-menu li ul li {
  padding: 0;
}

.tress-menu li ul a {
  display: block;
  padding: 8px 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #333;
}

.tress-menu li ul a:hover {
  background: #f9f9f9;
}

/* Search icon */
.tress-search-icon {
  color: #333;
  display: flex;
  align-items: center;
  margin-left: 16px;
}

/* Mobile */
@media (max-width: 768px) {
  .tress-header-inner {
    grid-template-columns: 1fr auto;
    padding: 16px 20px;
  }

  .tress-nav-left,
  .tress-nav-right {
    display: none;
  }
}

/* Category Page */
.tress-category-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* Category Title */
.tress-cat-title {
  text-align: center;
  margin-bottom: 48px;
}

.tress-cat-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.tress-cat-title h1 {
  font-size: 42px;
  margin: 0;
}

/* Section 1: Featured Grid */
.tress-cat-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.tress-cat-card {
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.tress-cat-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  display: block;
}

.tress-cat-card h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 8px;
  text-align: center;
}

.tress-cat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}

/* Section 2: Most Recent */
.tress-cat-recent-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.tress-cat-recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.tress-cat-recent-card {
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.tress-cat-recent-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  display: block;
}

.tress-cat-recent-date {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.tress-cat-recent-card h5 {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

/* Pagination */
.tress-cat-pagination {
  text-align: center;
  padding: 40px 0;
}

.tress-cat-pagination .nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.tress-cat-pagination a {
  font-size: 13px;
  color: #333;
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .tress-cat-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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


/* Mobile */
@media (max-width: 768px) {
  .tress-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tress-author-box {
    flex-direction: column;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .tress-post-hero {
    grid-template-columns: 1fr;
  }
  
  .tress-post-title {
    font-size: 32px;
  }
}