/* ==============================
   VK Liivlased – Pair Page CSS
   ============================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg:       #f5f0e8;
  --color-white:    #ffffff;
  --color-text:     #111111;
  --color-muted:    #666666;
  --color-accent:   #1A3A52;
  --color-border:   #d5cfc5;
  --color-gold: #1a3a52;

  --font-display:   'Georgia', serif;
  --font-body:      'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* ── PAIR CONTENT ────────────────────────── */

.pair-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}





/* ── ABOUT SECTION ───────────────────────── */

.about-section {
  margin: 4rem auto;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

.about-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 1.2rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
}

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

/* ── TEAM STAFF ──────────────────────────── */

.team-staff {
  margin: 4rem auto;
}

.team-staff h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.staff-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--color-accent);
  transition: transform 0.5s ease;
}

.staff-card:hover {
  transform: translateY(-2px);
}

.staff-role {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.staff-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
  font-weight: 700;
}

.staff-image{
  padding-top: 1rem;


}

.staff-image img {
  width: 100%;
  aspect-ratio: 3 / 4;     /* Forces 3:4 ratio (portrait) */
  object-fit: cover;       /* Crops to fit */
  object-position: center;
  border-radius: 8px;
  display: block;
}

/* ── ACHIEVEMENTS TIMELINE ──────────────────── */

.achievements {
  margin: 4rem auto;
}

.achievements h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 700;
}

.achievements-timeline {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background-color: white;
    border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 2rem 2rem 2rem 2rem;
}

.year-group {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.year-label {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;

}

.achievements-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 3px solid black;
  margin-top: 10px;
}

.achievement-card {
  padding: 1rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
  transform: translateX(4px);
}

.achievement-event {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}



/* ── RESPONSIVE ──────────────────────────── */

@media (max-width: 768px) {

  .achievements {
    margin: 3rem auto;
  }

  .achievements h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .achievements-timeline {
    gap: 2.5rem;
  }

  .year-group {
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
  }

  .year-label {
    font-size: 2rem;
  }

  .achievements-stack {
    gap: 0.8rem;
  }

  .achievement-card {
    padding: 1.2rem;
    border-left-width: 4px;
  }

  .achievement-event {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .achievements {
    margin: 2rem auto;
  }

  .achievements h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .achievements-timeline {
    gap: 2rem;
  }

  .year-group {
    grid-template-columns: 70px 1fr;
    gap: 1rem;
  }

  .year-label {
    font-size: 1.6rem;
  }

  .achievement-card {
    padding: 1rem;
    border-left-width: 3px;
  }

  .achievement-event {
    font-size: 0.9rem;
  }
}

/* ── SPONSORS SECTION ────────────────────── */

.sponsors-section {
  margin: 5rem auto;
}

.sponsors-section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
}

.sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sponsor {
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.sponsor:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sponsor a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.sponsor img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ── FOOTER ──────────────────────────────── */

.footer {
  background-color: var(--color-white);
  padding: 3rem 2rem 2rem;
  margin-top: 5rem;
  border-top: 1px solid var(--color-border);
}

.footer__divider {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.footer__instagram {
  display: inline-flex;
  color: var(--color-text);
  transition: opacity 0.2s;
}

.footer__instagram:hover {
  opacity: 0.6;
}

.footer__links {
  display: flex;
  gap: 3.5rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--color-text);
}

/* ── RESPONSIVE ──────────────────────────── */

@media (max-width: 768px) {
  .pair-content {
    padding: 0 1rem;
  }

  .stats {
    margin: 3rem auto;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .team-staff {
    margin: 3rem auto;
  }

  .team-staff h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .staff-grid {
    gap: 1.5rem;
  }

  .achievements {
    margin: 3rem auto;
  }

  .achievements h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .achievements-grid {
    gap: 1.5rem;
  }

  .sponsors-section {
    margin: 3rem auto;
  }

  .sponsors-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .sponsors {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    padding: 0;
  }

  .sponsor {
    padding: 1rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__links {
    gap: 2rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .pair-content {
    padding: 0 1rem;
  }

  .stats {
    margin: 2rem auto;
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .about-content {
    padding: 1.5rem;
  }

  .about-text h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .about-text p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .team-staff h2,
  .achievements h2,
  .sponsors-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }

  .staff-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .sponsor {
    padding: 0.8rem;
  }

  .footer {
    padding: 2rem 1rem 1.5rem;
  }
}