/* ==========================================
   ABOUT PAGE - OPTIMIZED & SEMANTIC
   Lê Thành Tâm - Giới thiệu
   Chỉ chứa CSS riêng cho trang About
   ========================================== */

/* ==========================================
   HERO BANNER
   ========================================== */
.about-hero {
  position: relative;
  width: 100%;
  height: 600px;
  margin-top: 72px;
  overflow: hidden;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url(../Images/About/banner.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: fadeIn 1s ease-out both;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
}

/* ==========================================
   JOURNEY SECTION - Hành trình
   ========================================== */
.journey-section {
  padding: 80px 32px;
  background: linear-gradient(180deg, #f9fafb 0%, #eff6ff 100%);
}

.journey-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.icon-wrapper {
  margin: 0 auto 24px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: #101727;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: #495565;
  line-height: 1.7;
  max-width: 768px;
  margin: 0 auto;
}

.section-description {
  font-size: 16px;
  color: #495565;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}

/* IMAGE GRID */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.image-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 500px;
  min-height: 280px;
  animation: scaleIn 0.6s ease-out both;
}

.image-card:nth-child(1) {
  animation-delay: 0.1s;
}

.image-card:nth-child(2) {
  animation-delay: 0.2s;
}

.image-card:nth-child(3) {
  animation-delay: 0.3s;
}

.image-card:nth-child(4) {
  animation-delay: 0.4s;
}

.image-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.image-card:hover .card-image {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: rgba(189, 218, 255, 0.9);
  backdrop-filter: blur(8px);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.card-title {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.card-description {
  font-size: clamp(14px, 1.5vw, 16px);
  color: #374151;
}

.card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: #155dfc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(21, 93, 252, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

/* ==========================================
   STORY SECTION - Câu chuyện
   ========================================== */
.story-section {
  padding: 80px 32px;
  background-color: #ffffff;
}

.story-container {
  max-width: 1200px;
  margin: 0 auto;
}

.story-content {
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: center;
  margin-top: 64px;
}

.story-text {
  flex: 1;
  background-color: #eff6ff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  animation: slideInLeft 0.8s ease-out both;
}

.story-text:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.story-paragraph {
  font-size: 16px;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 16px;
}

.story-quote {
  border-left: 4px solid #155dfc;
  padding-left: 20px;
  margin: 24px 0;
  background-color: rgba(21, 93, 252, 0.02);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  font-style: italic;
  color: #1c398e;
  line-height: 1.6;
}

.story-profile {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: slideInRight 0.8s ease-out both;
}

.profile-avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #dbeafe;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: #101828;
  text-align: center;
}

.profile-title {
  font-size: 18px;
  font-weight: 700;
  color: #155dfc;
  text-align: center;
}

/* ==========================================
   TRAINING SECTION - Đào tạo
   ========================================== */
.training-section {
  padding: 80px 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.training-container {
  max-width: 1200px;
  margin: 0 auto;
}

.hospital-tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 48px auto;
}

.hospital-tag {
  background-color: #eff6ff;
  border-radius: 24px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #155dfc;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out both;
}

.hospital-tag:nth-child(1) {
  animation-delay: 0.1s;
}

.hospital-tag:nth-child(2) {
  animation-delay: 0.2s;
}

.hospital-tag:nth-child(3) {
  animation-delay: 0.3s;
}

.hospital-tag:nth-child(4) {
  animation-delay: 0.4s;
}

.hospital-tag:nth-child(5) {
  animation-delay: 0.5s;
}

.hospital-tag:nth-child(6) {
  animation-delay: 0.6s;
}

.hospital-tag:hover {
  transform: translateY(-2px);
  background-color: #dbeafe;
}

.experience-summary {
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid #e0f2fe;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  font-size: 16px;
  color: #495565;
  line-height: 1.7;
}

/* ==========================================
   COMMUNITY SECTION - Cộng đồng
   ========================================== */
.community-section {
  padding: 80px 32px;
  background-color: #f0f9ff;
}

.community-container {
  max-width: 1000px;
  margin: 0 auto;
}

.community-content {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
}

.community-number {
  text-align: center;
  margin-bottom: 16px;
}

.big-number {
  font-size: clamp(72px, 10vw, 96px);
  font-weight: 800;
  color: #155dfc;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(21, 93, 252, 0.2);
}

.number-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: #334155;
}

.community-text {
  font-size: 16px;
  color: #475569;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 100%;
  width: 100%;
}

.location-tag {
  background-color: #eff6ff;
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  border: 2px solid #dbeafe;
  font-size: 18px;
  font-weight: 700;
  color: #155dfc;
  transition: all 0.3s ease;
}

.location-tag:hover {
  transform: scale(1.05);
  background-color: #155dfc;
  border-color: #155dfc;
  color: #ffffff;
}

.community-quote {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-size: clamp(18px, 2.5vw, 22px);
  font-style: italic;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 1.6;
  max-width: 100%;
}

.cta-wrapper {
  margin: 24px 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #155dfc 0%, #1c398e 100%);
  color: #ffffff;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(21, 93, 252, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(21, 93, 252, 0.4);
}

.cta-button i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.cta-button:hover i {
  transform: translateX(4px);
}

/* ==========================================
   PHILOSOPHY SECTION - Triết lý
   ========================================== */
.philosophy-section {
  padding: 80px 32px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
  position: relative;
}

.philosophy-container {
  max-width: 1200px;
  margin: 0 auto;
}

.philosophy-section .section-header {
  margin-bottom: 48px;
}

.philosophy-section .icon-wrapper {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.philosophy-section .section-title {
  color: #155dfc;
  font-size: clamp(28px, 4vw, 36px);
}

.philosophy-section .section-subtitle {
  color: #64748b;
  font-weight: 500;
  font-size: clamp(16px, 2vw, 18px);
}

.philosophy-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.philosophy-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: left;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out both;
  border: 1px solid #e0f2fe;
}

.philosophy-card:nth-child(1) {
  animation-delay: 0.2s;
}

.philosophy-card:nth-child(2) {
  animation-delay: 0.3s;
}

.philosophy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(21, 93, 252, 0.12);
  border-color: #bfdbfe;
}

.card-text {
  font-size: 16px;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 20px;
}

.card-label {
  font-size: 17px;
  font-weight: 600;
  color: #334155;
  margin: 24px 0 20px 0;
}

.philosophy-motto {
  background: linear-gradient(135deg, #155dfc 0%, #60a5fa 100%);
  border-radius: 12px;
  padding: 28px 36px;
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(21, 93, 252, 0.2);
  font-size: clamp(22px, 2.8vw, 26px);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.5;
}

.card-mission {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  color: #155dfc;
  margin-bottom: 20px;
  line-height: 1.4;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0f2fe;
}

.final-quote {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-radius: 16px;
  padding: 40px 48px;
  border: 2px solid #bfdbfe;
  box-shadow: 0 4px 20px rgba(21, 93, 252, 0.15);
  font-size: clamp(20px, 2.8vw, 26px);
  font-style: italic;
  font-weight: 600;
  color: #155dfc;
  text-align: center;
  line-height: 1.7;
  animation: scaleIn 0.8s ease-out 0.4s both;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Desktop Large: ≥1280px */
@media (min-width: 1280px) {
  .about-hero {
    height: 600px;
  }

  .hero-banner::after {
    height: 120px;
  }
}

/* Tablet: 800-1279px */
@media (max-width: 1279px) and (min-width: 800px) {
  .about-hero {
    height: 450px;
  }

  .hero-banner::after {
    height: 80px;
  }

  .journey-section,
  .story-section,
  .training-section,
  .community-section,
  .philosophy-section {
    padding: 60px 24px;
  }

  .image-grid {
    gap: 24px;
  }

  .image-card {
    height: 420px;
  }

  .story-content {
    flex-direction: row;
    gap: 32px;
  }

  .profile-avatar {
    width: 220px;
    height: 220px;
  }

  .hospital-tags {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .community-content {
    padding: 32px;
  }

  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-card {
    padding: 32px;
  }

  .final-quote {
    padding: 32px 40px;
  }
}

/* Mobile: ≤799px */
@media (max-width: 799px) {
  .about-hero {
    height: 350px;
  }

  .hero-banner::after {
    height: 60px;
  }

  .journey-section,
  .story-section,
  .training-section,
  .community-section,
  .philosophy-section {
    padding: 48px 16px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .image-card {
    height: 280px;
    min-height: 240px;
  }

  .card-overlay {
    height: 100px;
  }

  .card-content {
    padding: 16px;
  }

  .card-description {
    display: none;
  }

  .card-badge {
    width: 36px;
    height: 36px;
    top: 12px;
    right: 12px;
    font-size: 14px;
  }

  .story-content {
    flex-direction: column;
    gap: 24px;
  }

  .story-text {
    padding: 24px;
  }

  .profile-avatar {
    width: 180px;
    height: 180px;
  }

  .hospital-tags {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hospital-tag {
    padding: 10px 20px;
    font-size: 14px;
  }

  .experience-summary {
    padding: 24px;
    font-size: 15px;
  }

  .community-content {
    padding: 24px;
  }

  .location-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .location-tag {
    padding: 12px 16px;
    font-size: 15px;
  }

  .community-quote {
    padding: 24px;
    font-size: 18px;
  }

  .philosophy-card {
    padding: 24px;
  }

  .philosophy-motto {
    padding: 24px 28px;
  }

  .final-quote {
    padding: 28px 32px;
  }
}

/* Small Mobile: ≤480px */
@media (max-width: 480px) {
  .about-hero {
    height: 280px;
  }

  .hero-banner::after {
    height: 50px;
  }

  .journey-section,
  .story-section,
  .training-section,
  .community-section,
  .philosophy-section {
    padding: 40px 12px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle,
  .section-description {
    font-size: 15px;
  }

  .image-grid {
    gap: 12px;
  }

  .image-card {
    height: 220px;
    min-height: 180px;
  }

  .card-overlay {
    height: 70px;
  }

  .card-content {
    padding: 10px;
  }

  .card-title {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .card-description {
    display: none;
  }

  .card-badge {
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
    font-size: 12px;
  }

  .profile-avatar {
    width: 160px;
    height: 160px;
  }

  .profile-name {
    font-size: 20px;
  }

  .profile-title {
    font-size: 16px;
  }

  .big-number {
    font-size: 60px;
  }

  .philosophy-motto {
    padding: 20px 24px;
  }

  .final-quote {
    padding: 24px 28px;
  }
}

/* ==========================================
   FOOTER OVERRIDES - Fix icon colors
   ========================================== */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo i {
  font-size: 32px;
  color: #ffffff !important;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff !important;
}

.footer-link-item i {
  color: #60a5fa !important;
}

.footer-link-item a {
  color: #ffffff !important;
  transition: opacity 0.3s ease;
}

.footer-link-item a:hover {
  opacity: 0.8;
}

/* Reduce animations on request */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}