/* ============================================
   BOCHI CILACAP - CUSTOM STYLES
   ============================================ */

/* H1 Reset - Ensure h1.big-title matches original div.big-title styling */
h1.big-title {
  margin: 0;
  font-weight: inherit;
}

/* Sticky Navbar with Hide on Scroll Down */
.main-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    box-shadow 0.3s ease !important;
  transform: translate3d(0, 0, 0) !important;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.main-header.nav-up {
  transform: translate3d(0, -100%, 0) !important;
  -webkit-transform: translate3d(0, -100%, 0) !important;
  box-shadow: none;
}

.main-header.nav-down {
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
}

body {
  padding-top: 80px;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

/* Navbar hover effects */
.desktop-nav a {
  position: relative;
  transition: color 0.3s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #97c1c0;
  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
  left: 0;
}

.desktop-nav a:hover {
  color: #97c1c0 !important;
}

/* Portfolio hover effects */
.portfolio_item {
  position: relative;
  overflow: hidden;
  display: block;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease;
  border-radius: 8px;
}

.portfolio_item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.portfolio_item img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  width: 100%;
}

.portfolio_item:hover img {
  transform: scale(1.15);
}

.portfolio_item_hover {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio_item:hover .portfolio_item_hover {
  opacity: 1;
}

.portfolio_item_hover .item_info {
  animation: slideUp 0.5s ease-out;
}

/* Button hover effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
  width: 400px;
  height: 400px;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn.green:hover {
  background: #7fb3b2;
}

.btn.white {
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

/* Section title animation */
.section-title {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title span {
  transition: color 0.4s ease;
}

/* Card hover effects */
.white-section {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}

.white-section:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Social icons hover */
.social-icons a {
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.social-icons a::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #97c1c0, #b5d4d3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-icons a:hover::before {
  opacity: 0.2;
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.2) rotate(5deg);
  color: #97c1c0;
}

/* Logo hover */
.logo {
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  transition: filter 0.3s ease;
}

.logo:hover img {
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(106, 181, 71, 0.3));
}

/* Portfolio filter hover */
.portfolio_filter a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding-left: 15px;
}

.portfolio_filter a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-10px);
}

.portfolio_filter a:hover {
  transform: translateX(8px);
  color: #97c1c0;
  padding-left: 20px;
}

.portfolio_filter a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.portfolio_filter a.active {
  font-weight: bold;
  color: #97c1c0;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Agency image hover */
.agency img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.agency img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Input focus effects */
.input_1 input[type="text"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input_1 input[type="text"]:focus {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(106, 181, 71, 0.2);
}

/* WhatsApp Link Hover Effects */
.whatsapp-link {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
}

.whatsapp-link:hover {
  color: #25d366 !important;
  transform: translateY(-2px);
}

.whatsapp-link:hover .whatsapp-icon {
  color: #25d366 !important;
  transform: scale(1.2);
}

.whatsapp-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.person-info:hover .whatsapp-icon {
  color: #25d366 !important;
  transform: scale(1.2);
}

.person-info:hover .whatsapp-link {
  color: #25d366 !important;
  transform: translateY(-2px);
}

/* Green section transition */
.green-section {
  transition: background-color 0.4s ease;
}

.main-footer {
  transition: background-color 0.4s ease;
}

/* Input styling */
input[type="text"] {
  transition:
    background 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease;
}

/* Text transitions */
p {
  transition: color 0.4s ease;
}

/* Fix for text alignment */
.agency p {
  text-align: justify;
}

/* Agency text center on mobile */
@media (max-width: 991px) {
  .agency p {
    text-align: center !important;
    text-indent: 0 !important;
  }
}

/* Input label positioning */
.input_1 {
  position: relative;
  margin-bottom: 10px;
}

.input_1 input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.input_1 input[type="text"]:focus {
  outline: none;
  border-color: #97c1c0;
}

.input_1 span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: all 0.3s ease;
  color: #999;
  font-size: 14px;
}

.input_1 input[type="text"]:focus + span,
.input_1 input[type="text"]:not(:placeholder-shown) + span {
  top: -10px;
  left: 10px;
  font-size: 11px;
  background: white;
  padding: 0 5px;
  color: #97c1c0;
}

.green-section .row > div {
  margin-bottom: 20px;
}

/* Social icons layout */
.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-icons li {
  margin: 0 8px;
}

/* Footer layout */
.main-footer .row {
  margin-left: 0;
  margin-right: 0;
}

.main-footer .col-md-8,
.main-footer .col-md-4 {
  padding-left: 15px;
  padding-right: 15px;
}

/* Portfolio grid */
.portfolio_container .col-md-4 {
  padding: 10px;
}

/* Newsletter input */
.newsletter-input {
  width: 100%;
}

/* ============================================
   FOOTER DESKTOP LAYOUT FIX
   ============================================ */
/* Footer Desktop Layout - Keep right aligned */
@media (min-width: 992px) {
  .main-footer .col-md-8 {
    text-align: left !important;
  }

  .main-footer .col-md-4 {
    text-align: right !important;
  }

  .main-footer .footer-nav ul {
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-footer .footer-nav ul li {
    display: inline-block !important;
    margin: 0 20px 0 0 !important;
    float: none !important;
  }

  .main-footer .footer-nav ul li:last-child {
    margin-right: 0 !important;
  }

  .main-footer .social-icons {
    justify-content: flex-end !important;
    margin: 0 0 20px 0 !important;
    flex-wrap: wrap !important;
  }

  .main-footer .social-icons li {
    margin: 0 0 0 10px !important;
  }

  .main-footer .social-icons li:first-child {
    margin-left: 0 !important;
  }

  .main-footer .gray-text {
    text-align: right !important;
    margin: 0 !important;
  }
}
/* ============================================
   FIX PORTFOLIO FILTER HOVER EFFECTS
   ============================================ */

/* Hapus efek panah dan gerakan aneh di desktop */
@media (min-width: 769px) {
  .portfolio_filter a {
    position: relative !important;
    padding-left: 0 !important; /* Hapus padding kiri */
    transition:
      background-color 0.3s ease,
      color 0.3s ease !important;
  }

  .portfolio_filter a::before {
    content: none !important; /* HAPUS PANAH */
    display: none !important;
  }

  .portfolio_filter a:hover {
    transform: none !important; /* HAPUS GERAKAN */
    padding-left: 0 !important; /* Hapus padding kiri */
    background-color: #97c1c0 !important;
    color: white !important;
  }

  .portfolio_filter a.active {
    background-color: #97c1c0 !important;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
  }

  .portfolio_filter a.active:hover {
    background-color: #7fb3b2 !important;
  }
}

/* Untuk mobile, gunakan styling yang lebih sederhana */
@media (max-width: 768px) {
  .portfolio_filter {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
  }

  .portfolio_filter li {
    display: inline-block !important;
    margin: 0 !important;
    float: none !important;
  }

  .portfolio_filter a {
    display: inline-block !important;
    padding: 8px 15px !important;
    font-size: 12px !important;
    border-radius: 20px !important;
    background-color: #f5f5f5 !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
  }

  .portfolio_filter a::before {
    content: none !important; /* HAPUS PANAH UNTUK MOBILE JUGA */
  }

  .portfolio_filter a:hover {
    transform: none !important; /* HAPUS GERAKAN */
    background-color: #e0e0e0 !important;
    color: #333 !important;
  }

  .portfolio_filter a.active {
    background-color: #97c1c0 !important;
    color: white !important;
  }

  .portfolio_filter a.active:hover {
    background-color: #7fb3b2 !important;
  }
}

/* Dark mode support */
@media (max-width: 768px) {
  body.dark-mode .portfolio_filter a {
    background-color: #333 !important;
    color: #eee !important;
  }

  body.dark-mode .portfolio_filter a:hover {
    background-color: #444 !important;
  }

  body.dark-mode .portfolio_filter a.active {
    background-color: #97c1c0 !important;
    color: white !important;
  }
}

/* ============================================
   SINGLE POST / BLOG ARTICLE STYLES
   ============================================ */

/* Article container */
.single_post {
  margin-bottom: 40px;
}

.single_post p {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
}

/* Featured image */
.post_media {
  margin-bottom: 30px;
  border-radius: 4px;
  overflow: hidden;
}

.post_media img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  display: block;
}

/* Post title & date */
.single_post .post_title {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.single_post .post_title h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: #333;
}

.single_post .post_date {
  font-size: 13px;
  color: #999;
}

/* Inline images inside article (nested .row > .col-md-6) */
.single_post .row img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */

.sidebar {
  padding-left: 15px;
}

.widget {
  margin-bottom: 35px;
}

.widget_title {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  position: relative;
}

.widget_title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #97c1c0;
}

/* Search box */
.input_2 {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
}

.input_2 input {
  flex: 1;
  border: none;
  padding: 10px 15px;
  font-size: 13px;
  outline: none;
  color: #666;
}

.input_2 button {
  background: #97c1c0;
  border: none;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.input_2 button:hover {
  background: #7aa9a8;
}

/* Related posts in sidebar */
.related_post {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f5f5f5;
}

.related_post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.thumb {
  flex-shrink: 0;
  width: 65px;
  height: 65px;
  border-radius: 4px;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related_post .post_title {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.related_post .post_title:hover {
  color: #97c1c0;
}

.related_post .post_date {
  font-size: 11px;
  color: #bbb;
}

/* Pages pagination (back to blog link style) */
.pages_pagination a {
  color: #97c1c0;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

/* ============================================
   DARK MODE — SINGLE POST & SIDEBAR
   ============================================ */

body.dark-mode .single_post p {
  color: #bbb;
}

body.dark-mode .single_post .post_title {
  border-bottom-color: #444;
}

body.dark-mode .single_post .post_title h2 {
  color: #eee;
}

body.dark-mode .single_post .post_date {
  color: #888;
}

body.dark-mode .sidebar .widget_title {
  color: #ddd;
  border-bottom-color: #444;
}

body.dark-mode .sidebar .widget_title::after {
  background-color: #97c1c0;
}

body.dark-mode .input_2 {
  border-color: #555;
}

body.dark-mode .input_2 input {
  background: #333;
  color: #ddd;
}

body.dark-mode .related_post {
  border-bottom-color: #444;
}

body.dark-mode .related_post .post_title {
  color: #ddd;
}

body.dark-mode .related_post .post_date {
  color: #777;
}

body.dark-mode .pages_pagination a {
  color: #97c1c0;
}

/* ============================================
   RESPONSIVE — SINGLE POST & SIDEBAR
   ============================================ */

@media (max-width: 991px) {
  .single_post .post_title h2 {
    font-size: 20px;
  }

  .post_media img {
    max-height: 350px;
  }

  .sidebar {
    padding-left: 0;
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .single_post .post_title h2 {
    font-size: 18px;
  }

  .post_media img {
    max-height: 250px;
  }

  .single_post p {
    font-size: 14px;
  }
}

/* ============================================
   BLOG CARD STYLES
   ============================================ */

.blog-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 20px 25px 25px;
}

.blog-card-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #999;
}

.blog-card-meta i {
  margin-right: 4px;
}

.blog-card-title {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.blog-card-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: #97c1c0;
}

.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: #777;
  margin-bottom: 15px;
}

.blog-card-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #97c1c0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.blog-card-link:hover {
  color: #7aa9a8;
  text-decoration: none;
}

.blog-card-link i {
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.blog-card-link:hover i {
  transform: translateX(3px);
}

/* Dark mode blog cards */
body.dark-mode .blog-card {
  background: #2a2a2a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .blog-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.dark-mode .blog-card-title a {
  color: #eee;
}

body.dark-mode .blog-card-excerpt {
  color: #aaa;
}

@media (max-width: 767px) {
  .blog-card-img {
    height: 180px;
  }

  .blog-card-body {
    padding: 15px 18px 20px;
  }

  .blog-card-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
}
