/* =========================
   Landing Page
   ========================= */
/* Landing page container */
#landing-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 2rem;
  color: #222;
}

/* Fixed background layer */
.landing-page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/webs/landing-bg.webp") no-repeat center center / cover;
  z-index: -2;
  display: none; /* hidden by default */
}

.landing-page-bg.visible {
  display: block; /* show only when landing page active */
}



/* =========================
   Container Styling
   ========================= */
.landing-container {
  max-width: 640px;
  width: 100%;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f9fff6 35%,
    #e4fbd7 60%,
    #b4eb82 80%,
    #6fbf3a 100%
  );
  padding: 1rem;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.15);
  animation: fadeInUp 0.9s ease-out forwards;
  backdrop-filter: blur(8px);
  margin: 0 auto;
}

/* =========================
   Header (Logo + Heading)
   ========================= */
.header-row { gap: 0.5rem; }

.conf-logo { text-align: center; }
.conf-logo img { max-height: 150px; }
.conf-logo .site-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #006400;
  margin-top: 0.2rem;
}

.conf-heading h1 {
  font-size: 1.9rem !important;
  font-weight: 700 !important;
  margin: 0;
  line-height: 1;
  color: #111;
}
.conf-heading h1 .text-danger { color: #ac0808 !important; }
.conf-heading h2 {
  font-size: 1.9rem !important;
  font-weight: 700 !important;
  margin-top: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: #ac0808;
}
.bioresource-logo {
  max-height: 85px;
  display: inline-block;
  margin: 0.3rem 0;
}

/* =========================
   Text
   ========================= */
.conf-meta { font-size: 1.2rem; margin-bottom: 1.5rem; color: #111; }
.invitation-text {
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #111;
}

/* =========================
   Registration Button
   ========================= */
.reg-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
  color: var(--brand-white) !important;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.reg-btn:hover {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: var(--brand-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.reg-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* =========================
   Visit Button
   ========================= */
.visit-btn {
  display: inline-block;
  padding: 11px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--brand-white);
  border: 2px solid var(--brand-primary);
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.visit-btn:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary)) !important;
  color: var(--brand-white) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-bold) !important;
}
.visit-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* =========================
   Partners Section
   ========================= */
.partners .partner-block {
  padding: 1rem;
  flex: 1 1 300px; /* ensures 3 in a row on large screens, wraps on small */
}

.landing-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1b5e20;
  letter-spacing: 1px;
}
.partners .partner-block {
  min-width: 250px;
}

.partners .landing-sub-title {
  font-weight: 600;
  color: #222;
  font-size: 1.1rem;
}

.partners .logos img,
.partners .partner-block img {
  max-height: 60px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.partners .partner-block img:hover {
  transform: scale(1.05);
}

@media (max-width: 767.98px) {
  .partners .partner-block {
    min-width: 100%;
  }
}


/* Divider for desktop view */
@media (min-width: 768px) {
  .border-md-end { border-right: 2px solid rgba(0,0,0,0.1); }
}

/* Publishing Partner link */
.site-link a {
  font-size: 0.9rem;
  color: #2e7d32;
  text-decoration: none;
  font-weight: 500;
}
.site-link a:hover {
  color: #1b5e20;
  text-decoration: underline;
}

/* =========================
   Footer
   ========================= */
.landing-footer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: #ffffff;
}

/* =========================
   Social Sidebar
   ========================= */
.social-sidebar {
  position: fixed;
  top: 50%; left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.social-sidebar .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.social-sidebar .social-link:hover {
  transform: translateX(6px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
/* Brand colors */
.social-link.facebook { background: #3b5998; }
.social-link.twitter { background: #000; }
.social-link.instagram { background: #e1306c; }
.social-link.linkedin { background: #0077b5; }
.social-link.youtube { background: #ff0000; }

/* =========================
   Responsive
   ========================= */
@media (max-width: 992px) {
  .social-sidebar { gap: 8px; }
  .social-sidebar .social-link {
    width: 42px; height: 42px; font-size: 1.1rem;
  }
}
@media (max-width: 991px) {
  .conf-heading h1 { font-size: 1.7rem !important; }
  .conf-heading h2 { font-size: 1.4rem !important; letter-spacing: 1px; }
  .conf-meta, .invitation-text { font-size: 1rem; }
  .conf-logo img { max-height: 120px; }
  .bioresource-logo { max-height: 65px; }
}
@media (max-width: 767px) {
  .header-row { flex-direction: column !important; text-align: center; }
  .conf-logo img {
    max-height: 100px;
    display: block;
    margin: 0 auto;
  }
  .conf-heading h1 {
    font-size: 1.4rem !important;
    line-height: 1.3;
  }
  .conf-heading h2 {
    font-size: 1.1rem !important;
    margin-top: 0.2rem;
    letter-spacing: 0.5px;
  }
  .conf-meta, .invitation-text {
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
  }
  .reg-btn, .visit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  .partners .logos img {
    max-height: 55px;
    margin: 0.5rem auto;
    display: block;
  }
  .sub-title, .logos, .site-link { text-align: center !important; }
}

/* =========================
   Animations
   ========================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CTA staggered animation */
.cta-btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
}
.cta-btn:nth-child(1) { animation-delay: 0.3s; }
.cta-btn:nth-child(2) { animation-delay: 0.6s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* CTA Buttons Stagger Animation */
.cta-btn {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cta-btn:nth-child(1) {
  transition-delay: 0.2s;
}
.cta-btn:nth-child(2) {
  transition-delay: 0.4s;
}

.page-section.active .cta-btn {
  opacity: 1;
  transform: translateY(0);
}

.page-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  min-height: 100vh;
}

.page-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* Remove visibility:hidden and keep display:none only for hidden sections */
.page-section.d-none {
  display: none;
}
