* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f7f7f7;
  color: #222;
  overflow-x: hidden;
}

/* HEADER */
.main-header {
  border-radius: 0 0 10px 10px;
  width: 100%;
  background: #ffffff;
  padding: 6px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1000;
}

.header-flex { width: 100%; padding: 0 20px; margin: 0 auto; height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 78px;
  overflow: visible;
}

.logo a {
  display: inline-flex;
  align-items: center;
  height: 78px;
}

.logo img {
  height: 60px;
  
  width: auto;
  display: block;
  object-fit: contain;
  
  transform-origin: left center;
}

.navbar {
  display: flex;
  justify-content: center;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 42px;
}

.menu li {
  display: inline-block;
}

.menu a {
  text-decoration: none;
  color: #1f1f1f;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s ease;
}

.menu a:hover,
.menu a.active {
  color: red;
}

/* --- SUBMENU DROPDOWN STYLES --- */
.has-dropdown {
  position: relative;
}
.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}
.has-dropdown > a i {
  font-size: 12px;
  transition: 0.3s;
}
.has-dropdown:hover > a i {
  transform: rotate(180deg);
}
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px); /* Centers the wide menu */
  width: max-content; /* Adapts to horizontal width */
  background: #fff;
  list-style: none;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  
  /* Horizontal Grid Layout (4 columns) */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 25px;
}
.has-dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.submenu li {
  width: 100%;
}
.submenu a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #444;
  font-weight: 500;
  transition: 0.3s;
  border-radius: 5px;
  white-space: nowrap; /* Keeps items strictly on one line */
}
.submenu a:hover {
  background: #fff3f3;
  color: red;
  padding-left: 18px; /* Subtle horizontal slide effect */
}

.header-btn {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.btn {
  display: inline-block;
  background: red;
  color: #fff;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  transition: 0.3s ease;
}

.btn:hover {
  background: #c40000;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #222;
}

/* BANNER */
.detail-banner {
  position: relative;
  width: 100%;
  min-height: 850px;
  background: url("../images/aboutpagebanner.webp") center center/cover no-repeat;
  display: flex;
  align-items: center;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 40px;
}

.section-header span {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: red;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: 38px;
  line-height: 1.2;
  color: #111;
  margin: 0;
}

.section-header.center {
  text-align: center;
}

.story-section,
.timeline-section,
.leaders-section,
.values-section {
  width: 100%;
}

.detail-banner {
  width: 100%;
  height: auto;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 767px) {
  .section-header {
    margin-bottom: 28px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header span {
    font-size: 14px;
  }
}

/* PRODUCTS SECTION */
.products-modern-section {
  width: 100%;
  padding: 80px 0;
  background: #f7f7f7;
}

.products-modern-container {
  width: 94%;
  max-width: 1300px;
  margin: 0 auto;
}

.products-modern-heading {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 45px;
}

.products-modern-heading span {
  display: inline-block;
  color: red;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.products-modern-heading h2 {
  font-size: 42px;
  color: #111;
  margin-bottom: 14px;
}

.products-modern-heading p {
  font-size: 17px;
  color: #666;
  line-height: 1.8;
}

/* TABS */
.product-tabs {
  text-align: center;
  margin-bottom: 30px;
}

.tab-btn {
  border: none;
  background: #e9e9e9;
  color: #222;
  padding: 11px 20px;
  margin: 5px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
  background: red;
  color: #fff;
}

/* GRID */
.products-modern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.products-modern-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  transition: 0.3s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

.products-modern-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.products-modern-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0.25));
}

.products-modern-card .product-content {
  position: relative;
  z-index: 2;
  padding: 22px 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.product-number {
  font-size: 30px;
  font-weight: 700;
  color: rgba(255,255,255,0.38);
  margin-bottom: 8px;
  line-height: 1;
}

.products-modern-card h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.products-modern-card p {
  font-size: 14px;
  color: #f1f1f1;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: left;
}

.product-btn {
  display: inline-block;
  background: red;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.product-btn:hover {
  background: #c40000;
}

/* BACKGROUND IMAGES */
.card1  { background-image: url("../images/biocharcharcoalpowder.webp"); }
.card2  { background-image: url("../images/biocharcharcoalpowder.webp"); }
.card3  { background-image: url("../images/coconutshellcharcoalpowderimg.webp"); }
.card4  { background-image: url("../images/coconutshellcharcoalbriquettespillowimg.webp"); }
.card5  { background-image: url("../images/limestonepowderimg.webp"); }
.card6  { background-image: url("../images/limestonelumpsimg.webp"); }
.card7  { background-image: url("../images/hydratedlimepowderimg.webp"); }
.card8  { background-image: url("../images/quicklimelumpsimg.webp"); }
.card9  { background-image: url("../images/quicklimepowderimg.webp"); }
.card10  { background-image: url("../images/whitewashlimepowderimg.webp"); }
.card11  { background-image: url("../images/poultryfeedlimestonegrit.webp"); }
.card12  { background-image: url("../images/groundcalciumcarbonatepowderimg.webp"); }
.card13  { background-image: url("../images/dolomitepowder.webp"); }
.card14  { background-image: url("../images/Dolomite Powder Tea and Coffee Estate.webp"); }
.card15 { background-image: url("../images/Raw Magnesite Powder.webp"); }
.card16  { background-image: url("../images/limestonegritproductimg2.webp"); }
.card17  { background-image: url("../images/marine-gypsum-powder.webp"); }
.card18  { background-image: url("../images/plastergypsumpowder.webp"); }
.card19  { background-image: url("../images/chemicalgypsumpowderimg.webp"); }
.card20  { background-image: url("../images/stonegypsumpowderimg.webp"); }

/* LAPTOP */
@media (max-width: 1199px) {
  .logo img {
    height: 58px;
    
  }

  .page-banner {
    height: 380px;
  }

  .products-modern-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* TABLET */
@media (max-width: 991px) {
  .logo img {
    height: 55px;
  
    
  }

  .header-flex {
    flex-direction: column;
    gap: 15px;
  }

  .navbar {
    justify-content: center;
  }

  .menu {
    justify-content: center;
    gap: 15px;
  }

  .page-banner {
    height: 300px;
  }

  .products-modern-section {
    padding: 60px 0;
  }

  .products-modern-heading h2 {
    font-size: 34px;
  }

  .products-modern-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .header-flex {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 15px;
  }

  .header-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .navbar {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    z-index: 999;
  }

  .navbar.active {
    display: block;
  }

  .menu {
    flex-direction: column;
    gap: 0;
  }

  .menu li {
    width: 100%;
    text-align: center;
    padding: 14px 10px;
    border-bottom: 1px solid #eee;
  }

  .logo img {
    height: 50px;
    
    transform-origin: left center;
  }

  .page-banner {
    height: 220px;
  }

  .page-banner img {
    object-position: center center;
  }

  .products-modern-container {
    width: 92%;
  }

  .products-modern-heading h2 {
    font-size: 28px;
  }

  .products-modern-heading p {
    font-size: 15px;
  }

  .products-modern-grid {
    grid-template-columns: 1fr;
  }

  .products-modern-card {
    min-height: 260px;
  }

  .products-modern-card .product-content {
    padding: 20px 16px;
  }

  .products-modern-card h3 {
    font-size: 20px;
  }

  .products-modern-card p {
    font-size: 13px;
  }

  .product-number {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 44px;
    
  }

  .page-banner {
    height: 180px;
  }
}
/* FOOTER */
.footer {
  background: #111;
  color: #fff;
  padding-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1fr 1.5fr;
  gap: 30px;
}
.footer-box p i {
  color: red;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.footer-logo {
    width: 200px;
    height: auto;
    max-width: 100%;
  
  display: block;
  margin: -30px auto -90px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.7;
  color: #ccc;
}

.footer-box h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-box p {
  font-size: 14px;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 8px;
}

/* SOCIAL */
.social-icons a {
  display: inline-block;
  margin-right: 10px;
  color: #fff;
  font-size: 16px;
  background: #222;
  padding: 10px;
  border-radius: 5px;
  transition: 0.3s;
}

.social-icons a:hover {
  background: red;
}

/* BOTTOM */
.footer-bottom {
  text-align: center;
  padding: 15px 0;
  background: #000;
  margin-top: 30px;
}

.footer-bottom p {
  font-size: 14px;
  color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
.footer-box p i {
  color: red;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
.footer-box p i {
  color: red;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

  .footer-logo {
    margin: -30px auto -90px;
  }
}

.footer-box:first-child {
  text-align: center;
}

.footer-logo {
  display: block;
  margin: -30px auto -90px;
}

/* TEXT JUSTIFY */
.footer-text {
  text-align: justify;
  max-width: 350px;
  margin: 0 auto;
}







.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: red;
}

.footer-websites {
  margin-bottom: 12px;
  font-size: 15px;
  color: #ccc;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 15px;
}
@media (max-width: 767px) {
  .footer-websites {
    flex-direction: column;
    gap: 8px;
  }
  .footer-websites .sep {
    display: none;
  }
}

@media (max-width: 991px) {
  .submenu {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    width: 100%;
    padding-left: 15px;
    margin-top: 10px;
    display: block;
    background: #f9f9f9;
    border-radius: 8px;
  }
  .has-dropdown:hover .submenu {
    transform: none;
  }
  .submenu a {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
  }
  .submenu a:last-child {
    border-bottom: none;
  }
}




@media (max-width: 991px) {
  .detail-banner {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    background-size: cover !important;
    background-position: center !important;
  }
}









@media (max-width: 991px) {
  .header-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
}



@media (max-width: 991px) {
  .main-header { position: relative; }
  .navbar {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    margin-top: 0 !important;
  }
}



@media (max-width: 991px) {
  .logo img {
    transform: scale(2.5) !important;
    transform-origin: left center !important;
  }
}


@media (min-width: 992px) {
  .logo img {
    transform: scale(3.5) !important;
    transform-origin: left center !important;
  }
}



@media (max-width: 991px) {
  .detail-banner {

  }
}



/* QUICK LINKS */
.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quick-links li {
  margin-bottom: 10px;
}
.quick-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.quick-links a:hover {
  color: #ff3c00;
}


















