body {
    background-color: #104c4d;
    font-family: 'EB Garamond', serif;
    line-height: 1.6;
    color: #333;
    font-size: 1em;
padding-top: 20px; /* Add padding to the top of the body */
}

/* Remove or comment out the old .title-container style */
/*
.title-container {
        display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    margin-bottom: 20px;
}
*/

/* New container for the two-column layout */
.two-column-container {
    display: flex;
    gap: 20px; /* Space between left and right columns */
    width: 100%;
    padding: 0 20px; /* Padding for the overall layout */
    box-sizing: border-box;
/* Remove margin-bottom if not needed, or adjust */
    /* margin-bottom: 20px; */
    align-items: flex-start; /* Align items to the top */
}

/* Style for the left column */
.left-column {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap:15px; /* Space between items in the left column */
    flex-basis: 40%; /* Left column takes 40% width */
    flex-grow: 0;
    flex-shrink: 0;
}

/* Style for the right column */
.right-column {
    display: flex; /* Use flex to allow vertical stacking */
    flex-direction: column; /* Stack items vertically */
    gap: 10px; /* Space between items */
    flex-basis: 60%; /* Right column takes 60% width */
    flex-grow: 1; /* Allow right column to grow */
}

/* Adjust title-box for its new position */
.title-box {
    width: 100%; /* Make it fill the left column width */
    /* height: 8%px; /* Remove invalid height */
    min-height: 100px; /* Example min-height */
    background-color: #e5b050;
    border: 8px solid #81b086;
    border-radius: 20px;
    display: flex; /* Keep flex for centering content */
    flex-direction: column; /* Stack h1 and p vertically */
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: "Cantata One", serif;
    padding: 15px;
    box-sizing: border-box;
    color: #b64324;
}

.title-box h1 {
    margin: 0 0 5px 0; /* Adjust margin for h1 inside title-box */
    font-size: 2em; /* Adjust font size if needed */
}

.small-title{
    font-size: 0.8em; /* Adjust size relative to parent */
    font-family: "Cantata One", serif;
    color: #b64324;
    text-align: center; /* Center align */
    margin: 0; /* Remove extra margins */
    /* align-items: right; /* Remove invalid align-items */
    /* margin-left: 100px; /* Remove fixed margin */
}

/* Style the link within .small-title */
.small-title a {
    color: inherit; /* Inherit the color from .small-title */
}

/* Ensure visited link color is also inherited */
.small-title a:visited {
    color: inherit; /* Inherit the color from .small-title */
}

/* Optional: Add underline on hover/focus for better usability */
.small-title a:hover,
.small-title a:focus {
    text-decoration: underline;
}

/* Adjust subtitle-box */
.subtitle-box {
    /* Remove percentage width */
    /* width: 50%; */
    width: 250px; /* <<< Set a fixed width (adjust value as needed) */
    /* Or use max-width if you prefer */
    /* max-width: 300px; */
    margin-left: auto; /* <<< Center the box within its column */
    margin-right: auto; /* <<< Center the box within its column */
    /* Adjust height as needed, maybe remove fixed height or use min-height */
    height: 60px;
    min-height: 50px; /* Ensure a consistent minimum height */
    background-color: #39ada2;
    border: 4px groove #ce4523;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: "Alfa Slab One", serif;
    padding: 15px; /* Adjust padding */
    box-sizing: border-box;
    color:#614c37;
    font-size: 1.5em;
}

/* Adjust text-box */
.text-box {
    width: 100%;
    min-height: 150px;
    background-color: #747f55;
    border: 1px solid #cfb175;
    border-radius: 3px;
    text-align: left;
    font-family: "Josefin Slab", serif;
    padding: 10px; /* Increased padding */
    padding-top: 0%; /* Remove top padding */
    box-sizing: border-box;
    color:#bbdebe;
    line-height: 1.1; /* Adjust line height (iow spacing between the lines) for better readability */
    font-size: 1.5em;
}

/* Modifier for the split text box */
.text-box-split {
    display: flex; /* Arrange children side-by-side */
    gap: 20px; /* Space between text and table */
    padding: 15px; /* Adjust padding if needed */
    align-items: flex-start; /* Align items to the top */
}

.text-content-left {
    flex-basis: 50%; /* Take up 50% of the width */
    flex-shrink: 0; /* Prevent shrinking */
}

.table-content-right {
    flex-basis: 50%; /* Take up 50% of the width */
    flex-grow: 1; /* Allow growing if needed */
    overflow-x: auto; /* Add horizontal scroll if table is too wide */
}

/* Basic Table Styling */
.table-content-right table {
    width: 100%; /* Make table fill its container */
    border-collapse: collapse; /* Remove space between borders */
    color: #bbdebe; /* Match text color */
}

.table-content-right th,
.table-content-right td {
    border: 1px solid #cfb175; /* Match border color */
    padding: 4.3px; /* Add padding inside cells */
    text-align: center; /* Align text left */
    font-size: 0.9em; /* Slightly smaller font for table */
}

.table-content-right th {
    color: #bbdebe; /* Contrasting color for header text */
}

/* Ensure lists inside text-box have proper margin */
.text-box ul {
    padding-left: 20px; /* Indent lists */
    margin-top: 0.5em;
    margin-bottom: 1em;
}

/* Add margin below each list item */
.text-box li {
    margin-bottom: 0.5em; /* Adjust this value for more/less space */
}

.text-box p:last-child {
    margin-bottom: 0;
}

/* .cantata-one-regular {
    font-family: "Cantata One", serif;
    font-weight: 800;
    font-style: bold;
  } */
  
  /* .alfa-slab-one-regular {
    font-family: "Alfa Slab One", serif;
    font-weight: 400;
    font-style: normal;
  } */

/* Tooltip Container - establishes positioning context */
.tooltip-container {
  position: relative; /* Needed for absolute positioning of the tooltip text */
  display: inline-block; /* Adjust if wrapping block elements */
  border-bottom: 1px dotted #bbdebe; /* Optional: visual cue for hover */
  cursor: help; /* Optional: change cursor */
}

/* Tooltip Text - hidden by default, styled box */
.tooltip-container .tooltip-text {
  visibility: hidden; /* Hide by default */
  width: 220px; /* Set a width for the tooltip box */
  background-color: #614c37; /* Darker background from your theme */
  color: #e5b050; /* Lighter text color from your theme */
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  border: 1px solid #cfb175; /* Border matching text boxes */

  /* Positioning */
  position: absolute;
  z-index: 1; /* Ensure it appears above other content */
  bottom: 125%; /* Position above the trigger element */
  left: 50%;
  margin-left: -110px; /* Use negative half of the width to center */

  /* Fade-in effect (optional) */
  opacity: 0;
  transition: opacity 0.3s;

  /* Font styling */
  font-family: "Josefin Slab", serif; /* Match text box font */
  font-size: 0.9em; /* Slightly smaller font */
  line-height: 1.3; /* Adjust line height */
  font-weight: normal; /* Ensure not bold if trigger is bold */
}

/* Show the tooltip on hover */
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Optional: Add an arrow below the tooltip */
.tooltip-container .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%; /* Position arrow at the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #614c37 transparent transparent transparent; /* Arrow color matches tooltip background */
}

/* Citation Styling */
.citation {
    vertical-align: super;
    font-size: 0.75em; /* Smaller font size */
    text-decoration: none;
    color: #e5b050; /* Link color matching theme */
    margin-left: 2px; /* Small space before citation */
    font-weight: bolder; /* Ensure not bold if parent is bold */
}

.citation:hover {
    text-decoration: underline;
}

/* Citation tooltip containers - no dotted underline */
.citation-tooltip {
    border-bottom: none !important;
    cursor: pointer; /* Change cursor to pointer for clickable citations */
}

/* References Section Styling */
.references {
    margin-top: 40px;
    padding: 20px; /* Add padding */
    border-top: 1px solid #cfb175; /* Border color matching theme */
    background-color: #747f55; /* Match text box background */
    border-radius: 3px; /* Match text box border radius */
    color: #bbdebe; /* Match text box text color */
    font-family: "Josefin Slab", serif; /* Match text box font */
    font-size: 1.1em; /* Slightly smaller font size for refs */
    line-height: 1.3; /* Adjust line height */
}

.references h2 {
    font-family: "Alfa Slab One", serif; /* Match subtitle font */
    color: #614c37; /* Match subtitle color */
    font-size: 1.5em; /* Match subtitle font size */
    text-align: center; /* Center the References heading */
    margin-bottom: 15px;
    margin-top: 0;
}

.reference {
    margin-bottom: 10px;
    padding-left: 2.5em; /* Indentation for number */
    text-indent: -2.5em; /* Hanging indent */
}

.reference .ref-num {
    font-weight: bold;
    margin-right: 0.5em; /* Space after number */
}

/* Ensure links within references match text color */
.reference a {
    color: #e5b050; /* Link color */
    text-decoration: underline;
}

.reference a:visited {
    color: #e5b050; /* Keep visited link color consistent */
}

#wts2110167 {
    display: none;
}

/* Phone view: Stack all cells vertically */
@media screen and (max-width: 768px) {
    /* Reset body padding for mobile */
    body {
        padding-top: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Stack the two-column layout vertically */
    .two-column-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }

    /* Make both columns full width */
    .left-column,
    .right-column {
        flex-basis: 100%;
        width: 100%;
    }

    /* Adjust subtitle boxes for mobile */
    .subtitle-box {
        width: 90%;
        max-width: 300px;
        height: auto;
        min-height: 50px;
        font-size: 1.3em;
        padding: 12px;
    }

    /* Adjust title box for mobile */
    .title-box {
        min-height: 80px;
        padding: 12px;
        border-width: 6px;
    }

    .title-box h1 {
        font-size: 1.5em;
        line-height: 1.2;
    }

    .small-title {
        font-size: 0.7em;
    }

    /* Adjust text boxes for mobile */
    .text-box {
        min-height: auto;
        padding: 12px;
        font-size: 1.1em;
        line-height: 1.3;
    }

    /* Stack the split text box content vertically */
    .text-box-split {
        flex-direction: column;
        gap: 15px;
    }

    .text-content-left,
    .table-content-right {
        flex-basis: 100%;
        width: 100%;
    }

    /* Make table scrollable on mobile */
    .table-content-right {
        overflow-x: auto;
    }

    .table-content-right table {
        font-size: 0.8em;
    }

    .table-content-right th,
    .table-content-right td {
        padding: 3px;
    }

    /* Adjust tooltip for mobile */
    .tooltip-container .tooltip-text {
        width: 180px;
        margin-left: -90px;
        font-size: 0.8em;
        padding: 8px;
    }

    /* Reduce gaps between elements */
    .left-column,
    .right-column {
        gap: 12px;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    body {
        padding-left: 5px;
        padding-right: 5px;
    }

    .two-column-container {
        padding: 0 5px;
    }

    .title-box h1 {
        font-size: 1.3em;
    }

    .subtitle-box {
        font-size: 1.1em;
        width: 95%;
    }

    .text-box {
        font-size: 1em;
        padding: 10px;
    }

    .table-content-right table {
        font-size: 0.75em;
    }
}
