/* =================== ABOUT PAGE SPECIFIC STYLES =================== */
/* Base styles imported from styles.css */

/* =================== HERO SECTION =================== */
.about-hero.section {
  position: relative;
  min-height: clamp(240px, 38vh, 420px);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 90px;
  padding-top: 70px;
  padding-block: 0;
}

@media (max-width: 980px)  {
  .about-hero.section{
    margin-top: 80px;
  }
}



.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: 1.5rem;
  max-width: 900px;
  color: #fff;
}

.hero-overlay h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--white-color);
}

.hero-overlay p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.6;
  opacity: 0.95;
}

/* =================== EDITORIAL SECTION =================== */
.editorial-section {
  padding-block: 2.8rem 2rem;
}

.editorial-container {
  max-width: 1200px;
  margin: auto;
  position: relative;
}

.editorial-card {
  background: var(--card-bg);
  width: 60%;
  padding: 4.5rem 3.5rem;
  border: 4px solid var(--accent-color);
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 0;
  box-shadow: 50px 50px 100px var(--shadow-color);
}

.editorial-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.editorial-logo-img {
  height: 90px;
  object-fit: contain;
}

.editorial-card h2 {
  font-size: 2rem;
  font-weight: var(--font-medium);
  margin: 1.5rem 0;
}

.editorial-card h1 {
  font-size: 1.8rem;
  font-weight: var(--font-bold);
  margin-bottom: 0.5rem;
}

.editorial-card h2 {
  font-size: 1.2rem;
  font-weight: var(--font-medium);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.editorial-card p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-color);
  margin-bottom: 1.6rem;
}

.editorial-card .button {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 14px 38px;
  border-radius: 40px;
  background: var(--gradient-main);
  color: white;
  font-weight: var(--font-semi-bold);
  transition: transform .3s ease, box-shadow .3s ease;
}

.editorial-card .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(236, 19, 19, 0.35);
}

/* Floating Images */
.float {
  position: absolute;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 30px 60px rgba(0,0,0,.18);
  transition: transform .4s ease;
}

.float:hover {
  transform: scale(1.03);
}

.editorial-inline-img {
  position: relative;
  width: 180px;
  aspect-ratio: 4 / 5;
  display: none;
  margin-bottom: 1rem;
}

.editorial-inline-img .large {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  transform: translateX(65px);
}

.editorial-inline-img .small {
  position: absolute;
  width: 80%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  left: -70%;
  bottom: 20%;
  box-shadow: var(--shadow);
  background: #fff;
  padding: 0 10px 24px var(--shadow-color);
  display: block;
  transform: translateX(65px);
}

.editorial-inline-img .small-1 {
  left: 80%;
  z-index: 10;
  transform: translateX(-45px);
}

.editorial-inline-img .large-1 {
  transform: translateX(-45px);
}

/* LEFT SIDE IMAGES */
.editorial-img-1 {
  width: 140px;
  height: 190px;
  left: 140px;
  top: 40px;
}

.editorial-img-2 {
  width: 180px;
  height: 240px;
  left: 100px;
  top: 240px;
}

.editorial-img-3 {
  width: 150px;
  height: 190px;
  left: 120px;
  bottom: 60px;
}

/* RIGHT SIDE IMAGES */
.editorial-img-4 {
  width: 160px;
  height: 210px;
  right: 95px;
  top: 80px;
}

.editorial-img-5 {
  width: 130px;
  height: 180px;
  right: 140px;
  top: 360px;
}

.editorial-img-6 {
  width: 180px;
  height: 240px;
  right: 80px;
  bottom: 40px;
}

.editorial-img-1 { transform: rotate(-4deg); z-index: 10; }
.editorial-img-2 { transform: rotate(2deg); z-index: 10; }
.editorial-img-3 { transform: rotate(-3deg); z-index: 10; }
.editorial-img-4 { transform: rotate(3deg); z-index: 10; }
.editorial-img-5 { transform: rotate(-2deg); z-index: 10; }
.editorial-img-6 { transform: rotate(4deg); z-index: 10; }

/* =================== HISTORY SECTION =================== */
.our-history-section {
  height: auto;
  display: grid;
  place-items: center;
  padding-block: 2.8rem 7.5rem;
}

.our-history-section .section__subtitle {
  margin-bottom: 5rem;
}

.history-container {
  width: min(1100px, 90%);
  position: relative;
  margin-inline: auto;
}

.history-container::after {
  position: absolute;
  content: '';
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
  transform: translateX(-50%);
  border-radius: 999px;
  z-index: 1;
}

.history-container ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 4rem;
  padding: 0;
  margin: 0;
  row-gap: 6rem;
}

.history-container ul li {
  background: var(--card-bg);
  padding: 1.6rem 1.8rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  position: relative;
  margin-top: 0;
  transition: transform .25s ease, box-shadow .25s ease;
  z-index: 10;
}

.history-container ul li:nth-child(odd) {
  transform: translateY(-12px);
}

.history-container ul li:nth-child(even) {
  transform: translateY(80px);
}

.history-container ul li:hover {
  transform: translateY(-16px);
  box-shadow: 0 20px 45px rgba(0,0,0,.12);
}

.history-container ul li:nth-child(even):hover {
  transform: translateY(76px);
}

.history-title {
  font-size: 1.15rem;
  font-weight: var(--font-semi-bold);
  color: var(--primary-color);
  margin-bottom: .5rem;
}

.history-container ul li p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-color);
}

.history-date {
  position: absolute;
  top: -2.1rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  background: var(--gradient-main);
  color: var(--white-color);
  font-size: .85rem;
  font-weight: var(--font-semi-bold);
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.history-container ul li:nth-child(odd) .history-date { right: 0; }
.history-container ul li:nth-child(even) .history-date { left: 0; }

.history-circle {
  width: 14px;
  height: 14px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 0;
  animation: pulse 2.4s ease-in-out infinite;
  z-index: 10;
}

.history-circle::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--white-color);
  border-radius: 50%;
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.history-container ul li:nth-child(odd) .history-circle {
  right: calc(-2rem - 7px);
}

.history-container ul li:nth-child(even) .history-circle {
  left: calc(-2rem - 7px);
}

/* =================== TEAM SECTION =================== */
.our-team-section {
  padding-bottom: 5rem;
}

.team-container {
  width: 90%;
  max-width: 900px;
  margin: auto;
}

.team-container .section__subtitle {
  margin: 0 0 3rem;
  text-align: center;
}

.team-profile {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding: 3.5rem;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--border-color-light);
  box-shadow: 
    0 4px 6px var(--shadow-color),
    0 10px 20px var(--shadow-color),
    0 20px 40px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.team-profile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-main);
  border-radius: 24px 24px 0 0;
}

.team-profile .team-img {
  flex-shrink: 0;
  width: 240px;
  height: 280px;
  border-radius: 16px;
  padding: 4px;
  background: var(--gradient-main);
}

.team-profile .team-img-inner {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.team-profile .team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-profile .team-content {
  position: static;
  box-shadow: none;
  padding: 0;
  background: transparent;
  text-align: left;
}

.team-profile .team-content h3 {
  font-family: var(--Title-font);
  font-size: 1.75rem;
  color: var(--title-color);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.team-profile .team-content span {
  font-size: 0.85rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  display: block;
  margin-bottom: 1.5rem;
}

.team-divider {
  width: 60px;
  height: 2px;
  background: var(--gradient-main);
  margin-bottom: 1.5rem;
}

.team-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.team-profile .team-social-media {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: none;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 0;
}

.team-social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--panel-medium);
  transition: all 0.3s ease;
}

.team-social-media a i {
  font-size: 18px;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.team-social-media a:hover {
  background: var(--gradient-main);
  transform: translateY(-3px);
}

.team-social-media a:hover i {
  color: var(--white-color);
  transform: scale(1.15);
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1150px) {
  .editorial-card {
    width: 65%;
  }
  .editorial-img-1 { left: 140px; }
  .editorial-img-2 { left: 60px; }
  .editorial-img-3 { left: 80px; }
  .editorial-img-4 { right: 90px; }
  .editorial-img-5 { right: 100px; }
  .editorial-img-6 { right: 50px; }
  .our-team-section { padding-block: 2.8rem 5rem; }
}

@media (max-width: 980px) {
  .float {
    display: none;
  }
  .editorial-inline-img {
    display: flex;
  }
  .editorial-card {
    width: 80%;
    padding: 3rem 2rem;
  }
  .editorial-card p {
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1rem;
  }
  .editorial-card .button { margin-top: 1rem; }
  .large { width: 250px; }
  .small { width: 120px; }
}

@media (max-width: 900px) {
  .history-container {
    width: 85%;
    transform: translateX(10px);
  }
  .history-container::after {
    left: 18px;
    transform: none;
  }
  .history-container ul {
    grid-template-columns: 1fr;
    row-gap: 3.5rem;
  }
  .history-container ul li {
    grid-column: 1 !important;
    text-align: left !important;
    padding-left: 3.2rem;
  }
  .history-circle {
    left: 11px !important;
    right: auto !important;
    top: 1.3rem;
    z-index: 10;
  }
  .history-date {
    left: 3.2rem !important;
    right: auto !important;
    top: -2.2rem;
  }
  .history-container ul li:nth-child(odd) { transform: none; }
  .history-container ul li:nth-child(even) { transform: none; }
  .history-container ul li:hover { transform: translateY(-12px); }
  .history-container ul li:nth-child(even):hover { transform: translateY(-12px); }

  .team-profile {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
    gap: 2rem;
  }
  .team-profile .team-img {
    width: 200px;
    height: 220px;
  }
  .team-profile .team-content {
    text-align: center;
  }
  .team-profile .team-content h3 {
    font-size: 1.5rem;
  }
  .team-divider {
    margin: 0 auto 1.5rem;
  }
  .team-description {
    text-align: center;
  }
  .team-profile .team-social-media {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .team-profile {
    gap: 2.5rem;
    padding: 2.5rem;
  }
  .team-profile .team-img {
    width: 200px;
    height: 230px;
  }
}

@media (max-width: 600px) {
  .editorial-card {
    width: 90%;
    padding: 2.5rem 1.5rem;
  }
  .editorial-card h1 { font-size: 1.5rem; }
  .editorial-card h2 { font-size: 1.1rem; }
  .editorial-card p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

@media (max-width: 400px) {
  .editorial-card {
    padding: 2rem 1rem;
  }
  .editorial-card h1 { font-size: 1.3rem; }
  .editorial-card h2 { font-size: 1rem; }
}
