/* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Color Palette === */
:root {
  --primary-blue: #1E2A38;
  --secondary-gray: #5A6473;
  --background-light: #F5F5F5;
  --text-dark: #333333;
  --header-text: #4A5568;
  --muted-gray: #6D758F;
  --beige: #F5E8D0;       /* Theme beige color */
  --page-bg: #F5F5F5;     /* Page background color */

  /* Your brand (logo) color */
  --brand-color: #8EA8E3; /* Example hex; adjust to match your logo */
}

/* === Global Link Styling (Default) === */
a {
  color: var(--brand-color);  /* Brand color for most body links */
  font-weight: 600;           /* Moderate bold */
  text-decoration: none;      /* No underline */
}

a:hover,
a:focus {
  text-decoration: none;      /* Still no underline on hover/focus */
}

/* === Body === */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  color: var(--header-text);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

p {
  font-size: 1rem;
  color: var(--text-dark);
}

/* === Header Styling === */
.site-header {
  margin: 0;
  padding: 0;
}

.logo-container {
  text-align: center;
  margin: 5px 0; /* Reduced vertical spacing */
}

.logo-container img {
  width: 40%;  /* Desktop logo size */
  height: auto;
}

/* === Navigation Styling === */
.site-navigation {
  width: 100%;
  padding: 16px 0;         /* Increased vertical padding */
  background-color: var(--primary-blue);
  position: relative;
}

.site-navigation .nav-links {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; /* Even spacing between links */
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navigation .nav-links li a {
  padding: 10px 15px;
  font-size: 1rem;
}

/* Hamburger Button - Hidden on Desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger .hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  /* We'll keep these lines visible in white for contrast */
  background-color: #F5F5F5;
}

/* === Latest Posts Automatic Scrolling Bar === */
.latest-posts-bar {
  overflow: hidden;  /* Hide content outside the viewport */
  background-color: var(--background-light);
  padding: 10px 0;
}

.latest-posts-list {
  display: inline-flex;
  animation: scrollPosts 30s linear infinite; /* Slower scroll speed */
  list-style: none;  /* Remove default bullet points */
  margin: 0;
  padding: 0;
}

.latest-posts-list li {
  margin: 0 10px;
  white-space: nowrap;
  position: relative;
}

.latest-posts-list li:not(:last-child)::after {
  content: " |";
  margin-left: 10px;
  color: var(--header-text);
}

.latest-posts-list li a {
  font-size: 1rem;
  pointer-events: auto;
}

/* Keyframes for continuous scrolling */
@keyframes scrollPosts {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* === Content Sections === */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

/* === Footer === */
footer {
  background: var(--primary-blue);
  color: var(--page-bg);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.75rem;  /* Smaller text globally in footer */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.footer-left,
.footer-right {
  width: 50%;
  padding: 5px 0;
}

.footer-left {
  text-align: left;    
  padding-left: 20px;  /* Add spacing from the edge */
}

.footer-left p {
  margin-bottom: 5px;
  /* Ensure the same size as footer-right, which is also 0.75rem by default */
  font-size: 0.75rem;
}

.footer-right {
  text-align: right;
  padding-right: 20px; 
}

.footer-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-right ul li {
  display: block;
  margin-bottom: 5px;
  font-size: 0.75rem;
}

/* === Subscription Box === */
.subscribe-box {
  background: var(--primary-blue);
  color: var(--page-bg);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.subscribe-box input[type="email"] {
  padding: 10px;
  border: none;
  border-radius: 5px;
  width: 70%;
  margin-top: 10px;
}

.subscribe-box button {
  background: var(--secondary-gray);
  color: var(--page-bg);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  /* Mobile Navigation: Show hamburger, hide nav-links by default */
  .hamburger {
    display: block;
    position: static;
    margin: 0 auto;
    transform: none;
  }

  .site-navigation .nav-links {
    display: none;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    background-color: var(--primary-blue);
    position: static;
    text-align: center;
  }

  .site-navigation .nav-links.open {
    display: flex;
  }

  .site-navigation .nav-links li {
    margin: 10px 0;
  }

  /* Remove the ticker on mobile */
  .latest-posts-bar {
    display: none;
  }

  /* Increase logo size by 40% on mobile (from 40% to 56%) */
  .logo-container img {
    width: 56%;
  }

  /* Footer: Stack columns on mobile */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ==================================
   Link Overrides for Header and Footer
   ================================== */

/* 1) Header/Nav links: White text, normal weight */
.site-navigation .nav-links a {
  color: #FFFFFF !important;
  font-weight: 400;  /* Normal instead of bold */
}

/* 2) Footer links: White text, normal weight */
footer a {
  color: #FFFFFF !important;
  font-weight: 400;   
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
}

/* 3) Footer paragraphs: ensure white text too */
footer p {
  color: #FFFFFF !important;
}
