* {
  margin: 0;
  padding: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

i,
em {
  font-style: italic;
}

/* ==========================
   SUB HEADER SECTION
========================== */
.sub-header {
  position: relative;
  height: 40vh;
  width: 100%;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/CommunityImg2.JPG);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sub-header .overlay {
  text-align: center;
  color: white;
  padding: 20px 40px;
  border-radius: 8px;
  font-size: 20px;
}

.sub-header nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 60px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  justify-content: space-between;
}

nav .fa {
  display: none;
}

.sub-header nav img {
  width: 150px;
  margin-right: 100%;
}

.sub-header .nav-links {
  margin-left: auto;
  text-align: right;
}

.sub-header .nav-links ul {
  list-style: none;
}

.sub-header .nav-links ul li {
  display: inline-block;
  margin-left: 20px;
}

.sub-header .nav-links ul li a {
  color: #fff;
  text-decoration: none;
}

.nav-links ul li::after {
  content: '';
  width: 0%;
  height: 2px;
  background: rgb(252, 118, 81);
  display: block;
  margin: auto;
  transition: 0.3s ease;
}

.nav-links ul li:hover::after {
  width: 100%;
}

.sub-header h1 {
  margin-top: 100px;
  color: #fff;
}

/* ==========================
   SUB HEADER MEDIA QUERIES
========================== */
@media (max-width: 1000px) {
  .sub-header {
    height: 30vh;
  }

  .sub-header nav {
    padding: 15px 30px;
  }

  .sub-header .nav-links {
    position: fixed;
    background: rgb(252, 118, 81);
    height: 100vh;
    width: 40%;
    top: 0;
    right: -100%;
    text-align: right;
    z-index: 2;
    transition: 0.5s;
    margin-left: auto;
  }

  .sub-header .nav-links ul {
    padding: 5%;
    font-size: 40px;
  }

  .sub-header .nav-links ul li {
    display: block;
    text-align: left;
    font-size: 15px;
    padding: 15px;
    margin-left: 0;
  }

  .sub-header .nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    position: relative;
  }

  .sub-header nav .fa {
    margin: 30px;
    font-size: 30px;
    display: block;
    color: white;
    cursor: pointer;
  }

  .sub-header nav img {
    width: 75px;
  }

  .sub-header .nav-links ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
  }

  .sub-header .nav-links ul li a:hover::after {
    width: 100%;
  }
}

/* ==========================
   VIDEO EMBEDS
========================== */
.instagram-video,
.facebook-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 700px;
  margin: 40px auto;
  border-radius: 12px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.instagram-video iframe,
.facebook-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: auto;
}

.instagram-reels-video {
  position: relative;
  aspect-ratio: 9 / 16; /* Instagram Reels are vertical */
  max-width: 400px;     /* narrower than YouTube for vertical aspect */
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  background: #000;
  overflow: hidden;
}

.instagram-reels-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: contain;
}


.video-file {
  position: relative;
  max-width: 700px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  background: #000;
  aspect-ratio: auto; /* natural ratio */
}

/* Style the video element itself */
.video-file video {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 12px;
  object-fit: contain;
}


/* ==========================
   PDF DOWNLOAD BUTTON
========================== */
.pdf-btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 10px;
  background: #fc7651;
  color: white;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.pdf-btn:hover {
  background: #d64d28;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* ==========================
   TRANSITION BUTTON
========================== */
.center-button {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px auto;
  padding-top: 20px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.transition-btn {
  border: 1px solid #fc7651;
  color: #fc7651;
  display: inline-block;
  text-decoration: none;
  padding: 12px 34px;
  font-size: 13px;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.transition-btn:hover {
  border: 1px solid #fc7651;
  color: #fff;
  background: #fc7651;
  transition: 0.6s;
}
