/* Responsive improvements for all pages */
@media (max-width: 1200px) {
  .main-content {
    max-width: 100vw;
    padding: 0 0.5rem;
  }
  .cover-slideshow {
    max-width: 100vw;
  }
}

@media (max-width: 900px) {
  .main-content, section {
    padding: 0.5rem;
    max-width: 100vw;
  }
  .cover-slideshow {
    height: 260px;
    max-width: 100vw;
  }
  .products-list {
    gap: 1rem;
  }
  .product-item {
    width: 48vw;
    min-width: 180px;
    max-width: 320px;
    padding: 1rem;
  }
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
  .profile-img {
    width: 120px;
    height: 120px;
    margin-right: 1rem;
  }
  .cert-item img {
    height: 120px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.1rem;
    padding-left: 0.3rem;
    border-left-width: 3px;
  }
  .main-content, section {
    padding: 0.2rem;
    max-width: 100vw;
  }
  .cover-slideshow {
    height: 140px;
    max-width: 100vw;
  }
  .products-list {
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
  }
  .product-item {
    width: 98vw;
    min-width: 120px;
    max-width: 100vw;
    padding: 0.7rem;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .profile-img {
    width: 80px;
    height: 80px;
    margin-right: 0.5rem;
  }
  .cert-item img {
    height: 80px;
  }
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  nav li {
    font-size: 1rem;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0.5rem;
  }
  .footer-logo img {
    height: 80px !important;
  }
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #fbeaea 100%);
  min-height: 100vh;
}
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  margin-bottom: 2.5rem;
  padding: 2.5rem 2rem;
  transition: box-shadow 0.2s;
}
section:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}
h1 {
  font-size: 2.8rem;
  color: #b80000;
  margin-bottom: 0.5rem;
}
h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 1.2rem;
  border-left: 6px solid #b80000;
  padding-left: 0.7rem;
}
h3 {
  font-size: 1.3rem;
  color: #b80000;
  margin-bottom: 0.7rem;
}
.products-list, .grid, .cert-list {
  gap: 2rem;
}
nav ul {
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
nav li {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 500;
  color: #222;
  transition: color 0.2s;
}
nav a {
  color: #222;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  overflow: hidden;
}
nav a:hover, nav a.active {
  background: #b80000;
  color: #fff;
}
nav a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #b80000 60%, #222 100%);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
nav a:hover::before, nav a.active::before {
  transform: scaleX(1);
}
nav a .menu-icon {
  font-size: 1.2em;
  vertical-align: middle;
  transition: transform 0.2s;
  color: #b80000;
  filter: drop-shadow(0 0 2px #222);
}
nav a:hover .menu-icon {
  color: #fff;
  transform: scale(1.2) rotate(-10deg);
  filter: drop-shadow(0 0 2px #b80000);
}
.footer-content {
  border-radius: 0 0 18px 18px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}
.cover-content {
  display: inline-block;
}
.cover-content h1, .cover-content p {
  color: #fff;
}
.cover-slideshow {
  position: relative;
  overflow: hidden;
}
.cover-img.slide {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
  transform: translateX(40px);
  z-index: 1;
}
.cover-img.slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}
.cover-img.slide.prev {
  opacity: 0;
  transform: translateX(-40px);
  z-index: 1;
}
.cover-indicators .indicator {
  border: 2px solid #b80000;
}
.message-card {
  background: linear-gradient(90deg, #fbeaea 0%, #fff 100%);
  border-left: 6px solid #b80000;
}
.subcat-item img {
  border: 2px solid #b80000;
}
.subcat-item span {
  color: #b80000;
}
.footer-logo {
  color: #b80000;
}
@media (max-width: 900px) {
  .main-content, section {
    padding: 1rem;
  }
  .cover-content {
    padding: 1rem 1.2rem;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .cover-content {
    padding: 0.7rem 0.7rem;
  }
  section {
    padding: 1rem 0.5rem;
  }
}
/* Gallery slider styles from index.html */
.gallery-slider {
  overflow-x: auto;
  position: relative;
  width: 100%;
  margin: 0 auto;
  user-select: none;
  scroll-behavior: smooth;
}
.gallery-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  cursor: grab;
  padding-bottom: 1rem;
}
.gallery-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 340px;
  min-height: 260px;
  max-height: 260px;
}
.gallery-card img {
  height: 270px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  background: #f8fafc;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s, border 0.3s;
  border: 2px solid transparent;
}
.gallery-card img:hover, .gallery-card img:focus {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(184,0,0,0.18);
  border: 2px solid #b80000;
  z-index: 2;
}
@media (max-width: 900px) {
  .gallery-card {min-width: 220px;max-width: 220px;min-height: 160px;max-height: 160px;}
  .gallery-card img {width: 200px;height: 140px;}
}
@media (max-width: 600px) {
  .gallery-card {min-width: 140px;max-width: 140px;min-height: 100px;max-height: 100px;}
  .gallery-card img {width: 120px;height: 80px;}
}
.subcat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.subcat-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.subcat-item span {
  font-size: 1rem;
  color: #222;
  font-weight: 500;
}
.subcat-list {
  list-style: disc inside;
  margin: 1rem 0 0 0;
  padding: 0;
  color: #333;
  font-size: 1rem;
  text-align: left;
}
.subcat-list li {
  margin-bottom: 0.3rem;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;

header {
  background: #b80000;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

header li {
  margin-left: 1rem;
}

header a {
  color: #fff;
  text-decoration: none;
}

.cover {
  background: url('../images/cover1.png') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
  height: 400px;
}

section {
  padding: 2rem;
}

h2 {
  color: #b80000;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-card {
  background: #f4f4f4;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.product-card:hover {
  background: #ddd;
}

/* Cover section styles */
.cover {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top:85px;
}

.cover-slideshow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.cover-img.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: brightness(0.7);
  transition: opacity 0.6s;
  z-index: 1;
}
.cover-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}
.cover-arrow.left {
  left: 20px;
}
.cover-arrow.right {
  right: 20px;
}
.cover-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s;
}
.indicator.active {
  opacity: 1;
  background: #ffd700;
}
}
.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.cover-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
}
.cover-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.cover-content p {
  font-size: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Products section styles */
.products-list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.product-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 1.5rem;
  text-align: center;
  width: 280px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.product-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* Message section cards */
.message-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}
.profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* Certificates section */
.cert-list {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.cert-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-align: center;
}
.cert-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

/* Footer styles */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  color: #fff;
  padding: 2rem 2rem 1rem 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-info p {
  margin: 0.2rem 0;
}
.footer-social a {
  margin: 0 0.5rem;
  display: inline-block;
}
.footer-social img {
  width: 32px;
  height: 32px;
  filter: grayscale(0.2);
  transition: filter 0.2s;
}
.footer-social img:hover {
  filter: grayscale(0) brightness(1.2);
}
.footer-bottom {
  background: #111;
  color: #bbb;
  text-align: center;
  padding: 0.7rem;
  font-size: 0.95rem;
ing: 1rem;
  margin-top: 2rem;
}
