/* =========================
   About Page — v5 MOBILE FIXED
   Enhanced Design + Role Accordion (working on mobile)
   ========================= */

* { box-sizing: border-box; }

/* ===== Hero Section ===== */
.about-hero {
  position: relative;
  background: linear-gradient(135deg, #062141, #0a4d4d);
  color: white;
  padding: 140px 25px 80px;
  text-align: center;
  overflow: hidden;
  width: 100%;
}

.hero-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; }
.shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.05); animation: float 20s infinite ease-in-out; }
.shape-1 { width: 320px; height: 320px; top: -110px; right: -70px; animation-delay: 0s; }
.shape-2 { width: 210px; height: 210px; bottom: -55px; left: 10%; animation-delay: 6s; }
.shape-3 { width: 160px; height: 160px; top: 50%; left: -35px; animation-delay: 12s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50%       { transform: translateY(-32px) rotate(180deg); opacity: 0.6; }
}

.about-inner { position: relative; max-width: 900px; margin: 0 auto; z-index: 1; }
.hero-icon { font-size: 70px; margin-bottom: 22px; animation: pulse 2s infinite; }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.about-hero h1 { font-size: 52px; font-weight: 800; margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,0.25); letter-spacing: -0.5px; }
.about-hero p  { font-size: 19px; line-height: 1.8; color: rgba(255,255,255,0.92); max-width: 800px; margin: 0 auto; }

/* ===== About Section (Vision / Mission / Values) ===== */
.about-section { padding: 80px 20px; background: #f8f9fa; width: 100%; }
.about-wrap    { max-width: 1100px; margin: 0 auto; }

.about-card {
  background: white; padding: 40px; margin-bottom: 32px; border-radius: 20px;
  box-shadow: 0 10px 35px rgba(6,33,65,0.1); border: 1px solid rgba(6,33,65,0.08);
  opacity: 0; transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.about-card::before { content:''; position:absolute; top:0; right:0; width:4px; height:0; background:linear-gradient(135deg,#062141,#0a3a5c); transition:height 0.6s ease; }
.about-card.visible { opacity:1; transform:translateY(0); }
.about-card.visible::before { height:100%; }
.about-card:hover { box-shadow:0 18px 50px rgba(6,33,65,0.15); transform:translateY(-6px); }

.card-icon { width:70px; height:70px; background:linear-gradient(135deg,rgba(6,33,65,0.1),rgba(10,58,92,0.15)); border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:22px; }
.card-icon i { font-size:32px; color:#062141; }

.about-title { font-size:34px; font-weight:800; margin-bottom:20px; color:#062141; position:relative; display:inline-block; }
.about-title::after { content:''; position:absolute; bottom:-8px; right:0; width:0; height:3px; background:linear-gradient(90deg,#0a3a5c,#062141); transition:width 0.6s ease; border-radius:2px; }
.about-card.visible .about-title::after { width:100%; }
.about-card p { font-size:17px; line-height:1.9; color:#4b4b4b; text-align:justify; margin:0; }

/* ===== Team Section ===== */
.team-section { padding: 70px 20px 80px; background: white; width: 100%; }
.team-wrap    { max-width: 1200px; margin: 0 auto; }

.section-title-a { font-size:42px; font-weight:800; color:#062141; text-align:center !important; margin-bottom:14px; position:relative; }
.section-title-a::before { content:''; position:absolute; bottom:-12px; left:50%; transform:translateX(-50%); width:80px; height:4px; background:linear-gradient(90deg,#062141,#0a3a5c); border-radius:2px; }
.section-subtitle-a { text-align:center; font-size:17px; color:#666; margin-bottom:55px; margin-top:28px; }

/* ===== No-team fallback ===== */
.no-team {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
.no-team i { font-size: 60px; margin-bottom: 20px; display: block; }
.no-team p { font-size: 18px; }

/* ===================================
   ROLE ACCORDION STYLES - MOBILE FIXED
   All sections closed by default.
=================================== */

.role-accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 45px;
}

.role-section {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(6,33,65,0.08);
  border: 1px solid rgba(6,33,65,0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.role-section.open { box-shadow: 0 8px 32px rgba(6,33,65,0.14); }

/* Header button - MOBILE FIX: ensure it's tappable */
.role-header {
  width: 100%;
  padding: 22px 30px;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: right;
  transition: background 0.3s ease;
  border-radius: 20px;
  min-height: 72px;
  /* MOBILE FIX: Ensure proper touch interaction */
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.role-section.open .role-header {
  background: linear-gradient(135deg, #062141, #0a4d4d);
  border-radius: 20px 20px 0 0;
}

.role-header:hover:not(.role-section.open .role-header) { background: #f8f9fa; }

/* MOBILE FIX: Active state for touch feedback */
.role-header:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.role-header-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  pointer-events: none; /* Let clicks pass through to button */
}

.role-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(6,33,65,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.role-icon i { font-size: 20px; color: #062141; transition: color 0.3s ease; }
.role-section.open .role-icon   { background: rgba(255,255,255,0.2); }
.role-section.open .role-icon i { color: white; }

.role-name {
  font-size: 20px; font-weight: 800; color: #062141;
  transition: color 0.3s ease; flex: 1;
}
.role-section.open .role-name { color: white; }

.role-count {
  font-size: 13px; font-weight: 700;
  color: #0a4d4d;
  background: rgba(10,77,77,0.1);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(10,77,77,0.2);
  white-space: nowrap;
  transition: all 0.3s ease;
}
.role-section.open .role-count {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.role-chevron {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(6,33,65,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
  pointer-events: none; /* Let clicks pass through to button */
}
.role-chevron i { 
  font-size: 14px; 
  color: #062141; 
  transition: transform 0.4s cubic-bezier(0.68,-0.55,0.265,1.55), color 0.3s ease; 
  pointer-events: none;
}
.role-section.open .role-chevron   { background: rgba(255,255,255,0.2); }
.role-section.open .role-chevron i { transform: rotate(180deg); color: white; }

/* Panel */
.role-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
  background: #f8fafc;
}

/* Members grid */
.role-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 28px;
}

/* ===== Team Member Card ===== */
.team-member {
  background: white; padding: 30px 24px; border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06); text-align: center;
  position: relative; overflow: hidden;
  border: 1px solid rgba(6,33,65,0.08);
  opacity: 0; transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.team-member.visible { opacity: 1; transform: translateY(0); }

.team-member::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: left 0.6s ease;
}
.team-member:hover::before { left: 100%; }
.team-member:hover { box-shadow: 0 12px 35px rgba(0,0,0,0.1); transform: translateY(-6px) scale(1.02); }

.team-avatar { position: relative; width: 100px; height: 100px; margin: 0 auto 18px; }
.team-avatar img { width:100%; height:100%; border-radius:50%; object-fit:cover; border:4px solid white; box-shadow:0 8px 20px rgba(0,0,0,0.12); position:relative; z-index:1; }
.avatar-ring { position:absolute; inset:-4px; border-radius:50%; background:linear-gradient(135deg,#062141,#0a3a5c,#223d3d); z-index:0; animation:rotate 8s linear infinite; }

@keyframes rotate { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }

.team-member h3   { font-size:20px; font-weight:800; color:#062141; margin-bottom:6px; }
.team-role        { font-size:13px; color:#0a3a5c; font-weight:700; margin-bottom:14px; display:block; }
.team-info        { text-align:right; }
.team-info p      { font-size:14px; color:#666; margin:8px 0; line-height:1.7; display:flex; align-items:flex-start; gap:8px; }
.team-info i      { color:#0a3a5c; margin-top:3px; font-size:14px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .about-hero     { padding: 110px 20px 65px; }
  .about-hero h1  { font-size: 38px; }
  .about-hero p   { font-size: 17px; }
  .hero-icon      { font-size: 55px; }
  .about-title    { font-size: 28px; }
  .section-title-a { font-size: 34px; }
  .about-card     { padding: 32px 26px; }
  .team-member    { padding: 28px 20px; }
  
  /* MOBILE FIX: Better touch target */
  .role-header    { 
    padding: 20px 18px; 
    min-height: 68px;
  }
  .role-name      { font-size: 17px; }
  .role-members-grid { 
    grid-template-columns: 1fr; 
    padding: 20px; 
    gap: 18px; 
  }
}

@media (max-width: 480px) {
  .about-hero h1      { font-size: 32px; }
  .about-title        { font-size: 24px; }
  .about-card         { padding: 28px 22px; }
  .role-header-content { gap: 10px; }
  .role-icon          { width: 38px; height: 38px; }
  .role-icon i        { font-size: 18px; }
  .role-name          { font-size: 16px; }
  .role-count         { font-size: 12px; padding: 5px 12px; }
  
  /* MOBILE FIX: Even better touch target on small screens */
  .role-header { 
    padding: 18px 16px;
    min-height: 64px;
  }
}