/* ===============================
   WEBSITE DESIGN SERVICES (Responsive)
================================ */

/* base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
}

body {
  font-family: "Poppins", Arial, sans-serif;
}

/* shared container ONLY for these sections (safe) */
.web-section .container,
.second-section .container,
.website-type-section .container,
.services-list-section .container,
.benefits-section .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===============================
   SECTION 1 (Text + Image)
================================ */
.web-section {
  padding: 60px 0;
}

.web-section .web-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.web-section .col-left {
  flex: 1 1 650px;
  
}

.web-section .col-right {
  flex: 1 1 320px;
  text-align: center;
}

.sub-heading {
  font-size: 32px;
  font-weight: 700;
  color: #11104d;
  margin: 0 0 10px;
}

.main-heading {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 18px;
  color: #000;
}

.red-text p{
  color:#2B2B2B;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
}

/* responsive image */
.hero-img {
  width: 100%;
  height: clamp(280px, 38vw, 500px);
  object-fit: cover;
  border-radius: 12px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ===============================
   SECTION 2 (Full Image)
================================ */
.second-section {
  padding: 20px 0 10px;
}

.second-heading {
  text-align: center;
  font-size: 32px;
  color: #11104d;
  font-weight: 700;
  margin: 0 0 26px;
}

.image-box {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.section-image {
  width: 100%;
  height: clamp(220px, 30vw, 400px);
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.section-image:hover {
  transform: scale(1.03);
}

/* ===============================
   SECTION 3 (Website Type Cards)
================================ */
.website-type-section {
  padding: 60px 0;
}

.website-type-heading {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #11104d;
  margin: 0 0 34px;
}

/* ✅ grid for perfect responsive */
.website-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 25px;
}

.web-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  animation: fadeInUp 0.9s ease forwards;

  display: flex;
  flex-direction: column;
}

.web-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.web-card:hover img {
  transform: scale(1.07);
}

.card-body {
  padding: 18px 18px 26px; /* ✅ bottom spacing fixed */
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #11104d;
  margin: 0;
}

/* typing text: stable height + no layout jump */
.typing-text {
  font-size: 15px;
  font-weight: 500;
  color: #11104d;
  line-height: 1.4;

  min-height: 44px;
  overflow: hidden;

  /* allow wrap + keep clean */
  white-space: normal;
  border-right: none;

  /* max 2 lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   SECTION 4 (Services List like reference)
================================ */
.services-list-section {
  padding: 50px 0;
}

.services-heading {
  color: #11104d;
  font-size: 30px;
  text-align: center;
  font-weight: 700;
  margin: 0 0 26px;
}

.service-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.service-item {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  margin: 10px 0 !important;
  padding: 0 !important;

  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 18px;
  color: #6b6b6b;
}

/* hide number circles */
.service-item .service-icon {
  display: none !important;
}

/* icon like digitaladsindia */
.service-item::before {
  content: "\f0a9"; /* fa-circle-arrow-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 18px;
  color: #6b6b6b;
}

/* ===============================
   SECTION 5 (Benefits Cards)
================================ */
.benefits-section {
  padding: 50px 0;
}

.benefits-heading {
  color: #11104d;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}

.benefits-desc {
  color: gray;
  text-align: center;
  max-width: 750px;
  margin: 10px auto 40px;
  font-size: 18px;
  line-height: 1.6;
}

/* ✅ separate grid (no conflict) */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  background: #fff;
  padding: 28px 22px 34px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;

  transform: translateY(0);
}

/* image size consistent */
.benefit-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 14px;
  position: relative;
  z-index: 2;
}

/* overlay */
.benefit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #d17245;
  transform: translateY(-100%);
  transition: 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.benefit-card:hover::after {
  transform: translateY(0);
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.benefit-title {
  font-size: 20px;
  font-weight: 700;
  color: #11104d;
  margin: 0 0 10px;
  position: relative;
  z-index: 2;
}

.benefit-text {
  font-size: 16px;
  color: #11104d;
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 2;
}

.benefit-card:hover .benefit-title,
.benefit-card:hover .benefit-text {
  color: #fff;
}

/* ===============================
   RESPONSIVE BREAKPOINTS
================================ */
@media (max-width: 1200px) {
  .website-grid { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
  .benefit-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
}

@media (max-width: 992px) {
  .sub-heading { font-size: 28px; }
  .second-heading, .website-type-heading { font-size: 28px; }

  .website-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .benefit-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
  .web-section { padding: 40px 0; }

  .sub-heading { font-size: 24px; }
  .main-heading { font-size: 22px; }
  .red-text { font-size: 16px; }

  .second-heading { font-size: 24px; }
  .website-type-heading { font-size: 26px; }

  .services-heading, .benefits-heading { font-size: 26px; }
  .benefits-desc { 
    font-size: 16px; 
    margin: 8px;
  }

  .service-item { font-size: 16px; }
  .
  .service-item::before { font-size: 16px; }
}

@media (max-width: 600px) {
  .website-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
}
