/* ===================================================
   Hawas Agri Business PLC - Background & Image Styles
   =================================================== */

/* 1. Base Layout & Background */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa; /* ንጹህ እና ምቹ የጀርባ ቀለም */
  color: #333333;
  margin: 0;
  padding: 0;
}

/* 2. Content Sections Background */
.content-section {
  padding: 60px 20px;
  background-color: #ffffff;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* ለተለዩ ክፍሎች የጀርባ ቀለም (Alternating Backgrounds) */
#domestics, #awards {
  background-color: #f1f8f1; /* ቀላል አረንጓዴ የጀርባ ቀለም */
}

/* 3. Section Titles Header Background */
.section.background-primary {
  background: linear-gradient(135deg, #008000, #005600) !important;
  padding: 18px 0;
  border-radius: 6px;
  margin-bottom: 25px;
}

.section.background-primary h1 {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}

/* 4. Gallery & Images Alignment (የፎቶዎች አቀማመጥ) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 10px;
}

.gallery-box {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: 1px solid #eef0f2;
}

.gallery-box:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.gallery-box img {
  width: 100%;
  height: 230px;
  object-fit: cover; /* ፎቶው ሳይዛባ ሙሉ ሳጥኑን እንዲሞላ ያደርጋል */
  display: block;
  transition: transform 0.5s ease;
}

.gallery-box:hover img {
  transform: scale(1.05); /* ፎቶው ላይ አይጥ ሲያርፍ ትንሽ Zoom ያደርጋል */
}

.gallery-box h3 {
  font-size: 15px;
  color: #1a252f;
  padding: 15px 10px;
  margin: 0;
  font-weight: 600;
  background-color: #ffffff;
}

/* 5. Awards Images Styling */
#awards img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 15px auto 30px auto;
  display: block;
  transition: transform 0.3s ease;
}

#awards img:hover {
  transform: scale(1.02);
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .content-section {
    padding: 30px 15px;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  .gallery-box img {
    height: 180px;
  }
}
/* ===== Modern Gallery - Sami Dote Web Designer ===== */
.container {
  width: 100% !important;
  max-width: 1280px;
  margin: 30px auto;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  box-sizing: border-box;
  padding: 15px 20px;
  justify-content: center;
}

.container .box {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  height: 260px !important;
  margin: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: #f5f5f5;
}

.container .box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 100, 0, 0.22);
}

.container .box .imgBox {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.container .box .imgBox img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.container .box:hover .imgBox img {
  transform: scale(1.12);
}

.container .box .details {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 90, 0, 0.88) 100%);
  transform: translateY(40%);
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  border-radius: 12px;
}

.container .box:hover .details {
  transform: translateY(0);
  opacity: 1;
}

.container .box .details .content {
  text-align: center;
  padding: 12px 16px;
  color: #fff;
}

.container .box .details .content h1 {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  letter-spacing: 0.3px;
}

.container .box .details .content p {
  margin: 6px 0 0;
  padding: 0;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
}

@media (max-width: 600px) {
  .container {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 10px;
  }
  .container .box {
    height: 180px !important;
  }
  .container .box .details .content h1 {
    font-size: 13px;
  }
}
@media (max-width: 400px) {
  .container {
    grid-template-columns: 1fr;
  }
  .container .box {
    height: 220px !important;
  }
}
