/* General Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header */
.header {
  background: #0b3d91;
  color: #fff;
  padding: 15px 20px;
  position: relative;      /* normal at page load */
  transition: all 0.3s ease;
}

.header.is-stuck {
  position: fixed;         /* becomes floating when scrolling */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

body.has-stuck {
  padding-top: 80px;       /* prevents content from hiding behind header */
}

.header h1,
.header .logo {
  margin: 0;
  padding: 0;
}

.header nav {
  display: flex;
  gap: 20px;
}

.header nav a {
  color: #fff;
  font-weight: bold;
}

.header nav a:hover {
  color: #00bfff;
}

/* Sections */
section {
  padding: 60px 20px;
  text-align: center;
  scroll-margin-top: 80px; /* accounts for sticky header when clicking nav links */
}

/* Home Section */
.home-section {
  background: linear-gradient(to right, #0b3d91, #005bbb);
  color: #fff;
}

.home-section .btn {
  display: inline-block;
  margin-top: 20px;
  background: #fff;
  color: #0b3d91;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
}

.home-section .btn:hover {
  background: #e0e0e0;
}

/* Services */
.services-section {
  background: #f4f4f4;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* About Section */
.about-section {
  background: #fff;
  max-width: 900px;
  margin: auto;
}

/* Contact Section */
.contact-section {
  background: #e0e0e0;
}

.contact-section .btn {
  display: inline-block;
  margin-top: 20px;
  background: #0b3d91;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
}

.contact-section .btn:hover {
  background: #005bbb;
}


/* Blog Section */
/* Blog Header */
.blog-header {
  background: linear-gradient(to right, #0b3d91, #005bbb);
  color: #fff;
  padding: 100px 20px 60px;
  text-align: center;
}

.blog-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.blog-header p {
  font-size: 1.2rem;
}

/* Blog Grid */
.blog-section {
  background: #f4f4f4;
  padding: 60px 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Blog Card */
.blog-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

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

.blog-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-content h3 {
  margin-top: 0;
  color: #0b3d91;
  font-size: 1.5rem;
}

.blog-content p {
  flex: 1;
  margin: 10px 0 15px;
  color: #555;
}

.blog-content a {
  align-self: flex-start;
  background: #0b3d91;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.blog-content a:hover {
  background: #005bbb;
}

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



/* Consultation Page */
.consult-header {
  background: linear-gradient(to right, #0b3d91, #005bbb);
  color: #fff;
  text-align: center;
  padding: 100px 20px 60px;
}

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

.consult-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.consult-form {
  background: #f9f9f9;
  padding: 60px 20px;
}

.consult-form iframe {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


/* Desktop Menu */
.header nav {
  display: flex;
  gap: 20px;
}

.header nav a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.header nav a:hover {
  color: #00bfff;
}

/* ===== Mobile Menu ===== */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column; /* stack logo and menu */
    align-items: center;
  }

  .header nav {
    display: flex !important; /* always visible */
    flex-direction: column;   /* stack menu items */
    width: 90%;               /* small padding from edges */
    margin-top: 10px;
    background: #0b3d91;      /* same as header */
    border-radius: 12px;      /* rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  .header nav a {
    display: block;
    padding: 12px;
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.2);
    transition: background 0.3s;
  }

  .header nav a:first-child {
    border-top: none;
  }

  .header nav a:hover {
    background: rgba(255,255,255,0.2);
  }
}





/* Footer */
.footer {
  background: #0b3d91;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
