@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&display=swap");

body {
  line-height: 1.7;
  font-family: "Nunito Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #555;
  font-size: 15px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  flex: 1;
}

p {
  font-weight: 400;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  font-family: "Nunito Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: #333;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

h1, .h1 {
  font-size: 52px;
}

h2, .h2 {
  font-size: 36px;
}

h3, .h3 {
  font-size: 24px;
}

h4, .h4 {
  font-size: 18px;
}

h5, .h5 {
  font-size: 15px;
}

h6, .h6 {
  font-size: 13px;
}

a,
a:hover,
a:focus {
  text-decoration: none;
}

a,
button,
select {
  cursor: pointer;
  transition: 0.2s ease;
}

a:focus,
button:focus,
select:focus {
  outline: 0;
}

a,
a:hover {
  color: #e30613;
}

/* --- Header --- */

header { 
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.logo { 
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo img {
  height: 60px;
    max-width: 100%;
}

/* --- Hero Section --- */

.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  background: url("../images/slider/1.gif") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  max-width: 800px;
  padding: 0 1rem;
  padding-left: 10%;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-align: left;
  color: #ffffff;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: right;
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
}

/* --- Services Grid --- */

.services {
  max-width: 1200px;
  margin: -8rem auto 2rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  z-index: 5;
  position: relative;
}

.service-card {
  background: #fff;
  color: #e30613;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  transition: transform .2s;
  border: solid 1px #e30613;
  border-radius: 20px;
}

.service-card .icon-red {
  color: #e30613; 
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.service-card .label {
  font-weight: 600;
  text-transform: capitalize;
}

.service-card .label a:hover{
    color:#000;
}

/* --- Footer --- */

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
  text-align: center;
}

.footer-logo {
  height: 40px;
}

.copyright {
  font-size: 0.85rem;
  color: #000;
  margin: 0;
}


/* --- Suppliers Grid --- */

.supplier-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 20px;
}

.supplier-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #eee;
}

.supplier-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.years-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(95.78deg, #e30613 2.35%, #721c24 95.78%);
  color: #FFF;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.supplier-info {
  padding: 20px;
  position: relative;
}

.supplier-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #111;
}

.supplier-name a {
  color: #111;
}

.type {
  font-size: 1rem;
  font-weight: 600;
  margin: 8px 0;
}

.details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.highlights {
  font-size: 0.95rem;
  margin: 10px 0;
  color: #333;
}

.supplier-info .location {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 15px;
}

.supplier-info .location i{
    color: #EA3333;
}

.supplier-actions-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.supplier-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 1;
}

.supplier-actions .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.supplier-actions .btn i{
    font-size: 16px;
}

.supplier-actions .website {
  background-color: rgba(58, 136, 239, 0.08);
}

.supplier-actions .website i{
  color: #418DF0;
}

.supplier-actions .website:hover {
  background-color:rgba(58, 136, 239, 0.2);
}

.supplier-actions .direction {
  background-color: rgba(255, 237, 234, 0.5);
}

.supplier-actions .direction i {
  color: #EA3333;
}

.supplier-actions .direction:hover {
  background-color: rgba(255, 218, 212, 0.8);;
}

.supplier-actions .read-more {
  background-color: rgba(67, 187, 63, 0.1);
}

.supplier-actions .read-more i {
  color: #54C150;
}

.supplier-actions .read-more:hover {
  background-color: rgba(67, 187, 63, 0.2);
}

.company-logo-wrapper {
  flex-shrink: 0;
}

.company-logo-wrapper .company-logo {
  height: 30px;
  width: auto;
}

@media (min-width: 768px) {
  .supplier-card {
    flex-direction: row;
    min-height: 270px;
  }

  .supplier-image {
    width: 40%;
    height: 270px;
  }

  .supplier-info {
    width: 60%;
  }
}

.swiper {
    width: 100%;
    height: 100%;
}

.image-count {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    z-index: 100;
}
.image-count i {
    margin-right: 5px;
}

.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    width: 20px !important;
    height: 30px !important;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    font-size: 12px;
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 14px !important;
    font-weight: bold;
}

.swiper-pagination {
    bottom: 8px !important;
    text-align: center;
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: #fff !important;
    opacity: 1;
    transform: scale(1.2);
}

/* --- Suppliers Filter Menu --- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 15px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  position: relative;
  z-index: 10;
  margin-bottom: 20px;
}

/* Filter item */
.filter-item {
  position: relative;
  flex: 1 1 15%;
  min-width: 150px;
  display: flex;
  flex-direction: column;
}

.filter-item label {
  font-weight: 600;
  font-size: 12px;
  color: #111;
}

.selected-option {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 5px 0;
  color: #333;
}

.arrow {
  float: right;
  font-size: 12px;
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  z-index: 99;
  width: 320px;
}

.dropdown-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.filter-btn {
  padding: 6px 12px;
  background: #f7f7f7;
  border-radius: 20px;
  border: 1px solid #ddd;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #e5f0ff;
  border-color: #2673dd;
  color: #2673dd;
}

.apply-btn {
  background: #1f1f1f;
  color: white;
  padding: 10px 0;
  width: 100%;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.apply-btn:hover {
  background: #333;
}

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
  }
  .filter-item {
    width: 100%;
  }
  .dropdown-menu {
    width: 100%;
  }
}

.keyword-input {
  flex: 1 1 20%;
  min-width: 200px;
  position: relative;
}

.keyword-input label {
  font-weight: 600;
  font-size: 13px;
  display: block;
  color: #111;
  margin-bottom: 4px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 2px solid;
  padding: 5px 5px;
}

.input-wrapper input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: #333;
}

.dropdown-toggle::after{
  display: inline-block;
  vertical-align: .255em;
  content: "";
  border-top: 2px solid;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  margin-left: 0;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: #777;
}

.no-results img {
    max-width: 150px;
    margin-bottom: 1rem;
}

.no-results .explore-btn{
  margin-top: 1rem; 
  padding: 0.5rem 1.2rem; 
  background: #e30613; 
  color: #fff; 
  border-radius: 5px; 
  display: inline-block; 
  text-decoration: none;
}

.no-results .explore-btn:hover {
    background-color: #c80510;
}

.pagination-wrapper {
    text-align: center;
    margin-top: 20px;
}

.pagination {
    list-style: none;
    display: inline-flex;
    gap: 10px;
    padding: 0;
}

.pagination li {
    display: inline;
}

.pagination li a,
.pagination li span {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination li.active span {
    background-color: #e30613;
    color: white;
    border-color: #e30613;
}