/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0e0e0e;
  color: #f4f4f4;
}

/* ===== Header ===== */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: solid 1px #006FBB;
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #00c2ff;
}

/* ===== Mobile Menu ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 60px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
  }

  .nav-menu ul {
    flex-direction: column;
    padding: 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu.active {
    display: block;
  }
}

/* ===== Hero Section ===== */
body.home-page {
  background: url('../images/nhbrc-test-questions.webp') center center / cover no-repeat;
  height: 100vh;
  overflow: hidden;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  color: #ccc;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 50px;
  border-radius: 0px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn.primary {
  background-color: #006FBB; /* more accessible blue */
  border: 2px solid #006FBB;
  color: #fff;
}

.btn.secondary {
  border: 2px solid #006FBB;
  color: #fff;
}


.btn:hover {
  transform: translateY(-3px);
}

/* ===== Button Mobile Adjustment ===== */
@media (max-width: 768px) {
  .btn {
    display: block;          /* make buttons occupy full width line */
    width: 100%;             /* stretch buttons full width */
    box-sizing: border-box;  /* ensure padding doesn't overflow */
    margin-bottom: 15px;     /* nice vertical spacing between stacked buttons */
    text-align: center;      /* keep text centered */
  }

  /* optional: reduce horizontal padding to fit better */
  .btn.primary,
  .btn.secondary {
    padding: 12px 0;
  }
}


/* ===== Body Links ===== */
body a {
  color: #006FBB; /* default modern blue */
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

body a:hover {
  color: #006FBB; /* lighter blue on hover */
  text-decoration: underline;
}

body a:visited {
  color: #0077cc; /* slightly darker for visited links */
}

/* Keep menu links white */
.main-header .nav-menu a {
  color: #fff;
}

.main-header .nav-menu a:hover,
.main-header .nav-menu a.active {
  color: #00c2ff;
}

/* ===== Content Pages ===== */
.content-page {
  padding: 120px 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== Accordion (Q&A) ===== */
.accordion {
  margin-top: 40px;
}

.accordion-item {
  border-bottom: 1px solid #222;
}

.accordion-header {
  background: none;
  color: #fff;
  border: none;
  width: 100%;
  text-align: left;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #1a1a1a;
  padding: 0 15px;
  color: #ccc;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content p {
  margin: 15px 0;
}

.accordion-item.active .accordion-content {
  max-height: 2000px;
  padding: 15px;
}

/* ===== Hidden Image (for SEO) ===== */
.seo-hidden-img {
  width: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
  opacity: 0;
}

/* ===== Small Screen Adjustments ===== */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .btn {
    padding: 10px 24px;
  }
}


/* ===== Elegant Footer ===== */
.site-footer {
  background-color: #0b0b0b;
  color: #ccc;
  padding: 60px 20px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 30px;
  text-align: left;
}

.footer-logo h2 {
  color: #00c2ff;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.footer-logo p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links h3,
.footer-social h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 8px 0;
}

.footer-links a {
  color: #006FBB;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #006FBB;
}

.footer-social .social-icons {
  display: flex;
  gap: 15px;
}

.footer-social img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-social a:hover img {
  transform: scale(1.1);
  filter: brightness(0) invert(0.7) sepia(1) hue-rotate(170deg) saturate(5);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 15px;
  color: #777;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo p {
    max-width: 100%;
  }
}


/* ===== Registration Process Section ===== */
.registration-process {
  margin-top: 60px;
}

.registration-process h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #00c2ff;
  text-align: center;
}

.registration-process .process-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 800px;
  margin: 0 auto;
}

.registration-process .step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px 25px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.registration-process .step:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 194, 255, 0.2);
}

.registration-process .step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  background: #006FBB;
  color: #fff;
  font-weight: bold;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
}

.registration-process h3 {
  color: #fff;
  margin-bottom: 8px;
}

.registration-process p {
  color: #ccc;
  line-height: 1.6;
}

.registration-process a {
  color: #006FBB;
  text-decoration: none;
}

.registration-process a:hover {
  color: #006FBB;
  text-decoration: underline;
}

.registration-process .note {
  margin-top: 40px;
  background: rgba(0, 194, 255, 0.1);
  border-left: 4px solid #006FBB;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 0.95rem;
  color: #eee;
}


/* ===== Study Material Page ===== */
.study-intro {
  margin-top: 50px;
  text-align: center;
}
.study-intro h2 {
  color: #006FBB;
  margin-bottom: 20px;
  font-size: 2rem;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.benefit {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  transition: all 0.3s ease;
}
.benefit:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 194, 255, 0.2);
}
.benefit h3 {
  color: #fff;
  margin-bottom: 8px;
}
.benefit p {
  color: #ccc;
}

.study-details {
  margin-top: 60px;
}
.study-details h2 {
  color: #006FBB;
  margin-bottom: 15px;
}
.study-details ul {
  margin-left: 20px;
  color: #ccc;
  line-height: 1.7;
}
.study-details p {
  margin-top: 15px;
  color: #ccc;
}

.cta-section {
  margin-top: 70px;
  text-align: center;
}
.cta-section h2 {
  color: #006FBB;
  margin-bottom: 10px;
}
.cta-section p {
  color: #ccc;
  margin-bottom: 30px;
}


/* === MOBILE FIXED BUY BUTTON (BLACK + BLUE THEME) === */
@media (max-width: 768px) {
  .mobile-buy-button {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #0088cc, #00aaff);
    color: #ffffff;
    text-align: center;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 -3px 15px rgba(0, 170, 255, 0.3);
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .mobile-buy-button:hover {
    background: linear-gradient(90deg, #00aaff, #33bbff);
    box-shadow: 0 -3px 20px rgba(0, 170, 255, 0.6);
  }
}

/* Hide button on desktop */
@media (min-width: 769px) {
  .mobile-buy-button {
    display: none;
  }
}


/*Accordation Icon*/
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #007bff, #0056d2);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 123, 255, 0.4);
}




/* === Desktop Slide-in Buy Now Button (Transparent Background) === */
.desktop-buy-now {
  position: fixed;
  top: 50%;
  left: -160px; /* start off-screen */
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4); /* subtle transparent dark base */
  color: #00c2ff; /* bright blue text */
  border: 2px solid #00c2ff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: 0;
  box-shadow: 2px 4px 15px rgba(0, 194, 255, 0.3);
  z-index: 9999;
  font-size: 16px;
  letter-spacing: 0.5px;
  animation: slideInLeft 1s ease-out forwards;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px); /* gives a nice glassy look */
}

.desktop-buy-now:hover {
  background: rgba(0, 194, 255, 0.1); /* slightly more visible on hover */
  transform: translateY(-50%) scale(1.05);
  box-shadow: 4px 6px 20px rgba(0, 194, 255, 0.4);
  color: #fff;
}

/* Slide-in animation */
@keyframes slideInLeft {
  0% {
    left: -160px;
    opacity: 0;
  }
  100% {
    left: 0;
    opacity: 1;
  }
}

/* Hide on mobile */
@media (max-width: 768px) {
  .desktop-buy-now {
    display: none;
  }
}
