/* HOMEPAGE SPECIFIC STYLES */

/* Section Styles */
.section {
  padding: var(--section-padding);
}

.section--large {
  padding: var(--section-padding-xl);
}

.section__title {
  font-size: var(--font-size-5xl);
  color: var(--njtpa-dark-blue);
  margin-bottom: var(--space-xl);
  text-align: left;
  font-weight: var(--font-weight-bold);
}

.section__link {
  color: var(--njtpa-dark-blue);
  font-weight: var(--font-weight-bold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  font-size: var(--font-size-base);
}

.section__link:hover {
  color: var(--njtpa-maroon);
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--njtpa-dark-blue);
  color: white;
  padding: 2rem 0;
  border-bottom: none;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
}

.announcement-label {
  font-weight: 600;
  color: white;
}

.announcement-text {
  flex: 1;
  color: white;
  font-size: 14px;
}

.announcement-link {
  color: white;
  text-decoration: underline;
  font-weight: 500;
}

.announcement-link:hover {
  color: var(--njtpa-gray-lighter);
}

.announcement-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin-left: auto;
  padding: 0 5px;
  line-height: 1;
}

.announcement-close:hover {
  color: var(--njtpa-gray-lighter);
}


/* Banner Section */
.banner-section {
  background-color: var(--njtpa-maroon);
  color: white;
  padding: 40px 0;
}

.banner-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 800px;
}

/* Highlights Section */
.highlights-section {
  padding: var(--section-padding-xl);
  padding-bottom: 0px;
}

.highlights-section .section__title {
  margin-top: 0px;
}

/* News and Events Section */
.news-events-section {
  padding: var(--section-padding-xl);
  background-color: white;
}

.news-events-section .grid {
  gap: var(--space-5xl);
}

/* Blog Section */
.blog-section {
  padding: var(--section-padding-xl);
  background-color: white;
  padding-top: 0px;
}

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

.blog-section .card__title {
  font-size: 1.25rem;
}

.blog-section .card__text {
  color: var(--njtpa-gray-medium);
}

/* Featured Section */
.featured-section,
.careers-section {
  padding: var(--section-padding-lg);
}

.featured-content,
.careers-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--grid-gap);
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  background: white;
}

.featured-text h2,
.careers-text h2 {
  font-size: var(--font-size-3xl);
  color: var(--njtpa-dark-blue);
  margin-bottom: var(--space-xl);
}

.featured-text p,
.featured-text > div,
.careers-text p,
.careers-text > div {
  margin-bottom: var(--space-2xl);
}

.featured-image img,
.careers-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
}

.featured-btn,
.careers-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--njtpa-maroon);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: opacity 0.3s;
}

.featured-btn:hover,
.careers-btn:hover {
  opacity: 0.8;
  color: white;
}

/* Promotional Section */
.promotional-section,
.lrtp-section {
  background-color: var(--njtpa-dark-blue);
  color: white;
  padding: 60px 0;
}

.promotional-content,
.lrtp-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.promotional-text h2,
.lrtp-text h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  font-weight: bold;
}

.promotional-description p,
.promotional-description div,
.lrtp-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.promotional-image img,
.lrtp-image img {
  width: 300px;
  height: auto;
  border-radius: 8px;
  margin-left: auto;
}

.promotional-btn,
.lrtp-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--njtpa-maroon);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.promotional-btn:hover,
.lrtp-btn:hover {
  opacity: 0.8;
  transition: opacity 0.3s;
  color: var(--njtpa-white);
}

/* Subregions Section */
.subregions-section {
  background-color: white;
  padding: 60px 0;
}

.subregions-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.subregions-content h2 {
  font-size: 1.8rem;
  color: var(--njtpa-dark-blue);
  margin-bottom: 0px !important;
}

.subregions-content p {
  line-height: 1.6;
  margin-bottom: 30px;
  margin-top: 0px;
}

.map-section a {
  color: var(--njtpa-maroon);
  text-decoration: none;
}

.map-section a:hover {
  color: var(--njtpa-dark-blue);
}

.nj-map {
  text-align: center;
}

.nj-map img {
  max-width: 100%;
  height: auto;
}

.subregions-list h3 {
  font-size: 1.5rem;
  color: var(--njtpa-dark-blue);
  margin-bottom: 0px;
}

.counties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.counties-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.counties-column li {
  margin-bottom: 8px;
}

.counties-column a {
  color: var(--njtpa-maroon);
  text-decoration: underline;
  font-weight: 500;
}

.counties-column a:hover {
  color: var(--njtpa-dark-blue);
  text-decoration: underline;
}

/* Video Section */
.video-section {
  padding: 80px 0;
  background-color: var(--njtpa-dark-blue);
  color: white;
}

.video-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.video-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.video-text p {
  line-height: 1.6;
  font-size: 1rem;
}

.video-text a {
  color: white;
  text-decoration: underline;
}

.video-text a:hover {
  color: var(--njtpa-gray-lighter);
}

.video-player {
  text-align: center;
}

.video-player-image img {
  width: 100%;
  height: 100%;
}

/* YouTube Video Responsive Wrapper */
.video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Partners Section */
.partners-section {
  padding: 50px 0;
  background-color: var(--color-background-alt);
}

.partners-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.partners-title {
  font-size: 1.25rem;
  color: var(--njtpa-dark-blue);
  margin: 0;
  font-weight: 700;
  flex-shrink: 0;
}

.partners-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px 48px;
  flex: 1;
}

.partner-logo {
  height: 60px;
  display: flex;
  align-items: center;
}

.partner-logo a {
  display: flex;
  align-items: center;
  height: 100%;
}

.partner-logo img {
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.partner-logo:hover img,
.partner-logo a:hover img {
  opacity: 1;
}


@media (max-width: 480px) {
  .promotional-text h2,
  .lrtp-text h2 {
    font-size: 1.8rem;
  }

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

/* Section Grid Responsive Styles */
@media (max-width: 1024px) {
  .highlights-grid,
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .news-events-grid {
    grid-template-columns: 1fr;
  }

  .featured-content,
  .careers-content,
  .promotional-content,
  .lrtp-content,
  .video-content,
  .subregions-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .partners-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .partners-logos {
    gap: 24px 32px;
  }
}

@media (max-width: 768px) {
  .highlights-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .section__link {
    margin-top: 0px;
  }

  .blog-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-header .section-link {
    align-self: flex-start;
  }

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

  .partners-logos {
    justify-content: flex-start;
    gap: 20px 28px;
  }

  .partner-logo {
    height: 50px;
  }

  .partner-logo img {
    max-width: 140px;
  }

  /* Hide promotional image on mobile */
  .promotional-image,
  .lrtp-image {
    display: none;
  }
}

/* Announcement Banner Responsive */
@media (max-width: 768px) {
  .njtpa-announcement-banner {
    padding: 16px 0;
    font-size: 14px;
  }

  .njtpa-announcement-content {
    gap: 6px;
  }

  .njtpa-announcement-text {
    min-width: 150px;
  }

  .njtpa-announcement-close {
    font-size: 20px;
    padding: 2px 6px;
  }
}
