/* Flexible Content Layout System
   These styles provide a consistent system for creating
   single and multi-column layouts with consistent spacing */

/* Main container styles */
.flexible-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: justify;
  font-family: 'Cardo', serif;
  line-height: 1.6;
}

/* Section styles */
.section {
  margin-bottom: 3rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
  font-size: 1.8rem;
}

/* Decorative heading with Bilbo Swash Caps font */
.decorative-heading {
  font-family: 'Bilbo Swash Caps', cursive;
  font-size: 3rem;
  color: #B74233;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: normal;
}

/* Layout styles */
.single-column,
.two-column {
  max-width: 800px;
  margin: 0 auto;
}

/* Narrow single column (width of one column from two-column equal) */
.single-narrow-column {
  max-width: 375px; /* Approximately half of the 800px max-width, accounting for gap */
  margin: 0 auto;
  width: 100%;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.two-column.text-image {
  grid-template-columns: 3fr 2fr;
}

.two-column.image-text {
  grid-template-columns: 2fr 3fr;
}

.two-column.equal {
  grid-template-columns: 1fr 1fr;
}

.column-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.centered-image {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Quote styles */
.quote {
  margin: 2rem 0;
  padding: 1.5rem 2rem 2.5rem 2rem; /* Extended bottom padding */
  position: relative;
  background-color: #f9f6f0;
  border-left: 4px solid #B74233;
  width: 100%;
  box-sizing: border-box;
}

.quote.roman {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 1.1em;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.quote.non-roman {
  font-family: 'Sahitya', serif;
  font-size: 1.25em;
  line-height: 1.8;
  text-align: center;
  letter-spacing: 0.02em;
}

.quote.non-roman p {
  text-align: center;
  margin: 0 auto;
  width: 100%;
  display: block;
}

/* Combined quote style with both non-roman and roman text */
.quote.combined .sanskrit {
  font-family: 'Sahitya', serif;
  font-size: 1.25em;
  line-height: 1.8;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  display: block;
}



.quote.combined .translation {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 1.1em;
  letter-spacing: 0.02em;
  margin-top: 1rem;
  display: block;
  text-align: center;
}

.quote::before {
  content: '\201C'; /* Opening quotation mark */
  font-family: Georgia, serif;
  font-size: 4rem;
  position: absolute;
  left: 10px;
  top: -20px;
  color: #B74233;
  opacity: 0.3;
}

.quote::after {
  content: '\201D'; /* Closing quotation mark */
  font-family: Georgia, serif;
  font-size: 4rem;
  position: absolute;
  right: 10px;
  bottom: -60px; /* Moved lower to avoid touching the source text */
  color: #B74233;
  opacity: 0.3;
}

.quote-source {
  display: block;
  text-align: right;
  font-style: normal;
  font-weight: bold;
  margin-top: 1rem;
  color: #666;
}

.quote.non-roman .quote-source {
  font-size: 0.7em; /* Smaller relative to the larger non-roman text */
  font-family: 'Cardo', serif; /* Reset to the regular font */
}

/* Button styles */
.button {
  display: inline-block;
  background-color: #B74233;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #9a3729;
}

/* Text styles */
.content-heading {
  color: #B74233;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* Text alignment utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .two-column,
  .two-column.text-image,
  .two-column.image-text,
  .two-column.equal {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .column-reverse-mobile {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .decorative-heading {
    font-size: 2.5rem;
  }
}
