/* ============================================
   MS Estates - About Page Custom Styles
   ============================================ */

/* Main About Hero Section */
.ms-about-hero {
  padding: 40px 0;
}

.ms-about-content {
  position: relative;
}

.ms-about-header {
  margin-bottom: 30px;
}

.ms-about-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--zoomvilla-black, #222222);
  font-family: var(--zoomvilla-heading-font, "Readex Pro", sans-serif);
  margin-bottom: 15px;
  line-height: 1.3;
}

.ms-about-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--zoomvilla-base, #D7984E), transparent);
  margin-bottom: 20px;
}

.ms-about-intro {
  font-size: 18px;
  color: var(--zoomvilla-base, #D7984E);
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.6;
}

.ms-about-text-block {
  margin-bottom: 30px;
}

.ms-about-text-block p {
  color: var(--zoomvilla-text-gray, #636363);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

.ms-about-text-block p:last-child {
  margin-bottom: 0;
}

.ms-about-cta {
  margin-top: 30px;
}

.ms-about-btn {
  display: inline-block;
  padding: 14px 35px;
  background: var(--zoomvilla-base, #D7984E);
  color: var(--zoomvilla-white, #FFFFFF);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.ms-about-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--zoomvilla-black, #222222);
  transition: left 0.3s ease-in-out;
  z-index: -1;
}

.ms-about-btn:hover {
  color: var(--zoomvilla-white, #FFFFFF);
  transform: translateX(3px);
}

.ms-about-btn:hover::before {
  left: 0;
}

/* Highlight Box & Grid */
.ms-about-highlight-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ms-highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

.ms-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: var(--zoomvilla-white, #FFFFFF);
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}

.ms-highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(215, 152, 78, 0.1);
}

.ms-highlight-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--zoomvilla-base, #D7984E), #c4752d);
  border-radius: 50%;
  color: var(--zoomvilla-white, #FFFFFF);
  font-size: 24px;
  transition: all 0.3s ease-in-out;
}

.ms-highlight-item:hover .ms-highlight-icon {
  transform: scale(1.1) rotate(5deg);
}

.ms-highlight-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--zoomvilla-black, #222222);
  margin: 0 0 5px 0;
  font-family: var(--zoomvilla-heading-font, "Readex Pro", sans-serif);
}

.ms-highlight-content p {
  font-size: 13px;
  color: var(--zoomvilla-text-gray, #636363);
  margin: 0;
  line-height: 1.5;
}

.ms-about-image-box {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.ms-about-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.ms-about-image-box:hover .ms-about-img {
  transform: scale(1.05);
}

/* Why Choose Us Section */
.ms-about-why-section {
  padding: 60px 0;
  border-top: 1px solid var(--zoomvilla-border-color, #dddddd);
  border-bottom: 1px solid var(--zoomvilla-border-color, #dddddd);
  margin: 40px 0;
}

.ms-section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--zoomvilla-black, #222222);
  text-align: center;
  margin-bottom: 20px;
  font-family: var(--zoomvilla-heading-font, "Readex Pro", sans-serif);
}

.ms-why-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--zoomvilla-base, #D7984E), transparent);
  margin: 0 auto 40px;
}

.ms-why-card {
  background: var(--zoomvilla-white, #FFFFFF);
  padding: 35px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
  border-top: 4px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ms-why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(215, 152, 78, 0.15);
  border-top-color: var(--zoomvilla-base, #D7984E);
}

.ms-why-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--zoomvilla-base, #D7984E), #c4752d);
  border-radius: 50%;
  color: var(--zoomvilla-white, #FFFFFF);
  font-size: 30px;
  transition: all 0.3s ease-in-out;
}

.ms-why-card:hover .ms-why-icon {
  transform: scale(1.15) rotateY(10deg);
  box-shadow: 0 10px 25px rgba(215, 152, 78, 0.3);
}

.ms-why-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--zoomvilla-black, #222222);
  margin: 0 0 15px 0;
  font-family: var(--zoomvilla-heading-font, "Readex Pro", sans-serif);
}

.ms-why-card p {
  color: var(--zoomvilla-text-gray, #636363);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

/* Our Expertise Section */
.ms-about-expertise-section {
  padding: 60px 0;
  margin: 40px 0;
}

.ms-expertise-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 35px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 25px;
  transition: all 0.3s ease-in-out;
  border-left: 4px solid var(--zoomvilla-base, #D7984E);
}

.ms-expertise-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(215, 152, 78, 0.1);
}

.ms-expertise-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--zoomvilla-base, #D7984E), #c4752d);
  border-radius: 6px;
  color: var(--zoomvilla-white, #FFFFFF);
  font-size: 28px;
  transition: all 0.3s ease-in-out;
}

.ms-expertise-item:hover .ms-expertise-icon {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(215, 152, 78, 0.3);
}

.ms-expertise-item h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--zoomvilla-black, #222222);
  margin: 0 0 10px 0;
  font-family: var(--zoomvilla-heading-font, "Readex Pro", sans-serif);
}

.ms-expertise-item p {
  color: var(--zoomvilla-text-gray, #636363);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Call to Action Section */
.ms-about-cta-section {
  background: linear-gradient(135deg, var(--zoomvilla-base, #D7984E), #c4752d);
  padding: 60px;
  border-radius: 8px;
  text-align: center;
  margin-top: 0;
  position: relative;
  margin-bottom: 80px;
  overflow: hidden;
}

.ms-about-cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.ms-about-cta-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 5s ease-in-out infinite reverse;
}

.ms-cta-content {
  position: relative;
  z-index: 1;
}

.ms-cta-content h3 {
  font-size: 36px;
  font-weight: 700;
  color: var(--zoomvilla-white, #FFFFFF);
  margin-bottom: 15px;
  font-family: var(--zoomvilla-heading-font, "Readex Pro", sans-serif);
}

.ms-cta-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  line-height: 1.7;
}

.ms-cta-button {
  display: inline-block;
  padding: 14px 40px;
  background: var(--zoomvilla-white, #FFFFFF);
  color: var(--zoomvilla-base, #D7984E);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.ms-cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--zoomvilla-base, #D7984E);
  transition: left 0.3s ease-in-out;
  z-index: -1;
}

.ms-cta-button:hover {
  color: var(--zoomvilla-white, #FFFFFF);
  transform: translateX(3px);
}

.ms-cta-button:hover::before {
  left: 0;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(30px);
  }
}

/* Responsive Design */
@media (max-width: 1199px) {
  .ms-about-title {
    font-size: 36px;
  }

  .ms-section-title {
    font-size: 30px;
  }

  .ms-about-highlight-box {
    padding: 30px;
  }

  .ms-about-cta-section {
    padding: 40px;
  }

  .ms-cta-content h3 {
    font-size: 28px;
  }
}

@media (max-width: 991px) {
  .ms-highlight-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ms-about-why-section {
    padding: 40px 0;
  }

  .ms-about-expertise-section {
    padding: 40px 0;
  }

  .ms-expertise-item {
    gap: 15px;
    padding: 25px;
  }
}

@media (max-width: 767px) {
  .ms-about-title {
    font-size: 28px;
  }

  .ms-section-title {
    font-size: 24px;
  }

  .ms-about-highlight-box {
    padding: 20px;
  }

  .ms-highlight-grid {
    gap: 15px;
  }

  .ms-highlight-item {
    padding: 12px;
  }

  .ms-highlight-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .ms-why-card {
    padding: 25px;
  }

  .ms-why-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .ms-expertise-item {
    flex-direction: column;
    text-align: center;
  }

  .ms-expertise-icon {
    margin: 0 auto;
  }

  .ms-about-btn,
  .ms-cta-button {
    padding: 12px 30px;
    font-size: 14px;
  }

  .ms-cta-content h3 {
    font-size: 22px;
  }

  .ms-about-cta-section {
    padding: 30px;
  }

  .ms-about-text-block p {
    text-align: left;
  }
}

@media (max-width: 575px) {
  .ms-about-title {
    font-size: 24px;
  }

  .ms-section-title {
    font-size: 20px;
  }

  .ms-about-intro {
    font-size: 16px;
  }

  .ms-highlight-grid {
    grid-template-columns: 1fr;
  }

  .ms-highlight-content h4 {
    font-size: 18px;
  }

  .ms-why-card h4,
  .ms-expertise-item h4 {
    font-size: 18px;
  }

  .ms-about-cta-section::before,
  .ms-about-cta-section::after {
    display: none;
  }
}
