/*========================================= Top-Bar====================================== */
@media (max-width: 768px) {
  .top-bar .social-media {
    flex-direction: row;
    /* Stack social media icons vertically */
  }

  .top-bar .social-media a {
    margin: 5px 0;
    /* Add vertical margin between icons */
  }

  .top-bar .social-media a .social-name {
    display: none;
    /* Hide social media names */
  }

  .top-bar .social-media a i {
    font-size: 18px;
    /* Adjust icon size */
  }

  .top-bar .contact-information span {
    font-size: 13px;
  }
}

/* ========================================header========================================== */
.nav-mobile,
.menu-icon {
  display: none;
}

/* Responsive Design for screens below 768px */
@media (max-width: 768px) {
  header nav ul {
    display: none;
  }

  /* Show mobile menu icon */
  .menu-icon {
    display: block;
    position: absolute;
    right: 20px;
    font-size: 2em;
    color: white;
    cursor: pointer;
  }

  /* Mobile navigation menu */
  .nav-mobile {
    display: none;
    position: absolute;
    top: 67px;
    right: 0;
    width: 100%;
    background-color: #2c2b2ba8;
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 1001;
  }

  /* Mobile menu active state */
  .nav-mobile.active {
    display: block;
  }

  /* Styling for mobile links */
  .mobile-nav-links {
    list-style: none;
    text-align: left;
    padding: 0;
  }

  .mobile-nav-links li {
    margin-bottom: 15px;
  }

  .mobile-nav-links li a {
    font-size: 16px;
    background: white;
    font-weight: bold;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    display: block;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  /* Adjust dropdown for mobile */
  .dropdown-content,
  .about-dropdown-content {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-y: visible;
    padding: 10px;
    box-shadow: none;
    border: none;
  }

  .dropdown:hover .dropdown-content,
  .about-dropdown:hover .about-dropdown-content {
    display: block;
  }

  .column {
    width: 100%;
    margin-bottom: 10px;
  }

  .column h4 {
    font-size: 16px;
  }

  .column a,
  .column p {
    font-size: 14px;
  }

  /* Adjust logo size for mobile */
  .logo img {
    width: 250px;
  }

  /* Ensure header padding is consistent */
  header {
    padding: 10px;
  }
}

/* Responsive Design for screens below 768px */
@media (max-width: 768px) {

  /* Submenu styling */
  .submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .submenu.active {
    display: block;
  }

  /* Submenu items styling */
  .submenu li {
    margin-bottom: 10px;
  }

  .submenu li a {
    font-size: 16px;
    /* Adjust font size for better readability */
    background: white;
    font-weight: bold;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    display: block;
    padding: 8px 15px;
    /* Add padding for better touch targets */
    border-radius: 4px;
    /* Rounded corners for a modern look */
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  /* Back arrow styling */
  .back-arrow {
    display: none;
    font-size: 18px;
    /* Slightly larger font size for the back arrow */
    cursor: pointer;
    margin-bottom: 15px;
    color: #fff;
    padding: 8px 15px;
    /* Match padding with submenu items */
    border-radius: 4px;
    /* Rounded corners for consistency */
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .back-arrow.active {
    display: block;
  }

  /* Adjust mobile menu items when submenu is active */
  .mobile-nav-links.active {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  header nav ul li a {
    font-size: 12px;
  }
}
/* ============================================Home Section====================================== */

@media (max-width: 768px) {
  .summary-content {
    flex-direction: column-reverse;
  }

  .summary-image,
  .summary-text {
    flex: 1 1 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  #company-summary h2 {
    font-size: 2rem;
  }

  .summary-text p {
    font-size: 1rem;
  }
  #get-in-touch .container {
    padding: 20px 0;
    text-align: center;
  }

  .get-in-touch-content {
    flex-direction: column;
    align-items: center;
  }

  .company-details,
  .contact-form {
    width: 100%;
    text-align: justify;
  }

  #get-in-touch .container h2 {
    font-size: 30px;
    padding: 0%;
  }

  .company-details h3 {
    font-size: 20px;
  }

  .company-details ul li {
    font-size: 1rem;
  }

  .contact-form form {
    width: 100%;
    max-width: 100%;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1rem;
  }

  .submit-btn {
    width: 100%;
  }
}

/* ========================================Service Section======================================= */

/* Media Queries for mobile devices */
@media (max-width: 768px) {
  #services, #about-us, #contact {
    padding-top: 20vh;
  }

  .services-list {
    top: 20%;
    text-align: center;
  }

  .services-list h2 {
    font-size: 0;
    margin-bottom: 70px;
  }

  .services-layout {
    flex-direction: column;
  }

  /* Initially hide the services list */
  .services-list {
    position: absolute;
    max-height: 0;
    overflow: hidden;
    width: auto;
    transition: max-height 0.5s ease-out;
    /* Smooth transition effect */
  }

  .service-details {
    padding: 10% 0;
    width: 100%;
  }

  /* Sticky dropdown button on mobile */
  .dropdown-toggle {
    display: block;
    /* position:static; */
    top: 5%;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    color: rgb(235, 9, 9);
    padding: 10px;
    font-size: 1.2rem;
    text-align: center;
    border: none;
    cursor: pointer;
    z-index: 98;
    margin-bottom: 10px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  }

  /* Expanded services list */
  .show-dropdown {
    max-height: 500px;
    /* Adjust this value based on the height of the content */
    transition: max-height 0.5s ease-in;
    /* Smooth slide-down effect */
  }
}

/* =========================================About Section========================================= */
@media (min-width: 1024px) {

  /* Target PC screens and larger */
  .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    /* Ensure elements stay on one row */
    gap: 40px;
    /* Spacing between text and image */
  }

  .content .text {
    flex: 1;
    margin-right: 20px;
    /* Add extra space on the right side of the text */
  }

  .content .text p {
    font-size: 16.5px;
  }

  .content .image {
    flex: 1;
    margin-left: 20px;
    /* Add extra space on the left side of the image */
    text-align: center;
  }

  .content .image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
}


/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
    text-align: center;
  }

  .content .image {
    order: 1;
    margin-bottom: 20px;
  }

  .content .text {
    order: 2;
  }

  section h2 {
    font-size: 28px;
    margin-bottom: 10px;
  }

  section p,
  section ul.goals-list li {
    font-size: 14px;
    line-height: 1.5;
  }

  .content .image img {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* Responsive Design for Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .content {
    flex-direction: column;
    text-align: center;
  }

  .content .image {
    margin-bottom: 20px;
  }

  section h2 {
    font-size: 30px;
  }

  section p,
  section ul.goals-list li {
    font-size: 15px;
    line-height: 1.55;
  }

  .content .image img {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 425px){
  #Our-goals .container {
    padding: 0 10px;
  }
}



@media screen and (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    max-width: 100%;
    margin: 0;
  }

  .contact-info {
    margin-top: 40px;
  }
}

@media screen and (max-width: 576px) {

  .contact-form label,
  .contact-info h3,
  .contact-info p {
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form .btn {
    font-size: 1rem;
    padding: 8px;
  }
}



/* -------------------------------------------------footer----------------------------------------- */


@media screen and (max-width: 768px) {
  footer {
    background: linear-gradient(180deg, hsla(0, 25%, 90%, 1) 0%, hsla(212, 100%, 14%, 1) 0%);
  }

  .footer-container {
    padding: 20px;
  }

  .footer-content {
    flex-direction: column;
    align-items: left;
    text-align: left;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically (optional) */
    margin-bottom: 20px;
    /* Adjust as needed */
  }

  .footer-section {
    flex: 100%;
    margin-bottom: 30px;
    position: static;
    left: 0;
  }

  .header-name,
  .services,
  .contact-map,
  .connect-with-us {
    flex: 100%;
    left: 0;
    bottom: 0;
    font-size: calc(14px + 1vw);
  }

  .footer-logo img {
    width: 150px;
    margin-bottom: 10px;
    display: block;
  }

  .footer-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .footer-section p,
  .footer-section ul {
    font-size: 14px;
  }

  .footer-section ul li {
    margin-bottom: 8px;
  }

  .connect-with-us iframe {
    width: 100%;
    height: 250px;
  }

  .business-info .info-item {
    justify-content: left;
  }

  .footer-bottom p {
    font-size: 12px;
    padding-top: 20px;
  }

  .connect-with-us p a i {
    font-size: 30px;
    margin-right: 15px;
  }

  /* Collapsible Content */
  .collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .collapsible-content.open {
    max-height: 500px;
  }

  .collapsible-content li a {
    font-size: 18px;
  }

  .contact-map p,
  i {
    font-size: 20px;
  }

  /* Toggle Icon */
  .toggle-icon {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
  }

  .toggle-icon::after {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  .toggle-icon.active::after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Icon Styling */
  .footer-section h3 .icon {
    position: absolute;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block
  }

  .footer-section h3 .icon.active {
    content: "-";
  }
}

/* -------------------------------------------------contact Branches-------------------------------- */

@media (max-width: 768px) {
  .cont-goal {
    flex: 1 1 calc(50% - 20px);
  }

  #Branches h2 {
    font-size: 1.8rem;
  }
}