/* a-escola.css */

/* About Page Banner */
.about-page-banner {
  background-color: var(--color-navy);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  padding: 8rem 0 10rem 0;
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  z-index: 11;
}

.about-page-banner h1 {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  color: var(--color-white);
  position: relative;
  z-index: 5;
}

.about-page-banner .breadcrumbs {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  position: relative;
  z-index: 5;
}

.about-page-banner .breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
}

.about-page-banner .breadcrumbs a:hover {
  color: var(--color-white);
}

.about-page-banner .breadcrumbs span {
  color: var(--color-white);
  font-weight: 600;
  margin-left: 5px;
}

.about-page-banner .cloud-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 5;
  pointer-events: none;
}

.about-page-banner .cloud-divider svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: var(--color-beige-light);
}

/* Main Section */
.about-page-main {
  padding: 4rem 0 6rem 0;
  position: relative;
  margin-top: -3rem;
  z-index: 10;
}

/* History Grid */
.about-history-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.about-history-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-history-content h2 {
  font-size: 2.8rem;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

.about-history-content p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.about-history-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-soft);
  position: relative;
}

.about-history-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Team Section */
.team-section {
  padding: 5rem 2rem;
  background-color: var(--color-white);
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(35, 59, 90, 0.03);
  margin-bottom: 2rem;
  position: relative;
}

.team-section h2 {
  text-align: center;
  font-size: 2.6rem;
  color: var(--color-navy);
  margin-bottom: 3.5rem;
}

.team-single-photo-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(35, 59, 90, 0.12), 0 4px 14px rgba(35, 59, 90, 0.05);
  border: 1px solid rgba(35, 59, 90, 0.06);
  background-color: #f5f3ef;
}

.team-single-photo-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background-color: var(--color-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(35, 59, 90, 0.09), 0 4px 12px rgba(35, 59, 90, 0.04);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(35, 59, 90, 0.18), 0 8px 24px rgba(35, 59, 90, 0.08);
}

.team-card-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* square ratio */
  overflow: hidden;
}

.team-card-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover .team-card-image-wrapper img {
  transform: scale(1.04);
}

/* White Cloud wave transition on bottom of image */
.team-card-cloud-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 35px;
  z-index: 5;
  pointer-events: none;
}

.team-card-cloud-divider svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: var(--color-white);
}

/* Team content area */
.team-card-content {
  padding: 1.5rem 2rem 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.team-card-name {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-rose); /* Coral/Rose text for names */
  margin-bottom: 0.25rem;
}

.team-card-role {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

/* Social links styling */
.team-card-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: auto;
}

.team-card-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 1.5px solid #00b0e8; /* Sky-blue outline icons */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00b0e8;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.team-card-socials a:hover {
  background-color: #00b0e8;
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 176, 232, 0.25);
}

/* Responsive design */
@media (max-width: 991px) {
  .about-history-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
}

/* ===================================================
   SCHOOL SPACES GALLERY (GALERIA DOS ESPAÇOS DA ESCOLA)
   =================================================== */
.school-spaces-section {
  padding: 5rem 0 6rem 0;
  margin-bottom: 5rem;
  background-color: var(--color-white);
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(35, 59, 90, 0.03);
  position: relative;
}

.spaces-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem auto;
  padding: 0 1.5rem;
}

.spaces-header .about-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.spaces-header h2 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.spaces-header .spaces-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Category Filter Tabs */
.spaces-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
  padding: 0 1.5rem;
}

.space-filter-btn {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  border: 1.5px solid rgba(35, 59, 90, 0.15);
  background-color: transparent;
  color: var(--color-navy);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.space-filter-btn:hover {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold);
  color: var(--color-gold-hover);
}

.space-filter-btn.active {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(35, 59, 90, 0.18);
}

/* Grid Layout */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  padding: 0 2rem;
}

/* Individual Space Card */
.space-card {
  background-color: var(--color-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(35, 59, 90, 0.07);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid rgba(35, 59, 90, 0.06);
}

.space-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(35, 59, 90, 0.15);
}

.space-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f5f3ef;
}

.space-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.space-card:hover .space-card-img-wrapper img {
  transform: scale(1.06);
}

.space-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(35, 59, 90, 0.88);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
  z-index: 2;
}

.space-zoom-icon {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 2;
}

.space-card:hover .space-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.space-card-content {
  padding: 1.5rem 1.6rem 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.space-card-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.space-card-desc {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Lightbox Modal */
.spaces-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 30, 48, 0.92);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem;
}

.spaces-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-dialog {
  max-width: 950px;
  width: 100%;
  background: var(--color-white);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  animation: lightboxPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes lightboxPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lightbox-img-box {
  width: 100%;
  max-height: 82vh;
  overflow: hidden;
  background-color: #0f172a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-box img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-info {
  padding: 1.6rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-white);
}

.lightbox-text h3 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.3rem;
}

.lightbox-text p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--color-red);
  transform: rotate(90deg);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-arrow:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@media (max-width: 991px) {
  .spaces-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    padding: 0 1.5rem;
  }
  .spaces-header h2 {
    font-size: 2.3rem;
  }
}

@media (max-width: 640px) {
  .spaces-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  .lightbox-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.2rem;
  }
  .lightbox-arrow {
    display: none;
  }
}
