/* Videos Page Styles */
:root {
  --midnight: #0b2c47;
  --forest: #1f4d2e;
  --wheat: #d4a017;
  --charcoal: #333333;
  --offwhite: #f7f7f5;
  --beige: #f3eee6;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--charcoal);
  background-color: var(--offwhite);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px var(--shadow);
  transition: transform 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--forest);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--wheat), #f7d97a);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
}

.nav-links a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--forest);
  transform: translateY(-2px);
}

.nav-links .active {
  color: var(--forest);
  font-weight: 700;
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--forest);
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

.mobile-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background-color: var(--white);
  padding: 1rem 0;
  box-shadow: 0 4px 6px var(--shadow);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mobile-drawer a:hover {
  background-color: var(--offwhite);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 1.5rem;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--forest) 70%, var(--forest) 100%);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease-out;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInDown 1s ease-out 0.2s;
  animation-fill-mode: forwards;
  opacity: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--midnight);
}

/* Video Section Specific Styles */
.video-section {
  padding: 5rem 0;
  background-color: var(--offwhite);
}

.video-container {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.video-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow);
}

.video-card.fade-in:nth-child(1) {
  transition-delay: 100ms;
}

.video-card.fade-in:nth-child(2) {
  transition-delay: 200ms;
}

.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  cursor: pointer;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.video-placeholder:hover img {
  opacity: 0.5;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(212, 160, 23, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-button::before {
  content: '';
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 32px solid white;
  margin-left: 8px;
  display: block;
}

.video-placeholder:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: rgba(212, 160, 23, 1);
}

.video-info {
  padding: 1.5rem 2rem;
}

.video-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.video-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.video-meta span {
  display: flex;
  align-items: center;
}

.video-meta svg {
  margin-right: 0.5rem;
}

.video-description {
  margin-top: 1rem;
  line-height: 1.6;
}

.loading-message {
  display: none;
  text-align: center;
  padding: 2rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* Modal styles for video playback */
.video-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 1000px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--wheat);
  border: none;
  color: white;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
  background-color: #b68913;
  transform: rotate(90deg);
}

.modal-video-container {
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.modal-video {
  width: 100%;
  height: 100%;
}

/* Footer */
footer {
  background: var(--midnight);
  color: rgba(255,255,255,0.9);
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.footer-links a{
    text-decoration: none;
}
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.social-link {
  width: 24px;
  height: 24px;
  color: rgba(255,255,255,0.6);
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  color: var(--white);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive styles */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

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

  .hero {
    padding: 12rem 1.5rem;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero p {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
  }
  
  .modal-close {
    top: -40px;
    right: 0;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .play-button::before {
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid white;
  }
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}