/* Services Page Layout */
.svc-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Service Card */
.svc-card {
  display: flex;
  gap: 2rem;
  background: #f3f3f3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 1.5rem;
  align-items: stretch;
}

/* Image */
.svc-image img {
  width: 270px;
  height: 405px;
  object-fit: cover;
  border-radius: 8px;
}

/* Details */
.svc-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.5rem;
}

/* Title */
.svc-header {
  background: #003366; /* dark blue like flag */
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  width: 100%;
}
.svc-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Body sections */
.svc-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;   /* ✅ children stretch full height */
  gap: 1.5rem;
  width: 100%;
}

/* Long description box */
.svc-description {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  height: 100%;            /* ✅ fills container height */
  box-sizing: border-box;
}

/* Common services box */
.svc-common {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  height: 100%;            /* ✅ fills container height */
  box-sizing: border-box;
}
.svc-common h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.svc-common ul {
  list-style: disc;     
  padding-left: 1.25rem;
  columns: 2;           
  gap: 1rem;
}
.svc-common li {
  margin-bottom: 0.5rem;
}

.svc-cta {
  flex: 1;
  display: flex;
  align-items: center;   /* center vertically in svc-cta */
  justify-content: center; /* center horizontally in svc-cta */
}

.svc-btn {
  display: flex;                  /* ✅ flex inside the button */
  flex-direction: column;         /* stack text vertically */
  align-items: center;            /* center horizontally */
  justify-content: center;        /* center vertically */
  text-align: center;             /* center text */
  padding: 1.5rem;
  background: #b22222;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  width: 100%;                    /* optional: make button fill parent column */
  height: 100%;                   /* ✅ fills full column height */
  box-sizing: border-box;
}

.svc-btn:hover {
  background: #8b0000;
}

.svc-btn .cta-main {
  font-size: 1rem;
  font-weight: bold;
}

.svc-btn .cta-sub {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: normal;
  color: #f0f0f0;
}

/* Modal base */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .svc-card {
    flex-direction: column;
    align-items: center;
  }
  .svc-image img {
    width: 100%;
    height: auto;
  }
  .svc-body {
    flex-direction: column;
  }
}
