/* =====================================================
   GLOBAL FIXES
===================================================== */
html, body {
  width: 100%;
  overflow-x: hidden;
}


/* =====================================================
   LARGE DESKTOP ≤1400px
===================================================== */
@media (max-width: 1024px) {
  .content {
    max-width: 1200px;
  }
  .maintag{
    padding-top: 120px;
}
.header2right {
  gap: 0;
}
}
/* =====================================================
   DESKTOP / LAPTOP ≤1200px
===================================================== */
@media (max-width: 1200px) {
   .content {
    max-width: 1400px;
  }
 .secondheader{
    flex-wrap: unset;
 }
  .about_heading {
    font-size: 60px;
  }

  .sliderpart {
    height: auto;
  }

  .backgoundcolor p {
    font-size: 24px;
  }
}

/* =====================================================
   TABLET ≤992px
===================================================== */
@media (max-width: 992px) {

  /* ---------- HEADER ---------- */
  .secondheader {

    justify-content: center;
    gap: 14px;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .header2right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .socialmediaheader {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  /* ---------- SLIDER ---------- */
  .sliderpart {
    flex-direction: column;
  }

  .bannerimage,
  .backgoundcolor {
    width: 100%;
  }

  .backgoundcolor {
    align-items: center;
    text-align: center;
    padding: 40px 20px;
  }

  /* ---------- ABOUT ---------- */
  .about_detail,
  .about_heading {
    width: 100%;
    text-align: center;
  }

  .about_heading {
    font-size: 48px;
    margin-top: 20px;
  }

  /* ---------- TEAM ---------- */
  .intro_image1,
  .intro_image2 {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .intro_image1 img,
  .intro_image2 img {
    margin: 30px 0 10px;
  }

  .intro_description {
    margin: 20px;
  }

  /* ---------- FOOTER ---------- */
  .aboutdetailcontainer {
    align-items: center;
    display: flex;
  }
  .headingspan{
    font-size: 28px;
}
  .headingspan{
    font-size: 36px;
}

}

/* =====================================================
   MOBILE ≤768px
===================================================== */
@media (max-width: 768px) {

  /* ---------- TOP CONTACT BAR ---------- */

  .containerheader {
    padding: 12px;
  }
  .header-contacts li {
    padding: 4px 0;
    white-space: normal;
    font-size: 15px;
  }

  .header-contacts li::after {
    display: none; /* remove vertical lines */
  }
 
  /* ========== MAIN HEADER ========== */
  .secondheader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  /* LOGO */
  .logo {
    width: auto;
    flex-shrink: 0;
  }

  .logo img {
    width: 140px;
    height: auto;
  }
  .header2right .info {
    width: 100%;
    text-align: center;
  }
  /* Disable hover dropdown on mobile */
  .infofa .hover-menu {
    position: static;
    box-shadow: none;
    display: none;
  }
  .secondheader {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
  }

.hamburger {
     display: flex;
    margin-right:20px;
    z-index: 1001;
  }
   #mobileMenu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 26%;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    display: none;       /* IMPORTANT */
    flex-direction: column;
    background: white;
    z-index: 999;
  }

  #mobileMenu.active {
    display: flex;
  }
  .header2right {
    position: absolute;
    top: 80%;
    right: 0;
    width: 40%;
    background: #fff;
    display: none;              /* ✅ KEY FIX */
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 1000;
  }
  .socialmediaheader{
    display: none;
  }

  .header2right.active {
    display: flex;
  }
  /* MENU LINKS */


  .info {
    text-align: center;
    white-space: nowrap;
    padding: 8px 10px;
  }

  .info a,
  .info span {
    font-size: 16px;
    white-space: normal;
  }

  /* REGISTRATION DROPDOWN */
  .hover-menu {
    position: static;
    box-shadow: none;
    border: none;
    text-align: center;
  }

  /* SOCIAL ICONS */
  .socialmediaheader {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 12px;
    gap: 10px;
  }

  /* ========== MAIN CONTENT OFFSET (FIXED HEADER) ========== */
  .auto-slider {
    display: block;
}
  .backgoundcolor p {
    font-size: 18px;
    text-align: left;
  }
  .backgoundcolor p {
    font-size: 18px;
    text-align: left;
  }
  .sliderpart {
    flex-direction: column;
  }

  .bannerimage,
  .backgoundcolor {
    width: 100%;
    min-width: 0;
  }
  .circle-card {
    width: 100%;
    max-width: 250px;
    
  }

  .header-contacts li::after {
    display: none;
  }

  /* ---------- MAIN HEADER ---------- */
  .sliderpart {
    flex-direction: column;
  }

  .bannerimage,
  .backgoundcolor {
    width: 100%;
  }

  .backgoundcolor {
    padding: 30px 20px;
    align-items: center;
    text-align: center;
  }
  .logo img {
    width: 140px;
  }

  .header2right {
    gap: 12px;
    align-items: center;
  }

  .info {
    white-space: normal;
  }

  .info a,
  .info span {
    font-size: 16px;
  }
  .infofa {
    position: relative;
    width: 100%;
  }

  /* Submenu container */
  .hover-menu {
    position: static;        /* NOT absolute on mobile */
    width: 100%;
    margin-top: 8px;

    background: #f6fbfc;
    border-radius: 8px;
    padding: 8px 0;

    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
.hover-menu a {
    padding: 12px 16px;
    font-size: 15px;
    color: #2f6f73;
  }
   .infofa.active .hover-menu {
        display: block;
   }
  /* Remove arrow on mobile */
  .hover-menu::before {
    display: none;
  }
  .backgoundcolor p {
    font-size: 20px;
    line-height: 1.6;
  }

  /* ---------- CATEGORIES ---------- */
  .category-container {
    margin-top: 60px;
     display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 24px;
  justify-content: center;   /* ✅ centers the grid */
  }
  /* ---------- STEPS ---------- */
  .steps {
    flex-direction: column;
    text-align: center;
    
  }

  .steps-number {
    height: 60px;
    width: 60px;
  }

  /* ---------- TEAM ---------- */
  .teampahra {
    width: 100%;
    font-size: 18px;
  }
  .sliderpart {
    flex-direction: column !important;
    min-height: auto;
  }

  .bannerimage,
  .backgroundcolor {
    width: 100% !important;
    min-width: 100% !important;
  }

  .bannerimage {
    height: 240px; /* control image height */
  }
  .backgroundcolor {
    padding: 25px 18px !important;
    align-items: center !important;
    text-align: center;
  }

  .backgroundcolor h1,
  .backgroundcolor h2,
  .backgroundcolor p {
    text-align: center;
  }
    .team_member, .team_member.reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .team_photo {
        margin-bottom: 20px;
    }
.aboutdetailcontainer {
    display: block;
}
.contactuscontainer {
        padding-left: 0;
    }
    
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
}
    footer .aboutdetailcontainer {
    flex-direction: column !important;
    gap: 0;
  }

  footer .contactuscontainer {
    order: 1 !important;
    padding-left: 0 !important;
    display: block !important;
  }

  footer .aboutuscontainer {
    order: 2 !important;
    gap: 0;
    
  }
  .aboutdetailcontainer {
    flex-direction: column;
    gap: 20px;   /* or 0 if you want no space */
  }
   .headingspan{
    font-size: 28px;
}
.product-type-container p{
      font-size: 16px;
}
.about_section {
        flex-direction: column; /* stack text above image */
        align-items: flex-start; /* keep text left-aligned */
    }

    .about_heading {
        width: 100%;             /* image takes full width */
        display: flex;
        justify-content: center;  /* optional: center image */
        margin-top: 10px;         /* spacing between text and image */
    }

    .about_heading img {
        max-width: 100%;
        height: auto;
        max-height: 300px;        /* adjust for mobile */
        object-fit: cover;
        border-radius: 6px;
    }
  
}

@media (min-width: 769px) {
    .infofa:hover .hover-menu {
        display: block;
}

}
/* =====================================================
   SMALL MOBILE ≤480px
===================================================== */
@media (max-width: 480px) {

  body {
    font-size: 16px;
  }
   .maintag{
    padding-top: 200px;
}

  .header-contacts ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* ✅ 2 per row */
  }

  .header-contacts ul li {
    display: flex;
    align-items: center;                   /* ✅ vertical middle */
    gap: 1px;
    white-space: nowrap;
  }

  .header-contacts ul li img {
    width: 16px;                           /* ✅ icon size fix */
    height: 16px;
    object-fit: contain;
  }
 .containerheader {
    margin-right: 0;
}

  .logo img {
    width: 120px;
  }
  #mobileMenu {
        width: 46%;
    }
  .about_heading {
    font-size: 38px;
  }

  .backgoundcolor p {
    font-size: 18px;
  }
  .category-container{
    grid-template-columns: 1fr;
  }
  .circle-card{
    flex: 0 0 100%;
  }

  .steps img {
    max-width: 140px;
  }
  .intro_image1 {
    display: block; 
    padding-top: 10px;
    }
    .intro_image1 img{
    margin: 10px 140px 10px;
    }
    .intro_image2 {
    display: block; 
    }
  .fa {
    font-size: 22px;
    width: 36px;
    padding: 8px;
  }

  footer p {
    font-size: 14px;
  }
  .intro_image1 img{
    margin: 10px 120px 10px;
    }
    /* parent must be flex */
    .intro_image2 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 3px;
    }

    /* IMAGE FIRST */
    .shabnamimage {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* TEXT AFTER IMAGE */
    .shabnamdescription {
        order: 2;
        text-align: center;
    }

    .shabnamimage img {
        width: 180px;
        max-width: 100%;
        height: auto;
        margin-top: 10px;
    }

    .shabnammail a {
        font-size: 16px;
        word-break: break-word;
    }
    .shabnammail {
     margin-bottom: 0; 
     margin-top: 0; 
}
#authorities-section .authorities-list li img {
    max-width: 100px;   /* adjust as needed */
}
.intro_image2 p {
    margin-left: 0;
}
}

@media (max-width: 320px) {
  section, div {
    max-width: 100%;
  }
  .header-contacts ul {
    display: grid;
    grid-template-columns: 1fr;   /* ✅ one item per row */
    text-align: center;
  }
  .header-contacts ul li img {
    width: 16px;
    height: 16px;
  }
  .header-contacts ul li {
   padding: 5px;
  }

  .header-contacts ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .containerheader {
  display: flex;
  justify-content: center;   /* horizontal center */
  align-items: center;       /* vertical center */
}
.fa {
    margin-right: 10px;
}
 .intro_image1 img{
    margin: 10px 80px 10px;
    }
  #authorities-section .authorities-list ul {
    gap: 20px;                /* space between logos */
}
.steps {
    gap: 48px;
    
  }
    .circle-card {
        margin-left: 35px;
    }
     .hamburger span {
      margin-bottom: 2px;
    }
 
}
@media (min-width: 361px) and (max-width: 375px) {
  /* Only ~375px devices */
  .intro_image1 img{
    margin: 10px 30px 10px;
    }
}
/* Small phones */
@media (max-width: 360px) {
  /* Vivo Y51, Redmi 9, Samsung A series (small) */
      .circle-card {
        margin-left: 60px;
        margin-top: 50px;
    }
    .hamburger span {
    margin-bottom: 5px; /* ✅ iOS SAFE */
}
}

/* Medium phones */
@media (max-width: 390px) {
  /* Pixel, iPhone 12/13 mini, newer Android */
  .circle-card {
        margin-left: 40px;
        margin-top: 50px;
    }
}

/* Large phones */
@media (max-width: 430px) {
  /* iPhone Pro Max, large Android phones */
}

