/* Root Variables */
:root {
  --primary-color: #0248ae;
  --hover-color: silver;
  --white: #fff;
  --text-color: #333;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar Styles */
.navbar {
  padding: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  margin-right: 0.5rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--white);
}

.nav-right {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.nav-menu li a {
  padding: 0.5rem 1rem;
  color: var(--white);
}

.nav-menu li a:hover {
  background-color: var(--white);
  color: var(--primary-color);
  border-radius: 4px;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  background-color: #333;
  margin-top: 0.5rem;
  list-style: none;
  padding: 0;
  border-radius: 4px;
  min-width: 160px;
  z-index: 1000;
}

.dropdown li a {
  padding: 0.5rem 1rem;
  display: block;
  color: var(--white);
}

@media (min-width: 769px) {
  .has-dropdown:hover .dropdown {
    display: block;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background: var(--primary-color);
    padding-top: 4rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    z-index: 999;
  }

  .nav-menu.show {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-menu li {
    text-align: center;
  }

  .nav-menu li a {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .dropdown {
    position: static;
    background: var(--primary-color);
  }

  .has-dropdown .dropdown.show {
    display: block;
  }
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.hero-image {
  max-width: 100%;
  height: auto;
}

.hero-section h1 {
  margin-top: 20px;
  font-size: 2rem;
  color: var(--primary-color);
}

/* Studies Section */
.active-studies {
  padding: 40px 20px;
  background-color: #fff;
}

.active-studies-container {
  max-width: 1200px;
  margin: 0 auto;
}

.studies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.study-card {
  background-color: #fff;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  width: 300px;
  padding: 20px;
  text-align: center;
}

.study-card img {
  max-width: 100%;
  border-radius: 5px;
}

.study-card h3 {
  margin: 20px 0 10px;
}

.study-card p {
  margin: 10px 0;
}

.study-card .learn-more {
  display: inline-block;
  margin-top: 10px;
  color: #004080;
  text-decoration: none;
  font-weight: bold;
}

.study-card .learn-more:hover {
  text-decoration: underline;
  color: var(--hover-color);
}

/* Call-to-Action Section */
.cta-section {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--primary-color);
}

.button {
  background-color: var(--white);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  cursor: pointer;
}

.button:hover {
  background-color: var(--hover-color);
  color: var(--primary-color);
}

/* News Section */
.news-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.rss-feed marquee {
  font-size: 1rem;
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 20px;
}

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

.social-icons {
  margin-top: 10px;
}

.social-icons img {
  width: 30px;
  margin: 0 5px;
  transition: opacity 0.3s;
}

.social-icons img:hover {
  opacity: 0.7;
}