:root {
  --ec-blue: #004494;
  --ec-yellow: #ffd617;
  --ec-grey: #404040;
  --background: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--ec-grey);
  line-height: 1.6;
}

/* Top navigation bar */
.top-bar {
  background: var(--ec-blue);
  color: #fff;
}

.top-bar .container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo .flag {
  color: var(--ec-yellow);
  margin-right: 0.5rem;
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.nav-links a:hover {
  color: var(--ec-yellow);
}

.search-form {
  display: flex;
  margin-top: 10px;
}

.search-form input {
  padding: 6px 8px;
  border: none;
  border-radius: 4px 0 0 4px;
  min-width: 150px;
}

.search-form button {
  padding: 6px 10px;
  border: none;
  background: var(--ec-yellow);
  color: var(--ec-blue);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1rem;
}

.search-form button:hover {
  background: #fbc11d;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--ec-blue) 0%, #003776 50%, var(--ec-blue) 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-block;
  background: var(--ec-yellow);
  color: var(--ec-blue);
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease-in-out;
}

.cta-btn:hover {
  background: #fbc11d;
}

/* Section styles */
section {
  padding: 60px 20px;
}

.features, .news {
  background: #f5f5f5;
}

.features h2, .news h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--ec-blue);
}

/* Cards for features */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 20px;
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
  transition: box-shadow 0.2s ease-in-out;
}

.card h3 {
  margin-top: 0;
  color: var(--ec-blue);
}

.card p {
  color: var(--ec-grey);
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* News list */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  max-width: 800px;
  margin: auto;
}

.news-item {
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  transition: box-shadow 0.2s ease-in-out;
}

.news-item h3 {
  margin-top: 0;
  color: var(--ec-blue);
}

.news-item a {
  color: var(--ec-blue);
  text-decoration: underline;
}

.news-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
  background: var(--ec-blue);
  color: #fff;
  padding: 20px 0;
}

.footer-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.footer-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--ec-yellow);
}

.footer-copy {
  font-size: 0.8rem;
  text-align: center;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .search-form {
    margin-top: 0;
  }
  .top-bar .container {
    flex-wrap: nowrap;
  }
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
