/**
 * About Page - Modern UI/UX
 * KISNA Institute - Responsive (mobile, tablet, desktop)
 */

/* ========== About page body ========== */
body.about-page {
  overflow-x: hidden;
}

/* ========== Hero / Page Title ========== */
.about-page .page-title {
  padding-top: 100px;
  background: linear-gradient(135deg, var(--kisna-primary) 0%, var(--kisna-dark) 50%, #043a0d 100%);
  color: var(--kisna-white);
  position: relative;
  overflow: hidden;
}

.about-page .page-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.about-page .page-title .heading {
  padding: 3.25rem 0 2.25rem;
  position: relative;
  z-index: 1;
}

.about-page .page-title .heading-title {
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: aboutHeroTitle 0.7s ease forwards;
}

.about-page .page-title .heading p.lead {
  color: rgba(255,255,255,0.92);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.6;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: aboutHeroSub 0.7s ease 0.15s forwards;
}

@keyframes aboutHeroTitle {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aboutHeroSub {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-page .page-title .breadcrumbs {
  background: rgba(0,0,0,0.2);
  padding: 0.75rem 0;
}

.about-page .page-title .breadcrumbs a,
.about-page .page-title .breadcrumbs .current {
  color: rgba(255,255,255,0.9);
}

.about-page .page-title .breadcrumbs a:hover {
  color: #fff;
}

.about-page .page-title nav ol li+li::before {
  color: rgba(255,255,255,0.6);
}

/* ========== Section spacing ========== */
.about-page .section {
  padding: 4rem 0;
}

.about-page .section.bg-light {
  background: linear-gradient(180deg, #f8faf9 0%, #fff 100%) !important;
}

/* ========== About Brand Section ========== */
#about.about.section .about-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin-bottom: 1rem;
}

#about.about.section .about-content p {
  margin-bottom: 1rem;
}

#about.about.section .image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

#about.about.section .image-wrapper .main-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: transform 0.5s ease;
}

#about.about.section .image-wrapper:hover .main-image {
  transform: scale(1.03);
}

#about.about.section .image-wrapper .floating-image {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 45%;
  max-width: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  border: 4px solid #fff;
}

#about.about.section .image-wrapper .floating-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== Vision & Mission cards ========== */
#vision-mission .card {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#vision-mission .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

#vision-mission .card-body {
  padding: 2rem !important;
}

#vision-mission .card .bi-eye-fill,
#vision-mission .card .bi-bullseye {
  color: var(--accent-color) !important;
  transition: transform 0.3s ease;
}

#vision-mission .card:hover .bi-eye-fill,
#vision-mission .card:hover .bi-bullseye {
  transform: scale(1.1);
}

#vision-mission .card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

#vision-mission .card .bi-check-circle-fill {
  color: var(--accent-color) !important;
}

/* ========== Why Choose - Feature boxes ========== */
#why-choose .feature-box {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#why-choose .feature-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent-color), transparent 92%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

#why-choose .feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  color: var(--accent-color);
  border-radius: 50%;
  font-size: 1.75rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

#why-choose .feature-box:hover .feature-icon {
  transform: scale(1.1);
  background: var(--accent-color);
  color: #fff;
}

#why-choose .feature-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

#why-choose .feature-box p {
  font-size: 0.9rem;
  color: var(--default-color);
  margin-bottom: 0;
}

/* ========== Trending Courses cards ========== */
#trending-courses .course-category-card {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#trending-courses .course-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

#trending-courses .course-category-card .text-primary,
#trending-courses .course-category-card .mb-3 i {
  color: var(--accent-color) !important;
  transition: transform 0.3s ease;
  display: inline-block;
}

#trending-courses .course-category-card:hover .bi-code-square,
#trending-courses .course-category-card:hover .bi-phone,
#trending-courses .course-category-card:hover .bi-graph-up,
#trending-courses .course-category-card:hover .bi-calculator,
#trending-courses .course-category-card:hover .bi-palette,
#trending-courses .course-category-card:hover .bi-shield-lock {
  transform: scale(1.1);
}

#trending-courses .btn-primary.btn-lg {
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#trending-courses .btn-primary.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-color), transparent 60%);
}

/* ========== Departments cards ========== */
#departments .department-card {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#departments .department-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: color-mix(in srgb, var(--accent-color), transparent 85%);
}

#departments .department-icon {
  flex-shrink: 0;
}

#departments .department-icon .text-primary {
  color: var(--accent-color) !important;
  transition: transform 0.3s ease;
}

#departments .department-card:hover .department-icon i {
  transform: scale(1.08);
}

/* ========== Training Model ========== */
#training-model .rounded.shadow {
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

#training-model .rounded.shadow:hover {
  transform: scale(1.02);
}

#training-model .bi-check-circle-fill {
  color: var(--accent-color) !important;
}

/* ========== Placement features ========== */
#placement .placement-feature {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#placement .placement-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

#placement .placement-feature .text-primary {
  color: var(--accent-color) !important;
  transition: transform 0.3s ease;
}

#placement .placement-feature:hover .mb-3 i {
  transform: scale(1.1);
}

#placement .alert-info {
  border-radius: 16px;
  border: none;
  background: color-mix(in srgb, var(--accent-color), transparent 94%);
  color: var(--heading-color);
}

#placement .alert-info .bi-info-circle-fill {
  color: var(--accent-color);
}

/* ========== Certification ========== */
#certification .rounded.shadow {
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  overflow: hidden;
}

#certification .bi-check-circle-fill {
  color: var(--accent-color) !important;
}

/* ========== Local Presence ========== */
#local-presence .local-presence-card {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

#local-presence .local-presence-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

#local-presence .bi-geo-alt-fill {
  color: var(--accent-color) !important;
}

/* ========== Brand Statement (green CTA) ========== */
#brand-statement.section.bg-primary {
  background: linear-gradient(135deg, var(--kisna-primary) 0%, var(--kisna-dark) 100%) !important;
  position: relative;
  overflow: hidden;
}

#brand-statement.section.bg-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

#brand-statement h2,
#brand-statement h3 {
  position: relative;
  z-index: 1;
}

#brand-statement .display-5 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

/* ========== CTA Section ========== */
#cta .cta-buttons .btn {
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#cta .cta-buttons .btn:hover {
  transform: translateY(-2px);
}

#cta .btn-primary {
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-color), transparent 60%);
}

/* ========== Section title ========== */
.about-page .section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.about-page .section-title p {
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
}

/* ========== Responsive: Tablet ========== */
@media (max-width: 991px) {
  .about-page .page-title {
    padding-top: 110px;
  }
  .about-page .page-title .heading {
    padding: 2.5rem 0 1.75rem;
  }
  .about-page .section {
    padding: 3rem 0;
  }
  #about.about.section .image-wrapper .floating-image {
    width: 40%;
    max-width: 180px;
    bottom: -12px;
    right: -12px;
  }
  #placement .col-lg-3 {
    margin-bottom: 0;
  }
}

/* ========== Responsive: Mobile ========== */
@media (max-width: 767px) {
  .about-page .page-title {
    padding-top: 120px;
  }
  .about-page .page-title .heading {
    padding: 2rem 0 1.5rem;
  }
  .about-page .page-title .heading-title {
    font-size: 1.35rem;
  }
  .about-page .section {
    padding: 2.5rem 0;
  }
  #about.about.section .image-wrapper .floating-image {
    width: 45%;
    max-width: 140px;
    bottom: -8px;
    right: -8px;
    border-width: 3px;
  }
  #vision-mission .card-body {
    padding: 1.5rem !important;
  }
  #why-choose .feature-box,
  #trending-courses .course-category-card,
  #departments .department-card {
    padding: 1.25rem !important;
  }
  #cta .cta-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem !important;
  }
  #cta .cta-buttons .me-3 {
    margin-right: 0 !important;
  }
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  .about-page .page-title .heading-title,
  .about-page .page-title .heading p.lead {
    animation: none;
    opacity: 1;
  }
  .about-page .card:hover,
  .about-page .feature-box:hover,
  .about-page .course-category-card:hover,
  .about-page .department-card:hover,
  .about-page .placement-feature:hover,
  #about.about.section .image-wrapper .main-image,
  #about.about.section .image-wrapper:hover .main-image {
    transform: none;
  }
}
