/* =====================================================
   HOME PAGE – FINAL CSS
   ===================================================== */


/* ================= HERO SECTION ================= */

.hero-section {
  position: relative;
  height: 70vh;
  min-height: 520px;
  background: url("../../images/banner.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

/* Hero content */
.hero-content {
  position: relative;
  max-width: 1000px;
  padding: 20px;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Headings */
.hero-content h1 {
  font-size: 32px;
  line-height: 1.35;
}

.hero-content h2 {
  font-size: 20px;
  color: #ffb100;
}

/* Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.btn {
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

.btn.primary {
  background-color: #ffb100;
  color: #000;
}

.btn.secondary {
  background-color: #ff9800;
  color: #000;
}

/* Info cards */
.hero-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #2d82df;
  padding: 15px 20px;
  border-radius: 8px;
  min-width: 240px;
}

.info-card span {
  font-size: 26px;
}

/* Logos */
.hero-logos {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-logos img {
  height: 60px;
  width: auto;
  opacity: 0.95;
}


/* ================= ABOUT SECTION ================= */

.page-about {
  margin: 50px;
  padding: 0 20px;
  text-align: center;
}

.page-about h2 {
  color: rgb(241, 148, 7);
  font-size: 2rem;
  margin-bottom: 20px;
}

.page-about p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

.about-button {
  display: inline-block;
  background-color: #f8ab05;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.about-button:hover {
  background-color: #da9501;
}


/* ================= CALL FOR PAPERS ================= */

.call-for-paper {
  background-color: #05579e;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.call-for-paper h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.call-for-paper p {
  font-size: 1.1rem;
  margin-bottom: 15px;
}


/* ================= SPEAKER SECTION ================= */

.speaker-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
}

.speaker-section h2 {
  color: rgb(241, 148, 7);
  font-size: 30px;
  margin-bottom: 25px;
  text-align: center;
}

.speaker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.speaker-card {
  width: 250px;
  background-color: #f59506;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speaker-card:hover {
  background-color: #000;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.speaker-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.speaker-info h3 {
  margin: 10px 0 5px;
  font-size: 1.1rem;
}

.speaker-info h4 {
  font-size: 0.9rem;
  color: #ffffff;
  padding-bottom: 10px;
}


/* ================= GALLERY ================= */

.gallery {
  width: min(100% - 80px, 1760px);
  margin: 16px auto 50px;
  padding: 0;
  text-align: center;
}

.gallery h2 {
  color: rgb(241, 148, 7);
  font-size: 42px;
  margin-bottom: 40px;
}

.gallery div {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 22px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 7px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


/* ================= PROMOTIONAL PARTNERS ================= */

.promotional-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 0;
  background-color: #f8f9fb;
}

.promotional-partner h2 {
  color: rgb(241, 148, 7);
  font-size: 30px;
  margin-bottom: 25px;
}

.sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.sponsor-logos img {
  width: 180px;
  padding: 12px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.sponsor-logos img:hover {
  transform: scale(1.05);
}


/* ================= NEWS TICKER ================= */

.news-section {
  width: 100%;
  background-color: #0f172a;
}

.news-ticker {
  height: 56px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #1e293b;
}

.ticker-wrapper {
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-wrapper span {
  font-size: 17px;
  font-weight: 500;
  color: #f8fafc;
}

.news-ticker:hover .ticker-wrapper {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}


/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 768px) {

  .gallery {
    width: min(100% - 32px, 640px);
    margin-top: 36px;
  }

  .gallery h2 {
    font-size: 30px;
    margin-bottom: 24px;
  }

  .gallery div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .hero-section {
    height: auto;
    padding: 90px 16px 40px;
  }

  .hero-content {
    gap: 14px;
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .hero-content h2 {
    font-size: 16px;
  }

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

  .btn {
    width: 100%;
    max-width: 260px;
  }

  .hero-info {
    flex-direction: column;
    gap: 12px;
  }

  .info-card {
    max-width: 280px;
    padding: 12px 16px;
  }

  .hero-logos img {
    height: 42px;
  }
}

@media (max-width: 360px) {

  .hero-content h1 {
    font-size: 20px;
  }

  .hero-content h2 {
    font-size: 15px;
  }

  .hero-logos img {
    height: 38px;
  }
}
