/* Add these styles to the existing style.css file */

/* Primary color scheme */
:root {
  --primary-color: hsla(78, 18%, 26%, 1); /* Main green accent color */
  --primary-light: hsla(76, 19%, 78%, 1); /* Light muted yellow-green */
  --primary-hover: #333333;
}

/* General Refinements */
body,
html {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

#root {
  overflow-x: hidden;
}

h2 {
  margin-bottom: 30px;
}

.section-title {
  margin-bottom: 50px;
}

.section-title p {
  margin-top: 20px;
  font-size: 18px;
  color: #555;
}

/* Ensure section titles have the green accent line */
.section-title h2::after {
  position: absolute;
  content: "";
  background: var(--primary-color);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}

/* Navigation color updates */
#menu.navbar-default .navbar-nav > li > a:after {
  background: var(--primary-color);
}

.navbar-default .navbar-nav > .active > a:after,
.navbar-default .navbar-nav > .active > a:hover:after,
.navbar-default .navbar-nav > .active > a:focus:after {
  background: var(--primary-color) !important;
}

/* Button Styling */
.btn-custom {
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
  padding: 14px 34px;
  letter-spacing: 1px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.3s;
}

.btn-custom:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Services Section Refinements */
#services {
  padding: 60px 0 30px;
  background: var(--primary-light);
}

.service-cards {
  margin-bottom: 30px;
}

#services .practice-card {
  margin-bottom: 20px;
  padding: 0 20px;
  min-height: auto;
}

#services i.fa {
  color: #fff;
  background: var(--primary-color);
  font-size: 32px;
  margin-bottom: 15px;
  padding: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

#services .policy-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 30px;
}

#services .col-md-6 {
  display: flex;
  flex-direction: column;
}

.policy-card {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  height: auto;
  width: 100%;
  position: relative;
}

.policy-card h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

/* Credentials Section Refinements */
#credentials {
  padding: 80px 0;
  background: rgba(
    233,
    236,
    215,
    0.3
  ); /* Very light version of the primary color */
}

#credentials .about-content {
  max-width: 850px;
  margin: 0 auto 50px;
  text-align: left;
  line-height: 1.8;
}

#credentials .about-content p {
  margin-bottom: 20px;
}

#credentials .credentials-section h2 {
  margin-bottom: 40px;
}

#credentials .credentials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 60px;
}

#credentials .credential-item {
  flex: 1 1 calc(33.33% - 20px);
  background: #fff;
  padding: 25px;
  border-radius: 5px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-height: 130px;
  transition: transform 0.3s, box-shadow 0.3s;
}

#credentials .credential-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#credentials .credential-item strong {
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
  color: var(--primary-color);
}

#credentials .credential-item p {
  margin: 0;
  font-size: 16px;
  color: #555;
}

#credentials .publications-section h2 {
  margin-bottom: 40px;
}

#credentials .publications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  #credentials .publications-grid {
    grid-template-columns: 1fr 1fr;
  }
}

#credentials .publication-card {
  background: #fff;
  padding: 20px;
  border-left: 4px solid var(--primary-color);
  border-radius: 5px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
}

#credentials .publication-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#credentials .btn-custom {
  margin: 30px auto 0;
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 5px;
  transition: background 0.3s;
}

#credentials .btn-custom:hover {
  background: var(--primary-hover);
}

/* Header/Intro Improvements */
.intro {
  height: 50vh; /* Reduced from 100vh to 50vh */
  min-height: 350px; /* Ensure minimum height on small screens */
  display: table;
  width: 100%;
  padding: 0;
  background: url(../img/intro-bg.jpg) center center no-repeat;
  background-color: #e5e5e5;
  background-size: cover;
  border-bottom: none; /* Ensure no border on bottom */
  margin-bottom: 0; /* No margin at bottom */
}

.intro .overlay {
  background: rgba(0, 0, 0, 0.2);
  height: 100%;
  border-bottom: none; /* Ensure no border on bottom */
}

header {
  border-bottom: none; /* Ensure no border on bottom */
  margin-bottom: 0; /* No margin at bottom */
}

header .intro-text {
  padding-top: 140px; /* Reduced from 350px */
  padding-bottom: 80px; /* Reduced from 200px */
  text-align: center;
}

/* About Section Refinements */
#about {
  padding-top: 60px; /* Reduced top padding */
  padding-bottom: 70px;
  border-top: none; /* Ensure no border on top */
  margin-top: 0; /* No margin at top */
  background: #fff; /* Ensure clean background */
}

.intro h1 {
  font-family: "Cormorant Garamond", serif;
  color: #fff;
  font-size: 60px; /* Slightly smaller */
  font-weight: 700;
  text-transform: none;
  margin-top: 0;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.intro p {
  color: #fff;
  font-size: 22px; /* Slightly smaller */
  font-weight: 400;
  line-height: 1.4;
  margin: 0 auto;
  margin-bottom: 40px; /* Reduced from 60px */
  max-width: 700px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* About Section Refinements */
#about {
  padding: 100px 0 70px;
}

#about img {
  max-width: 100%;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for profile photo */
@media (max-width: 991px) {
  #about img {
    max-width: 250px !important;
    width: 250px !important;
    margin: 0 auto 30px !important;
    display: block !important;
  }

  #about .col-xs-12.col-md-4 {
    text-align: center !important;
  }
}

@media (max-width: 767px) {
  #about img {
    max-width: 200px !important;
    width: 200px !important;
  }
}

@media (max-width: 480px) {
  #about img {
    max-width: 150px !important;
    width: 150px !important;
  }
}

/* About Section Refinements */
#about {
  padding: 100px 0 70px;
}

#about img {
  max-width: 100%;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#about .about-text h2 {
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

/* Keep the line under h2 */
#about .about-text h2::after {
  position: absolute;
  content: "";
  background: var(--primary-color);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
}

#about .about-text p {
  margin-bottom: 25px;
  line-height: 1.8;
  position: relative;
}

/* Credentials Section - Remove unwanted line */
#credentials .about-section .section-title h2::after,
#credentials .section-title h2::after,
#credentials h2::after,
#credentials .about-section h2::after {
  display: none !important;
  content: none !important;
  height: 0 !important;
  width: 0 !important;
  background: none !important;
}

/* Contact Button in Navigation */
.contact-button {
  background-color: hsla(
    76,
    19%,
    78%,
    0.8
  ) !important; /* Light green color with some transparency */
  color: var(--primary-color) !important; /* Dark green text for contrast */
  border-radius: 4px !important;
  padding: 6px 12px !important;
  margin: 8px 0 !important;
  transition: all 0.3s ease !important;
}

.contact-button:hover,
.contact-button:focus {
  background-color: var(--primary-color) !important;
  color: white !important;
}

/* Ensure the hover underline is removed */
#menu.navbar-default .navbar-nav > li > a.contact-button:after {
  display: none !important;
}

/* Specialties list styling */
#about .list-style ul {
  padding-left: 0;
  list-style-type: none; /* Remove default bullets */
}

#about .list-style li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  list-style-type: none; /* Explicitly remove bullets */
}

#about .list-style li:before {
  content: "\f00c";
  font-family: "FontAwesome";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
}

/* Contact Section */
#contact {
  padding: 100px 0 60px;
  background: var(--primary-color);
  color: #fff;
}

#contact .section-title h2 {
  color: #fff;
}

#contact .section-title p {
  color: #fff;
}

#contact .section-title h2::after {
  background: rgba(255, 255, 255, 0.3);
}

#contact .form-group {
  margin-bottom: 25px;
}

#contact .form-control {
  height: auto;
  padding: 12px 15px;
  border-radius: 4px;
  font-size: 16px;
}

#contact .contact-item {
  margin: 30px 0;
}

#contact .contact-item span {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 16px;
  color: #fff;
  display: block;
}

#contact .contact-info {
  padding-top: 30px;
}

#contact .btn-custom {
  background: transparent;
  border: 2px solid white;
  color: white;
}

#contact .btn-custom:hover {
  background: rgba(255, 255, 255, 0.2);
}

#contact .btn-custom.sending {
  background-color: #ffa500;
  color: white;
  border-color: #ffa500;
}

#contact .btn-custom.submitted {
  background-color: #4caf50;
  color: white;
  border-color: #4caf50;
}

/* Additional styles for the updated contact section */
#contact .contact-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: -5px;
  margin-bottom: 20px;
}

#contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

#contact a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

#contact .contact-item h4 {
  color: #fff;
  margin: 30px 0 15px;
  font-weight: 600;
  font-size: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
}

#contact .contact-info {
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  margin-top: 30px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  #credentials .credential-item {
    flex: 1 1 calc(50% - 20px);
  }

  .intro h1 {
    font-size: 50px;
  }

  .intro p {
    font-size: 20px;
  }

  header .intro-text {
    padding-top: 120px;
    padding-bottom: 70px;
  }
}

/* Mobile Responsiveness Fixes */
@media (max-width: 767px) {
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  #about,
  #services,
  #credentials,
  #contact,
  #footer,
  #header,
  .intro {
    width: 100% !important;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
  }

  /* Fix text wrapping */
  p,
  h1,
  h2,
  h3,
  h4,
  li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Improve readability on small screens */
  p,
  .contact-item p,
  .policy-card p {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Adjust publication cards for mobile */
  #credentials .publication-card {
    padding: 15px;
    font-size: 14px;
  }

  /* Fix lists on mobile */
  #about .list-style ul {
    padding-left: 0;
    margin-bottom: 20px;
  }

  #about .list-style li {
    padding-left: 22px;
    font-size: 15px;
  }

  /* Improve contact section spacing */
  #contact .contact-item {
    margin: 20px 0;
  }

  #contact .contact-info {
    padding: 20px 15px;
  }

  /* Fix potential nav overflow */
  .navbar-brand {
    max-width: 75%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Other mobile adjustments */
  #credentials .credential-item {
    flex: 1 1 100%;
  }

  #about,
  #services,
  #credentials,
  #contact {
    padding: 60px 0;
  }

  .intro h1 {
    font-size: 40px;
  }

  .intro p {
    font-size: 18px;
  }

  header .intro-text {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Navbar improvements */
  .navbar-default .navbar-toggle {
    border-color: var(--primary-color);
    margin-right: 10px;
  }

  .navbar-default .navbar-toggle .icon-bar {
    background-color: var(--primary-color);
  }

  .navbar-default .navbar-toggle:hover,
  .navbar-default .navbar-toggle:focus {
    background-color: var(--primary-light);
  }

  .navbar-default .navbar-collapse {
    border-color: transparent;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.95);
  }

  /* Make menu items easier to tap */
  .navbar-default .navbar-nav > li > a {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* Improve navbar brand */
  .navbar-brand {
    font-size: 18px;
    padding: 15px 10px;
  }

  /* Fix contact button in mobile menu */
  #menu.navbar-default .navbar-nav > li > a.contact-button {
    margin: 5px 15px !important;
    text-align: center;
  }

  /* Prevent navbar from sticking too far into content */
  .navbar-fixed-top {
    position: absolute;
  }

  /* Once navbar is expanded, stick it to the top again */
  @media screen and (min-height: 480px) {
    .navbar-fixed-top {
      position: fixed;
    }
  }
}

@media (max-width: 480px) {
  .intro {
    min-height: 300px;
  }

  .intro h1 {
    font-size: 32px;
  }

  header .intro-text {
    padding-top: 80px;
    padding-bottom: 50px;
  }

  #credentials .credential-item {
    padding: 15px;
  }

  #credentials .credential-item strong {
    font-size: 16px;
  }

  #credentials .credential-item p {
    font-size: 14px;
  }

  #credentials .publications-grid {
    gap: 15px;
  }
}

/* Fix for extremely small screens */
@media screen and (max-width: 320px) {
  .intro h1 {
    font-size: 28px;
  }

  .intro p {
    font-size: 16px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  #about .about-text h3,
  #services h3,
  .contact-item h3 {
    font-size: 18px;
  }

  .btn-custom {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Remove the problematic width from App.css */
@media screen and (max-width: 400px) {
  #features,
  #about,
  #services,
  #testimonials,
  #team,
  #contact,
  #footer,
  #portfolio {
    width: 100% !important;
  }
}
