/* ===== About Section ===== */
.about {
  padding: 80px 20px;
  background: #f9f9f9;
}

.about .container {
  max-width: 1200px;
  margin: auto;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

/* Text Area */
.about-text {
  flex: 1 1 60%;
}

.about-text h2 {
  font-size: 2rem;
  color: #1d3557;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #333;
}

/* Mission Cards */
.about-mission {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.mission-card {
  flex: 1 1 45%;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
}

.mission-card h3 {
  margin-bottom: 10px;
  color: #e63946;
}

/* ===== Expertise Section ===== */
.expertise-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.expertise-item {
  width: 150px;        /* fixed card width */
  height: 200px;       /* fixed card height */
  perspective: 1000px;
}


.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front side (icon view) */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* keep everything inside */
}

/* Icon side */
.flip-card-front {
  background: transparent;
  font-size: 2rem;
  color: #1d3557;
}

.flip-card-front h4 {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #1d3557;
}

/* Info card side */
.flip-card-back {
  background: #ffffff;
  color: #333;
  transform: rotateY(180deg);
  padding: 15px;
  font-size: 0.9rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  justify-content: center;
  align-items: center;
  text-align: center;

  /* Keep text neat inside card */
  line-height: 1.4;
  padding: 20px;
  overflow-wrap: break-word;
}

/* Image Area */
.about-image {
  flex: 1 1 35%;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }
  .about-image {
    order: -1;
  }
}

.flip-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* shrink to fit */
  gap: 20px;
  justify-items: center;
  margin: 40px auto;
  max-width: 100%; /* allow full width */
}


