/**
 * Blog Styles - Surya Boutique Hotel
 * Stylesheet khusus untuk halaman blog
 */

/* Override animasi untuk halaman blog - konten langsung terlihat */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Kompensasi untuk sticky header */
}

.ftco-section .ftco-animate,
.ftco-section.bg-light .ftco-animate,
.blog-entry,
.blog-single,
.sidebar-box {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Navbar styling untuk halaman blog - sama dengan style scrolled di index.html */
.ftco-navbar-light {
    background: #ffb037 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000;
}

.ftco-navbar-light .navbar-brand {
    color: #000000 !important;
}

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    color: #000000 !important;
}

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover,
.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link {
    color: #FE722F !important;
    font-weight: 600;
}

.ftco-navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(0, 0, 0, 0.5) !important;
}

/* Hero Section for Blog */
.hero-wrap-2 {
  height: 400px;
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-wrap-2 .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero-wrap-2 .container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.hero-wrap-2 .bread {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-wrap-2 .breadcrumbs {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.hero-wrap-2 .breadcrumbs a {
  color: #ffb037;
  text-decoration: none;
}

.hero-wrap-2 .breadcrumbs a:hover {
  color: #fff;
}

/* Blog List Card */
.blog-entry {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.blog-entry:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-entry .block-20 {
  display: block;
  height: 0;
  padding-bottom: 100%; /* Rasio 1:1 (Square) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.blog-entry .block-20::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-entry:hover .block-20::before {
  opacity: 1;
}

.blog-entry .text {
  padding: 1.5rem;
}

.blog-entry .meta {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #888;
}

.blog-entry .meta span {
  margin-right: 15px;
}

.blog-entry .meta i {
  margin-right: 5px;
  color: #ffb037;
}

.blog-entry .heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-entry .heading a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-entry .heading a:hover {
  color: #ffb037;
}

.blog-entry p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-entry .btn-custom {
  color: #ffb037;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.blog-entry .btn-custom:hover {
  color: #333;
}

.blog-entry .btn-custom i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.blog-entry .btn-custom:hover i {
  transform: translateX(5px);
}

/* Blog Single Article */
.blog-single {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-meta {
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.blog-meta .meta-item {
  margin-right: 20px;
  color: #888;
  font-size: 0.9rem;
}

.blog-meta .meta-item i {
  margin-right: 5px;
  color: #ffb037;
}

.blog-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  color: #333;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.blog-content h2 {
  font-size: 1.6rem;
}

.blog-content h3 {
  font-size: 1.4rem;
}

.blog-content p {
  margin-bottom: 1.2rem;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content blockquote {
  border-left: 4px solid #ffb037;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f9f9f9;
  font-style: italic;
  color: #666;
}

.blog-content a {
  color: #ffb037;
  text-decoration: none;
}

.blog-content a:hover {
  text-decoration: underline;
}

.blog-tags {
  border-top: 1px solid #eee;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #333;
  margin-right: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-share:hover {
  background: #ffb037;
  color: #fff;
  text-decoration: none;
}

/* Sidebar */
.sidebar {
  padding-left: 30px;
}

.sidebar-box {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.sidebar-box h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #ffb037;
  color: #333;
}

.sidebar-box p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.sidebar-box .btn {
  margin-top: 0.5rem;
}

/* Recent Posts */
.recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
  border-bottom: none;
}

.recent-posts li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.recent-posts li a:hover {
  color: #ffb037;
}

.recent-posts li .date {
  color: #888;
  font-size: 0.85rem;
}

/* ========================================
   Table of Contents (ez-toc) Styling
   ======================================== */
#ez-toc-container {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 4px solid #ffb037;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

#ez-toc-container .ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
}

#ez-toc-container .ez-toc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  position: relative;
  padding-left: 1.75rem;
}

#ez-toc-container .ez-toc-title::before {
  content: "\f03a";
  font-family: "Ionicons";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #ffb037;
  font-size: 1.2rem;
}

/* Toggle button */
#ez-toc-container .ez-toc-title-toggle {
  display: inline-flex;
}

#ez-toc-container .ez-toc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  text-decoration: none;
  transition: all 0.25s ease;
}

#ez-toc-container .ez-toc-toggle:hover {
  background: #ffb037;
  border-color: #ffb037;
}

#ez-toc-container .ez-toc-toggle:hover svg {
  fill: #fff !important;
  color: #fff !important;
}

/* List utama */
#ez-toc-container nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

#ez-toc-container nav ul li {
  counter-increment: toc-counter;
  position: relative;
  margin-bottom: 0;
}

/* Item level 1 (H2) */
#ez-toc-container nav > ul > li {
  border-bottom: 1px solid #f0f0f0;
}

#ez-toc-container nav > ul > li:last-child {
  border-bottom: none;
}

#ez-toc-container nav > ul > li > a {
  display: block;
  padding: 0.65rem 0.75rem 0.65rem 2.25rem;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
}

#ez-toc-container nav > ul > li > a::before {
  content: counter(toc-counter) ".";
  position: absolute;
  left: 0.5rem;
  font-weight: 700;
  color: #ffb037;
  font-size: 0.95rem;
}

#ez-toc-container nav > ul > li > a:hover {
  background: linear-gradient(90deg, rgba(255, 176, 55, 0.1) 0%, transparent 100%);
  color: #ffb037;
  padding-left: 2.5rem;
}

/* Nested list (H3) */
#ez-toc-container nav ul ul {
  padding-left: 1rem;
  margin-top: 0;
  counter-reset: toc-sub-counter;
  border-left: 2px solid #f0f0f0;
  margin-left: 1.25rem;
  margin-bottom: 0.25rem;
}

#ez-toc-container nav ul ul li {
  counter-increment: toc-sub-counter;
}

#ez-toc-container nav ul ul li a {
  display: block;
  padding: 0.4rem 0.5rem 0.4rem 1.5rem;
  color: #666;
  font-weight: 400;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
}

#ez-toc-container nav ul ul li a::before {
  content: "›";
  position: absolute;
  left: 0.35rem;
  color: #ccc;
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

#ez-toc-container nav ul ul li a:hover {
  background: rgba(255, 176, 55, 0.06);
  color: #ffb037;
}

#ez-toc-container nav ul ul li a:hover::before {
  color: #ffb037;
}

/* Responsive */
@media (max-width: 991px) {
  .sidebar {
    padding-left: 15px;
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .hero-wrap-2 {
    height: 300px;
  }

  .hero-wrap-2 .bread {
    font-size: 1.8rem;
  }

  .blog-single {
    padding: 1.5rem;
  }

  .blog-content {
    font-size: 1rem;
  }
}
