/* ===========================
   THE BAR OLYMPICS — style.css
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #f1f1f1;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Site Header --- */
.site-header {
  background: #fff;
  padding: 18px 0 12px;
  border-bottom: 1px solid #ddd;
}

.site-title {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}

.site-title a {
  color: #1565c0;
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: underline;
}

.site-tagline {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #777;
  letter-spacing: 1px;
  margin-top: 4px;
  text-transform: uppercase;
}

/* --- Navigation (Updated with Dropdown Support) --- */
.main-nav {
  background: #222;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

/* Anchor point for submenus */
.main-nav ul li {
  position: relative;
}

/* Top-level links ONLY */
.main-nav ul > li > a {
  display: block;
  padding: 12px 14px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.15s;
}

/* Active and Hover states for TOP-LEVEL only */
.main-nav ul > li > a:hover,
.main-nav ul > li > a.active {
  background: #444;
}

/* --- Submenu (Dropdown) Styles --- */
.main-nav .submenu {
  display: none;             /* Hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a1a; /* Distinct darker background */
  padding: 0;
  margin: 0;
  min-width: 240px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
}

.main-nav .submenu li {
  width: 100%;
  float: none;
}

/* Submenu links styling */
.main-nav .submenu li a {
  display: block;
  padding: 12px 18px;
  background: #1a1a1a !important; /* Prevents inheriting the #444 from parent */
  color: #fff !important;         /* Ensures white text */
  text-align: left;
  text-transform: uppercase;
  font-size: 11px;
  border-bottom: 1px solid #2a2a2a;
  white-space: nowrap;
}

/* Individual submenu item hover */
.main-nav .submenu li a:hover {
  background: #333 !important;
  color: #1565c0 !important;      /* Blue highlight */
}

/* Hover Trigger */
.main-nav li:hover > .submenu {
  display: block;
}

/* --- Main Content Area --- */
.main-content {
  padding: 24px 16px;
}

/* --- Featured Post --- */
.post--featured {
  background: #fff;
  margin-bottom: 30px;
  padding-bottom: 20px;
}

.post--featured .post__image {
  width: 100%;
  margin-bottom: 10px;
}

.post--featured .post__image img {
  width: 100%;
  max-width: 540px;
  height: auto;
}

.post--featured .post__title {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #222;
}

.post--featured .post__title a:hover {
  color: #1565c0;
}

.post--featured .post__excerpt {
  font-size: 16px;
  color: #444;
  max-width: 600px;
  margin-right: auto;
}

/* --- Post List (Index Page Fix) --- */
.post-list {
  margin-top: 40px;
}

.post--list {
  display: block;            /* Stack everything vertically */
  padding: 40px 0;           /* Vertical space for the separator */
  border-top: 1px solid #ccc; /* This is your Horizontal Rule */
  overflow: hidden;          /* Contain all elements inside */
}

/* Ensure the very first item in the list doesn't have a double line 
   under the featured post */
.post--list:first-child {
  border-top: 1px solid #ccc; 
}

.post__thumbnail img {
  max-width: 250px;          /* Keep the shirt images a reasonable size */
  height: auto;
  margin: 20px 0;
  display: block;
}

.post__excerpt {
  display: block;
  font-size: 15px;
  line-height: 1.6;
}

.post--list:last-child {
  border-bottom: 1px solid #ddd; /* The horizontal line at the very bottom of the list */
}

/* --- List Formatting (Articles) --- */
.post__excerpt ul, 
.post__excerpt ol {
  list-style-position: inside;
  padding-left: 20px;
  margin-bottom: 15px;
}

.post__excerpt ol {
  padding-left: 25px; 
}

/* Sub-lists in articles */
.post__excerpt ul ul, 
.post__excerpt ol ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 5px;
}

.post__excerpt ul ul ul {
  list-style-type: square;
}

/* --- Footer --- */
.site-footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 16px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  margin-top: 30px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .site-title {
    font-size: 20px;
  }
  .main-nav ul {
    flex-wrap: wrap;
  }
  .main-nav ul li a {
    padding: 9px 10px;
    font-size: 11px;
  }
  .post--list {
    flex-direction: column;
  }
}