/* Volunteering Page Styles */

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffec5f;
  color: #000;
  padding: 15px 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* hide mobile nav toggle by default on larger screens */
.nav-toggle {
  display: none;
}

.logo {
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.7;
}

.center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: #000;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 0.7;
}

.lang {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* Main Content */
.main {
  padding-top: 80px;
  position: relative;
}

.activity-tag {
  position: absolute;
  top: 120px;
  left: 20px;
  font-size: 12px;
  color: #888;
  font-family: monospace;
}

.contact-btn {
  position: absolute;
  top: 120px;
  right: 20px;
  background: none;
  border: 1px solid #666;
  color: #fff;
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #333;
}

/* Main Title */
.main-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  text-align: center;
  margin: 80px 0 60px 0;
  color: #f5f5dc;
  letter-spacing: -2px;
}

/* Profile Section */
.profile-section {
  display: flex;
  justify-content: center;
  margin-bottom: 100px;
}

.profile-image {
  width: 400px;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  margin-bottom: 120px;
  padding: 0 40px;
}

.section {
  position: relative;
}

.section-title {
  font-size: 12px;
  color: #888;
  font-family: monospace;
  margin-bottom: 20px;
  font-weight: normal;
}

.section-content {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
  font-weight: 300;
}

.section-content br {
  line-height: 1.8;
}

/* Instagram Section */
.instagram-section {
  margin-top: 120px;
  padding: 60px 40px;
}

.instagram-section .section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 16px;
}

/* Filter Navigation */
.filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
  padding: 0 20px;
}

.filter-btn {
  background: none;
  border: 1px solid #444;
  color: #ccc;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
  background: #ffec5f;
  color: #000;
  border-color: #ffec5f;
  transform: translateY(-2px);
}

/* Masonry Layout for Posts */
.posts-masonry {
  /* acts as a centered wrapper for the grid */
  display: block;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* The actual grid where individual .instagram-post items live */
.instagram-grid {
  display: grid;
  /* Force a 3-column layout on wider screens to show 3 posts per row */
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.instagram-post {
  background: #2a2a2a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  border: 1px solid #333;
  position: relative;
}

.instagram-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border-color: #555;
}

.post-description {
  padding: 20px;
  border-bottom: 1px solid #444;
  position: relative;
}

.post-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ffec5f, #ffd700);
  color: #000;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.post-description h4 {
  color: #f5f5dc;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.post-description p {
  color: #999;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
}

.load-more-btn {
  background: linear-gradient(135deg, #ffec5f, #ffd700);
  color: #000;
  border: none;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 236, 95, 0.3);
}

.load-more-btn:active {
  transform: translateY(0);
}

.posts-counter {
  color: #888;
  font-size: 12px;
  margin: 0;
}

/* Instagram Media Responsive */
.instagram-media {
  width: 100% !important;
  /* allow embeds to scale with the card width (fit 3 columns) */
  max-width: 100% !important;
  margin: 0 auto !important;
  background: #fff !important;
  border-radius: 0 0 16px 16px !important;
}

/* Category-specific styling */
.instagram-post[data-category="design"] .post-tag {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: white;
}

.instagram-post[data-category="events"] .post-tag {
  background: linear-gradient(135deg, #4ecdc4, #26a69a);
  color: white;
}

.instagram-post[data-category="youth"] .post-tag {
  background: linear-gradient(135deg, #45b7d1, #2196f3);
  color: white;
}

.instagram-post[data-category="outreach"] .post-tag {
  background: linear-gradient(135deg, #96ceb4, #4caf50);
  color: white;
}

.instagram-post[data-category="media"] .post-tag {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  color: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 20px;
  }

  .instagram-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .filter-nav {
    gap: 10px;
  }

  .filter-btn {
    padding: 10px 18px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {

  .header .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-right{
    display:none;
  }

  .nav-list {
    gap: 20px;
  }

  /* Mobile collapsed nav - hide by default, show when .open applied */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
  }

  .hamburger {
    width: 22px;
    height: 2px;
    background: #000;
    display: block;
    position: relative;
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #000;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .hamburger::before { top: -7px; }
  .hamburger::after { top: 7px; }

  /* Hide nav-list by default on small screens */
  .nav-center {
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: transparent;
    padding: 10px 0;
  }

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

  /* When open, animate hamburger into an X */
  .nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .main-title {
    font-size: 2.5rem;
    margin: 40px 0;
  }

  .profile-image {
    width: 300px;
    height: 400px;
  }

  .activity-tag,
  .contact-btn {
    position: static;
    margin: 20px 0;
  }

  .contact-btn {
    display: block;
    width: fit-content;
    margin: 20px auto;
  }

  .posts-masonry {
    grid-template-columns: 1fr;
    padding: 0 15px;
    gap: 20px;
  }

  .filter-nav {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .filter-btn {
    width: 200px;
    text-align: center;
  }

  .instagram-section {
    padding: 40px 20px;
  }

  .load-more-section {
    margin-top: 40px;
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {
  .nav-list {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .main-title {
    font-size: 2rem;
  }

  .profile-image {
    width: 250px;
    height: 350px;
  }

  .content-grid {
    padding: 0 10px;
  }

  .instagram-section {
    padding: 30px 15px;
  }

  .posts-masonry {
    padding: 0 10px;
  }

  .filter-btn {
    width: 180px;
    padding: 8px 16px;
    font-size: 10px;
  }

  .load-more-btn {
    padding: 14px 28px;
    font-size: 12px;
  }

  .post-description {
    padding: 15px;
  }

  .post-description h4 {
    font-size: 14px;
  }

  .post-description p {
    font-size: 12px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.6s ease-out forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }

.instagram-post {
  animation: fadeInUp 0.6s ease-out forwards;
}

.post-category:nth-child(1) .instagram-post:nth-child(1) { animation-delay: 0.2s; }
.post-category:nth-child(1) .instagram-post:nth-child(2) { animation-delay: 0.3s; }
.post-category:nth-child(2) .instagram-post:nth-child(1) { animation-delay: 0.4s; }
.post-category:nth-child(2) .instagram-post:nth-child(2) { animation-delay: 0.5s; }

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
  .post-category {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out forwards;
  }

  .post-category:nth-child(2) { animation-delay: 0.2s; }
  .post-category:nth-child(3) { animation-delay: 0.4s; }
}
