/* post.css - Specific styles for individual blog posts */
html { scroll-padding-top: 120px; }

.post-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 90%;  /* Allow it to shrink */
    margin: 50px auto;
}


h1 {
    font-size: 2.5em;
    color: #333;
}

.curtains  {
  font-size: 1.25rem;
  line-height: 1.6;
  border-left: 4px solid #ccc;
  padding-left: 1em;
  margin-left: 0;
  font-style: italic;
}

blockquote {
  font-size: 1.25rem;
  line-height: 1.6;
  border-left: 4px solid #ccc;
  padding-left: 1em;
  margin-left: 0;
  font-style: italic;
}

.site-title {
  font-size: 2.5rem; /* Adjust as needed */
  color: red;
}


.post-meta {
    font-size: 1.25rem;
    color: #777;
     margin: 0.5rem 0 1.5rem 0;
    font-style: italic;
}



.content {
    margin-top: 20px;
    line-height: 1.8;
    color: #555;
}

.content p {
    margin-bottom: 20px;
}

.content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px auto;
}

.content a {
    color: #007bff;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content ul, .content ol {
    margin: 20px;
    padding-left: 30px;
}

.content blockquote {
    margin: 20px 0;
    padding: 15px;
    border-left: 5px solid #007bff;
    background-color: #f9f9f9;
    font-style: italic;
    color: #555;
}

.content-section .content-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

/* Reversed Layout - Image Left */
.content-section.reverse .content-container {
    flex-direction: row-reverse;
}

.text-content {
    flex: 2;
    min-width: 60%;
}

.image-content {
    flex: 1;
    max-width: 33%;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.content ul li,
.content ol li {
    font-size: 20px;
}


/* Responsive Behavior */
@media (max-width: 768px) {
    .content-section .content-container {
        flex-direction: column;
        gap: 15px;
    }

    .text-content, 
    .image-content {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .text-content {
        padding: 0 15px;
    }

    .image-content img {
        display: block;
        margin: 20px auto;
        width: 90%;
    }
}

@media (max-width: 768px) {
    .content-section .content-container,
    .content-section.reverse .content-container {
        flex-direction: column;
    }

    .image-content,
    .text-content {
        max-width: 100%;
    }
}

.disclaimer-container {
    background: #fefefe;                /* light background */
    border: 1px solid #ddd;             /* subtle border */
    border-left: 5px solid #007bff;     /* blue accent strip */
    border-radius: 6px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;                   /* clip content on collapse */
}

/* The toggle button (acts like a header bar) */
.disclaimer-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: background 0.3s ease;
}

.disclaimer-toggle:hover {
    background: #eee;
}

/* Disclaimer text */
.disclaimer-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    background: #fff;
    padding: 1rem;
    max-height: 1000px;                 /* open by default */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.disclaimer-content.closed {
    max-height: 0;
    padding: 0 1rem;                     /* collapse removes vertical padding */
    overflow: hidden;
}

/* Italic style inside the text */
.disclaimer {
    font-style: italic;
    color: #555;
}




.post-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

.post-navigation a {
    max-width: 45%;  /* Prevents links from exceeding half the container */
    word-wrap: break-word;  /* Ensures long titles break onto the next line */
    line-height: 1.4;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.post-navigation a:hover {
    text-decoration: underline;
}


.post-navigation .prev-post {
    text-align: left;
}

.post-navigation .next-post {
    text-align: right;
}

@media (max-width: 600px) {
    .post-navigation {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

.content ul {
    list-style-type: disc; /* Ensures bullet points appear correctly */
    padding-left: 30px; /* Adds spacing to align bullets properly */
    font-size: 20px;
}

.content ul li {
    margin: 10px 0; /* Adds space between list items */
    font-size: 20px; /* Increase font size */
    line-height: 1.8; /* Improve readability */
    color: #555; /* Ensure color consistency with content */
}

.channel {
    font-weight: bold;
    font-style: italic;
    color: #fff;
    background-color: #007bff; /* Blue background */
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-block;
}

/* Internal link styling */
.content a.internal-link {
    color: #007bff; /* Blue for internal links */
    text-decoration: none;
}

.content a.internal-link:hover {
    text-decoration: underline;
}

/* External link styling */
.content a.external-link,
.references a.external-link {
    color: #d9534f; /* Red for external links */
    text-decoration: none;
    position: relative;
}

/* External link icon */
.content a.external-link::after,
.references a.external-link::after {
    content: ' 🔗'; /* Small external link icon */
    font-size: 0.8em;
    display: inline-block;
    margin-left: 5px;
}

.content a.external-link:hover,
.references a.external-link:hover {
    text-decoration: underline;
}

.section-break {
  width: 100px;
  height: 2px;
  border: none;
  margin: 30px auto;
	background-color: gray;
border-radius: 5px;
}

iframe {
    width: 100%; /* Makes it responsive */
    max-width: 560px; /* Prevents it from getting too large */
    height: 315px;
    border-radius: 10px; /* Rounds the corners */
    border: 3px solid #007bff; /* Adds a blue border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
    display: block;
    margin: 20px auto; /* Centers it */
}

.dykbox {
  background-color: #f9f6e8;       /* soft parchment tone */
  border-left: 5px solid #8c7b52;  /* classic accent (like a quote box) */
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1rem;
  color: #333;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
}

.article-footer-note {
    margin-top: 3rem;
    padding: 1rem;
    background: #f8f8f8;
    border-top: 2px solid #007bff;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
}

.article-footer-note a {
    color: #007bff;
    text-decoration: none;
    word-break: break-all; /* so long URLs don’t overflow */
}

.article-footer-note a:hover {
    text-decoration: underline;
}

.article-footer-note .share-note {
    margin-top: 0.8rem;
    font-style: italic;
    color: #555;
}

.italics {
    font-style: italic;
}

/* References section */
.references {
    margin-top: 2rem;
}

/* Reference list */
.references ol {
    padding-left: 20px;
}

/* Individual references */
.references li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 1rem;
}

/* Links inside references */
.references a {
    word-break: break-word; /* prevents overflow on mobile */
}


/*Related Articles */
.series-nav {
  margin: 2em 0;
  padding: 1.5em;
  background: #f9f9f9;
  border-radius: 1rem;
}

.series-nav h3 {
  font-size: 1.2rem;
  margin-bottom: 1em;
  text-align: center;
}

.series-grid {
      display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
          gap: 1.5em;
            justify-items: center;
              align-items: start;
                text-align: center;
                }

                .series-item {
                  display: flex;
                    flex-direction: column;
                      align-items: center;
                        text-decoration: none;
                          color: inherit;
                            background: #fff;
                              border-radius: 1rem;
                                padding: 1em;
                                  transition: transform 0.2s ease, box-shadow 0.2s ease;
                                    height: 100%;
                                      box-sizing: border-box;
                                      }

                                      .series-item:hover {
                                        transform: translateY(-4px);
                                          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
                                          }

                                          .series-item img {
                                            width: 100%;
                                              max-width: 240px;
                                                height: 140px;
                                                  object-fit: cover;
                                                    border-radius: 0.75rem;
                                                      margin-bottom: 0.75em;
                                                      }

                                                      .series-item span {
                                                        display: block;
                                                          line-height: 1.3;
                                                            font-size: 0.95rem;
                                                              font-weight: 500;
                                                                max-width: 240px;
                                                                }

                                                                /* ✅ Responsive tweaks for tablets and phones */
                                                                @media (max-width: 768px) {
                                                                  .series-grid {
                                                                      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
                                                                          gap: 1em;
                                                                            }

                                                                              .series-item img {
                                                                                  max-width: 180px;
                                                                                      height: 110px;
                                                                                        }

                                                                                          .series-item span {
                                                                                              font-size: 1rem; /* slightly larger for readability */
                                                                                                  max-width: 180px;
                                                                                                    }
                                                                                                    }

                                                                                                    @media (max-width: 480px) {
                                                                                                      .series-grid {
                                                                                                          grid-template-columns: 1fr; /* stack vertically on small screens */
                                                                                                              gap: 1.2em;
                                                                                                                }

                                                                                                                  .series-item img {
                                                                                                                      max-width: 100%;
                                                                                                                          height: 150px;
                                                                                                                            }

                                                                                                                              .series-item span {
                                                                                                                                  font-size: 1.05rem;
                                                                                                                                      max-width: 90%;
                                                                                                                                        }
                                                                                                                                        }
                                                                                                                                        
}

@media (max-width: 768px) {

    .references li {
        font-size: 1rem;       /* slightly larger for readability */
        margin-bottom: 16px;   /* more breathing room */
        line-height: 1.7;
    }

    .references ol {
        padding-left: 18px;    /* slightly tighter indent */
    }
}
