html {
  scroll-behavior: smooth;
}

body { 
  font-family: Arial, Helvetica, sans-serif;
}

/* Header styling: flex layout for logo, nav, and search */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: relative;
  z-index: 1; 
}

header img {
  height: 60px !important;
  max-width: 120px !important;
}

/* Navigation menu: horizontal flex with spacing */
nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 400;         
  font-size: 17px;
  font-family: "Poppins", Arial, sans-serif;  
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #2196f3; 
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover {
  color: #e5e5e5;
}

/* Search form container */
.search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 5px 15px;
  backdrop-filter: blur(6px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  margin: 0 20px; 
}

.search-form:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.search-form input[type="text"] {
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 15px;
  padding: 8px 10px;
  width: 160px;
  transition: width 0.3s ease;
}

.search-form input[type="text"]::placeholder {
  color: rgba(255,255,255,0.7);
}

.search-form:focus-within input[type="text"] {
  width: 220px; 
}

.search-btn {
  background: #1c3c78;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.search-btn::before {
  content: "→"; 
  font-size: 16px;
  color: #fff;
}

/* Sub-navigation bar */
.sub-nav {
  display: flex;
  justify-content: flex-start; 
  gap: 30px;
  background: #f4f4f4;
  padding: 15px 40px; 
  border-bottom: 2px solid #ddd;
}

.sub-nav a {
  text-decoration: none;
  color: #1c3c78;
  font-weight: 700;
  font-size: 16px;
  transition: color 0.3s;
}

.sub-nav a:hover {
  color: #000; 
}

/* Footer links section */
.links-section {
  background: #d0daf6ff;
  color: black;
  padding: 40px 10%;
}

.links-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.links-section .footer-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid black;
  display: inline-block;
  padding-bottom: 5px;
}

.links-section .footer-section ul {
  list-style: none;
  padding: 0;
}

.links-section .footer-section ul li {
  margin-bottom: 8px;
}

.links-section .footer-section a {
  color: black;
  text-decoration: none;
  transition: color 0.3s;
}

.links-section .footer-section a:hover {
  color: #1c3c78;
}

/* Main footer container */
footer {
  background: #f1f1f1;
  padding: 20px 10%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: black;
}

.footer-bottom a {
  color: black;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}