/* 
 * ABOUT PAGE REDESIGN STYLES 
 * Implements the vivid, grid-based aesthetic based on about-concept.png
 */

body[data-page="about"] {
  background-color: #fffaf0; /* Soft warm background seen in concept */
  background-image: none !important; /* Remove radial-gradients from styles.css */
  position: relative;
  overflow-x: hidden;
}

body[data-page="about"]::before,
body[data-page="about"]::after {
  content: none !important; /* Hide decorative dots from styles.css */
}

body[data-page="about"] .site-shell {
  background-image: none;
}

/* Base generic headings */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 3rem;
  font-weight: 800;
}
.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: -2rem auto 3rem auto;
}

/* Floating Decor */
.decor-element {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.decor-hero-blob {
  top: -50px;
  left: -100px;
  width: 400px;
  opacity: 0.8;
}
.decor-leaf-1 {
  top: 300px;
  right: -50px;
  width: 150px;
}
.decor-flower {
  top: 800px;
  left: -30px;
  width: 120px;
}
.decor-cloud {
  top: 400px;
  right: 10%;
  width: 140px;
  opacity: 0.7;
}


/* 1. HERO SECTION */
.about-hero-section {
  position: relative;
  width: 100%;
}
.hero-full-img {
  width: 100%;
  height: auto;
  display: block;
}
.absolute-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  width: 100%;
}
.about-hero-empty {
  flex: 1.7;
}
.about-hero-content {
  flex: 1;
  padding: 2rem 3% 2rem 0;
  max-width: 600px;
  transform: translateY(-40px);
}
.about-hero-content h1 {
  font-size: 3.5rem;
  color: #2c2f33;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.about-hero-content p {
  font-size: 1.25rem;
  color: #555;
  line-height: 1.6;
}

/* 2. VALUES GRID */
.about-values-section {
  padding: 5rem 0;
  position: relative;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.value-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0,0,0,0.04);
  transition: transform 0.3s ease;
}
.value-card:hover {
  transform: translateY(-5px);
}
.value-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon-box img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
/* Colorful backgrounds for icons */
.bg-mint { background-color: #E2F5ED; }
.bg-coral { background-color: #FFEAE4; }
.bg-yellow { background-color: #FFF4E2; }
.bg-blue { background-color: #E6F3FB; }

.value-card h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 1rem;
}
.value-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* 3. APPROACH / LEARNING GRID */
.about-approach-section {
  padding: 5rem 0;
  background-color: white;
  margin: 0 -5vw;
  padding: 5rem 5vw;
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.approach-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.approach-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}
.approach-item h3 {
  font-size: 1.25rem;
  color: #222;
  margin-bottom: 0.5rem;
}
.approach-item p {
  font-size: 0.9rem;
  color: #777;
}

/* 4. SPACE GRID */
.about-space-section {
  padding: 5rem 0;
}
.space-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.space-card {
  border-radius: 20px;
  padding: 2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.space-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  object-fit: contain;
}
.space-card h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #333;
}

/* 5. GALLERY SECTION */
.about-gallery-section {
  padding: 5rem 0;
  background-color: #fffaf0;
}
.gallery-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 5vw 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #f47b6a transparent;
}
.gallery-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.gallery-scroll-container::-webkit-scrollbar-thumb {
  background-color: #f47b6a;
  border-radius: 10px;
}
.gallery-scroll-container img {
  flex: 0 0 300px;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-scroll-container img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}
.image-modal.active {
  display: flex;
}
.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  animation: modalZoomIn 0.3s ease;
}
.image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  z-index: 10000;
}
.image-modal-close:hover {
  color: #f47b6a;
}
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  padding: 16px;
  user-select: none;
  z-index: 10000;
  transition: 0.2s;
  background-color: rgba(0,0,0,0.3);
  border-radius: 8px;
}
.modal-nav:hover {
  color: #f47b6a;
  background-color: rgba(0,0,0,0.6);
}
.modal-prev {
  left: 20px;
}
.modal-next {
  right: 20px;
}
@media (max-width: 600px) {
  .modal-nav {
    font-size: 30px;
    padding: 12px;
  }
}
@keyframes modalZoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-full-img {
    display: none; /* Hide the big banner completely on mobile */
  }
  .absolute-overlay {
    position: relative;
    transform: none; /* Reset overlap transform */
  }
  .about-hero-empty {
    display: none;
  }
  .about-hero-content {
    transform: none;
    padding: 100px 20px 20px; /* Increased top padding to clear header */
    margin: 0 auto;
    text-align: center;
  }
  .about-hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  .about-hero-content p {
    font-size: 1.05rem;
  }
  .gallery-scroll-container img {
    flex: 0 0 80vw; /* larger images on mobile */
    height: 220px;
    scroll-snap-align: center;
  }
}

@media (max-width: 768px) {
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .space-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-values-section, .about-approach-section, .about-space-section, .about-gallery-section {
    padding: 3.5rem 0;
  }
  .about-approach-section {
    padding: 3.5rem 5vw;
  }
}
@media (max-width: 480px) {
  .approach-grid, .space-grid {
    grid-template-columns: 1fr;
  }
  .about-hero-content h1 {
    font-size: 2.5rem;
  }
}

/* INFO TABLE */
.about-info-section {
  padding: 60px 20px;
  background-color: transparent;
}
.info-table-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #edf2f7;
  font-size: 1.05rem;
  color: var(--text-dark);
}
.info-table tr:last-child td {
  border-bottom: none;
}
.info-k {
  font-weight: 700;
  width: 40%;
  border-right: 1px solid #edf2f7;
  background-color: #fafbfc;
}
.info-v {
  font-weight: 600;
  width: 60%;
}
@media (max-width: 768px) {
  .info-table-wrapper {
    overflow-x: auto;
  }
  .info-k, .info-v {
    display: block;
    width: 100%;
    border-right: none;
  }
  .info-k {
    padding-bottom: 8px;
    border-bottom: none;
  }
  .info-v {
    padding-top: 0;
  }
}

