/* ===================================================================
   DIMENSI STUDIO - CUSTOM STYLES
   =================================================================== */

/* NAVBAR STICKY STYLES */
#header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

/* Add padding to body to prevent content from hiding behind navbar */
body {
  padding-top: 80px;
}

/* Enhanced scrolling effect */
#header.scrolled {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  #header .logo img {
    height: 35px !important;
    margin-right: 4px !important;
  }
  
  #header .logo h1 {
    font-size: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #header .logo span {
    margin-left: 0px !important; /* No gap between text and dot */
    margin-right: 0px !important;
    padding: 0 !important;
  }
  
  /* Fix logo alignment on mobile */
  #header .logo {
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important; /* Remove any flexbox gap */
  }
  
  #header .logo h1,
  #header .logo span {
    line-height: 1 !important;
    vertical-align: middle !important;
    display: inline-block !important;
  }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  /* Even smaller on very small screens */
  #header .logo img {
    height: 30px !important;
    margin-right: 3px !important; /* Minimal spacing */
  }
  
  #header .logo h1 {
    font-size: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #header .logo span {
    margin: 0 !important; /* Absolutely no margin */
    padding: 0 !important;
  }
  
  /* Force tight alignment */
  #header .logo {
    gap: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  
  /* Remove any default spacing from flexbox children */
  #header .logo > * {
    flex-shrink: 0 !important;
  }
}

/* Floating chat image in right-bottom corner */
.chat-float {
  position: fixed !important;
  right: 20px !important;
  bottom: 48px !important;
  z-index: 99999 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: opacity 0.45s ease-out !important;
  animation: chat-float-motion 6s ease-in-out infinite !important;
  cursor: pointer !important;
  text-decoration: none !important;
  pointer-events: auto !important;
}

.chat-float:hover {
  opacity: 1 !important;
}

.chat-float img {
  width: 120px !important;
  height: 120px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 0.75 !important;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease-out !important;
  transform-origin: center center !important;
}

.chat-float:hover img {
  transform: scale(1.06) !important;
  opacity: 1 !important;
}

@keyframes chat-float-motion {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.02);
  }
}

@media (max-width: 576px) {
  .chat-float {
    right: 14px !important;
    bottom: 14px !important;
  }

  .chat-float img {
    width: 96px !important;
    height: 96px !important;
  }
}

/* ===== SERVICE DETAILS RESPONSIVE LAYOUT ===== */
/* Reorder content on mobile for better UX */
@media (max-width: 991px) {
  /* Main service details container */
  .service-details .row {
    display: flex;
    flex-direction: column;
  }
  
  /* Content order on mobile:
     1. Service image (first)
     2. Service title & description 
     3. Features list
     4. Sidebar (services list + WhatsApp) - after features
  */
  
  /* Service image stays at top */
  .service-details .services-img {
    order: 1;
    margin-bottom: 20px;
  }
  
  /* Service content (title, description, features) */
  .service-details .col-lg-8 {
    order: 2;
  }
  
  /* Move sidebar after main content */
  .service-details .col-lg-4 {
    order: 3;
    margin-top: 30px;
  }
  
  /* Adjust spacing for mobile layout */
  .services-list {
    margin-bottom: 20px;
  }
  
  .help-box {
    margin-top: 20px !important;
  }
  
  /* Ensure proper spacing between sections */
  .service-details .col-lg-8 > div:last-child {
    margin-bottom: 20px;
  }
}
/* ===== FOOTER ENHANCEMENTS ===== */
/* Make Dimensi Studio link in copyright clickable with hover effect */
.footer .copyright a {
  color: #0ea2bd !important; /* Dimensi Studio brand blue */
  text-decoration: none !important;
  transition: all 0.3s ease;
  font-weight: bold;
}

.footer .copyright a:hover {
  color: #0b8ca3 !important; /* Darker shade of brand blue on hover */
  text-decoration: underline !important;
  transform: scale(1.02);
}

/* ===== BLOG AUTHOR SECTION ENHANCEMENTS ===== */
/* Style the author section with Dimensi Studio branding */
.blog-author .author-container img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 20px;
}

.blog-author .social-links a {
  color: #0ea2bd !important; /* Dimensi Studio brand blue */
  font-size: 18px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.blog-author .social-links a:hover {
  color: #0b8ca3 !important; /* Darker shade on hover */
  transform: scale(1.1);
}

.blog-author h4 {
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-author p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== BLOG DETAILS IMAGE ENHANCEMENT ===== */
/* Make blog article images full width without side padding */
.blog-details .post-img {
  margin: -30px -30px 20px -30px !important;
  overflow: hidden;
  border-radius: 0;
}

.blog-details .post-img img {
  width: 100% !important;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Ensure container doesn't add extra padding */
.blog-details .article {
  padding: 30px;
}

/* Mobile responsive for blog images */
@media (max-width: 768px) {
  .blog-details .post-img {
    margin: -20px -20px 15px -20px !important;
  }
  
  .blog-details .article {
    padding: 20px;
  }
}

/* ===== VIEW ALL ARTICLES BUTTON ===== */
/* Modern button for "Lihat Semua Artikel" */
.btn-view-all-articles {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #0ea2bd 0%, #0b8ca3 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14, 162, 189, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-view-all-articles::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-view-all-articles:hover::before {
  left: 100%;
}

.btn-view-all-articles:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 162, 189, 0.4);
  color: white;
  text-decoration: none;
}

.btn-view-all-articles .btn-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-view-all-articles:hover .btn-icon {
  transform: translateX(4px);
}

.btn-view-all-articles .btn-text {
  position: relative;
  z-index: 1;
}

/* Mobile responsive for button */
@media (max-width: 768px) {
  .btn-view-all-articles {
    padding: 14px 28px;
    font-size: 15px;
    gap: 10px;
  }
  
  .btn-view-all-articles .btn-icon {
    font-size: 16px;
  }
}

/* ===== BRAND NAME ENHANCEMENT ===== */
/* Add underline accent to "Dimensi" part in hero section */
.hero h1 {
  position: relative;
  display: inline-block;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 180px; /* Width to cover "Dimensi" text in hero (larger font) */
  height: 6px; /* Thicker line */
  background: #f9c31e; /* Yellow color */
  border-radius: 3px;
}

/* Mobile responsive for hero */
@media (max-width: 768px) {
  .hero h1::after {
    width: 140px;
    height: 5px; /* Thicker for mobile */
    bottom: -6px;
  }
}

@media (max-width: 480px) {
  .hero h1::after {
    width: 120px;
    height: 4px; /* Thicker for small mobile */
    bottom: -4px;
  }
}

/* ===== COMMENT SYSTEM STYLES ===== */
/* Modern comment system with Dimensi Studio branding */

.comment {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.comment:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.comment-avatar {
  margin-right: 15px;
  flex-shrink: 0;
}

.avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
}

.comment-content {
  flex: 1;
}

.comment-author {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.comment-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  display: block;
}

.comment-text {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Admin Reply Styles */
.admin-reply {
  margin-top: 15px;
  margin-left: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-left: 4px solid #0ea2bd;
  border-radius: 8px;
}

.admin-avatar {
  background-color: #0ea2bd !important;
  font-size: 16px;
}

.admin-author {
  color: #0ea2bd !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-badge {
  background-color: #0ea2bd;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.admin-reply-text {
  color: #333 !important;
  font-style: italic;
}

/* Comment form styles */
.comment-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.comment-form .form-control:focus {
  border-color: #0ea2bd;
  box-shadow: 0 0 0 0.2rem rgba(14, 162, 189, 0.25);
}

.comment-form .btn-primary {
  background-color: #0ea2bd;
  border-color: #0ea2bd;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.comment-form .btn-primary:hover {
  background-color: #0b8ca3;
  border-color: #0b8ca3;
  transform: translateY(-1px);
}

.comment-form .btn-primary:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  transform: none;
}

/* Comments count styling */
.comments-count {
  color: #333;
  font-weight: 600;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0ea2bd;
  display: inline-block;
}

/* Loading states */
.comment-form .btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .comment .d-flex {
    flex-direction: column;
  }
  
  .comment-avatar {
    margin-right: 0;
    margin-bottom: 10px;
    align-self: flex-start;
  }
  
  .avatar-circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .admin-reply {
    margin-left: 10px;
    padding: 12px;
  }
  
  .admin-avatar {
    font-size: 14px;
  }
}

/* ============================================
   KATEGORI ARTIKEL STYLING
   ============================================ */

/* Background warna untuk kategori artikel */
.post-category {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  color: #fff !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Warna khusus untuk kategori Videography */
.post-category:contains("Videography"),
.post-category[data-category="Videography"] {
  background: linear-gradient(135deg, #f9c31e 0%, #ffa726 100%) !important;
  color: #2c3e50 !important;
}

/* Warna khusus untuk kategori Wedding Photography */
.post-category:contains("Wedding Photography"),
.post-category[data-category="Wedding Photography"] {
  background: linear-gradient(135deg, #0ea2bd 0%, #17a2b8 100%) !important;
  color: #fff !important;
}

/* Warna khusus untuk kategori Digital Design */
.post-category:contains("Digital Design"),
.post-category[data-category="Digital Design"] {
  background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%) !important;
  color: #fff !important;
}

/* Warna khusus untuk kategori Live Streaming */
.post-category:contains("Live Streaming"),
.post-category[data-category="Live Streaming"] {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%) !important;
  color: #fff !important;
}

/* Warna khusus untuk kategori Tips & Tutorial */
.post-category:contains("Tips"),
.post-category[data-category="Tips & Tutorial"] {
  background: linear-gradient(135deg, #ff5722 0%, #d84315 100%) !important;
  color: #fff !important;
}

/* Hover effect untuk kategori */
.post-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
/* ============================================
   ARTIKEL SLIDER STYLING (CONDITIONAL)
   ============================================ */

/* Articles Slider Container - Only when converted to slider */
#articlesSlider {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px; /* Space for pagination */
  max-width: 1200px; /* Limit max width */
  margin: 0 auto; /* Center the slider */
}

/* Swiper Navigation Buttons */
#articlesSlider .swiper-button-next,
#articlesSlider .swiper-button-prev {
  color: #0ea2bd;
  background: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-top: -25px; /* Center vertically */
}

#articlesSlider .swiper-button-next:hover,
#articlesSlider .swiper-button-prev:hover {
  background: #0ea2bd;
  color: white;
  transform: scale(1.1);
}

#articlesSlider .swiper-button-next::after,
#articlesSlider .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* Position navigation buttons with more spacing */
#articlesSlider .swiper-button-next {
  right: -25px;
}

#articlesSlider .swiper-button-prev {
  left: -25px;
}

/* Swiper Pagination */
#articlesSlider .swiper-pagination {
  bottom: 20px;
  position: absolute;
  text-align: center;
}

#articlesSlider .swiper-pagination-bullet {
  background: #ccc;
  opacity: 0.5;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

#articlesSlider .swiper-pagination-bullet-active {
  background: #0ea2bd;
  opacity: 1;
  transform: scale(1.2);
}

/* Article Slide Styling - Only for slider */
#articlesSlider .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
  max-width: 350px; /* Limit slide width */
}

#articlesSlider .swiper-slide article {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin: 0 15px; /* Add horizontal margin */
}

#articlesSlider .swiper-slide article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#articlesSlider .post-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

#articlesSlider .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#articlesSlider .swiper-slide article:hover .post-img img {
  transform: scale(1.05);
}

/* Article Content - Slider specific */
#articlesSlider article .post-category {
  margin: 15px 15px 10px 15px;
}

#articlesSlider article .title {
  padding: 0 15px;
  margin-bottom: 15px;
  flex-grow: 1;
}

#articlesSlider article .title h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}

#articlesSlider article .title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

#articlesSlider article .title a:hover {
  color: #0ea2bd;
}

/* Author Info - Slider specific */
#articlesSlider article .d-flex {
  padding: 0 15px 15px 15px;
  margin-top: auto;
}

#articlesSlider .post-author-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

#articlesSlider .post-meta p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

#articlesSlider .post-author {
  font-weight: 600;
  color: #2c3e50;
}

/* Responsive Adjustments for Slider */
@media (max-width: 1200px) {
  #articlesSlider {
    max-width: 100%;
    padding: 0 60px 60px 60px; /* Add side padding for nav buttons */
  }
  
  #articlesSlider .swiper-button-next {
    right: 10px;
  }
  
  #articlesSlider .swiper-button-prev {
    left: 10px;
  }
}

@media (max-width: 768px) {
  #articlesSlider {
    padding: 0 50px 60px 50px;
  }
  
  #articlesSlider .swiper-button-next,
  #articlesSlider .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  #articlesSlider .swiper-button-next::after,
  #articlesSlider .swiper-button-prev::after {
    font-size: 14px;
  }
  
  #articlesSlider .swiper-button-next {
    right: 5px;
  }
  
  #articlesSlider .swiper-button-prev {
    left: 5px;
  }
  
  #articlesSlider .post-img {
    height: 180px;
  }
  
  #articlesSlider article .title h2 {
    font-size: 16px;
  }
  
  #articlesSlider .swiper-slide {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  #articlesSlider {
    padding: 0 40px 60px 40px;
  }
  
  #articlesSlider .swiper-slide {
    max-width: 280px;
  }
  
  #articlesSlider .swiper-slide article {
    margin: 0 10px;
  }
}

/* Loading State */
#articlesSlider .swiper-slide .text-center {
  padding: 60px 20px;
  color: #666;
}

/* Smooth transitions */
#articlesSlider .swiper-wrapper {
  transition-timing-function: ease-in-out;
}

/* Pause autoplay on hover */
#articlesSlider:hover .swiper-wrapper {
  animation-play-state: paused;
}

}
/* ============================================
   NAVBAR MENU POSITIONING
   ============================================ */

/* Adjust navbar menu positioning - not too far to the right */
.navmenu {
  margin-right: 40px; /* Add some space from the right edge */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .navmenu {
    margin-right: 30px;
  }
}

@media (max-width: 992px) {
  .navmenu {
    margin-right: 20px;
  }
}

@media (max-width: 768px) {
  .navmenu {
    margin-right: 0; /* Reset on mobile */
  }
}