html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  background: #f4f7fa;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  animation: fadeInUpPage 1.2s cubic-bezier(.4,0,.2,1) both;
}

.navbar {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 5rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  animation: fadeInDownSlow 1.5s ease forwards;
}

.navbar-glass {
  background: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, box-shadow 0.3s;
}

@keyframes fadeInDownSlow {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-navbar {
  animation: fadeInDownSlow 1.5s ease forwards;
}

.navbar-logo img {
  height: 38px;
  width: auto;
}

.navbar-logo span {
  color: #2e7d32;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.navbar-links {
  display: flex;
  gap: 2.2rem;
}

.navbar-links a {
  color: #ffffff ;
  text-decoration: none;
  font-size: 3rem !important;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: #388e3c;
}

.nav-link-hover {
  transition: color 0.2s, background 0.2s;
}

.nav-link-hover:hover,
.nav-link-hover.active {
  text-decoration-color: #388e3c !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 8px !important;
}

.navbar-auth {
  display: flex;
  gap: 1rem;
}

.btn-auth {
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-auth:hover {
  background: #388e3c;
}

.btn-signup {
  background: #fff;
  color: #2e7d32;
  border: 1.5px solid #2e7d32;
}

.btn-signup:hover {
  background: #e8f5e9;
}

.navbar-padding {
  padding-left: 8rem !important;
  padding-right: 8rem !important;
}

.section-2 {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 7rem;
  padding-left: 8rem;
  padding-right: 8rem;
  background-image: url('background2.webp');
  background-size: cover;
  background-position: center;
  z-index: 1;
  overflow: hidden;
}

.section-2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7); 
  z-index: 2;
  pointer-events: none;
}

.section-2 > .row {
  position: relative;
  z-index: 3;
}

.section-2 .col {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
}

.section2-card {
  width: 100%;
  max-width: 350px;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #222;
  text-align: center;
  margin: 0 auto;
  transition: box-shadow 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section2-card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: #e0e0e0;
}

.section2-card-body {
  padding: 1rem 1.2rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section2-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.section2-card-text {
  font-size: 0.98rem;
  color: #ffffff;
}

/* Responsive styles for section-2 */
@media (max-width: 1200px) {
  .section-2 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 991.98px) {
  .section-2 {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .section2-card-img-top {
    height: 160px;
  }
}

@media (max-width: 767.98px) {
  .section-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .section2-card {
    max-width: 100%;
    min-width: 0;
  }
  .section2-card-img-top {
    height: 120px;
  }
}

@media (max-width: 575.98px) {
  .section-2 {
    padding-left: 0;
    padding-right: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .section2-card {
    max-width: 98vw;
    min-width: 0;
  }
  .section2-card-img-top {
    height: 90px;
  }
  .section2-card-body {
    padding: 0.7rem 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-padding {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .nav-link {
  color: #fff !important;
  font-size: 0.6rem !important; /* Increase as desired */
}
  
}

/* Hero Section Styles */
.hero-slider {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0) 80%);
}

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

.hero-content-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
  max-width: 600px;
  margin-left: 5vw;
  padding-left: 4rem;
  z-index: 2;
  position: relative;
}

.glassmorphism-box {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  padding: 2.5rem 2rem;
  margin-top: 25rem;
  color: #222;
}

.glassmorphism-box h1 {
  color: #2e7d32;
  font-size: 4rem;
  font-weight: 700;
  margin: 1.2rem 0 1rem 0;
  text-shadow: none;
}

.glassmorphism-box p {
  color: #e9e9e9;
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
}

.btn-get-started {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.8rem 2.2rem;
  border-radius: 20px !important;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.10);
}

/* Responsive styles for hero section */
@media (max-width: 991.98px) {
  .hero-slider {
    height: auto;
    min-height: 70vh;
    padding: 2rem 0;
  }
  .hero-content-left {
    max-width: 95vw;
    margin-left: 2vw;
    margin-right: 2vw;
    padding-left: 0;
  }
  .glassmorphism-box {
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .hero-slider {
    min-height: 60vh;
    padding: 1rem 0;
  }
  .hero-content-left {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    max-width: 100vw;
  }
  .glassmorphism-box {
    padding: 1rem 0.5rem;
    margin-top: 1rem;
  }
  .glassmorphism-box h1 {
    font-size: 1.3rem;
  }
  .glassmorphism-box p {
    font-size: 0.98rem;
  }
  .btn-get-started {
    width: 100%;
    padding: 0.7rem 0;
    font-size: 1rem;
  }
}

.nav-link {
  color: #fff !important;
  font-size: 1.15rem !important; /* Increase as desired */
}

.nav-link.active {
  color: #388e3c !important;
  text-decoration: underline !important;
  text-decoration-color: #388e3c !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 8px !important;
}
.nav-link:hover {
  color: #388e3c !important;
  text-decoration: underline !important;
  text-decoration-color: #388e3c !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 8px !important;
}

#auth-buttons {
  display: flex !important;
}

/* Footer background image and overlay */
footer {
  position: relative;
  background-image: url('footer.webp');
  background-size: cover;
  background-position: center;
  color: #fff;
  z-index: 1;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7); /* Black overlay */
  z-index: 2;
  pointer-events: none;
}

footer > .container,
footer > .d-flex {
  position: relative;
  z-index: 3;
}

/* --- Responsive padding for formation card section (section3) --- */
.section3 {
  padding-left: 2rem;
  padding-right: 2rem;
}
@media (max-width: 767.98px) {
  .section3 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
@media (max-width: 575.98px) {
  .section3 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* --- Page entrance animation --- */
@keyframes fadeInUpPage {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Optionally, animate main sections for extra effect */
.section-1, .section-2, .section3, .hero-slider {
  animation: fadeInUpPage 1.2s cubic-bezier(.4,0,.2,1) both;
  animation-delay: 0.2s;
}

/* Optional: Animate cards individually for a staggered effect */
.section2-card {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: fadeInUpPage 0.9s cubic-bezier(.4,0,.2,1) forwards;
}
.section2-card:nth-child(1) { animation-delay: 0.3s; }
.section2-card:nth-child(2) { animation-delay: 0.5s; }
.section2-card:nth-child(3) { animation-delay: 0.7s; }
.section2-card:nth-child(4) { animation-delay: 0.9s; }

.custom-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.95);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal-content {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  max-width: 420px;
  width: 95vw;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.78);
  position: relative;
}

.custom-modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  z-index: 2;
}

.formation-benefits {
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(46,125,50,0.08);
  max-width: 700px;
  margin: 0 auto 2rem auto;
  position: relative;
  z-index: 2;
  animation: fadeInUpPage 1.2s cubic-bezier(.4,0,.2,1) both;
}

.formation-benefits h3 {
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 1.5rem;
  animation: fadeIn 1.2s;
}

.benefits-list {
  padding-left: 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 0.7s forwards;
}

.benefit-item i {
  font-size: 1.4rem;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 767.98px) {
  .formation-benefits {
    padding: 1.2rem 0.5rem;
    max-width: 98vw;
  }
  .formation-benefits h3 {
    font-size: 1.15rem;
  }
  .benefit-item {
    font-size: 0.98rem;
  }
}

