/* ============================================
   PORCOLOMBIA UF — styles.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600&display=swap');

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
  --yellow: #FCD116;
  --blue: #003087;
  --red: #CE1126;
  --dark: #000000;
  --dark2: #111827;
  --cream: #faf8f3;
  --text: #1c1c2e;
  --muted: #6b7280;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;

  --max-width: 1160px;
  --radius: 6px;
  --radius-lg: 14px;
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ============================================
   3. COLOMBIAN FLAG INTRO ANIMATION
   ============================================ */
#flag-intro {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
}

.flag-stripe {
  flex: 1;
  transform: scaleX(0);
  transform-origin: left center;
  min-height: 0;
}

.flag-stripe.yellow {
  background: var(--yellow);
  flex: 2;
}

.flag-stripe.blue {
  background: var(--blue);
}

.flag-stripe.red {
  background: var(--red);
}

.flag-stripe.yellow {
  animation: stripe-in 0.5s 0.1s cubic-bezier(.77, 0, .18, 1) forwards;
}

.flag-stripe.blue {
  animation: stripe-in 0.5s 0.2s cubic-bezier(.77, 0, .18, 1) forwards;
}

.flag-stripe.red {
  animation: stripe-in 0.5s 0.3s cubic-bezier(.77, 0, .18, 1) forwards;
}

#flag-intro.exit .flag-stripe.yellow {
  animation: stripe-out 0.5s 0s cubic-bezier(.77, 0, .18, 1) forwards;
}

#flag-intro.exit .flag-stripe.blue {
  animation: stripe-out 0.5s 0.1s cubic-bezier(.77, 0, .18, 1) forwards;
}

#flag-intro.exit .flag-stripe.red {
  animation: stripe-out 0.5s 0.2s cubic-bezier(.77, 0, .18, 1) forwards;
}

@keyframes stripe-in {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes stripe-out {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0) translateX(20px);
  }
}


/* ============================================
   4. UTILITIES
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo img {
  height: 100px;
  width: auto;
  display: block;
}

.section {
  padding: 6rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 580px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--yellow);
  color: var(--dark);
}

.btn-primary:hover {
  background: #e8c200;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 209, 22, 0.35);
}

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

.btn-dark:hover {
  background: var(--dark2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--dark);
  color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

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

.btn-red:hover {
  background: #a50e1e;
  transform: translateY(-2px);
}

/* ============================================
   5. NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 120px;
  background: var(--dark);
}

.flag-bar {
  display: flex;
  height: 8px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.flag-bar span:nth-child(1) {
  flex: 1;
  background: var(--yellow);
}

.flag-bar span:nth-child(2) {
  flex: 1;
  background: var(--blue);
}

.flag-bar span:nth-child(3) {
  flex: 1;
  background: var(--red);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.nav-logo .accent {
  color: var(--yellow);
}

.nav-logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-logo-center img {
  height: 60px;
  width: auto;
  max-width: 120px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.nav-cta {
  background: var(--yellow) !important;
  color: var(--dark) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 2px;
  font-weight: 600 !important;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-cta span {
  letter-spacing: 0.08em;
  margin-right: -0.08em;
  /* cancels the trailing space after the last letter */
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ============================================
   6. HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}

.hero-bg-slideshow {
  position: absolute;
  inset: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero-bg-slide.active {
  opacity: 0.35;
}

@media (max-width: 768px) {
  .hero-bg {
    background-image: url('../images/PCGroupVertical.jpg');
    background-position: top center;
  }
}


.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  max-width: 700px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow .line {
  width: 40px;
  height: 2px;
  background: var(--yellow);
}

.hero-eyebrow span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--yellow);
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}


/* ============================================
   7. ABOUT SECTION
   ============================================ */
.about-section {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--yellow);
  color: var(--dark);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.about-image-badge span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 2px;
}

/* ============================================
   8. WHAT WE DO — CARDS
   ============================================ */
.cards-section {
  background: var(--dark);
}

.cards-section .section-title {
  color: var(--white);
}

.cards-section .section-sub {
  color: rgba(255, 255, 255, 0.55);
}

.cards-section .section-label {
  color: var(--yellow);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  display: block;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.card p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================================
   9. PHOTO HIGHLIGHTS
   ============================================ */
.highlights-section {
  background: var(--cream);
  text-align: center;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  background: #ddd;
}

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

.photo-item:hover img {
  transform: scale(1.06);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: start;
}

/* Placeholder for missing images */
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e4db, #d5d0c5);
  color: var(--muted);
  font-size: 0.8rem;
  gap: 0.5rem;
}

.photo-placeholder .ph-icon {
  font-size: 2rem;
}

/* ============================================
   10. CTA SECTION
   ============================================ */
.cta-section {
  background:
    linear-gradient(135deg, rgba(10, 14, 26, 0.75) 0%, rgba(0, 48, 135, 0.75) 100%),
    url('../images/hero/hero1.jpg') center/cover no-repeat;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FCD116' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C%3C/svg%3E");
}

.cta-section .section-title {
  color: var(--white);
  position: relative;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  position: relative;
}

.cta-section .container {
  position: relative;
}

/* ============================================
   11. FOOTER
   ============================================ */
.footer {
  background: #000000;
  color: rgba(255, 255, 255, 0.5);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.footer-brand .nav-logo img {
  height: auto;
  width: 100%;
  max-width: 260px;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-flag {
  display: flex;
  gap: 6px;
  align-items: center;
}

.footer-flag span {
  width: 18px;
  height: 12px;
  border-radius: 2px;
}

.footer-flag span:nth-child(1) {
  background: var(--yellow);
}

.footer-flag span:nth-child(2) {
  background: var(--blue);
}

.footer-flag span:nth-child(3) {
  background: var(--red);
}

/* ============================================
   12. PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  background: var(--dark);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--yellow) 50%, var(--blue) 50% 75%, var(--red) 75%);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
}

/* ============================================
   13. GALLERY PAGE
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 1;
  background: #ddd;
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: unset;
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 48, 0.7) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

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

.gallery-item-overlay span {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

/* ============================================
   14. CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-card {
  background: var(--dark);
  color: white;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
}

.contact-info-card .section-title {
  color: white;
  margin-bottom: 1.5rem;
}

.contact-info-card p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-detail .icon {
  width: 42px;
  height: 42px;
  background: rgba(252, 209, 22, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-text span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2px;
}

.contact-detail-text a,
.contact-detail-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin: 0;
  transition: color 0.2s;
}

.contact-detail-text a:hover {
  color: var(--yellow);
}

.contact-form-wrap {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

.contact-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-form-wrap>p {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* Calendar embed */
.calendar-section {
  background: var(--cream);
}

.calendar-embed {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.calendar-embed iframe {
  width: 100%;
  display: block;
  border: none;
}

/* ============================================
   15. ABOUT / EBOARD PAGE
   ============================================ */
.mission-strip {
  background: var(--yellow);
  padding: 4rem 0;
}

.mission-strip .section-title {
  color: var(--dark);
}

.mission-strip p {
  color: rgba(0, 0, 0, 0.65);
  font-size: 1.05rem;
  max-width: 680px;
}

.eboard-section {
  background: var(--cream);
}

.eboard-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

/* ── Flip Card Container ── */
.eboard-card {
  width: calc(33.333% - 1.4rem);
  min-width: 280px;
  height: 560px;
  perspective: 1000px;
  cursor: pointer;
}

.eboard-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(.77, 0, .18, 1);
}

/* Flip on click (toggled via JS) */
.eboard-card.flipped .eboard-card-inner {
  transform: rotateY(180deg);
}

/* ── Shared front/back styles ── */
.eboard-card-front,
.eboard-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ── FRONT ── */
.eboard-card-front {
  background: white;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.eboard-card-front .eboard-photo {
  width: 100%;
  height: 80%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #e8e4db, #d0cbbe);
  flex-shrink: 0;
}

.eboard-card-front .eboard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.eboard-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
  gap: 0.5rem;
}

.eboard-photo-placeholder .avatar-icon {
  font-size: 4rem;
}

.eboard-role-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--yellow);
  color: var(--dark);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}

.eboard-card-front .eboard-info {
  padding: 0.75rem 1.25rem;
  flex: 1;
}

.eboard-card-front .eboard-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.1rem;
}

.eboard-card-front .eboard-info .role {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 500;
}

/* ── BACK ── */
.eboard-card-back {
  background: var(--dark);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.eboard-card-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--yellow) 50%, var(--blue) 50% 75%, var(--red) 75%);
}

.eboard-card-back h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.eboard-card-back .role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.eboard-card-back p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.eboard-card-back .major {
  display: inline-block;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Leadership Section (Committee Directors) ── */
.leadership-section {
  background: var(--cream);
  padding-top: 3rem;
}

.leadership-card .eboard-role-badge {
  background: var(--blue);
  color: var(--white);
}

.leadership-card .eboard-card-front .eboard-info .role {
  color: var(--blue);
}

.leadership-card .eboard-card-back .role {
  color: var(--yellow);
}

.leadership-card .eboard-card-back {
  background: var(--blue);
}

.leadership-card .eboard-card-back::before {
  background: linear-gradient(to right, var(--red) 50%, var(--yellow) 50% 75%, var(--blue) 75%);
}

.leadership-card .eboard-card-back .major {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

/* Values / Colombia section */
.colombia-section {
  background: var(--dark);
  padding: 5rem 0;
}

.colombia-section .section-title {
  color: white;
}

.colombia-section .section-label {
  color: var(--yellow);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.value-card {
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  text-align: center;
}

.value-card .vi {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
}

.value-card h4 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.value-card p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

/* ============================================
   16. MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image-wrap {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.tall {
    grid-row: span 1;
    aspect-ratio: 1;
  }

  .gallery-item.wide {
    grid-column: span 1;
    aspect-ratio: 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .eboard-grid {
    flex-direction: row;
  }

  .eboard-card {
    width: calc(50% - 1rem);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Shrink navbar a bit on tablet */
  .navbar {
    height: 90px;
    padding: 0 1.5rem;
  }

  .nav-logo img {
    height: 70px;
  }

  .nav-logo-center img {
    height: 50px;
  }
}

@media (max-width: 768px) {

  /* ─ Navbar ─ */
  .navbar {
    height: 75px;
    padding: 0 1.25rem;
    position: relative;
    /* so dropdown offsets from navbar */
  }

  .ig-grid {
    grid-template-columns: 1fr;
  }

  .ig-hide-mobile {
    display: none !important;
  }

  .nav-logo img {
    height: 55px;
    width: auto;
  }

  /* Hide center logo — no room on mobile */
  .nav-logo-center {
    display: none;
  }

  /* Show hamburger */
  .nav-toggle {
    display: block;
    z-index: 200;
  }

  /* Dropdown opens right below the 75px navbar */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 150;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.25rem 0;
  }

  .nav-links a.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem !important;
  }

  /* ─ Hero ─ */
  .hero {
    min-height: 85vh;
  }

  .hero-content {
    padding: 2rem 1.25rem;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }

  /* ─ Sections ─ */
  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* ─ Cards ─ */
  .cards {
    grid-template-columns: 1fr;
  }

  /* ─ Photo strip ─ */
  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ─ Gallery ─ */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* E-Board flip cards — mobile */
  .eboard-card {
    width: 100%;
    max-width: 340px;
    height: auto;
    perspective: 1000px;
    cursor: pointer;
  }

  .eboard-card-inner {
    position: relative;
    width: 100%;
    height: 520px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(.77, 0, .18, 1);
  }


  .eboard-card.flipped .eboard-card-inner {
    transform: rotateY(180deg);
  }

  .eboard-card-back {
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 2.5rem;
  }

  .eboard-card-back p {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  /* ─ Values ─ */
  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* ─ Contact ─ */
  .contact-form-wrap {
    padding: 1.75rem 1.25rem;
  }

  .contact-info-card {
    padding: 2rem 1.5rem;
  }

  /* ─ Page header ─ */
  .page-header {
    padding: 3rem 0 2.5rem;
  }

  /* ─ Footer ─ */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand .nav-logo img {
    max-width: 200px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .flag-bar {
    z-index: -1;
  }
}