/* Global styles and variables */
:root {
  /* Dark futuristic palette reminiscent of high‑tech interfaces */
  --primary-color: #0a0f1f;       /* page backgrounds */
  --secondary-color: #11244c;     /* headers, cards */
  --accent-color: #00b0ff;        /* neon blue for links and buttons */
  --accent-color-dark: #0080c7;    /* darker shade for hover states */
  --light-color: #0e1b34;         /* section backgrounds */
  --body-font: 'Helvetica Neue', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  color: #e6eef8;
  line-height: 1.6;
  background: var(--primary-color);
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-color-dark);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--secondary-color);
  color: #ffffff;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: #ffffff;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.site-nav a:hover {
  opacity: 0.8;
}

/* Hero section */
/* Hero section */
/*
 * The hero has been tweaked to ensure there is ample vertical space
 * for the heading and subtitle. Padding is added to the content
 * container to push the text down and avoid crowding under the header.
 */
.hero {
  position: relative;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  /* Increase the height so text has room to breathe on larger screens */
  min-height: 75vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  /* Darken the overlay a bit more for better contrast on bright images */
  background: rgba(0, 0, 0, 0.65);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  color: #ffffff;
  max-width: 700px;
  /* Add top and bottom padding to center the text vertically */
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #e0e6ed;
  /* Constrain width so long descriptions don’t stretch across the page */
  max-width: 600px;
}

.btn-primary {
  background: var(--accent-color);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-color-dark);
}

/* Latest stories */
.latest-stories {
  padding: 3rem 0;
  background: var(--light-color);
}

.section-heading {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.story-card {
  background: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.story-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.story-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.story-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #e6eef8;
  font-weight: 600;
}

.story-excerpt {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #b0bed7;
}

.story-link {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.story-link:hover {
  text-decoration: underline;
}

/* Generic page sections (About, Contact) */
.page-section {
  padding: 3rem 0;
}

.page-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #ffffff;
}

.page-section p {
  font-size: 1rem;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #b0bed7;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #334e7e;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 1rem;
  background: var(--secondary-color);
  color: #e6eef8;
}

.contact-form button {
  background: var(--accent-color);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: var(--accent-color-dark);
}