body {
      font-family: 'Poppins', sans-serif;
      background-color: #f9f9f9;
      overflow-x: hidden;
    }

     /* Navbar */
    .navbar {
      transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
      background: transparent !important;
      position: absolute;
      width: 100%;
      z-index: 10;
   margin-top: 0.8px;

    }
    .navbar-brand {
  position: relative;
}

.logo {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
 padding-top: 10px;
}

.logo-top {
  opacity: 1;
}

.logo-scroll {
  opacity: 0;
}

.navbar.scrolled .logo-top {
  opacity: 0;
}

.navbar.scrolled .logo-scroll {
  opacity: 1;
}
/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  z-index: 1000; /* High z-index so toggler is clickable */
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
   padding: 1.5rem 0;
}
.message-img {
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  object-fit: cover;
  width: 100%;
  max-width: 400px; /* Enlarged for balance */
  height: auto;
  transition: transform 0.4s ease;
}
.message-img:hover {
  transform: scale(1.03);
}

/* Logo container */
.navbar-brand {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 10; /* Make sure logos are above navbar background but below toggler */
}

/* Logos stacked */
.logo {
  max-height: 80px;
  width: auto;
  transition: opacity 0.4s ease;
  pointer-events: none; /* Allow clicks to pass through */
 
}

/* Opacity swap on scroll */
.logo-top { opacity: 1; }
.logo-scroll { opacity: 0; }

.navbar.scrolled .logo-top { opacity: 0; }
.navbar.scrolled .logo-scroll { opacity: 1; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo { max-height: 50px; }
}

    .navbar.scrolled {
      position: fixed;
      background: #fff !important;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    .navbar .nav-link { color: white; transition: color 0.3s; }
    .navbar.scrolled .nav-link { color: black !important; }
    .navbar-brand img { height: 80px; }
    .navbar-toggler-icon { filter: invert(1); }
    .navbar.scrolled .navbar-toggler-icon { filter: invert(0); }

    /* Hero */
    .hero {
      height: 50vh;
      background: url(message.jpg) center/cover no-repeat;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: white;
      position: relative;
 
    }
    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.5);
    }
    .hero h1 {
      position: relative;
      font-size: 3rem;
      font-weight: 700;
      z-index: 2;
      text-transform: uppercase;
      letter-spacing: 2px;
    }

    /* Message Sections */
    .message-section {
      padding: 80px 0;
      background: #fff;
    }
    .message-section:nth-child(even) {
      background: #f5f7fa;
    }

    .message-title {
      font-weight: 700;
      color:  #44B64A;
      position: relative;
      display: inline-block;
      margin-bottom: 30px;
    }
    .message-title::after {
      content: '';
      display: block;
      width: 80px;
      height: 4px;
      background: #FFD700;
      margin: 10px auto 0;
      border-radius: 2px;
    }

    .message-text {
      color: #000000;
      line-height: 1.8;
      text-align: justify;
      margin-bottom: 1rem;
      font-size: 1.05rem;
    }

    .signature {
      font-weight: 600;
      color: #000;
      margin-top: 2rem;
    }

    .message-img {
      border-radius: 15px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.15);
      object-fit: cover;
      width: 100%;
      max-width: 350px;
      height: auto;
      transition: transform 0.4s ease;
    }
    .message-img:hover {
      transform: scale(1.03);
    }

    /* Footer */
    footer {
      background: #44B64A;
      color: white;
      text-align: center;
      padding: 25px;
      margin-top: 60px;
    }

    @media (max-width: 992px) {
      .message-section .row {
        flex-direction: column !important;
        text-align: center;
      }
      .message-img {
        margin-bottom: 30px;
      }
      .signature {
        text-align: center;
      }
    }