/* ========== Base Styles ========== */
body {
    margin: 0;
    padding: 0;
    background-color: black; /* Ensures background is black */
    text-align: center;      /* Helps center inline elements */
}

.content-container {
    width: 90%;              /* Matches the navbar width */
    max-width: 1170px;       /* Prevents it from getting too wide */
    min-height: 300px;       /* Ensures a minimum height */
    margin: 20px auto;       /* Centers the container */
    background-color: #fff9cc; /* Light yellow */
    border: 3px solid #e6b800; /* Deep golden yellow */
    border-radius: 10px;       /* Slightly rounded edges */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    padding: 20px;           /* Space inside the container */
    display: flex;
    flex-direction: column;  /* Stack title + layout vertically */
    gap: 15px;               /* Space between children */
}

.page-title {
    color: #7d6608;
    border-bottom: 2px solid #7d6608;
    font-family: "Book Antiqua", "Times New Roman", serif;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding-bottom: 10px;
}

/* ========== News Layout ========== */
.news-layout {
    display: flex;
    flex-direction: row;     /* side-by-side on desktop */
    gap: 20px;
    align-items: flex-start;
}

.news-box {
    flex: 2;                 /* takes ~2/3 space */
    max-width: 780px;
    background: transparent;
    border: none;
    padding: 15px;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.news-box h2 {
    font-family: "Times New Roman", serif;
    margin-bottom: 10px;
}

#news-title {
    font-family: "Book Antiqua", "Times New Roman", serif;
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #222;
}

#news-date {
    font-family: "Book Antiqua", "Times New Roman", serif;
    font-size: 2rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1em;
}

#news-content-wrapper {
    max-height: none;
    overflow: visible;
    position: relative;
}

#news-content {
    font-family: "ChalkboardSE", "Comic Sans MS", Arial, sans-serif;
    font-size: 1.8rem;
    line-height: 1.6;
    color: #333;
}

#news-content::after {
    content: "...";
    position: absolute;
    bottom: 0;
    right: 0;
    padding-left: 10px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff9cc 90%);
    color: black;
    font-weight: bold;
    display: none !important; /* disabled for now */
    height: 3rem;
    width: 100%;
    text-align: right;
}

#read-post-link {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-family: "ChalkboardSE", "Comic Sans MS", Arial, sans-serif;
    font-size: 1.4rem;
    color: #a35d00; /* soft brownish orange */
    text-decoration: underline;
}

.read-post-archive {
    display: block;
    text-align: center;
    font-family: "ChalkboardSE", "Comic Sans MS", Arial, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #a35d00;
    text-decoration: underline;
    margin: 10px auto 5px auto;
}

/* ========== Sidebar ========== */
.news-sidebar {
    flex: 1;                 /* takes ~1/3 space */
    min-width: 200px;
    background: #fff9cc;
    border: 2px solid #e6b800;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
}

/* === Sidebar Blocks === */
.news-sidebar {
  display: flex;
  flex-direction: column; /* stack internal ad + older posts */
  gap: 20px;
}

/* Internal ad (Instagram portrait ratio, bright red placeholder) */
.sidebar-internal-ad {
  width: 100%;                /* match sidebar width */
  aspect-ratio: 4 / 5;        /* keep Instagram portrait proportion */
  background: red;            /* placeholder background */
  border-radius: 8px;         /* optional: rounded corners */
  display: flex;              /* center placeholder text */
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "ChalkboardSE", "Comic Sans MS", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

/* Older Posts block (basic placeholder styling) */
.sidebar-older-posts {
  background: #fff9cc;
  border: 2px solid #e6b800;
  border-radius: 8px;
  padding: 15px;
  font-family: "Book Antiqua", "Times New Roman", serif;
}
/* Older Posts list styling */
.older-posts-list {
  list-style: none;      /* removes the bullets */
  margin: 0;
  padding: 0;
}

.older-posts-list li {
  margin-bottom: 12px;   /* space between items */
}

.older-posts-list a {
  color: #a35d00;
  font-weight: bold;
  text-decoration: none;
  font-family: "Book Antiqua", "Times New Roman", serif;
  font-size: 1.2rem;   /* 🔥 bumped up from default */
}

.older-posts-list a:hover {
  text-decoration: underline;
}

.older-posts-list small {
  display: block;
  color: #555;
  font-style: italic;
  margin-top: 2px;
  font-size: 1rem;     /* 🔥 slightly larger date text */
}


/* ========== Responsive ========== */
@media screen and (max-width: 768px) {
    #news-title {
        font-size: 1.4rem !important;
    }
    #news-date {
        font-size: 1.1rem !important;
    }
    #news-content {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }

    .news-layout {
        flex-direction: column; /* stack vertically */
    }

    .news-sidebar {
        min-width: auto;
        width: 100%;
        margin-top: 20px;
    }
}
