:root {
  --primary-color: #12395d;
  --secondary-color: #7db0df;
}

body {
  font-family: "Outfit", sans-serif;
}

.cmbc-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
}

.cmbc-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.cmbc-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* NOTIFICATION */

.notification-bar {
  position: fixed;
  top: 90px; /* Adjust this value to match your navbar's height */
  left: 0;
  width: 100%;
  background-color: #ffcc00;
  color: black;
  font-weight: bold;
  padding: 10px;
  font-size: 16px;
  white-space: nowrap;
  z-index: 10001; /* Ensure it's above the main content, if needed */
}

.notification-content {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: scrollText 15s linear infinite;
}

.notification-msg {
  display: inline-block;
  margin-right: 50px;
  /* Adjust spacing between messages */
}

@keyframes scrollText {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Pause animation on hover */
.notification-bar:hover .notification-content {
  animation-play-state: paused;
}

/* NAVBAR */
.nav-bar-container {
  max-width: 1400px;
  margin: 0 auto;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: black;
  padding: 12px 0;
  z-index: 10000;
  /* Assume height around 60px (including padding) */
}

.navbar-brand img {
  max-height: 60px;
  width: auto;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  filter: invert(1);
  /* Makes the toggler icon white */
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.navbar-brand:hover {
  color: var(--primary-color);
}

.nav-link {
  color: white;
  font-weight: 400;
  transition: color 0.3s ease-in-out;
  margin: 0 20px;
}

.nav-link:hover {
  color: var(--secondary-color);
}

.login-btn {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 15px;
  transition: background 0.3s ease-in-out;
}

.login-btn:hover {
  background-color: var(--secondary-color);
  color: black;
}

/* Centering items in small screens */
@media (max-width: 991px) {
  .navbar-collapse {
    text-align: center;
    padding: 15px 0;
  }

  .navbar-nav {
    align-items: center;
  }

  .login-btn {
    display: inline-block;
    margin-top: 10px;
  }

  .navbar {
    padding: 20px 0;
    /* Extra padding for small screens */
  }
}

/* HERO SECTION */

.hero {
  margin-top: 0px;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.subtitle {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.title {
  font-size: 4rem;
  font-weight: 700;
}

.hero-footer {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 1rem;
}

.start-date {
  display: flex;
  align-items: center;
  justify-items: center;
  gap: 8px;
}

.start-date p {
  font-size: 20px;
  margin: auto;
}

.start-date .bi {
  font-size: 30px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-link {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--secondary-color);
}

.primary-btn {
  margin-top: 50px;
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: 50px;
  padding: 10px 40px;
}

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

@media (max-width: 991px) {
  .hero {
    margin-top: -154px;
  }
  .title {
    font-size: 3rem;
  }
  .subtitle {
    font-size: 0.95rem;
    padding-top: 240px;
  }

  .start-date {
    padding-right: 50px;
  }
}

/*---------------------------------------
  ABOUT              
-----------------------------------------*/
.about-section {
  background-image: url("../../Assets/images/about_bg.png");
  background-color: #00509d;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.about-image {
  border-radius: 20px !important;
  margin: 50px;
  display: block;
}

.about-text-wrap {
  position: relative;
}

.about-text-icon {
  background: var(--primary-color);
  border-radius: 100%;
  font-size: var(--h3-font-size);
  width: 70px;
  height: 70px;
  line-height: 70px;
  text-align: center;
}

.about-text-info {
  backdrop-filter: blur(5px) saturate(180%);
  -webkit-backdrop-filter: blur(5px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: var(--border-radius-medium);
  border: 1px solid rgba(209, 213, 219, 0.3);
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  margin: 20px;
  padding: 35px;
}

/* Centering items in small screens */
@media (max-width: 991px) {
  .about-image {
    margin: 0;
    margin-bottom: 20px;
  }

  .about-text-info {
    padding: 15px;
  }

  .about-section .col-12 {
    padding: 50px 30px;
  }

  .about-section .services-info {
    margin-bottom: -50px;
  }

  .services-info h2 {
    font-size: 2.5rem;
  }
}

/*---------------------------------------
  MISSION VISSION              
-----------------------------------------*/

.mission-vision-section {
  background: url("../../Assets/images/mission_bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  position: center;
}

.section-title {
  font-weight: 600;
  color: var(--primary-color);
}

.section-text {
  font-size: 1.1rem;
  color: #333;
}

.icon-style {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.vision-box,
.mission-box {
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.vision-box:hover,
.mission-box:hover {
  transform: translateY(-5px);
}

.benefit-box {
  background: var(--primary-color);
  color: white;
  border-radius: 10px;
  padding: 20px;
}

.benefit-box h3 {
  font-weight: 600;
}

/*---------------------------------------
  CASE STUDY             
-----------------------------------------*/
.case-studies-section {
  background: linear-gradient(to right, #141e30, #243b55);
  padding: 80px 0;
  color: white;
  text-align: center;
}

.case-studies-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

.case-studies-section .highlight {
  color: var(--secondary-color);
}

.case-study-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
  text-align: left;
  color: #000;
}

.case-study-card:hover {
  transform: translateY(-5px);
}

.case-study-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.case-study-description {
  font-size: 1rem;
  opacity: 0.8;
}

.know-more-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.know-more-btn:hover {
  background: var(--secondary-color);
}

/* Modal improvements */
#caseStudyModal .modal-body {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

#caseStudyPdf {
  height: 70vh; /* Adjust height relative to viewport */
}

@media (min-width: 768px) {
  /* Override the vertical centering for desktop */
  #caseStudyModal .modal-dialog {
    margin-top: 100px !important;
    margin-bottom: 0;
    transform: translate(0, 0) !important;
  }
}

/*---------------------------------------
  TIMELINE             
-----------------------------------------*/
.timeline-section {
  background: url("../../Assets/images/timeline_bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 60px 0;
}

.timeline-section h2 {
  font-weight: 600;
  color: var(--primary-color);
}

/* ---------- Horizontal Layout Styles (for md and up) ---------- */
.timeline-nav {
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 10px;
}

.timeline-track {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  padding: 0 20px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ccc;
  z-index: 0;
  transform: translateY(-50%);
}

.nav-pills {
  display: flex;
  gap: 30px;
  z-index: 2;
  position: relative;
  flex-wrap: wrap; /* Allow wrapping if needed */
}

.nav-pills .nav-link {
  background: white;
  color: var(--primary-color);
  font-weight: 500;
  text-align: center;
  padding: 15px;
  border-radius: 50%;
  width: 60px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  border: 2px solid var(--primary-color);
  min-width: 80px;
}

.nav-pills .nav-link i {
  font-size: 18px;
}

.nav-pills .nav-link.active {
  background: var(--primary-color);
  color: white;
}

.nav-pills .nav-link span {
  font-size: 12px;
  margin-top: 5px;
  font-weight: bold;
}

.dot {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-in-out;
}

.timeline-content img {
  width: 80%;
  max-width: 400px;
}

/* ---------- Vertical Layout Styles (for small screens) ---------- */
.nav.flex-column.nav-pills {
  gap: 10px;
}

.nav.flex-column.nav-pills .nav-link {
  background: white;
  color: var(--primary-color);
  font-weight: 500;
  text-align: left;
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav.flex-column.nav-pills .nav-link.active {
  background: var(--primary-color);
  color: white;
}

.nav.flex-column.nav-pills .nav-link i {
  font-size: 18px;
}

.nav.flex-column.nav-pills .nav-link span {
  font-size: 14px;
  font-weight: bold;
}

.timeline-content {
  margin-bottom: 20px;
}

.timeline-content img {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 15px auto 0;
}

/* Hide horizontal layout on small screens */
@media (max-width: 767.98px) {
  .d-md-none {
    display: block !important;
  }

  .timeline-section .col-4 {
    width: 25%;
  }
  .timeline-section .col-8 {
    width: 75%;
  }

  .nav.flex-column.nav-pills .nav-link {
    gap: 0;
  }

  .timeline-section .nav-link {
    margin: 0;
  }

  .timeline-content {
    padding: 15px;
  }

  .timeline-section .nav.flex-column.nav-pills {
    gap: 50px;
  }

  .timeline-section .nav.flex-column.nav-pills .nav-link span {
    font-size: 10px;
    text-align: center;
  }

  .timeline-section h2 {
    font-size: 30px;
  }
}

/* ---------------------------------------
  GUIDELINES
  -----------------------------------------*/
/* Parallax Background */
.guidelines-section {
  position: relative;
  background: url("../../Assets/images/rules-bg.jpeg") no-repeat center
    center/cover;
  background-attachment: fixed;
  padding: 100px 0;
}

/* Overlay for better readability */
.guidelines-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for contrast */
  z-index: 1;
}

/* Ensure content stays above overlay */
.guidelines-section .container {
  position: relative;
  z-index: 2;
}

.guidelines-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.guidelines-box:hover {
  transform: translateY(-5px);
}

.guidelines-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.guidelines-icon {
  font-size: 28px;
  color: var(--primary-color);
}

.guidelines-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--secondary-color);
}

.guidelines-description {
  font-size: 16px;
  font-weight: 500;
  color: #666;
  margin-bottom: 15px;
}

.guidelines-list {
  list-style: none;
  padding-left: 0;
}

.guidelines-list li {
  padding: 8px 0;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
}

.guidelines-list li:last-child {
  border-bottom: none;
}

/* Smooth Fade-in Effect */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.delay-200 {
  transition-delay: 0.2s;
}

/* Activate Fade-in when in View */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Highlighted Text */
.highlight {
  color: var(--secondary-color);
  font-weight: 700;
}

@media (max-width: 991px) {
  .guideline-heading {
    font-size: 2.5rem;
  }
}

/* ---------------------------------------
  FAQ
  -----------------------------------------*/

/* FAQ Section */
.faq-section {
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
  padding: 80px 0;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.faq-title span {
  color: var(--secondary-color);
}

.faq-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 15px 20px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.faq-question i {
  margin-right: 10px;
  color: var(--primary-color);
}

.faq-toggle-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 15px 20px;
  font-size: 1rem;
  color: #444;
  background: #fff;
  border-top: 1px solid #ddd;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.faq-item.active .faq-answer {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-step-icon {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.5em;
  margin-top: 0.35em;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 2px 8px 0 rgba(59,130,246,0.10);
  flex-shrink: 0;
}
.dark-theme .faq-step-icon {
  background: #fff;
}

/* ---------------------------------------
  WINNERS
  -----------------------------------------*/
.prizes-section {
  background: linear-gradient(to right, #141e30, #243b55);
  padding: 80px 0;
  color: white;
  text-align: center;
}
.prizes-section h2 {
  font-size: 3rem;
  font-weight: bold;
  color: white;
}
.prizes-section .highlight {
  color: #ffcc00;
}
.prize-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}
.prize-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.prize-icon {
  font-size: 50px;
  color: gold;
  margin-bottom: 15px;
}
.prize-title {
  font-size: 1.8rem;
  font-weight: bold;
}
.prize-amount {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--secondary-color);
}
.prize-description {
  font-size: 1rem;
  opacity: 0.8;
}

@media (max-width: 991px) {
  .prize-card {
    margin: 20px;
  }
}

/*---------------------------------------
  SITE FOOTER              
-----------------------------------------*/
.site-footer {
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
  padding-bottom: 30px;
}

.site-footer-top {
  background-color: var(--secondary-color);
  background-image: url("../../Assets/images/about_bg.png") center/cover;
  background-repeat: no-repeat;
  margin-bottom: 70px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.site-footer-bottom {
  border-top: 1px solid #1f1c1c;
  margin-top: 60px;
}

.site-footer-title {
  color: #fff;
}

.site-footer-link,
.copyright-text {
  text-decoration: none;
  color: #fff;
}

.site-footer-links {
  padding-left: 0;
}

.site-footer-link-item {
  list-style: none;
  display: inline-block;
  margin-right: 15px;
}

.copyright-text {
  font-size: 20px;
}

/*---------------------------------------
    SOCIAL ICON               
  -----------------------------------------*/
.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon-item {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  background: var(--secondary-color);
  border-radius: 50px;
  color: #fff;
  font-size: 15px;
  display: block;
  margin-right: 10px;
  text-align: center;
  width: 35px;
  height: 35px;
  line-height: 36px;
  transition: background 0.2s, color 0.2s;
}

.social-icon-link:hover {
  background: var(--primary-color);
  color: #fff;
}

.social-icon-link span {
  display: block;
}

.social-icon-link span:hover::before {
  animation: spinAround 2s linear infinite;
}

@keyframes spinAround {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Centering items in small screens */
@media (max-width: 991px) {
  .social-icon-link {
    font-size: 25px;
    padding-right: 20px;
  }

  .site-footer h2 {
    text-align: center;
  }

  .social-container {
    justify-content: center;
  }

  .site-footer-bottom,
  .site-footer-bottom .col-12 {
    margin-top: 20px !important;
  }

  .site-footer {
    padding-bottom: 20px;
  }

  .copyright-text {
    font-size: 17px;
    margin-bottom: 0;
  }
}
