:root {
  --blog-orange: #d27e2b;
  --text-dark: #000;
  --text-grey: #666;
  --bg-grey: #dbdbdb; /* Placeholder grey */
}

body {
  overflow-x: visible;
}

.hero-title {
  max-width: 1160px;
  width: 100%;
}

h1 {
  font-size: 55px;
}

.section-padding {
  padding: 60px 50px;
}

/* --- MAIN LAYOUT GRID --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 50px;
  align-items: start;
  max-width: 1330px;
  margin: 0 auto;
}

/* --- LEFT CONTENT COLUMN --- */
.article-body {
  display: flex;
  flex-direction: column;
  gap: 36px; /* Consistent spacing between major sections */
}

/* Content Sections (H2/H3 Groups) */
.content-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-section h2,
.main-content h2,
.sidebar-widget h2,
.widget-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
}

.blog-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-section h3,
.main-content h3 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
}

/* --- RED IMAGE PLACEHOLDER (Updated) --- */
.red-placeholder-img {
  max-width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* Lists Styling */
.lists-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.styled-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.styled-list li {
  line-height: 28px;
  padding-left: 5px;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 32px; /* Space for icon */
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px; /* Align with text */
  width: 24px;
  height: 24px;
  background-image: url("../assets/icons/icon-black-tick.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.blog-details .reverse-mobile {
  display: flex;
  flex-direction: column-reverse;
  gap: 24px;
}

.second-sec {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.highlighted-text {
  background: rgba(233, 163, 25, 0.16);
  padding: 14px;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- EMBEDDED FAQ STYLING --- */
.inline-faq-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}

.inline-faq-item {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* --- Header Styling --- */
.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 28px;
  cursor: pointer;
  background-color: rgba(233, 163, 25, 0.16); /* Default Light Pink */
  transition: background-color 0.3s ease;
  gap: 20px;
}

.faq-header span {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 600;
  color: #000; /* Default Black Text */
}

/* Icon (Plus by default) */
.icon-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='11' stroke='%23000000' stroke-width='1.5'/%3E%3Cpath d='M12 7V17' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7 12H17' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

/* --- Body Styling --- */
.faq-body {
  max-height: 0; /* Hidden by default */
  overflow: hidden;
  background-color: #d27e2b;
  padding: 0 25px;
  transition: all 0.3s ease;
  opacity: 0;
}

.faq-body p {
  color: white;
  line-height: 1.8;
  margin: 0;
  padding-bottom: 25px;
}

.inline-faq-item.active {
  border-radius: 12px;
  background-color: #d27e2b;
}

.inline-faq-item.active .faq-header {
  background-color: #d27e2b;
}

.inline-faq-item.active .faq-header span {
  color: white; /* Turn Text White */
}

/* Icon (Switch to Minus & White) */
.inline-faq-item.active .icon-toggle {
  /* Switch to Minus Icon SVG */
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='11' stroke='white' stroke-width='1.5'/%3E%3Cpath d='M7 12H17' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: rotate(180deg); /* Optional rotation effect */
}

/* Expand Body */
.inline-faq-item.active .faq-body {
  max-height: 200px; /* Adjust based on content length */
  opacity: 1;
}

/* --- RIGHT SIDEBAR --- */
.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: sticky;
  top: 10px; /* Sticky on scroll */
}

.sidebar-widget {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.toc-header img {
  display: none;
}

.widget-title {
  position: relative; /* 👈 REQUIRED */
  display: inline-block;
  width: 100%;
  padding-bottom: 5px; /* space for underline */
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 14%; /* underline length */
  height: 4px;
  background-color: #d27e2b;
}

/* Relocation Services List */
.service-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(233, 163, 25, 0.16);
  border-radius: 12px;
  padding: 12px 0;
}

.service-link {
  padding: 10px 10px 10px 20px;
  transition: all 0.2s;
}

.service-links-list .active,
.service-link:hover {
  background-color: #d27e2b;
  color: #fefafa;
}

/* --- TABLE OF CONTENT WIDGET --- */

.toc-widget {
  padding: 24px 40px 24px 18px; /* Adjust padding to match design */
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 800px;
  overflow-y: auto;
  padding-right: 20px;
}

/* Scrollbar width */
.toc-list::-webkit-scrollbar {
  width: 14px;
}

/* Track */
.toc-list::-webkit-scrollbar-track {
  background: #f0f0f0;
}

/* Thumb */
.toc-list::-webkit-scrollbar-thumb {
  background: #979797;
}

.toc-list::-webkit-scrollbar-button {
  display: block;
}

/* 3. List Items */
.toc-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-decoration: none;
  transition: all 0.2s ease;
}

.toc-item:hover .text {
  color: #d27e2b;
}

/* 4. Badges (Square Numbers) */
.toc-item .badge {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-top: 7px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px; /* Square with slight radius */

  font-weight: 600;
  color: white;
  padding: 0;
}

/* Main Heading Badge */
.badge.red {
  background-color: #d27e2b;
}

.h3-link {
  margin-left: 40px;
}

.h3-link .badge {
  width: 30px; /* Slightly wider for 4.1 */
  border-radius: 6px;
}

.text {
  color: #000000;
  gap: 12px;
}

/* Default: Hidden on Desktop */
.mobile-sticky-bar,
.toc-overlay {
  display: none;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

/* Tablet (Max 1024px) */
@media (max-width: 1024px) {
  .section-padding {
    padding: 50px 40px;
  }
  h1 {
    font-size: 38px;
  }
  .hero-title {
    width: 85%;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .content-section h3,
  .main-content h3 {
    font-size: 26px;
  }

  .widget-title::after {
    width: 10%;
    background-color: #0b4b89;
  }

  .service-links-list {
    margin-top: 12px;
    padding: 24px 32px;
  }

  .service-link {
    border-radius: 4px;
  }

  .service-link:hover {
    width: 65%;
  }

  .article-layout {
    grid-template-columns: 1fr; /* Stack on tablet */
    gap: 50px;
  }

  #toc-1 {
    text-align: center;
  }

  .toc-list {
    gap: 24px;
    padding-right: 58px;
  }

  .toc-header {
    display: flex;
  }

  .toc-header img {
    display: block;
  }

  .sidebar-wrapper {
    position: static; /* Remove sticky on mobile/tablet */
  }

  .h3-link {
    margin-left: 0px;
  }

  .sidebar-widget.toc-widget {
    display: none;
  }

  .toc-modal {
    background: #ffffff;
    width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    padding: 30px 25px;
    border: 1px solid rgba(0, 0, 0, 0.4);
  }

  /* 2. Sticky Bottom Bar */
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  }

  .sticky-btn {
    flex: 1;
    border: none;
    padding: 18px;
    font-size: 20px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s;
  }

  .btn-red {
    background-color: #d27e2b;
  }

  .btn-black {
    background-color: #000;
  }

  .btn-red:hover {
    background-color: #000;
  }

  .btn-black:hover {
    background-color: #d27e2b;
  }

  /* 3. Modal Overlay */
  .toc-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.18); /* Dark background */
    z-index: 2000;
    justify-content: center;
    padding: 50px 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin: 90px auto 85px;
  }

  .toc-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }

  .toc-modal-header .widget-title::after {
    background-color: #d27e2b;
    width: 12%;
  }

  .toc-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .close-toc-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
  }

  .close-toc-btn img {
    width: 45px;
    height: 40px;
  }
}

/* Mobile (Max 768px) */
@media (max-width: 767px) {
  .container {
    padding-inline: 24px;
  }
  .section-padding {
    padding: 36px 24px;
  }
  .blog-hero {
    padding: 10px 30px 30px;
    gap: 12px;
  }

  .hero-title {
    width: 90%;
  }

  /* Breadcrumb position adjust */
  .breadcrumb {
    bottom: -18px;
    padding: 6px 20px;
  }

  .about-hero {
    height: 275px;
  }

  .about-hero h1 {
    font-size: 30px;
  }

  .text-block {
    text-align: center;
  }

  .content-section h2,
  .main-content h2,
  .sidebar-widget h2,
  .widget-title {
    font-size: 28px;
  }

  .content-section h3,
  .main-content h3,
  .sidebar-widget h3 {
    font-size: 22px;
  }

  .article-layout {
    gap: 40px;
  }

  .inline-faq-group {
    gap: 12px;
  }

  .faq-header {
    padding: 18px;
  }

  .faq-body {
    padding: 0 18px;
  }

  .faq-header span {
    font-size: 22px;
  }

  .icon-toggle {
    width: 28px;
    height: 28px;
  }

  .red-placeholder-img {
    aspect-ratio: 330/340; /* Taller on mobile */
  }

  .service-links-list {
    margin-top: 0px;
    padding: 20px 25px;
  }

  .service-link:hover {
    width: 100%;
  }

  .widget-title::after {
    background-color: #d27e2b;
    width: 20%;
  }

  .toc-overlay {
    padding: 40px 24px;
    margin: 75px auto 60px;
  }

  .toc-modal {
    padding: 10px;
    gap: 12px;
  }

  .toc-modal-header .widget-title::after {
    width: 20%;
  }

  .close-toc-btn img {
    width: 35px;
    height: 30px;
  }

  .toc-list {
    gap: 18px;
    padding-right: 8px;
  }

  .toc-list::-webkit-scrollbar {
    width: 10px;
  }
}
