/* Returns Page Styles */

/* Main Content Layout */
main {
  display: flex;
  min-height: calc(100vh - 80px);
  background-color: #f5f5f5;
}

/* Page Container */
.pg-Ancillary_Blocks {
  display: grid;
  grid-template-columns: 300px 1fr;
  width: 100%;
  gap: 0;
  background-color: #fff;
}

/* Left Sidebar Navigation */
.pg-Ancillary_Blocks::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / -1;
  background-color: #f8f8f8;
  border-right: 1px solid #e0e0e0;
}

/* Sidebar Menu Container */
.ancillary-sidebar {
  grid-column: 1;
  grid-row: 1 / -1;
  padding: 60px 30px;
  background-color: #f8f8f8;
  border-right: 1px solid #e0e0e0;
  position: relative;
  z-index: 1;
}

.ancillary-sidebar-title {
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #999;
  text-transform: uppercase;
  margin: 0 0 20px 0;
  padding: 0 0 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.ancillary-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ancillary-sidebar-nav li {
  margin-bottom: 15px;
}

.ancillary-sidebar-nav a {
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #999;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  display: block;
}

.ancillary-sidebar-nav a:hover,
.ancillary-sidebar-nav a.active {
  color: #000;
}

/* Main Content Area */
.pg-Ancillary_TextBlock,
.pg-Ancillary_AccordionBlock {
  grid-column: 2;
  padding: 30px 80px 30px 60px;
  border-bottom: 1px solid #e0e0e0;
}

.pg-Ancillary_TextBlock:first-of-type {
  padding-top: 60px;
}

.pg-Ancillary_TextBlock:last-of-type {
  border-bottom: none;
  padding-bottom: 60px;
}

/* Font Size Utility */
.fz-14_130 {
  font-size: 14px;
  line-height: 1.7;
}

/* Text Block Styling */
.pg-Ancillary_TextBlock p {
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #000;
  margin: 0 0 15px 0;
}

.pg-Ancillary_TextBlock p:last-child {
  margin-bottom: 0;
}

.pg-Ancillary_TextBlock a {
  color: #000;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.pg-Ancillary_TextBlock a:hover {
  opacity: 0.6;
}

/* Accordion Block */
.pg-Ancillary_AccordionBlock {
  border-bottom: 1px solid #e0e0e0;
}

.pg-Ancillary_AccordionSummary {
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #000;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: opacity 0.2s ease;
}

.pg-Ancillary_AccordionSummary:hover {
  opacity: 0.7;
}

/* Remove default marker */
.pg-Ancillary_AccordionSummary::-webkit-details-marker {
  display: none;
}

/* Add custom plus/minus icon */
.pg-Ancillary_AccordionSummary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: #000;
  transition: transform 0.3s ease;
}

details[open] .pg-Ancillary_AccordionSummary::after {
  content: "−";
}

/* Accordion Details */
.pg-Ancillary_AccordionDetails {
  padding-top: 25px;
  animation: slideDown 0.3s ease-out;
}

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

/* Rich Text Content */
.rte-RichText {
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #000;
}

.rte-RichText p {
  margin: 0 0 15px 0;
}

.rte-RichText p:last-child {
  margin-bottom: 0;
}

.rte-RichText p:empty {
  margin: 0;
  height: 8px;
}

.rte-RichText strong {
  font-weight: 700;
}

.rte-RichText a {
  color: #000;
  text-decoration: underline;
  transition: opacity 0.2s ease;
  word-break: break-all;
}

.rte-RichText a:hover {
  opacity: 0.6;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .pg-Ancillary_Blocks {
    grid-template-columns: 250px 1fr;
  }

  .pg-Ancillary_TextBlock,
  .pg-Ancillary_AccordionBlock {
    padding: 25px 60px 25px 50px;
  }

  .pg-Ancillary_TextBlock:first-of-type {
    padding-top: 50px;
  }

  .pg-Ancillary_TextBlock:last-of-type {
    padding-bottom: 50px;
  }

  .ancillary-sidebar {
    padding: 50px 25px;
  }
}

@media screen and (max-width: 1024px) {
  .pg-Ancillary_Blocks {
    grid-template-columns: 220px 1fr;
  }

  .pg-Ancillary_TextBlock,
  .pg-Ancillary_AccordionBlock {
    padding: 20px 40px 20px 35px;
  }

  .pg-Ancillary_TextBlock:first-of-type {
    padding-top: 40px;
  }

  .pg-Ancillary_TextBlock:last-of-type {
    padding-bottom: 40px;
  }

  .ancillary-sidebar {
    padding: 40px 20px;
  }

  .ancillary-sidebar-nav a {
    font-size: 12px;
  }
}

@media screen and (max-width: 768px) {
  main {
    min-height: auto;
  }

  .pg-Ancillary_Blocks {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pg-Ancillary_Blocks::before {
    display: none;
  }

  .ancillary-sidebar {
    grid-column: 1;
    grid-row: auto;
    padding: 30px 25px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .ancillary-sidebar-title {
    margin-bottom: 15px;
    padding-bottom: 8px;
  }

  .ancillary-sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
  }

  .ancillary-sidebar-nav li {
    margin-bottom: 0;
  }

  .pg-Ancillary_TextBlock,
  .pg-Ancillary_AccordionBlock {
    grid-column: 1;
    padding: 25px 25px;
  }

  .pg-Ancillary_TextBlock:first-of-type {
    padding-top: 30px;
  }

  .pg-Ancillary_TextBlock:last-of-type {
    padding-bottom: 30px;
  }
}

@media screen and (max-width: 480px) {
  .ancillary-sidebar {
    padding: 25px 20px;
  }

  .pg-Ancillary_TextBlock,
  .pg-Ancillary_AccordionBlock {
    padding: 20px 20px;
  }

  .pg-Ancillary_TextBlock:first-of-type {
    padding-top: 25px;
  }

  .pg-Ancillary_TextBlock:last-of-type {
    padding-bottom: 25px;
  }

  .pg-Ancillary_TextBlock p,
  .rte-RichText,
  .rte-RichText p {
    font-size: 13px;
  }

  .pg-Ancillary_AccordionSummary {
    font-size: 11px;
  }

  .ancillary-sidebar-nav {
    flex-direction: column;
    gap: 12px;
  }

  .ancillary-sidebar-nav a {
    font-size: 11px;
  }
}

/* Print Styles */
@media print {
  main {
    display: block;
  }

  .pg-Ancillary_Blocks {
    display: block;
  }

  .ancillary-sidebar {
    display: none;
  }

  .pg-Ancillary_TextBlock,
  .pg-Ancillary_AccordionBlock {
    padding: 15px;
    border: none;
  }

  details {
    display: block;
  }

  .pg-Ancillary_AccordionSummary::after {
    display: none;
  }

  .pg-Ancillary_AccordionDetails {
    display: block !important;
  }
}
