/**
 * -----------------------------------------------------------------------------
 * File        : public/assets/css/frontend/about/about-story.css
 * Project     : GyanPeeth Academy
 * Framework   : CodeIgniter 4
 * Version     : 5.0.0
 * -----------------------------------------------------------------------------
 * About Story Section
 * -----------------------------------------------------------------------------
 * Premium Minimal Design
 * Responsive
 * -----------------------------------------------------------------------------
 */

/*==============================================================================
    ABOUT STORY
==============================================================================*/

.fe-about-story {
  position: relative;

  overflow: hidden;

  padding: 7rem 0;

  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

/* Decorative */

.fe-about-story::before {
  content: "";

  position: absolute;

  top: -180px;

  right: -120px;

  width: 420px;

  height: 420px;

  border-radius: 50%;

  background: radial-gradient(rgba(37, 99, 235, 0.08), transparent 70%);

  pointer-events: none;
}

.fe-about-story::after {
  content: "";

  position: absolute;

  bottom: -150px;

  left: -120px;

  width: 360px;

  height: 360px;

  border-radius: 50%;

  background: radial-gradient(rgba(249, 115, 22, 0.06), transparent 70%);
}

/*==============================================================================
    CONTAINER
==============================================================================*/

.fe-about-story .fe-container {
  position: relative;

  z-index: 2;
}

/*==============================================================================
    GRID
==============================================================================*/

.fe-about-story__grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(420px, 0.9fr);

  gap: 5rem;

  align-items: center;
}

/*==============================================================================
    LEFT
==============================================================================*/

.fe-about-story__content {
  max-width: 680px;
}

.fe-about-story__lead {
  margin: 2rem 0;

  font-size: 1.15rem;

  line-height: 1.9;

  color: var(--fe-text-light, #64748b);
}

.fe-about-story__content-text {
  display: flex;

  flex-direction: column;

  gap: 1.5rem;
}

.fe-about-story__content-text p {
  margin: 0;

  color: var(--fe-text, #475569);

  line-height: 1.9;

  font-size: 1rem;
}

/*==============================================================================
    HIGHLIGHTS
==============================================================================*/

.fe-about-story__highlights {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1rem;

  margin-top: 2.5rem;
}

.fe-about-highlight {
  display: flex;

  align-items: center;

  gap: 1rem;

  padding: 1rem 1.25rem;

  background: #fff;

  border-radius: 18px;

  border: 1px solid rgba(37, 99, 235, 0.08);

  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.fe-about-highlight:hover {
  transform: translateY(-6px);

  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.1);
}

.fe-about-highlight i {
  width: 48px;

  height: 48px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 14px;

  color: #fff;

  background: linear-gradient(135deg, #2563eb, #3b82f6);

  flex-shrink: 0;
}

.fe-about-highlight span {
  font-weight: 600;

  color: #0f172a;
}

/*==============================================================================
    BUTTONS
==============================================================================*/

.fe-about-story__actions {
  display: flex;

  gap: 1rem;

  flex-wrap: wrap;

  margin-top: 3rem;
}

.fe-about-story__actions .fe-btn {
  min-width: 190px;

  justify-content: center;
}
/*==============================================================================
    RIGHT COLUMN
==============================================================================*/

.fe-about-story__visual {
  position: relative;

  display: flex;

  flex-direction: column;

  gap: 1.5rem;
}

/*==============================================================================
    MAIN CARD
==============================================================================*/

.fe-about-story__card {
  overflow: hidden;

  border-radius: 28px;

  background: #fff;

  border: 1px solid rgba(37, 99, 235, 0.08);

  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.08);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.fe-about-story__card:hover {
  transform: translateY(-8px);

  box-shadow: 0 35px 90px rgba(37, 99, 235, 0.14);
}

/*==============================================================================
    IMAGE
==============================================================================*/

.fe-about-story__image {
  position: relative;

  overflow: hidden;

  aspect-ratio: 16/10;

  background: #eef4ff;
}

.fe-about-story__image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform 0.7s ease;
}

.fe-about-story__card:hover .fe-about-story__image img {
  transform: scale(1.05);
}

/*==============================================================================
    INFO
==============================================================================*/

.fe-about-story__info {
  padding: 2rem;
}

.fe-about-story__label {
  display: inline-flex;

  align-items: center;

  gap: 0.6rem;

  padding: 0.65rem 1rem;

  margin-bottom: 1.2rem;

  border-radius: 999px;

  background: rgba(37, 99, 235, 0.08);

  color: var(--fe-primary, #2563eb);

  font-size: 0.88rem;

  font-weight: 700;
}

.fe-about-story__label i {
  color: #f59e0b;
}

.fe-about-story__info-title {
  margin: 0 0 1rem;

  font-size: 1.65rem;

  font-weight: 800;

  line-height: 1.3;

  color: #0f172a;
}

.fe-about-story__info-text {
  margin: 0;

  color: #64748b;

  line-height: 1.8;
}

/*==============================================================================
    FEATURE GRID
==============================================================================*/

.fe-about-story__features {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1rem;
}

/*==============================================================================
    FEATURE CARD
==============================================================================*/

.fe-about-feature-card {
  display: flex;

  gap: 1rem;

  align-items: flex-start;

  padding: 1.3rem;

  border-radius: 20px;

  background: #fff;

  border: 1px solid rgba(37, 99, 235, 0.08);

  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.fe-about-feature-card:hover {
  transform: translateY(-6px);

  border-color: rgba(37, 99, 235, 0.18);

  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.1);
}

/*==============================================================================
    ICON
==============================================================================*/

.fe-about-feature-card__icon {
  width: 54px;

  height: 54px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 16px;

  color: #fff;

  font-size: 1.2rem;

  background: linear-gradient(135deg, #2563eb, #3b82f6);

  transition: transform 0.3s ease;
}

.fe-about-feature-card:hover .fe-about-feature-card__icon {
  transform: rotate(-8deg) scale(1.08);
}

/*==============================================================================
    TEXT
==============================================================================*/

.fe-about-feature-card h4 {
  margin: 0 0 0.45rem;

  font-size: 1rem;

  font-weight: 700;

  color: #0f172a;
}

.fe-about-feature-card p {
  margin: 0;

  color: #64748b;

  font-size: 0.92rem;

  line-height: 1.7;
}
/*==============================================================================
    DECORATIVE ELEMENTS
==============================================================================*/

.fe-about-story__visual::before {
  content: "";

  position: absolute;

  top: -40px;

  right: -40px;

  width: 180px;

  height: 180px;

  border-radius: 50%;

  background: radial-gradient(rgba(37, 99, 235, 0.1), transparent 70%);

  pointer-events: none;

  z-index: -1;
}

.fe-about-story__visual::after {
  content: "";

  position: absolute;

  bottom: -60px;

  left: -50px;

  width: 140px;

  height: 140px;

  border-radius: 50%;

  background: radial-gradient(rgba(249, 115, 22, 0.08), transparent 70%);

  pointer-events: none;

  z-index: -1;
}

/*==============================================================================
    HOVER IMPROVEMENTS
==============================================================================*/

.fe-about-story__card,
.fe-about-highlight,
.fe-about-feature-card {
  will-change: transform;
}

.fe-about-story__card:hover {
  border-color: rgba(37, 99, 235, 0.18);
}

.fe-about-story__card:hover .fe-about-story__label {
  background: #2563eb;

  color: #fff;
}

.fe-about-story__card:hover .fe-about-story__label i {
  color: #fff;
}

/*==============================================================================
    IMAGE OVERLAY
==============================================================================*/

.fe-about-story__image::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(to top, rgba(15, 23, 42, 0.2), transparent 60%);

  opacity: 0;

  transition: 0.4s ease;
}

.fe-about-story__card:hover .fe-about-story__image::before {
  opacity: 1;
}

/*==============================================================================
    TABLET
==============================================================================*/

@media (max-width: 991px) {
  .fe-about-story {
    padding: 5rem 0;
  }

  .fe-about-story__grid {
    grid-template-columns: 1fr;

    gap: 3rem;
  }

  .fe-about-story__content {
    max-width: 100%;
  }

  .fe-about-story__visual {
    max-width: 700px;

    margin-inline: auto;

    width: 100%;
  }
}

/*==============================================================================
    MOBILE
==============================================================================*/

@media (max-width: 768px) {
  .fe-about-story {
    padding: 4rem 0;
  }

  .fe-about-story__highlights {
    grid-template-columns: 1fr;
  }

  .fe-about-story__features {
    grid-template-columns: 1fr;
  }

  .fe-about-story__actions {
    flex-direction: column;
  }

  .fe-about-story__actions .fe-btn {
    width: 100%;

    min-width: 100%;
  }

  .fe-about-story__card {
    border-radius: 22px;
  }

  .fe-about-story__info {
    padding: 1.5rem;
  }

  .fe-about-story__info-title {
    font-size: 1.35rem;
  }

  .fe-about-highlight {
    padding: 1rem;
  }

  .fe-about-feature-card {
    padding: 1rem;
  }

  .fe-about-highlight i,
  .fe-about-feature-card__icon {
    width: 48px;

    height: 48px;

    font-size: 1rem;
  }
}

/*==============================================================================
    SMALL MOBILE
==============================================================================*/

@media (max-width: 480px) {
  .fe-about-story__lead {
    font-size: 1rem;
  }

  .fe-about-story__content-text p {
    font-size: 0.95rem;
  }

  .fe-about-story__label {
    font-size: 0.8rem;
  }

  .fe-about-story__info-title {
    font-size: 1.2rem;
  }
}

/*==============================================================================
    ACCESSIBILITY
==============================================================================*/

.fe-about-story a:focus-visible,
.fe-about-highlight:focus-visible,
.fe-about-feature-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);

  outline-offset: 4px;
}

/*==============================================================================
    REDUCED MOTION
==============================================================================*/

@media (prefers-reduced-motion: reduce) {
  .fe-about-story * {
    animation: none !important;

    transition: none !important;

    scroll-behavior: auto !important;
  }
}

/*==============================================================================
    PRINT
==============================================================================*/

@media print {
  .fe-about-story {
    background: #fff;
  }

  .fe-about-story::before,
  .fe-about-story::after,
  .fe-about-story__visual::before,
  .fe-about-story__visual::after {
    display: none;
  }
}
