/* Additional custom styles */
.listing-grid {
  margin-top: 2rem;
}

.listing-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.issue-number {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.5rem;
}

.feature-article {
  margin-bottom: 3rem;
}

.feature-article .title {
  font-size: 2rem;
  line-height: 1.2;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.feature-article .description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
/* Article Page Styling */
.article-header {
  position: relative;
  margin-bottom: 2rem;
}

.article-header-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.article-header-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 3rem 2rem 2rem;
  border-radius: 0 0 12px 12px;
}

.article-category {
  display: inline-block;
  background-color: $terracotta;
  color: white;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.article-title {
  color: white;
  font-family: 'Bebas Neue', serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  max-width: 80%;
}

.article-meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.article-author {
  font-weight: 600;
  margin-right: 1rem;
}

.article-date {
  margin-right: 1rem;
}

.article-reading-time {
  margin-left: auto;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.article-content h2 {
  font-family: 'Jost', serif;
  font-weight: 700;
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: $dark;
}

.article-content h3 {
  font-family: 'Jost', serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: $dark;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content blockquote {
  border-left: 3px solid $terracotta;
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
  background-color: rgba(155, 114, 170, 0.05);
  border-radius: 0 8px 8px 0;
}

.article-content figure {
  margin: 2rem 0;
}

.article-content figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

.article-content img {
  max-width: 100%;
  border-radius: 8px;
}

.article-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
}

.article-content th {
  background-color: rgba(85, 40, 111, 0.1);
  color: $aubergine;
  font-weight: 600;
  padding: 0.7rem 1rem;
  text-align: left;
  border: 1px solid #ddd;
}

.article-content td {
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
}

.article-content tr:nth-child(even) {
  background-color: rgba(155, 114, 170, 0.05);
}

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.article-tags {
  margin-bottom: 2rem;
}

.article-tag {
  display: inline-block;
  background-color: rgba(155, 114, 170, 0.1);
  color: $aubergine;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.article-share {
  margin-bottom: 2rem;
}

.article-share-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: $dark;
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  color: $dark;
  transition: all 0.2s ease;
}

.share-button:hover {
  background-color: $aubergine;
  color: white;
  transform: translateY(-2px);
}

.related-articles {
  margin-top: 3rem;
}

.related-title {
  font-family: 'Bebas Neue', serif;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: $dark;
}

@media (max-width: 767.98px) {
  .article-header-image {
    height: 300px;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .article-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .article-reading-time {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .article-content {
    font-size: 1rem;
  }
}

.highlight-section {
  background: #f8f9fa;
  padding: 3rem 0;
  margin: 3rem 0;
}

.newsletter-section {
  background: #86a1db;
  color: white;
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
}

.newsletter-section h2 {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  width: 70%;
  padding: 0.75rem;
  border: none;
  border-radius: 3px 0 0 3px;
}

.newsletter-form button {
  width: 30%;
  padding: 0.75rem;
  border: none;
  background: #86a1db;
  color: white;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 2px;
  background: #86a1db;
}

.full-width-image {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  max-width: 100vw;
  height: 500px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .feature-article .title {
    font-size: 1.5rem;
  }
  
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .full-width-image {
    height: 300px;
  }
}


/* Wider Parallax Section */
.parallax {
  position: relative;
  width: 80%; /* Increased from 50% */
  min-height: 800px;
  min-width: 800px; /* Increased from 600px */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover; /* Changed from contain for better full-width appearance */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: Ghostwhite;
  overflow: hidden;
  margin: auto;
  border-radius: 12px; /* Added for nicer edges */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* Added subtle shadow */
}

/* Make sure parallax works well on different screen sizes */
@media only screen and (max-width: 992px) {
  .parallax {
    width: 90%;
    min-width: 90%;
    background-attachment: scroll; /* Better mobile experience */
  }
}

@media only screen and (max-width: 768px) {
  .parallax {
    width: 95%;
    min-width: 95%;
    min-height: 350px;
  }
}

/* For very small screens */
@media only screen and (max-width: 480px) {
  .parallax {
    width: 100%;
    min-width: 100%;
    min-height: 300px;
    border-radius: 8px;
  }
}

/* Enhanced Parallax Title */
.parallax-title {
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1.5rem 2.5rem;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.parallax-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s;
}

.parallax-title:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
  background-color: rgba(0, 0, 0, 0.5);
}

.parallax-title:hover::before {
  left: 100%;
}

.parallax-title h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  position: relative;
}

.parallax-title:hover h1 {
  transform: scale(1.05);
  color: #fff;
}

/* Optional: Add a subtle glow effect on hover */
.parallax-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.parallax-title:hover::after {
  opacity: 1;
}

/* Add bouncing animation for additional interaction */
@keyframes subtle-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.parallax-title:hover h1 {
  animation: subtle-bounce 1s ease infinite;
}

/* Make the animation more responsive */
@media (max-width: 768px) {
  .parallax-title {
    padding: 1rem 1.5rem;
  }
  
  .parallax-title h1 {
    font-size: 1.8rem;
  }
  
  .parallax-title:hover h1 {
    transform: scale(1.02);
  }
}

@media only screen and (max-device-width: 1366px) {
  .parallax {
    background-attachment: scroll;
  }
}


/* Styling for Quarto's built-in columns */
.columns {
  margin-bottom: 2rem;
}

.columns .column {
  padding: 0 1rem;
}

.columns .column:first-child {
  padding-left: 0;
}

.columns .column:last-child {
  padding-right: 0;
}


.quarto-title-block .quarto-title-banner,
.quarto-title-meta, 
article.content,
.content-body,
.page-columns,
.posts-container,
.content-block {
  max-width: 1800px !important; /* Increase from default (usually 800-900px) */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  font-family: "Jost";
}

/* Ensure body width is maximized within the container */
.page-columns .content {
  width: 100% !important;
}

/* Reduce unnecessary padding in containers */
.quarto-container-body {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Keep good readability for single-column text while allowing wider columns */
.page-columns .column-page {
  max-width: 1200px !important;
}

/* Ensure column content doesn't get too tight on medium screens */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .columns .column {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Improve spacing for visualization frames */
.viz-frame, .column-card {
  padding: 1rem;
  margin-bottom: 1.5rem;
}

/* Ensure R plots can expand to fill the available width */
.cell-output-display img,
.cell-output-display svg {
  max-width: 100%;
  height: auto;
}

/* Improve the layout of columns at different breakpoints */
@media (min-width: 1200px) {
  .columns {
    display: flex;
    gap: 2.5rem; /* Increase gap between columns for better separation */
  }
  
  .columns .column {
    flex: 1;
    min-width: 0; /* Helps prevent overflow issues */
  }
}

/* Add a class that can be used for extra-wide content when needed */
.wide-container {
  width: 100%;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}


/* Responsive iframe container */
.iframe-container {
  font-family: "Jost";
  overflow: auto;
  margin-bottom: 2rem;
}

/* Full height and width iframe */
.iframe-container iframe {
  font-family: "Jost";
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Custom size iframes */
.iframe-large {
  font-family: "Jost";
  min-height: 750px;
  width: 70%;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  margin: 0 auto; /* Center the iframe */
}

.iframe-medium {
  font-family: "Jost";
  min-height: 500px;
  width: 100%;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* Team Member Profile with Small Rectangular Image */
.team-member {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.team-member-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.team-member-image {
  width: 180px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.team-member-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.team-member-info {
  flex: 1;
}

.team-member-name {
  font-family: 'Bebas Neue', serif;
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  color: #2a2b2e;
}

.team-member-role {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #007aff;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.team-member-bio {
  margin-bottom: 1.25rem;
  line-height: 1.6;
  color: #555;
}

.team-member-social {
  display: flex;
  gap: 1rem;
}

.team-member-social a {
  color: #2a2b2e;
  transition: color 0.2s ease, transform 0.2s ease;
}

.team-member-social a:hover {
  color: #007aff;
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .team-member-header {
    flex-direction: column;
  }
  
  .team-member-image {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 150px;
    height: 120px;
  }
}

/* Insight Cards Styling */
.insights-container {
  margin-bottom: 2rem;
}

.insight-card {
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  color: #2a2b2e;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.insight-card h3 {
  font-family: 'Jost', serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
}

.insight-card h4 {
  font-family: 'Jost', serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
}

.insight-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.insight-icon {
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 5rem;
  opacity: 0.1;
  transform: rotate(15deg);
  z-index: 1;
}


/* Card color variations */
.insight-card.primary {
  background-color: rgba(188, 75, 81, 0.08);
  border-left: 3px solid #ff3b30;
}

.insight-card.secondary {
  background-color: rgba(134, 161, 219, 0.08);
  border-left: 3px solid #007aff;
}

.insight-card.tertiary {
  background-color: rgba(55, 108, 61, 0.08);
  border-left: 3px solid #34c759;
}

.insight-card.quaternary {
  background-color: rgba(212, 167, 59, 0.08);
  border-left: 3px solid #ffcc00;
}

.insight-card.quinary {
  background-color: rgba(238, 140, 108, 0.08);
  border-left: 3px solid #ff9500;
}

/* Visualization section improvements */
.visualization-container {
  margin-top: 2rem;
}

.viz-frame {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.viz-frame h4 {
  font-family: 'Jost';
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}

.viz-iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  justify-content: center;
}

.caption-container {
  margin-top: 0.5rem;
}

.caption-text {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .insight-card {
    padding: 1.2rem;
  }
  
  .insight-card h3 {
    font-size: 1.1rem;
  }
  
  .insight-card p {
    font-size: 0.9rem;
  }
  
  .viz-iframe {
    height: 350px;
  }
}

/* Add this to your styles.css file */
.methods-page {
  position: relative;
}

.methods-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/graphs/SVG/Asset 13 - Fox Rockett Studio.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.1; /* Adjust for subtlety */
  z-index: -1;
  pointer-events: none; /* Ensures the background doesn't interfere with clicks */
}



