@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #004b8d; /* dark blue primary colour */
}

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

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 48px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  text-decoration: none;
  color: #004b8d;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s ease;
}

nav ul li a:hover {
  color: #39b54a; /* green accent */
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #004b8d;
  margin-bottom: 4px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    right: 0;
    top: 70px;
    background: #ffffff;
    flex-direction: column;
    width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border: 1px solid #e0e0e0;
  }
  nav ul.open {
    max-height: 500px;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Hero section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero .content {
  max-width: 700px;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #f5f5f5;
}

.btn {
  display: inline-block;
  background: #004b8d;
  color: #ffffff;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #39b54a;
}

.btn-secondary {
  background: transparent;
  color: #004b8d;
  border: 2px solid #004b8d;
}

.btn-secondary:hover {
  background: #004b8d;
  color: #ffffff;
}

/* Section styles */
section {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

section p {
  margin-bottom: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.card-content {
  padding: 1rem;
  flex-grow: 1;
}

.card-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.card-content p {
  flex-grow: 1;
}

.newsletter {
  background: #004b8d;
  color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.newsletter h3 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.newsletter input[type="email"] {
  padding: 0.5rem;
  width: 60%;
  max-width: 300px;
  border: none;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.newsletter button {
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 4px;
  background: #39b54a;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter button:hover {
  background: #2e903c;
}

/* Two-column layout for pages */
.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.two-col .text {
  flex: 1 1 400px;
}

.two-col .image {
  flex: 1 1 300px;
}

@media (max-width: 768px) {
  .two-col {
    flex-direction: column;
  }
}

/* Footer */
footer {
  background: #004b8d;
  color: #ffffff;
  padding: 2rem 1.5rem;
  text-align: center;
}

footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

footer ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

footer ul li a:hover {
  text-decoration: underline;
}

footer p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #d0e3f1;
}