/*
====================================================
WEBSITE      : ScientificBioMinds
PURPOSE      : Bioinformatics Research, Training & Consultancy
FRAMEWORK    : Bootstrap 4
CUSTOMIZED   : Navigation, Branding, Typography, Academic UI
====================================================
*/

/* ===============================
   BRAND VARIABLES
================================ */
:root {
  --sbm-primary: #2e7eed;
  --sbm-dark: #1a1b1f;
  --sbm-gray: #fafafa;
  --sbm-text: #333333;
}

/* ===============================
   GLOBAL TYPOGRAPHY
================================ */
body {
  font-family: "Open Sans", sans-serif;
  color: var(--sbm-text);
}

h1, h2 {
  font-weight: 600;
  color: #000;
}

h3, h4, h5, h6 {
  font-weight: 500;
  color: #000;
}

p {
  font-size: 16px;
  line-height: 26px;
}

/* ===============================
   TOP HEADER BAR
================================ */
.top-header {
  background: #1b1a1f;
  color: #ffffff;
  font-size: 13px;
  padding: 8px 0;
}

.top-header .top-link {
  color: #ffffff;
  font-weight: 600;
  margin-right: 10px;
}

.top-header .top-link:hover {
  color: var(--sbm-primary);
}

.top-header .separator {
  margin: 0 8px;
  color: #777;
}

/* Social Icons */
.top-header .social-icon {
  display: inline-block;
  margin-left: 10px;
  font-size: 16px;
  color: #ffffff;
  transition: 0.3s;
}

.top-header .social-icon:hover {
  color: var(--sbm-primary);
}

/* WhatsApp specific */
.top-header .whatsapp:hover {
  color: #25D366;
}

/* LinkedIn specific */
.top-header .linkedin:hover {
  color: #0A66C2;
}
/* ===============================
   TOP HEADER BAR
================================ */
.top-header {
  background: #01125a;
  color: #ffffff;
  font-size: 13px;
  padding: 8px 0;
}

.top-header .top-link {
  color: #ffffff;
  font-weight: 600;
  margin-right: 10px;
}

.top-header .top-link:hover {
  color: var(--sbm-primary);
}

.top-header .separator {
  margin: 0 8px;
  color: #777;
}

/* Social Icons */
.top-header .social-icon {
  display: inline-block;
  margin-left: 12px;
  font-size: 16px;
  color: #ffffff;
  transition: 0.3s ease;
}

/* WhatsApp Hover */
.top-header .social-icon.whatsapp:hover {
  color: #25D366;
}

/* LinkedIn Hover */
.top-header .social-icon.linkedin:hover {
  color: #0A66C2;
}

/* ===============================
   NAVBAR – ScientificBioMinds
================================ */
.main-nav {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.main-nav .navbar-nav .nav-link {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #000;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-item.active .nav-link {
  color: var(--sbm-primary);
}

/* Active underline (desktop only) */
@media (min-width: 992px) {
  .main-nav .navbar-nav .nav-item.active .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--sbm-primary);
  }
}

/* ===============================
   DROPDOWN – FIX & REFINEMENT
================================ */
.main-nav .dropdown-menu {
  border: none;
  border-radius: 6px;
  padding: 10px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.main-nav .dropdown-menu .dropdown-item {
  font-size: 13px;
  padding: 8px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.main-nav .dropdown-menu .dropdown-item:hover,
.main-nav .dropdown-menu .dropdown-item:focus {
  background: transparent;
  color: var(--sbm-primary);
}

/* Desktop hover dropdown */
@media (min-width: 992px) {
  .main-nav .dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ===============================
   BUTTONS – ACADEMIC STYLE
================================ */
.btn {
  text-transform: none;
  font-weight: 600;
}

.btn-primary,
.btn-main,
.btn-main-md,
.btn-main-sm {
  background: var(--sbm-primary);
  border-color: var(--sbm-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-main:hover {
  background: #1f66d1;
  border-color: #1f66d1;
}

/* ===============================
   SECTION SPACING
================================ */
.section {
  padding: 90px 0;
}

.section-title h2 {
  font-size: 34px;
}

.section-title p {
  font-size: 16px;
}

/* ===============================
   FOOTER – ScientificBioMinds
================================ */
.footer-main {
  background: var(--sbm-dark);
}

.footer-main h6 {
  color: #ffffff;
  font-weight: 600;
}

.footer-main a {
  color: #bdbdbd;
}

.footer-main a:hover {
  color: #ffffff;
}

/* ===============================
   SCROLL TO TOP
================================ */
.scroll-top-to {
  background: var(--sbm-primary);
}

.scroll-top-to:hover {
  background: #1f66d1;
}
/* ===============================
   DNA ANIMATION – NAVBAR
================================ */
.dna-container {
  display: flex;
  gap: 4px;
  margin-right: 15px;
}

.dna-container span {
  width: 4px;
  height: 18px;
  background: var(--sbm-primary);
  border-radius: 10px;
  animation: dnaWave 1.6s infinite ease-in-out;
  opacity: 0.3;
}

.dna-container span:nth-child(odd) {
  animation-delay: 0.2s;
}
.dna-container span:nth-child(even) {
  animation-delay: 0.4s;
}

@keyframes dnaWave {
  0% {
    transform: scaleY(0.5);
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1.6);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.5);
    opacity: 0.3;
  }
}
/* ===============================
   REAL DNA HELIX (SVG)
================================ */

.dna-helix {
  margin-right: 15px;
}

.dna-strand {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: strandMove 3s linear infinite;
}

.strand-2 {
  animation-delay: 1.5s;
}

/* DNA base pairs */
.dna-rung {
  stroke: var(--sbm-primary);
  stroke-width: 1.5;
  opacity: 0.4;
  animation: rungPulse 1.5s ease-in-out infinite;
}

.dna-rung:nth-child(1) { animation-delay: 0s; }
.dna-rung:nth-child(2) { animation-delay: 0.5s; }
.dna-rung:nth-child(3) { animation-delay: 1s; }

@keyframes strandMove {
  0% {
    stroke-dashoffset: 200;
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.4;
  }
}

@keyframes rungPulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
.dna-student-research {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  color: #f5f3f3;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .dna-student-research {
    max-width: 300px;
  }
}
/* ===============================
   PROGRAMS SECTION
================================ */
.programs-section {
  padding: 90px 0;
  background: #ffffff;
}

.section-header .section-tag {
  display: inline-block;
  color: #2e7eed;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1a1b1f;
  margin-bottom: 15px;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto 50px;
  color: #555;
  font-size: 16px;
  line-height: 26px;
}

/* Card */
.program-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
}

.program-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.program-card:hover img {
  transform: scale(1.08);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(46,126,237,0.25);
}

.program-content {
  padding: 22px;
}

.program-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1b1f;
  margin-bottom: 8px;
}

.program-content p {
  font-size: 14px;
  color: #666;
  line-height: 22px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .section-header h2 {
    font-size: 28px;
  }
  .program-card img {
    height: 170px;
  }
}
/* ===============================
   EVENTS SECTION
================================ */
.events-section {
  padding: 90px 0;
  background: #fafafa;
}

.events-slider {
  margin-top: 50px;
}

/* Event Card */
.event-card {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  margin: 15px;
  position: relative;
  min-height: 220px;
}

.event-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1b1f;
  margin-bottom: 10px;
}

.event-card p {
  font-size: 14px;
  color: #555;
  line-height: 22px;
}

.event-date {
  display: block;
  margin-top: 15px;
  font-size: 13px;
  font-weight: 600;
  color: #777;
}

/* Badges */
.event-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  color: #fff;
  text-transform: uppercase;
}

.event-badge.current {
  background: #2e7eed;
}

.event-badge.upcoming {
  background: #28a745;
}

.event-badge.past {
  background: #6c757d;
}
/* Mobile Optimization */
/* Floating Button */
.floating-events-btn {
  position: fixed;
  right: 20px;
  bottom: 90px;
  background: #2e7eed;
  color: #fff;
  padding: 14px 18px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(46,126,237,0.35);
}

/* Floating Window */
.floating-events-window {
  position: fixed;
  right: 20px;
  bottom: 150px;
  width: 320px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  z-index: 9999;
}

/* Header */
.floating-header {
  background: #2e7eed;
  color: #fff;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0 0;
}

.floating-header h3 {
  margin: 0;
  font-size: 18px;
}

.close-btn {
  cursor: pointer;
  font-size: 22px;
}

/* Content */
.floating-content {
  padding: 15px;
  max-height: 380px;
  overflow-y: auto;
}

/* Event Box */
.event-box {
  border-left: 4px solid;
  padding: 12px 12px 12px 15px;
  margin-bottom: 15px;
  background: #fafafa;
  border-radius: 6px;
}

.event-box h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.event-box p {
  font-size: 13px;
  color: #555;
}

.event-box small {
  font-weight: 600;
  color: #777;
}

/* Badges */
.badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  color: #fff;
  display: inline-block;
  margin-bottom: 6px;
}

.current { border-color: #2e7eed; }
.upcoming { border-color: #28a745; }
.past { border-color: #6c757d; }

.badge.current { background: #2e7eed; }
.badge.upcoming { background: #28a745; }
.badge.past { background: #6c757d; }

/* Mobile */
@media (max-width: 576px) {
  .floating-events-window {
    width: 90%;
    right: 5%;
  }
}
/* Floating Button */
.floating-events-btn {
  position: fixed;
  right: 20px;
  bottom: 90px;
  background: #2e7eed;
  color: #fff;
  padding: 14px 18px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.3s;
}

/* Floating Window */
.floating-events-window {
  position: fixed;
  right: 20px;
  bottom: 150px;
  width: 340px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  z-index: 9999;
}

/* Header */
.floating-header {
  background: #2e7eed;
  color: #fff;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0 0;
}

.close-btn {
  cursor: pointer;
  font-size: 22px;
}

/* Content */
.floating-content {
  padding: 15px;
  max-height: 400px;
  overflow-y: auto;
}

/* Event Box */
.event-box {
  background: #fafafa;
  padding: 14px;
  border-radius: 6px;
  border-left: 4px solid;
  margin-bottom: 15px;
}

/* Auto-highlight current */
.event-box.highlight {
  background: #eaf1ff;
  box-shadow: 0 0 0 2px rgba(46,126,237,0.2);
}

/* Event Text */
.event-box h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.event-box p {
  font-size: 13px;
  color: #555;
}

.event-box small {
  font-weight: 600;
  color: #777;
}

/* Status */
.current { border-color: #2e7eed; }
.upcoming { border-color: #28a745; }
.past { border-color: #6c757d; }

.badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  color: #fff;
  display: inline-block;
  margin-bottom: 6px;
}

.badge.current { background: #2e7eed; }
.badge.upcoming { background: #28a745; }
.badge.past { background: #6c757d; }

/* Register Button */
.btn-register {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  background: #2e7eed;
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
}

.btn-register:hover {
  background: #1f5fd4;
}

/* WhatsApp Join */
.whatsapp-join {
  text-align: center;
  margin-top: 10px;
}

.whatsapp-join a {
  color: #25D366;
  font-weight: 600;
  text-decoration: none;
}

/* Mobile */
@media (max-width: 576px) {
  .floating-events-window {
    width: 90%;
    right: 5%;
  }
}
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  z-index: 9999;
}

.vertical-marquee {
  background: #f8f8f8;
  color: #313030;
  padding: 12px;
  width: 100%;
}

.marquee-box {
  height: 250px;          /* Visible area height */
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: block;
  animation: marquee-up 12s linear infinite;
}

/* SPEED CONTROL */
/* Increase seconds = slower */
@keyframes marquee-up {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}

/* STOP ON MOUSE OVER */
.marquee-box:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-content div {
  padding: 8px 0;
  font-weight: 600;
}
.mission-list {
  padding-left: 18px;
  margin-bottom: 0;
}

.mission-list li {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.mission-list {
  padding-left: 18px;
  margin-bottom: 0;
}

.mission-list li {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}
.mission-list li::marker {
  color: var(--sbm-primary);
  font-weight: bold;
}
.mission-list li:last-child {
  margin-bottom: 0;
}
.mission-list li::marker {
  color: var(--sbm-primary);
  font-weight: bold;
}
.mission-list li:last-child {
  margin-bottom: 0;
}
.mission-list li {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}
.mission-list li::marker {
  color: var(--sbm-primary);
  font-weight: bold;
}
.mission-list li:last-child {
  margin-bottom: 0;
}
.mission-list li {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}
.offer-box {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 420px;
  margin: auto;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative; /* REQUIRED */
}

/* Statistics Section */
.stats-section {
  padding: 80px 0;
  background: #ffffff;
}

.stat-box {
  padding: 30px 20px;
  border-radius: 10px;
  background: #fafafa;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-6px);
}

.stat-box h2 {
  font-size: 42px;
  font-weight: 700;
  color: #2e7eed;
  margin-bottom: 10px;
}

.stat-box p {
  font-size: 16px;
  font-weight: 600;
  color: #1a1b1f;
}
/* Mobile Optimization */
@media (max-width: 768px) {
  .stat-box h2 {
    font-size: 32px;
  }
} 
