/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header styles */
.header-global {
  background: var(--primary-color);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-logo img {
  height: 50px;
}

.header-logo-mobile {
  display: none;
}

/* Navigation */
.header-nav-container {
  background: #fff;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.main-menu li a {
  font-family: "Roboto Slab", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--primary-color);
  padding: 5px 0;
}

.main-menu li a:hover {
  color: var(--primary-color-light);;
  text-decoration: none;
}

/* Main wrapper */
.generic-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Frontpage header with logo */
.frontpage-header {
  text-align: center;
  padding: 20px 0;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 20px;
}

.frontpage-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.frontpage-logo img {
  height: 80px;
}

.ear {
  font-family: "Roboto Slab", sans-serif;
  font-size: 12px;
  color: #666;
  width: 200px;
}

.ear a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Countdown */
.countdown {
  position: relative;
  left: 50%;
  height: 101px;
  transform: translateX(-50%);
  width: 100vw;
  text-align: center;
  background: var(--primary-color);
  margin-bottom: 20px;
}

.countdown #title {
  font-family: "Roboto Slab", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 5px;
}

.countdown #time {
  font-family: "Roboto Slab", sans-serif;
  font-size: 18px;
  color: #666;
}

.countdown #time b {
  color: #ffffff;
  font-size: 28px;
}

.countdown #time i {
  font-style: normal;
  font-size: 11px;
  color: #eaeaea;
}

/* Feature Section - 3 column layout */
.fp-2x3-feature {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* Left column - secondary stories with thumbnails */
.left .stories-teaser {
  list-style: none;
  margin: 0;
  padding: 0;
}

.left .story-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.left .story-item:last-child {
  border-bottom: none;
}

.left .story-item .thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.left .text-headline-medium {
  font-family: "Roboto Slab", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
  display: block;
  margin-bottom: 8px;
}

.left .category-tease {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.left .category-author {
  font-family: "Roboto Slab", sans-serif;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

/* Center column - main featured article */
.feature {
  text-align: center;
}

.feature img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

.feature .text-headline-large {
  font-family: "Roboto Slab", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  display: block;
  margin-bottom: 10px;
}

.feature .category-author {
  font-family: "Roboto Slab", sans-serif;
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

.feature .excerpt {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

/* Right column - list of headlines */
.right .stories-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.right .story-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.right .story-item:last-child {
  border-bottom: none;
}

.right .text-headline-small {
  font-family: "Roboto Slab", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
}

.right .category-author {
  font-family: "Roboto Slab", sans-serif;
  font-size: 11px;
  color: #999;
  margin-bottom: 5px;
}

.right .excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

/* Loading state */
.loading {
  text-align: center;
  padding: 60px 20px;
  font-family: "Roboto Slab", sans-serif;
  color: #999;
}

.error-message {
  text-align: center;
  padding: 40px 20px;
  color: #c00;
  font-family: "Roboto Slab", sans-serif;
}


/* Responsive */
@media (max-width: 960px) {
  .fp-2x3-feature {
    grid-template-columns: 1fr;
  }

  .frontpage-logo {
    flex-direction: column;
    gap: 15px;
  }

  .ear {
    width: auto;
    text-align: center !important;
  }

  .feature .text-headline-large {
    font-size: 1.6rem;
  }
}

@media (max-width: 640px) {
  .header-logo-desktop {
    display: none;
  }

  .header-logo-mobile {
    display: block;
  }

  .header-logo-mobile img {
    height: 40px;
  }

  .main-menu {
    gap: 15px;
  }

  .main-menu li a {
    font-size: 12px;
  }

  .frontpage-logo img {
    height: 60px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-branding {
    max-width: 100%;
  }

  .footer-nav-links {
    justify-content: center;
  }
}
