/* About Page Styles - Optimized */
:root {
  --red: #e64a2e;
  --yellow: #f7b731;
  --teal: #44c0b6;
  --navy: #2e5c89;
  --light: #f9f9f9;
  --dark: #333333;
}

/* Section Header - Consolidated from multiple instances */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--red);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  margin-top: 25px;
}

/* Enhanced About Hero Section */
.about-hero {
  padding: 120px 0 100px;
  background: linear-gradient(
    115deg,
    var(--light) 45%,
    var(--teal) 45.1%,
    var(--navy) 100%
  );
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.15;
  z-index: 1;
}

.about-hero::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 1;
}

.about-hero .floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.about-hero .floating-element {
  position: absolute;
  color: rgba(255, 255, 255, 0.15);
  font-size: 2rem;
  font-weight: bold;
  animation: float 15s infinite ease-in-out;
}

.about-hero .floating-element:nth-child(1) {
  top: 20%;
  left: 5%;
  animation-delay: 0s;
  font-size: 3rem;
}

.about-hero .floating-element:nth-child(2) {
  top: 65%;
  left: 10%;
  animation-delay: 2s;
  font-size: 2.5rem;
}

.about-hero .floating-element:nth-child(3) {
  top: 40%;
  right: 8%;
  animation-delay: 4s;
  font-size: 2.2rem;
}

.about-hero .floating-element:nth-child(4) {
  top: 75%;
  right: 15%;
  animation-delay: 1s;
  font-size: 3.2rem;
}

.about-hero .hero-content {
  padding: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  margin-left: 40px;
}

.about-hero .hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(to bottom, var(--red), var(--yellow));
}

.about-hero .hero-content h1 {
  font-size: 3.8rem;
  margin-bottom: 25px;
  line-height: 1.2;
  color: var(--navy);
  font-weight: 800;
  position: relative;
}

.about-hero .hero-content h1 span {
  color: var(--red);
  position: relative;
  z-index: 1;
}

.about-hero .hero-content h1 span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--yellow);
  z-index: -1;
  opacity: 0.7;
  transform: skewX(-15deg);
}

.about-hero .hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: #444;
  line-height: 1.8;
  max-width: 100%;
  font-weight: 500;
  padding-right: 20px;
}

.about-hero .hero-image {
  position: relative;
  margin-right: 40px;
}

.about-hero .hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
  transition: all 0.5s ease;
  border: 5px solid white;
}

.about-hero .hero-image:hover img {
  transform: perspective(1000px) rotateY(0) rotateX(0);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(20px) rotate(-5deg);
  }
}

/* Founder Story */
.founder-story {
  padding: 100px 0;
  background-color: var(--light);
}

.founder-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.founder-image {
  position: relative;
}

.founder-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.founder-quote {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--teal);
  color: white;
  padding: 25px;
  border-radius: 10px;
  width: 80%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.founder-quote p {
  font-style: italic;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.founder-quote span {
  font-weight: 600;
}

/* Story Timeline */
.story-timeline {
  position: relative;
}

.story-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 60px;
  width: 3px;
  background: var(--teal);
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.timeline-year {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 30px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  flex-grow: 1;
}

.timeline-content h4 {
  color: var(--navy);
  margin-bottom: 10px;
}

.timeline-content p {
  color: #666;
  margin-bottom: 0;
}

/* Academy Journey */
.academy-journey {
  padding: 100px 0;
}

.journey-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.journey-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.journey-content h3 {
  color: var(--navy);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.journey-content p {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.8;
}

.journey-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.journey-stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red);
  display: block;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  display: block;
  margin-top: 5px;
}

/* Teaching Philosophy */
.teaching-philosophy {
  padding: 100px 0;
  background-color: var(--light);
}

.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.philosophy-card {
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
}

.philosophy-card h3 {
  color: var(--navy);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.philosophy-card p {
  color: #666;
  line-height: 1.7;
}

/* Campus Gallery */
.campus-gallery {
  padding: 100px 0;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Team Section */
.team-section {
  padding: 100px 0;
  background-color: var(--light);
}

.team-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-member {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.member-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.1);
}

.member-social {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.member-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s ease;
}

.member-social a:hover {
  background: var(--navy);
}

.member-info {
  padding: 25px;
}

.member-info h3 {
  color: var(--navy);
  margin-bottom: 5px;
}

.member-role {
  color: var(--red);
  font-weight: 600;
  margin-bottom: 15px;
}

.member-bio {
  color: #666;
  line-height: 1.6;
}

/* Community Impact */
.community-impact {
  padding: 100px 0;
}

.impact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.impact-text h3 {
  color: var(--navy);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.impact-text p {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.8;
}

.impact-initiatives {
  margin-top: 40px;
}

.initiative {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.initiative i {
  font-size: 1.5rem;
  color: var(--teal);
  margin-right: 15px;
  margin-top: 5px;
}

.initiative h4 {
  color: var(--navy);
  margin-bottom: 5px;
}

.initiative p {
  color: #666;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.impact-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Call to Action */
.about-cta {
  padding: 100px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("./images/home3.jpg")
      no-repeat center center/cover;
  color: white;
  text-align: center;
}

.about-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--red);
  color: white;
}

.btn-primary:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--teal);
  color: white;
}

.btn-secondary:hover {
  background-color: #36968d;
  transform: translateY(-3px);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--navy);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .about-hero {
    gap: 50px;
  }

  .about-hero .hero-content h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 992px) {
  .about-hero {
    background: linear-gradient(
      115deg,
      var(--light) 50%,
      var(--teal) 50.1%,
      var(--navy) 100%
    );
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-hero .hero-content {
    padding: 30px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .about-hero .hero-content h1 {
    font-size: 2.8rem;
  }

  .about-hero .hero-image {
    margin: 0 20px;
  }

  .founder-content,
  .journey-container,
  .impact-content {
    grid-template-columns: 1fr;
  }

  .philosophy-cards,
  .team-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 80px 0 60px;
    background: var(--light);
  }

  .about-hero::before,
  .about-hero::after {
    display: none;
  }

  .about-hero .hero-content {
    padding: 25px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .about-hero .hero-content h1 {
    font-size: 2.3rem;
  }

  .about-hero .hero-content p {
    font-size: 1.1rem;
  }

  .about-hero .floating-elements {
    display: none;
  }

  .about-hero .hero-image img {
    transform: none;
  }

  .philosophy-cards,
  .team-container {
    grid-template-columns: 1fr;
  }

  .journey-stats {
    flex-direction: column;
    gap: 20px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .story-timeline::before {
    left: 35px;
  }

  .timeline-year {
    width: 50px;
    height: 50px;
    font-size: 1rem;
    margin-right: 20px;
  }
}

@media (max-width: 480px) {
  .about-hero .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .about-cta h2 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}