/* Campaign Page Styles */

/* Hero Section */
.hero-section {
  height: 80vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 0;
  z-index: -2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 12.5rem;
  line-height: 10.5rem;
  color: #C74A9B;
  font-family: var(--font-secondary);
  font-weight: 800;
  position: relative;
  margin: 14rem 8rem;
}

.hero-title .no-wrap {
  white-space: nowrap;
}

.hero-title::before {
  content: '';
  position: absolute;
  width: 34rem;
  height: 34rem;
  background-color: #CAD8DB;
  top: -36%;
  left: -6%;
  border-radius: 50%;
  z-index: -1;
}

/* Introduction Section */
.intro-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.intro-content p {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.8;
  color: #333;
  margin-bottom: 2rem;
  text-align: justify;
}

.intro-content h3 {
  font-family: var(--font-secondary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #339A5E;
  text-align: left;
  margin: 3rem 0;
  line-height: normal;
  max-width: 90%;
  position: relative;
}

.intro-content h3::before,
.intro-content h3::after {
  content: '';
  display: none; /* Removed decorative lines for cleaner mobile view */
}

/* Campaign Points Section */
.campaign-points-section {
  padding: 4rem 0;
}

.campaign-points-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.campaign-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  gap: clamp(1.5rem, 3vw, 2rem);
  flex-wrap: wrap;
}

.campaign-point {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 160px;
}

.campaign-circle {
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
  cursor: pointer;
}

.campaign-circle:hover,
.campaign-circle:focus {
  transform: translateY(-5px);
  border-radius: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.campaign-circle span {
  font-family: var(--font-secondary);
  color: #F2EFEA;
  line-height: 1.2;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
}

/* Individual Campaign Circle Colors */
.campaign-circle--1 {
  background-color: #9C3236;
}

.campaign-circle--2 {
  background-color: #C74A9B;
}

.campaign-circle--3 {
  background-color: #436E55;
}

.campaign-circle--4 {
  background-color: #C74A9B;
}

.campaign-circle--5 {
  background-color: #9C3236;
}

.campaign-circle--6 {
  background-color: #436E55;
}

.campaign-circle--7 {
  background-color: #C74A9B;
}

/* Section Titles with Decorative Lines */
.section-content h2 {
  font-family: var(--font-secondary);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  color: #2c3e50;
  text-align: left;
  margin: 0 0 3rem 0;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  width: 100vw; /* Full viewport width */
  z-index: -1;
}

.gender-stereotypes-section .section-content h2 { color: #C32921; }
.women-dial-section .section-content h2 { color: #C74A9B; }
.best-foot-section .section-content h2 { color: #339A5E; }
.train-local-section .section-content h2 { color: #C32921; }
.walking-safely-section .section-content h2 { color: #C74A9B; }
.showtime-youth-section .section-content h2 { color: #339A5E; }
.gender-bender-games-section .section-content h2 { color: #C32921; }

.gender-stereotypes-section .section-content h2::after { background-color: #C32921; }
.women-dial-section .section-content h2::after { background-color: #C74A9B; }
.best-foot-section .section-content h2::after { background-color: #339A5E; }
.train-local-section .section-content h2::after { background-color: #C32921; }
.walking-safely-section .section-content h2::after { background-color: #C74A9B; }
.showtime-youth-section .section-content h2::after { background-color: #339A5E; }
.gender-bender-games-section .section-content h2::after { background-color: #C32921; }

/* Common Section Styles */
.gender-stereotypes-section,
.women-dial-section,
.best-foot-section,
.train-local-section,
.walking-safely-section,
.showtime-youth-section,
.gender-bender-games-section {
  padding: clamp(2rem, 5vw, 4rem) 0;
  position: relative;
  overflow: hidden; /* Prevent line overflow */
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  position: relative;
}

.section-content::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw; /* Full viewport width */
  height: 1px;
}

.gender-stereotypes-section .section-content::after { background-color: #C32921; }
.women-dial-section .section-content::after { background-color: #C74A9B; }
.best-foot-section .section-content::after { background-color: #339A5E; }
.train-local-section .section-content::after { background-color: #C32921; }
.walking-safely-section .section-content::after { background-color: #C74A9B; }
.showtime-youth-section .section-content::after { background-color: #339A5E; }
.gender-bender-games-section .section-content::after { background-color: #C32921; }

.section-content p {
  font-family: var(--font-primary);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  line-height: 1.6;
  color: #333;
  margin-bottom: 2rem;
  text-align: justify;
}

.section-content p a {
  color: black;
  text-decoration: underline;
  word-break: break-all;
  transition: color 0.3s ease;
}

.section-content p a:hover {
  color: #c0392b;
}

/* Subsection Headings */
.section-content h3 {
  font-family: 'Abhaya Libre', serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #339A5E;
  margin: 2.5rem 0 1.5rem 0;
  text-align: left;
}

/* Grid Layouts */
.content-grid-2,
.content-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin: 3rem 0;
}

.content-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  margin: 3rem 0;
}

.grid-text p,
.grid-text-container p {
  margin-bottom: 1.5rem;
}

.grid-media-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Image and Video Containers */
.image-container,
.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container:hover,
.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.campaign-image,
.video-thumbnail {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background-color: #e9ecef;
  display: block;
  transition: transform 0.3s ease;
}

.image-container:hover .campaign-image,
.video-container:hover .video-thumbnail {
  transform: scale(1.05);
}

.video-container::before {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(2rem, 5vw, 3rem);
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.5);
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.video-container:hover::before {
  background: rgba(231, 76, 60, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1rem 1rem;
  font-family: 'Nunito Sans', sans-serif;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 600;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-section {
    height: 60vh;
  }

  .hero-title {
    font-size: clamp(6rem, 10vw, 8rem);
    line-height: 1.2;
    margin: 8rem 4rem;
  }

  .hero-title::before {
    width: 20rem;
    height: 20rem;
    top: -20%;
    left: -4%;
  }

  .campaign-circle {
    width: clamp(16rem, 20vw, 18rem);
    height: clamp(16rem, 20vw, 18rem);
  }

  .campaign-circle span {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  }

  .content-grid-2,
  .content-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 40vh;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    text-align: center;
    padding: 0 1rem;
  }

  .hero-title {
    font-size: clamp(3.5rem, 9vw, 4.5rem);
    line-height: 1.1;
    margin: 2rem 0;
  }

  .hero-title::before {
    width: clamp(10rem, 30vw, 12rem);
    height: clamp(10rem, 30vw, 12rem);
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
  }

  .campaign-points-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(10rem, 12rem));
    grid-template-rows: repeat(3, min-content);
    column-gap: 0.25rem;
    row-gap: 0.25rem;
    justify-items: center;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .campaign-row {
    display: contents;
  }

  .campaign-row:first-child .campaign-point:nth-child(1) { grid-column: 1; grid-row: 1; }
  .campaign-row:first-child .campaign-point:nth-child(2) { grid-column: 2; grid-row: 1; }
  .campaign-row:first-child .campaign-point:nth-child(3) { grid-column: 3; grid-row: 1; }

  .campaign-row:last-child .campaign-point:nth-child(1) { grid-column: 1; grid-row: 2; }
  .campaign-row:last-child .campaign-point:nth-child(2) { grid-column: 2; grid-row: 2; }
  .campaign-row:last-child .campaign-point:nth-child(3) { grid-column: 3; grid-row: 2; }
  .campaign-row:last-child .campaign-point:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
  }

  .campaign-point {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min-content;
    height: min-content;
    margin: 0;
  }

  .campaign-circle {
    width: clamp(6rem, 25vw, 8rem);
    height: clamp(6rem, 25vw, 8rem);
    padding: 0.5rem;
    margin: 0;
  }

  .campaign-circle span {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    line-height: 1.1;
  }

  .content-grid-3 {
    grid-template-columns: 1fr;
  }

  .section-content {
    padding: 0 1rem;
  }

  .intro-content {
    padding: 0 1rem;
  }

  .campaign-image,
  .video-thumbnail {
    height: 250px;
  }

  .video-container::before {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(6.8rem, 8vw, 3.5rem);
    margin: 1.5rem 0;
  }

.hero-title::before {
    width: clamp(20rem, 30vw, 11rem);
    height: clamp(20rem, 30vw, 11rem);
    
    left: 50%;
    transform: translateX(-50%);
}
  .campaign-circle {
    width: clamp(7rem, 25vw, 8rem);
    height: clamp(7rem, 25vw, 8rem);
  }

  .campaign-circle span {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .section-content h2 {
    font-size: clamp(1.8rem, 5vw, 2rem);
  }

  .section-content h3 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
  }

  .section-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
  }

  .campaign-image,
  .video-thumbnail {
    height: 200px;
  }
}

/* Animation for smooth loading */
.section-content {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for accessibility */
.campaign-circle:focus,
.video-container:focus,
.image-container:focus {
  outline: 3px solid #e74c3c;
  outline-offset: 3px;
}

/* Print styles */
@media print {
  .hero-section {
    background: none;
    color: black;
    min-height: auto;
  }

  .campaign-circle {
    background: none;
    border: 2px solid black;
    box-shadow: none;
    border-radius: 0;
  }

  .campaign-circle span {
    color: black;
  }

  .video-container::before {
    display: none;
  }
}

/* Footer Social Icons Fix - Ensure Horizontal Layout */
.footer_socials {
  display: flex !important;
  flex-direction: row !important;
  gap: 1rem !important;
  margin-bottom: 0.8rem !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.footer_socials picture {
  display: inline-block !important;
}

.footer_socials img {
  width: 45px !important;
  height: 45px !important;
  filter: brightness(0) invert(1) !important;
  transition: transform 0.3s ease !important;
  display: block !important;
}

.footer_socials img:hover {
  transform: scale(1.1) !important;
  cursor: pointer !important;
}