:root {
  --rs-primary: #d4004c;
  --rs-bg: #ffffff;
  --rs-text: #0A2342;
  --rs-accent: #0BBBEF;
}

/* Container & grid */
.rs-single-container {
  max-width: 1250px;
  margin: 30px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.rs-single-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* Main column */
.rs-main-col {
  min-width: 0;
}

/* Banner */
.rs-banner img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Title */
.rs-dept-title {
  margin: 18px 0 12px;
  font-size: 30px;
  color: var(--rs-text);
  font-weight: 700;
}

/* Boxes */
.rs-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
  margin-bottom: 22px;
}

/* Two-column lists (treatments, why) */
.rs-two-cols {
  display: flex;
  gap: 30px;
}

.rs-list {
  list-style: none;
  margin: 0;
  padding-left: 18px;
}

.rs-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 8px;
  color: #333;
}

/* FAQ - Enhanced Accordion Styling */
.rs-faq .faq-item {
  margin-bottom: 16px;
  padding: 4px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.rs-faq .faq-item:hover {
  background: #f3f4f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-q {
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 16px;
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start !important;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  outline: none;
  color: var(--rs-text);
  transition: all 0.3s ease;
  gap: 12px !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

.faq-q>span:first-child {
  flex: 1 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  min-width: 0 !important;
}

.faq-q:hover {
  color: var(--rs-primary);
}

.faq-q .faq-q-icon {
  font-weight: 900;
  color: var(--rs-primary);
  font-size: 20px;
  line-height: 1;
  min-width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
  flex-shrink: 0 !important;
}

.faq-q[aria-expanded="true"] .faq-q-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 16px 16px 16px;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Doctors grid */
.rs-related-doctors .rs-doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.rs-doc-card {
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
}

.rs-doc-card h4 {
  margin: 8px 0 6px;
  color: var(--rs-text);
  font-size: 16px;
}

.rs-doc-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.btn {
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--rs-primary);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid #e6e6e6;
  color: #333;
}

/* Sidebar */
.rs-sidebar-col {
  position: relative;
  top: 0;
}

.rs-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--rs-text);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid var(--rs-primary);
  padding-bottom: 6px;
}

/* Dept list */
.rs-dept-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  padding: 12px 0;
  color: #222;
  border-bottom: 1px solid #eee;
  position: relative;
  transition: all .18s ease;
}

.rs-dept-list a:last-child {
  border-bottom: none;
}

.rs-dept-list a::before {
  content: '';
  width: 3px;
  height: 18px;
  background: transparent;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 4px;
  transition: all .18s ease;
}

.rs-dept-list a::after {
  content: "\203A";
  color: #bbb;
  transition: all .18s ease;
}

.rs-dept-list a:hover {
  color: var(--rs-primary);
  padding-left: 6px;
}

.rs-dept-list a:hover::before {
  background: var(--rs-primary);
}

.rs-dept-list a:hover::after {
  transform: translateX(4px);
  color: var(--rs-primary);
}

.rs-dept-list a.active {
  font-weight: 700;
  color: var(--rs-primary);
}

.rs-dept-list a.active::before {
  background: var(--rs-primary);
}

/* Helpline */
.rs-sidebar-helpline {
  border-left: 4px solid var(--rs-primary);
  padding: 16px;
  text-align: left;
}

.rs-helpline-num {
  font-size: 18px;
  font-weight: 700;
  margin-top: 6px;
}

/* Appointment (Forminator) area */
.rs-sidebar-appointment {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}

.rs-sidebar-appointment .forminator-custom-form {
  padding: 20px;
  background: var(--rs-accent);
  color: #fff;
}

/* Forminator wrapper varies per form markup */
.rs-sidebar-appointment .forminator-label {
  color: #fff;
}

.rs-sidebar-appointment input,
.rs-sidebar-appointment textarea,
.rs-sidebar-appointment select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: none;
}

/* Department Cards (Archive/Carousel) */
.rs-dept-card {
    background: var(--rs-bg);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 400px;
}

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

.rs-dept-card .rs-dept-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 14px;
}

.rs-dept-card .rs-dept-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.rs-dept-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--rs-text);
  margin: 0 0 10px 0;
}

.rs-dept-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  flex-grow: 1;
  margin: 0 0 14px 0;
}

.rs-dept-card .rs-btn-read {
    display: inline-block;
    color: #d5004c;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.rs-dept-card .rs-btn-read:hover {
  background: var(--rs-text);
  transform: translateX(4px);
}

/* ================================
   RESPONSIVE DESIGN
================================ */

/* Large Desktop (1100px and below) */
@media (max-width: 1100px) {
  .rs-single-wrap {
    grid-template-columns: 1fr 320px;
    gap: 24px;
  }

  .rs-banner img {
    height: 300px;
    object-fit: cover;
  }

  .rs-related-doctors .rs-doctors-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet (880px and below) */
@media (max-width: 880px) {
  .rs-single-wrap {
    grid-template-columns: 1fr !important;
  }

  .rs-dept-list a::after {
    display: none;
  }

  .rs-two-cols {
    flex-direction: column;
    gap: 12px;
  }

  .rs-related-doctors .rs-doctors-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ Tablet Adjustments */
  .faq-q {
    padding: 14px 12px;
    font-size: 15px;
  }

  .faq-a {
    padding: 0 12px 14px 12px;
    font-size: 14px;
  }
}

/* Mobile (640px and below) */
@media (max-width: 640px) {

  /* FAQ Mobile Optimizations */
  .rs-faq .faq-item {
    margin-bottom: 12px;
    padding: 3px;
  }

  .faq-q {
    padding: 12px 10px;
    font-size: 14px;
    gap: 8px;
  }

  .faq-q span:first-child {
    flex: 1;
    line-height: 1.5;
  }

  .faq-q .faq-q-icon {
    font-size: 18px;
    min-width: 20px;
    flex-shrink: 0;
  }

  .faq-a {
    padding: 0 10px 12px 10px;
    font-size: 13px;
    line-height: 1.6;
  }

  /* Box padding adjustment for mobile */
  .rs-box {
    padding: 16px;
  }

  /* Paragraph adjustments for mobile */
  .rs-box p {
    font-size: 15px;
    line-height: 1.65;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .faq-q {
    padding: 10px 8px;
    font-size: 13px;
  }

  .faq-q .faq-q-icon {
    font-size: 16px;
    min-width: 18px;
  }

  .faq-a {
    padding: 0 8px 10px 8px;
    font-size: 12px;
  }

  .rs-box {
    padding: 12px;
  }

  .rs-box p {
    font-size: 14px;
  }
}