/* =========================================
   CEO PROFILE PAGE (FINAL STABLE VERSION)
========================================= */

/* ===============================
   CEO PROFILE LAYOUT
=============================== */
.ceo-profile {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: center;
  animation: fadeUp 0.8s ease;
}

/* ===============================
   IMAGE
=============================== */
.ceo-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-2);
  transition: transform 0.4s ease;
}

.ceo-image:hover img {
  transform: scale(1.03);
}

/* ===============================
   CONTENT
=============================== */
.ceo-name {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.ceo-title {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 18px;
}

.ceo-content {
  max-width: 600px;
}

.ceo-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===============================
   HIGHLIGHTS
=============================== */
.ceo-highlights {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.ceo-highlights li {
  margin-bottom: 10px;
  padding-left: 26px;
  position: relative;
}

.ceo-highlights li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* ===============================
   CEO GALLERY (FIXED HARD)
=============================== */
.site-main .ceo-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;
  margin-top: var(--space-lg);
}

/* FORCE UNIFORM BOX */
.site-main .ceo-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
}

/* IMAGE FIX */
.site-main .ceo-gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.4s ease;
}

.site-main .ceo-gallery-item:hover img {
  transform: scale(1.08);
}

/* ===============================
   ANIMATION
=============================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   RESPONSIVE
=============================== */

/* TABLET */
@media (max-width: 992px) {

  .ceo-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ceo-content {
    margin: 0 auto;
  }

  .site-main .ceo-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }

}

/* MOBILE */
@media (max-width: 768px) {

  .ceo-name {
    font-size: 1.8rem;
  }

  .site-main .ceo-gallery {
    grid-template-columns: 1fr !important;
  }

}
