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

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* --- Navbar --- */
.navbar {
  background: #003366;
  color: white;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ff6600;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  background: linear-gradient(rgba(0,51,102,0.8), rgba(0,51,102,0.8)), url('../images/cloud.jpg') center/cover;
  color: white;
  padding: 80px 20px;
}

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cta-btn {
  background: #ff6600;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

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

/* --- Cards / Grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 5%;
}

.card {
  background: #f4f4f4;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* --- Footer --- */
footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #003366;
    width: 200px;
    display: none;
    padding: 15px;
  }
  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 500px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cta-btn {
    padding: 10px 18px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

/* --- Contact Page Professional Styling --- */
.contact-info {
  margin-top: 15px;
}

.contact-info p {
  margin: 5px 0;
  font-size: 1rem;
  color: #333;
}

.email-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  font-size: 0.9rem;
  background-color: #004aad;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.email-btn:hover {
  background-color: #00337a;
}

/* --- Blog Read More Button Fix --- */
.read-more {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 0.9rem;
  background-color: #004aad;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #00337a;
}

/* --- Dropdown Menu (Optimized) --- */
.dropdown {
  position: relative;
}

.dropdown .dropbtn {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  display: inline-block;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #004aad;
  min-width: 200px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content li a {
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}

.dropdown-content li a:hover {
  background-color: #00337a;
}

/* Desktop Hover */
@media (min-width: 768px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Mobile Toggle (Overrides Absolute) */
@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    box-shadow: none;
  }
  .dropdown.active .dropdown-content {
    display: block;
  }
}
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* pushes the footer to the bottom */
}

footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 15px 0;
}
