/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Top Header */
.top-header {
  background-color: #0056b3;
  padding: 20px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.top-header .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

/* Header */
header {
  background-color: white;
  color: #333;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.logo img {
  height: 80px;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-menu ul li {
  margin: 0 1rem;
  position: relative;
}

.nav-menu ul li a {
  text-decoration: none;
  color: #1e1d19;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
  color: #086eda;
}

/* Services Dropdown */
.services-dropdown {
  display: flex;
  align-items: center;
  position: relative;
}

.services-dropdown .services-link {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: auto;
}

.services-dropdown .dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  padding: 0;
  margin-left: 5px; /* Ensure no gap between text and icon */
  display: flex;
  align-items: center;
}

.services-dropdown .dropdown-toggle i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.dropdown-toggle.active i {
  transform: rotate(180deg);
}

/* Dropdown Content */
.services-dropdown .dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1;
  padding: 1rem;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: row;
  width: max-content;
}

.services-dropdown.active .dropdown-content {
  display: flex;
}

/* Dropdown Columns */
.dropdown-columns {
  display: flex;
  justify-content: space-between;
}

.dropdown-column {
  padding: 1rem;
  text-align: left;
}

.dropdown-column h3 {
  color: #1e1d19;
  margin-bottom: 0.5rem;
  font-weight: bold;
  border-bottom: 2px solid #086eda;
  padding-bottom: 0.5rem;
}

.dropdown-column a {
  color: #1e1d19;
  padding: 0.5rem 0;
  display: block;
  text-decoration: none;
}

.dropdown-column a:hover {
  color: #086eda;
}

/* Divider between Accounting and Tax Services */
.dropdown-divider {
  width: 1px;
  background-color: #ddd;
  margin: 0 20px;
  display: block;
}

/* Header Buttons */
.header-buttons {
  display: flex;
  align-items: center;
}

/* Schedule Button */
.schedule-btn {
  background-color: #0077be;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-right: 10px;
}

.schedule-btn:hover {
  background-color: #004494;
  color: #fff;
}

/* Call Button */
.call-btn {
  background-color: #0077be;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.call-btn:hover {
  background-color: #005fa3;
}

/* Menu Toggle Button for Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Close Button for Mobile Menu */
.close-nav {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  color: #333;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 10px;
}

/* Mobile Logo in Menu */
.mobile-logo {
  display: none;
  margin-bottom: 20px;
}

.mobile-logo img {
  height: 50px;
  width: auto;
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    padding: 15px 20px;
  }

  .logo img {
    height: 50px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    width: 250px;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;  /* Center align all nav items */
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto; /* Enables vertical scrolling */
  }

  .nav-menu.show {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .close-nav {
    display: block;
  }

  .mobile-logo {
    display: block;
  }

  .header-buttons {
    display: none;
  }

  .services-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .services-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    cursor: pointer;
  }

  .dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    padding: 0;
    margin-left: 5px; /* Ensure no gap between text and icon */
    display: flex;
    align-items: center;
  }

  .dropdown-toggle i {
    font-size: 16px;
    transition: transform 0.3s ease;
  }

  .dropdown-toggle.active i {
    transform: rotate(180deg);
  }

  .services-dropdown .dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0;
    display: none;
    flex-direction: column; /* Vertical for mobile */
    width: 100%;
  }

  .services-dropdown.active .dropdown-content {
    display: block;
  }

  .dropdown-column {
    padding: 10px 0;
    width: 100%;
  }

  .dropdown-divider {
    display: none;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    align-items: center;  /* Center align all nav items */
  }

  .nav-menu ul li {
    margin: 10px 0;
    text-align: center; /* Center align nav bar text only */
  }

  /* Ensure correct order of items */
  .nav-menu ul li:nth-child(1) {
    order: 1; /* Home */
  }

  .nav-menu ul li:nth-child(2) {
    order: 2; /* About */
  }

  .nav-menu ul li:nth-child(3) {
    order: 3; /* Services */
  }

  .nav-menu ul li:nth-child(4) {
    order: 4; /* Blog */
  }

  .nav-menu ul li:nth-child(5) {
    order: 5; /* Contact */
  }
}



/*2nd section*/

.tax-services {
    text-align: center;
    padding: 40px 20px; /* Adjusted padding for better spacing */
    background-color: #d7eaf3;
    box-sizing: border-box; /* Ensure padding is included in the total width */
}

.tax-services h1 {
    font-size: 1.6em;
    margin-bottom: 20px;
}

.top-heading {
    font-size: 2.5em; /* Size of the new top heading */
    margin-bottom: 10px; /* Spacing between the top heading and the current heading */
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.heading-link {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.services-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; /* Allows content to wrap on smaller screens */
    margin-top: 20px;
}

.service-item1 {
    flex: 1 1 30%; /* Allows items to take up to 30% of the width and grow/shrink */
    max-width: 300px; /* Limit max width for better control */
    margin: 10px;
    text-align: center;
    box-sizing: border-box;
}

.service-item1 img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px;
    margin-bottom: 10px;
}

.caption-link {
    text-decoration: none;
    color: black;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
    display: block; /* Ensure link takes full width */
}

.read-more-link {
    display: inline-block;
    text-decoration: none;
    color: black;
    margin-top: 10px;
    font-size: 1em;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .service-item1 {
        flex: 1 1 45%; /* Take up to 45% of width on tablet screens */
        max-width: none; /* Remove max-width to allow full flexibility */
        margin: 10px;
    }

    .tax-services h1 {
        font-size: 1.8em; /* Smaller font size for tablets */
    }

    .top-heading {
        font-size: 2em; /* Adjust font size for tablets */
    }

    .caption-link {
        font-size: 1.1em; /* Adjust font size for readability */
    }

    .read-more-link {
        font-size: 0.9em; /* Adjust font size for readability */
    }
}

@media (max-width: 480px) {
    .service-item1 {
        flex: 1 1 100%; /* Full width for mobile screens */
        margin: 10px 0;
    }

    .tax-services h1 {
        font-size: 1.5em; /* Further reduce font size for mobile */
    }

    .top-heading {
        font-size: 1.8em; /* Adjust font size for mobile */
    }

    .caption-link {
        font-size: 1em; /* Smaller font size for mobile */
    }

    .read-more-link {
        font-size: 0.8em; /* Adjust font size for mobile */
    }
}

/*2nd section*/
/*3rd section*/
.founder-section {
  display: flex;
  flex-direction: column; /* Stacks items vertically by default */
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background-color: #f9f9f9;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.image-container {
  position: relative;
  width: 100%; /* Full width for mobile */
  max-width: 300px; /* Limits the max width */
  margin-bottom: 30px; /* Space between image and text on mobile */
  text-align: center; /* Center-align content on mobile */
}

.image-container img {
  width: 100%;
  border-radius: 8px;
}

.contact-box {
  position: relative; /* Changes positioning for better responsiveness */
  background-color: #0056b3;
  color: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  width: auto; /* Adjusts to fit content */
  margin-top: 20px; /* Adds space between image and contact box */
  text-align: center; /* Center-align text */
}

.contact-box p {
  margin: 0 0 10px 0;
  font-weight: bold;
}

.contact-box a {
  color: white;
  text-decoration: none;
  display: block;
  margin-top: 5px;
}

.info-container {
  width: 100%; /* Full width for mobile */
  max-width: 500px; /* Limits the max width */
  padding: 20px; /* Adjusts padding for better readability */
  text-align: center; /* Center-align text on mobile */
}

.about-founder-btn,
.read-more-btn {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: #ff4081;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.about-founder-btn:hover,
.read-more-btn:hover {
  background-color: #0c0c0c;
}

.info-container h1 {
  font-size: 1.5rem; /* Responsive font size */
  margin: 0 0 10px 0;
}

.info-container p {
  font-size: 1rem; /* Responsive font size */
  line-height: 1.6;
  margin: 0 0 20px 0;
}

/* Media Query for larger screens */
@media (min-width: 768px) {
  .founder-section {
      flex-direction: row; /* Side-by-side layout for larger screens */
      align-items: flex-start; /* Align items to the top */
  }

  .image-container {
      width: 300px; /* Fixed width for larger screens */
      margin-right: 30px; /* Space between image and text */
      margin-bottom: 0; /* Removes bottom margin for side-by-side layout */
      text-align: left; /* Left-align content */
  }

  .contact-box {
      position: absolute;
      left: -90px;
      bottom: -100px; /* Adjusted position for larger screens */
      width: 290px; /* Fixed width to fit under the image */
  }

  .info-container {
      text-align: left; /* Align text to the left for readability */
  }

  .info-container h1 {
      font-size: 2rem; /* Larger font size for headings */
  }

  .info-container p {
      font-size: 1.1rem; /* Slightly larger text size */
  }
}


/*3rd section*/
/* area served*/
.areas-served-section {
    max-width: 1500px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #d7eaf3;
    box-sizing: border-box;
  }
  
  .shamsi {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
  }
  
  .shamsi:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: #0066cc;
  }
  
  p.ex1 {
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .map-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    box-sizing: border-box;
  }
  
  .map-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }
  
  .map-container h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .map-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .map-placeholder iframe {
    width: 100%;
    height: 100%;
  }
  
  .view-map {
    display: block;
    text-align: right;
    color: #0066cc;
    text-decoration: none;
    margin-top: 10px;
  }
  
  /* Responsive Design */
  @media (max-width: 1024px) {
    .map-grid {
        grid-template-columns: repeat(2, 1fr); /* Adjust to two columns for tablets */
    }
  }
  
  @media (max-width: 768px) {
    .map-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep two columns for smaller screens */
    }
  
    .shamsi {
        font-size: 28px; /* Adjust heading size for smaller screens */
    }
  
    p.ex1 {
        font-size: 15px; /* Adjust paragraph font size */
    }
  }
  
  @media (max-width: 480px) {
    .map-grid {
        grid-template-columns: 1fr; /* Single column layout for mobile devices */
    }
  
    .shamsi {
        font-size: 24px; /* Further adjust heading size for mobile */
    }
  
    p.ex1 {
        font-size: 14px; /* Further adjust paragraph font size */
    }
  
    .map-container {
        padding: 15px; /* Reduce padding for smaller screens */
    }
  
    .view-map {
        font-size: 14px; /* Adjust link font size for readability */
    }
  }
  
  /* area served*/
  /* sign-up*/
  .footer-section {
    background-color: #ffffff;
    padding: 40px 20px;
    text-align: left;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.footer-row {
    display: flex;
    flex-direction: column; /* Stacks items vertically by default */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section,
.info-section,
.signup-section {
    flex: 1 1 100%; /* Full width on smaller screens */
    max-width: 300px; /* Max width for larger screens */
    margin-bottom: 20px; /* Space between items */
    text-align: center; /* Center-align for smaller screens */
}

.logo-section img {
    width: 150px;
    margin-bottom: 20px;
}

.logo-section p {
    margin: 10px 0;
    font-size: 16px;
}

.logo-section a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.social-icons {
    margin-top: 20px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #007bff;
    color: #007bff;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    background-color: #007bff;
    color: white;
}

.info-section h4,
.signup-section h4 {
    color: #0056b3;
    text-decoration: underline;
    margin-bottom: 20px;
}

.info-section ul {
    list-style: none;
    padding: 0;
    text-align: center; /* Center-align list items on smaller screens */
}

.info-section ul li {
    margin: 15px 0;
}

.info-section ul li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: color 0.3s ease;
}

.info-section ul li a:hover {
    color: #0056b3;
}

.signup-section form {
    margin-top: 15px;
    text-align: center; /* Center-align form elements */
}

.signup-section input[type="text"],
.signup-section input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.signup-section button {
    padding: 10px 20px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.signup-section button:hover {
    background-color: #003f7f;
}

.marketing {
    margin-top: 20px;
    font-size: 12px;
}

.activecamp {
    font-size: 16px;
    margin-top: 3px;
}

.activecamp a {
    color: #007bff;
    text-decoration: none;
}

/* Media Query for larger screens */
@media (min-width: 768px) {
    .footer-row {
        flex-direction: row; /* Side-by-side layout for larger screens */
        justify-content: space-between;
        align-items: flex-start;
    }

    .logo-section,
    .info-section,
    .signup-section {
        flex: 1 1 30%; /* Equal width for each section */
        max-width: 300px;
        text-align: left; /* Align text to the left for larger screens */
    }

    .info-section ul {
        text-align: left; /* Align list items to the left */
    }

    .signup-section form {
        text-align: left; /* Align form elements to the left */
    }
}

@media (min-width: 1024px) {
    .footer-section {
        padding: 60px 40px; /* Increased padding for large screens */
    }

    .footer-row {
        max-width: 1400px; /* Larger container for big screens */
    }

    .logo-section,
    .info-section,
    .signup-section {
        max-width: 400px; /* Larger max width for sections */
    }
}

  /* sign-up*/
  /*footer*/
  footer {
    text-align: center;
    padding-bottom: 20px;
    padding-top: 0;
    font-size: 14px;
    color: #333;
    width: 100%;
    background-color: #f9f9f9; /* Light gray background for the overall footer */
  }
  
  .footer-container {
    background-color: #d7eaf3; /* Light blue background for the copyright section */
    padding: 15px 20px;
    margin: 0 auto;
    width: 100%; /* Full width to fit the background size */
    box-sizing: border-box;
  }
  
  .powered-by {
    margin: 0;
    font-size: 14px;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .powered-by a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex; /* To align the image and text */
    align-items: center;
    margin-left: 5px; /* Space between text and link */
  }
  
  .footer-logo {
    width: 150px; /* Adjust the width for desktop */
    height: auto;
    margin-right: 5px; /* Space between the logo and the text */
    padding-left: 15px;
  }
  
  .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 10px 0;
  }
  
  .footer-links a {
    color: #007bff;
    text-decoration: none;
    padding: 0 10px;
    font-size: 14px;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  .divider {
    width: 1px;
    height: 14px;
    background-color: #333;
    margin: 0 10px;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .footer-container {
        width: 100%; /* Full width on smaller screens */
    }
  
    .powered-by {
        flex-direction: column; /* Stack logo and text vertically */
        text-align: center; /* Center-align text */
    }
  
    .footer-logo {
        width: 130px; /* Smaller width for mobile screens */
    }
  
    .footer-links {
        flex-direction: column; /* Stack links vertically */
        align-items: center;
    }
  
    .footer-links a {
        padding: 5px 0;
    }
  
    .divider {
        display: none; /* Hide dividers on small screens */
    }
  }
  
  @media (max-width: 480px) {
    .powered-by {
        font-size: 12px; /* Smaller font size for very small screens */
    }
  
    .footer-links a {
        font-size: 12px; /* Adjust link font size for small screens */
    }
  }
  
  
  /*footer*/