@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200&family=Roboto:wght@300;400;500&display=swap');

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

:root {
  --primary: #3378e7;
}

body {
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
}

/* Header and Navigation */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 100px;
  z-index: 10;
}

.logo img {
  width: 180px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
}

.nav li {
  list-style: none;
  margin: 0 10px;
}

.nav li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s;
}

.nav li:hover a {
  color: var(--primary);
}

/* Search Bar */
.search {
  position: relative;
  width: 300px;
  height: 40px;
}

.search input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  outline: none;
  border-radius: 4px;
  padding: 0 10px 0 45px !important;
  backdrop-filter: blur(10px);
}

.search input::placeholder {
  color: #ffffff;
}

.search .fa-search {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 17px;
  padding-right: 18px;
  color: #ffffff;
  border-right: 1px solid #ffffff;
}

/* Titles */
.title {
  font-size: 4rem;
  color: white;
  font-weight: bold;
  text-align: left;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  padding-top: 50px;
  margin-right: 26px;
  margin-left: -2px;
}

.right {
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
}

.news_title {
  font-size: 3.5rem;
  font-weight: bold;
  color: #00b8ff;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  margin: 0 auto;
  display: inline-block;
  padding-bottom: 30px;
}

.p_title {
  font-size: 4rem;
  color: black;
  font-weight: bold;
  text-align: center;
}

/* Banner */
.banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: url('../images/movies/bg_n2.png') no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: 0.5s;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.banner img[src*="gleaner.png"] {
  width: 38px;
  height: auto;
  position: relative;
  top: 90px;
  margin-left: -7px;
}

/* Content Section */
.content {
  position: relative;
  max-width: 550px;
  display: none;
  visibility: hidden;
  transform: scale(0);
  transition: 0.5s;
}

.content.active {
  display: block;
  visibility: visible;
  transform: scale(1);
  transition: 0.5s;
}

.banner .content h4 {
  font-size: 14px;
  font-weight: 327;
  color: rgba(255, 255, 255, 0.5);
}

.banner .content h4 span i {
  background: var(--primary);
  color: #ffffff;
  padding: 0 8px;
  display: inline-block;
  border-radius: 2px;
}

.banner .content p {
  font-size: 1em;
  font-weight: 300;
  line-height: 1.5em;
  color: #ffffff;
  margin: 10px 0 20px;
}

.banner .content .button a {
  display: inline-block;
  margin-right: 10px;
  background: var(--primary);
  color: #fff;
  padding: 6px 20px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.5s;
}

.banner .content .button a:nth-child(2) {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner .content .button a:hover:nth-child(2) {
  background: var(--primary);
}

/* Carousel Box */
.banner .carousel-box {
  position: relative;
  min-width: 950px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  overflow: visible;
}

.carousel {
  position: relative;
  height: 550px;
  perspective: 1500px;
  margin-top: -78px;
}

.carousel .carousel-item {
  width: 250px;
  cursor: pointer;
  margin-bottom: 40px;
}

.carousel .carousel-item img {
  max-width: 235px;
  border-radius: 10px;
  transform: translateX(8px) translateY(-30px);
  object-fit: cover;
  object-position: center;
}

/* Play Button */
.play {
  position: absolute;
  bottom: 50px;
  left: 100px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 1.2em;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s;
}

.play i {
  margin-right: 10px;
  font-size: 40px;
}

.play:hover {
  color: var(--primary);
}
@media (max-width: 991px) {
  header {
    padding: 20px 50px;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
  }

  header .nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px 0;
  }

  .banner {
    padding: 100px 50px;
  }

  .banner .play {
    left: 50px;
    font-size: 1em;
  }

  .play img {
    margin-right: 10px;
    max-width: 40px;
  }

  .trailer video {
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  header {
    padding: 20px;
  }

  .search {
    position: relative;
    width: 250px;
    height: 40px;
  }

  .banner {
    padding: 120px 30px 100px;
    flex-direction: column;
  }

  .banner .content {
    margin-top: 18%;
  }

  .movie-title {
    max-width: 150px;
  }

  .banner .content h4 {
    font-weight: 300;
    font-size: 20px;
  }

  .banner .content p {
    font-size: 10px;
    font-weight: 200;
    line-height: 1.2em;
  }

  .banner .carousel-box {
    max-width: 450px;
    max-height: 300px;
    padding-top: 100px;
  }

  .carousel {
    position: flexs;
    height: 280px;
    perspective: 1500px;
  }

  .carousel .carousel-item {
    margin-top: 10%;
    width: 150px;
    cursor: pointer;
  }

  .carousel .carousel-item img {
    max-width: 140px;
    border-radius: 10px;
    transform: translateX(8px) translateY(-100px);
    object-fit: cover;
    object-position: center;
  }

  .banner .play {
    left: 30px;
    bottom: 30px;
  }

  .banner .sci {
    right: 30px;
    bottom: 30px;
    gap: 15px;
  }
}

/* Background Section */
.bg {
  background: url('../images/bgg.jpg') no-repeat left center;
  background-size: cover;
  box-sizing: border-box;
  width: 939px;
  text-align: center;
  min-height: 30vh;
  display: flex;
  justify-content: flex-start;
  gap: 50px;
  margin: 0;
  padding-left: 30px;
}

h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 40px;
}

h4 {
  font-size: 15px;
}

/* Profile Cards */
.profile-card {
  margin: 20px 0;
  padding: 2em;
  width: 100%;
  max-width: 520px;
}

.candidate-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.candidate-nav button:hover {
  background: var(--primary) !important;
  color: white;
}

.logo_party {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

.logo_party img {
  width: 49px;
  height: auto;
  border: none;
  box-shadow: none;
}

.info-box img {
  width: 150px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s ease;
}

.info-box > img.jlp {
	border: 3px solid rgb(40, 154, 54);
  	box-shadow: 0 0 25px rgb(40, 154, 54);
}
.info-box > img.pnp {
	border: 3px solid rgb(251, 117, 3);
  	box-shadow: 0 0 25px rgb(251, 117, 3);
}


.profile-card img.jlp:hover {
  box-shadow: 0 0 25px rgb(40, 154, 54),
              0 0 50px rgb(40, 154, 54),
              0 0 100px rgb(40, 154, 54);
}
.profile-card img.pnp:hover {
  box-shadow: 0 0 25px rgb(251, 117, 3),
              0 0 50px rgb(251, 117, 3),
              0 0 100px rgb(251, 117, 3);
}




/* Trailer */
.trailer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(20px);
  visibility: hidden;
  opacity: 0;
  transition: 0.5s;
}

.trailer.active {
  visibility: visible;
  opacity: 1;
}

.trailer video {
  max-width: 900px;
  outline: none;
}

.close {
  position: absolute;
  top: 30px;
  right: 30px;
  cursor: pointer;
  filter: invert(1);
  max-width: 32px;
}

/* Social Links */
.sci {
  position: absolute;
  bottom: 50px;
  right: 100px;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 25px;
}

.sci a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 25px;
  transition: 0.3s;
  cursor: pointer;
}

.sci a:hover {
  color: var(--primary);
}

/* News Card Section */
.content-section {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 100px;
  padding: 24px 30px;
}

.topNews {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.n_title {
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  margin-right: 26px;
}

.newsCard {
  position: relative;
  display: flex;
  width: 165%;
  gap: 15px;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  flex-direction: row;
}

.read-news-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: #00a4ff;
  color: white;
  padding: 5px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.read-news-btn:hover {
  background-color: #255ecb;
}

.newsCard .img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.newsCard .text .title p {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #222;
}

.newsCard .text .description p {
  font-size: 0.9rem;
  text-align: left;
  color: #555;
  margin: 5px 0 0;
}

@media (max-width: 768px) {
  .content-section {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
    overflow-x: hidden;
  }
.newsCard {
  margin-top: 0; /* reset all first */
  margin-bottom: 15px; /* consistent spacing below each card */
  width:100%;
}

/* Or, better: add margin only between cards */
.newsCard + .newsCard {
  margin-top: -15px;
}
.read-news-btn {
  bottom: 10px;
  right: 10px;
 margin-right: 10px;
  margin-top: 5px;
  padding: 5px 16px;
  font-weight: 400;
  font-size: 0.7rem;
}


  .bg {
    width: 100%;
    padding: 0 15px;
    background-position: center;
  }

  .left {
    width: 100%;
  }
}

  .news_title, .n_title h2 {
    font-size: 28px;
    text-align: center;

    color: #288ee7;
  }


/* Slide Gallery Section */
.slide-container {
  position: relative;
  max-width: 875px;
  width: 100%;
  padding: 40px;
}

.slide-content {
  margin: 0 40px;
  overflow: hidden;
}

.gallery-wrap {
  display: flex;
  width: 100%;
  height: 450px;
  gap: 10px;
  margin-bottom: 60px;
}

.item {
  flex: 1;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: flex 0.7s ease-in-out, filter 0.5s ease;
  filter: brightness(0.8) blur(1.5px);
  border-radius: 10px;
  overflow: hidden;
}

.item > img {
	height: 100%;
}

.item:hover {
  flex: 10;
  filter: brightness(1) blur(0);
  z-index: 2;
}

/* Gallery Items (Customize background URLs) */
.item-1 { background-image: url("../images/cartoons/fri9_7.jpg"); }
.item-2 { background-image: url("../images/cartoons/mon19_7.jpg"); }
.item-3 { background-image: url("../images/cartoons/mon26_6.jpg"); }
.item-4 { background-image: url("../images/cartoons/sun11_6.jpg"); }
.item-5 { background-image: url("../images/cartoons/sun25_7.jpg"); }
.item-6 { background-image: url("../images/cartoons/sun27_7.jpg"); }
.item-7 { background-image: url("../images/cartoons/sun30_6.jpg"); }
.item-8 { background-image: url("../images/cartoons/thu8_5.jpg"); }

/* Mobile & touch devices fix */
@media (hover: none), (max-width: 768px) {
  .item {
    transition: filter 0.3s ease; /* no flex transition */
  }
  
  .item:hover {
    flex: 1 !important;
    filter: brightness(0.8) blur(1.5px) !important;
    z-index: auto !important;
  }
  
  .gallery-wrap {
    flex-direction: column;
    height: auto !important;
    overflow: visible !important;
  }
}

/* Poll Section */
.poll-section {
  display: flex;
  gap: 50px;
  margin: 40px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.poll-questions,
.poll-results {
  flex: 1;
}

.poll-questions h2,
.poll-results h2 {
  margin-bottom: 20px;
  color: var(--primary);
}

.poll-questions fieldset {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.poll-questions legend {
  font-weight: 600;
  margin-bottom: 10px;
}

.poll-questions label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
}

.poll-result {
  margin-bottom: 30px;
}

.poll-result p {
  font-weight: 600;
  margin-bottom: 10px;
}

.bar-container {
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  height: 30px;
  display: flex;
}

.bar {
  color: white;
  text-align: center;
  line-height: 30px;
  font-weight: 600;
  font-size: 0.9rem;
}

.bar.yes {
  background-color: #3378e7;
}

.bar.no {
  background-color: #ff4c4c;
}

.bar.flip {
  background-color: #ffaa00;
}

/* Video Gallery Section */
.video-gallery-section {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #222;
}

.video-gallery-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.video-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 200px;
  flex-shrink: 0;
}

.video-thumb {
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.video-thumb:hover {
  transform: scale(1.03);
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.main-video {
  flex: 1;
  min-width: 300px;
  max-width: 640px;
  text-align: center;
}

.video-container {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  margin-top: 1rem;
}

#mainVideoTitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
}

#mainVideoCaption {
  font-size: 1rem;
  color: #555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .video-gallery-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .video-column {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .video-thumb {
    width: 45%;
  }

  .main-video {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .poll-section {
    flex-direction: column;
  }

  .gallery-wrap {
    height: auto;
    flex-direction: column;
  }

  .item {
    flex: none;
    height: 200px;
  }

  .slide-container {
    padding: 20px;
  }

  .video-column {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .video-thumb {
    width: 100%;
  }

  .newsCard {
    flex-direction: column;
    width: 100%;
  }

  .read-news-btn {
    position: static;
    margin-top: 10px;
    display: inline-block;
  }
}
