/* ========================================
   Modern Medical Portal Header, Footer, Menu, Main & Section Styling
   Green, Blue, and White UI - Responsive
   Hero Background Image Included
   Section Green Fonts Changed to Black
   ======================================== */

/* ======= HEADER / NAVBAR ======= */
.header,
.navbar {
  background: #fff;
  border-bottom: 1.5px solid #eaeaea;
  box-shadow: 0 2px 12px rgba(28,109,208,0.06);
  z-index: 10;
  position: sticky;
  top: 0;
}

.navbar-brand {
  font-weight: 700;
  color: #1a263a !important;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}
.navbar-brand img {
  height: 36px;
  margin-right: 0.7em;
}

.navbar-nav {
  align-items: center;
}
.navbar-nav .nav-link {
  color: #1a263a !important;
  font-weight: 500;
  font-size: 1.07rem;
  letter-spacing: 0.2px;
  border-radius: 22px;
  padding: 0.6rem 1.15rem;
  margin: 0 0.1rem;
  transition: color 0.19s, background 0.18s;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover {
  color: #1c6dd0 !important;
  background: rgba(28, 109, 208, 0.09);
}

.navbar-toggler {
  border: 1.8px solid #1c6dd0 !important;
  color: #1a263a !important;
  border-radius: 8px;
  padding: 0.3em 0.8em;
}

/* Search bar and login */
input[type="search"] {
  border: 1.5px solid #eaeaea;
  border-radius: 8px;
  color: #1a263a;
  background: #fff;
  padding: 0.53em 1.2em;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(28,109,208,0.03);
  transition: border 0.2s;
}
input[type="search"]:focus {
  border: 1.5px solid #1c6dd0;
  outline: none;
}

.btn-login {
  background: #fff;
  color: #1c6dd0;
  border: 1.5px solid #1c6dd0;
  border-radius: 8px;
  font-weight: 600;
  padding: 0.44em 1.25em;
  transition: background 0.2s, color 0.2s;
  margin-left: 1.1em;
}
.btn-login:hover,
.btn-login:focus {
  background: #1c6dd0;
  color: #fff;
}

/* ======= HERO SECTION WITH BG IMG ======= */
.hero {
  background: linear-gradient(105deg, rgba(12,34,96,0.93) 65%, rgba(28,109,208,0.81) 100%), 
    url('../images/hero-bg.svg') no-repeat right bottom;
  background-size: cover;
  min-height: 440px;
  display: flex;
  align-items: center;
  border-radius: 0 0 28px 28px;
  position: relative;
  padding: 3.8rem 1.5rem 3.3rem 1.5rem;
}

.hero-content {
  background: rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 2.4rem 2rem 2rem 2rem;
  box-shadow: 0 4px 32px rgba(28,109,208,0.10);
  backdrop-filter: blur(2px);
}

.hero-content h1 {
  color: #fff !important;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1.17;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 16px rgba(28,109,208,0.18), 0 1px 0 #111;
  margin-bottom: 1.3rem;
}

.hero-content p,
.hero-content .lead {
  font-size: 1.21rem;
  color: #f3fbff !important;
  text-shadow: 0 1px 6px rgba(28,109,208,0.17);
  margin-bottom: 1.55rem;
  font-weight: 500;
  line-height: 1.6;
}

.hero .btn-primary,
.hero .btn-lg {
  background: linear-gradient(90deg, #2bb673 65%, #1c6dd0 100%);
  color: #fff !important;
  border: none;
  border-radius: 28px;
  font-weight: 700;
  font-size: 1.19rem;
  padding: 0.84rem 2.7rem;
  box-shadow: 0 8px 32px rgba(43,182,115,0.11);
  transition: background 0.19s, box-shadow 0.19s;
  text-shadow: none;
}
.hero .btn-primary:hover,
.hero .btn-primary:focus {
  background: linear-gradient(90deg, #1c6dd0 60%, #2bb673 100%);
  color: #fff !important;
  box-shadow: 0 12px 42px rgba(28,109,208,0.18);
}

/* ======= MAIN PAGE & SECTION STYLES ======= */
main, .main-content {
  background: #f7fafc;
  min-height: 100vh;
  padding-bottom: 2rem;
}

/* Section wrapper */
.section,
.features-section,
.about-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(28,109,208,0.06);
  margin: 2.2rem auto;
  padding: 2.7rem 2.2rem 2.2rem 2.2rem;
  max-width: 1180px;
  position: relative;
  z-index: 1;
}

@media (max-width: 991px) {
  .section,
  .features-section,
  .about-section {
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    margin: 1.3rem auto;
    max-width: 100%;
    border-radius: 12px;
  }
}
@media (max-width: 767px) {
  .section,
  .features-section,
  .about-section {
    padding: 1.2rem 0.5rem 1.1rem 0.5rem;
    margin: 1rem 0.2rem;
  }
}

/* Section titles */
.section-title, 
.features-section .section-title, 
.about-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1c6dd0;
  margin-bottom: 0.6em;
  text-align: center;
  letter-spacing: -0.5px;
}
.section-subtitle {
  color: #111 !important; /* changed from green to black */
  font-size: 1.18rem;
  margin-bottom: 2em;
  text-align: center;
  font-weight: 500;
}
.feature-title {
  font-weight: 600;
  font-size: 1.18rem;
  margin-bottom: 0.5em;
  color: #111 !important; /* changed from green to black */
}

/* Features Section */
.features-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 2rem;
  margin-top: 2.2rem;
}

.feature-item {
  background: #f7fafc;
  border: 1.5px solid #e1f2fb;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(43,182,115,0.07);
  padding: 2rem 1.3rem;
  max-width: 285px;
  flex: 1 1 265px;
  text-align: center;
  transition: box-shadow 0.18s, transform 0.17s;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 8px 22px rgba(28,109,208,0.12);
  transform: translateY(-5px) scale(1.03);
}

.feature-icon {
  font-size: 2.7rem;
  color: #2bb673;
  margin-bottom: 0.9em;
  display: block;
}
.feature-desc {
  color: #1a263a;
  opacity: 0.86;
  font-size: 1.01rem;
}

/* About Section */
.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.2rem;
}
.about-text {
  flex: 2 1 340px;
  color: #1a263a;
  font-size: 1.13rem;
  line-height: 1.7;
}
.about-img {
  flex: 1 1 220px;
  min-width: 185px;
  max-width: 280px;
  background: #e1f2fb;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(43,182,115,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}
.about-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}
@media (max-width: 991px) {
  .about-section {
    flex-direction: column;
    gap: 1.3rem;
    padding: 2rem 1rem;
  }
  .about-img {
    min-width: 120px;
    max-width: 220px;
  }
}

/* ======= FOOTER ======= */
.footer {
  background: #222e3a;
  color: #e1f2fb;
  padding: 2.2rem 0 0.7rem 0;
  border-top: 1px solid #eaeaea;
}
.footer a,
.footer .footer-link {
  color: #e1f2fb;
  font-weight: 500;
  transition: color 0.2s;
}
.footer a:hover,
.footer .footer-link:hover {
  color: #2bb673; /* green accent */
}

.footer .footer-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.7em;
}

.footer .copyright {
  color: #c6d6ee;
  font-size: 0.96em;
  text-align: center;
  margin-top: 1.5em;
}

.footer .newsletter input[type="email"] {
  border: 1.5px solid #eaeaea;
  border-radius: 8px;
  color: #1a263a;
  background: #fff;
  padding: 0.5em 1.1em;
}
.footer .newsletter input[type="submit"] {
  background: #2bb673;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.2em;
  font-weight: 600;
  margin-left: 0.5em;
  transition: background 0.2s;
}
.footer .newsletter input[type="submit"]:hover {
  background: #1c6dd0;
}

/* Footer menu lists */
.footer .footer-menu {
  color: #e1f2fb;
  font-size: 0.96em;
}
.footer .footer-menu a {
  color: #e1f2fb;
  margin-right: 1em;
}
.footer .footer-menu a:hover {
  color: #2bb673;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 991px) {
  .header, .footer {
    border-radius: 0 !important;
  }
  .navbar-nav .nav-link {
    padding: 0.8rem 1rem;
  }
}
@media (max-width: 767px) {
  .footer {
    padding: 1.2rem 0 0.6rem 0;
  }
  .navbar-brand img {
    height: 28px;
  }
}

/* ======= GENERAL MENU FONT COLORS ======= */
.menu,
.menu * {
  color: #1a263a !important;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
}

.menu a {
  transition: color 0.2s;
}
.menu a:hover, .menu a:focus {
  color: #1c6dd0 !important;
}

/* ======= EXTRAS FOR BETTER UX ======= */
/* Focus ring for accessibility */
.navbar-nav .nav-link:focus-visible,
.btn-login:focus-visible,
.hero .btn-accent:focus-visible,
input[type="search"]:focus-visible {
  outline: 2.5px solid #2bb673;
  outline-offset: 2px;
}

/* Slight card shadow for sections */
.section, .card, .info-box {
  box-shadow: 0 2px 14px rgba(28,109,208,0.04);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 1.5rem;
}

/* Subtle divider */
.divider {
  height: 1px;
  background: #eaeaea;
  margin: 1.5rem 0;
}





/* === Remove green hover color in footer links === */
.footer a,
.footer .footer-link {
  color: #e1f2fb;
  font-weight: 500;
  transition: color 0.2s;
}
.footer a:hover,
.footer .footer-link:hover {
  color: #fff !important; /* Changed from green to white */
}
.footer .footer-menu a:hover {
  color: #fff !important; /* Changed from green to white */
}