/* ===============================
   COMMON CSS – HEADER & FOOTER
   Ganesh Temple Website
================================ */

/* Google Font (optional) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* --------- Global Reset --------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fffaf3; /* light temple background */
  color: #333;
}

/* ===============================
   HEADER / NAVBAR
================================ */

/* ===== TOP INFO BAR ===== */
.top-info-bar {
  background: #e02f41; /* traditional deep saffron */
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: "Noto Sans", sans-serif;
  overflow: hidden; /* hide overflowing text */
  white-space: nowrap; /* keep text on one line */
  padding: 8px 0;
  position: sticky;
  z-index: 1050; /* higher than content */
}

/* Scrolling Text */
.scroll-text {
  display: inline-block;
  padding-left: 100%; /* start off-screen right */
  animation: scrollRightToLeft 50s linear infinite;
}

/* Animation keyframes */
@keyframes scrollRightToLeft {
  0% {
    transform: translateX(100%); /* start off-screen right */
  }
  100% {
    transform: translateX(-100%); /* move off-screen left */
  }
}

/* ===== MAIN NAVBAR ===== */

.main-navbar {
  background: linear-gradient(
    90deg,
    #fc944e,
    #ff9800
  ); /* warm saffron gradient */
  padding: 12px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid #b7410e;
  font-family: "Noto Serif", serif;
  position: sticky;
  z-index: 1040;
}

/* Logo */
.logo-img {
  width: 60px;
  margin-right: 12px;
  border-radius: 50%; /* makes it a circle */
  background: #fdf2e2; /* white circular background */
  padding: 5px; /* optional: space between image and circle */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* subtle shadow for depth */
}

.logo-text {
  color: #3e2723; /* deep brown for traditional feel */
  font-size: 14px;
  line-height: 1.3;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.logo-text strong {
  font-size: 20px;
  color: #6d1b00; /* rich maroon */
  letter-spacing: 0.5px;
}

/* Menu */
.header-menu .nav-link {
  color: #3e2723 !important;
  font-weight: 600;
  margin: 0 12px;
  font-size: 15px;
  transition:
    color 0.3s,
    transform 0.2s;
}

.header-menu .nav-link:hover,
.header-menu .nav-link.active {
  color: #b7410e !important;
  transform: scale(1.05);
}

/* Dropdown */
.dropdown-menu {
  border-radius: 10px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  background: #fff8e1; /* soft cream for traditional feel */
}

.dropdown-item {
  color: #3e2723 !important;
  font-weight: 500;
}

.dropdown-item:hover {
  background: #ffe0b2;
  color: #6d1b00 !important;
}

/* Donate Button */
.donate-btn-wrap {
  margin-left: 20px;
}

.donate-btn {
  background: #b7410e;
  color: #fff;
  padding: 10px 30px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  font-family: "Noto Sans", sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition:
    background 0.3s,
    transform 0.2s;
}

.donate-btn:hover {
  background: #6d1b00;
  color: #fff;
  transform: translateY(-2px);
}

/* Language Button (Same as Donate) */
.lang-btn {
  background: #b7410e;
  color: #fff;
  padding: 7px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-family: "Noto Sans", sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  margin-left: 10px;
}

.lang-btn:hover,
.lang-btn:focus {
  background: #6d1b00;
  color: #fff;
}

/* Remove Bootstrap outline */
.lang-btn:active {
  background: #6d1b00 !important;
  box-shadow: none;
}

/* Dropdown arrow color */
.lang-btn::after {
  margin-left: 8px;
}

.admin-login-btn {
  background-color: #b8410f;
  color: #fff;
  border: none;
  font-weight: 600;
    border-radius: 30px;

}

.admin-login-btn:hover {
  background-color: #131212;
  color: #fff;
}

/* Mobile Fix */
.navbar-toggler {
  border: none;
  color: #3e2723;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Mobile menu background */
.navbar-collapse {
  background: #fff8e1;
  border-radius: 10px;
}
/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 991px) {
  /* Navbar padding */
  .main-navbar {
    padding: 10px 0;
  }

  /* Logo alignment */
  .navbar-brand {
    flex-direction: row;
    align-items: center;
  }

  .logo-img {
    width: 50px;
    margin-right: 8px;
  }

  .logo-text {
    font-size: 13px;
  }

  .logo-text strong {
    font-size: 17px;
  }

  /* Mobile menu container */
  .navbar-collapse {
    margin-top: 12px;
    padding: 15px;
    background: #fff8e1;
    border-radius: 12px;
  }

  /* Center menu items */
  .header-menu {
    text-align: center;
  }

  .header-menu .nav-item {
    margin: 8px 0;
  }

  .header-menu .nav-link {
    font-size: 16px;
    margin: 0;
    padding: 10px;
  }

  /* Dropdown menu full width */
  .dropdown-menu {
    text-align: center;
  }

  /* Donate button */
  .donate-btn-wrap {
    text-align: center;
  }

  .donate-btn {
     width: 100%;
    max-width: 260px;
    margin: 0 auto;
    display: block;
    text-align: center;

  }

  /* Language selector */
  .lang-btn {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    display: block;
    text-align: center;
  }
   .admin-login-btn {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 10px auto;
    font-size: 15px;
    border-radius: 30px;
    margin-left: 60px;
    margin-right: 60px;
    padding-top: 10px;
    padding-left: 10px;

  }

  .dropdown.ms-3 {
    margin-left: 0 !important;
    text-align: center;
  }

  /* Navbar toggler */
  .navbar-toggler {
    font-size: 1.2rem;
  }
}
/* ================= MOBILE SLIDE MENU (LEFT → RIGHT) ================= */
@media (max-width: 991px) {
  /* Make navbar collapse behave like a drawer */
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #fff8e1;
    transition: left 0.35s ease-in-out;
    z-index: 1050;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
  }

  /* When menu is open */
  .navbar-collapse.show {
    left: 0;
  }

  /* Adjust menu items */
  .header-menu {
    text-align: left;
    margin-top: 30px;
  }

  .header-menu .nav-link {
    padding: 12px 10px;
    font-size: 16px;
    border-bottom: 1px solid #ffe0b2;
  }

  /* Donate button full width */
  .donate-btn-wrap {
    text-align: left;
  }

  .donate-btn,
  .lang-btn {
    width: 100%;
    margin-bottom: 10px;
        margin-top: 10px

  }
}
@media (max-width: 991px) {

  /* Make donate + language act as one row */
  .donate-btn-wrap,
  .donate-btn-wrap + .dropdown {
    flex: 1;
  }

  /* Parent flex row */
  .donate-btn-wrap {
    display: flex;
    gap: 12px;
    margin-left: 0;
  }

  /* Convert sibling into flex row */
  .donate-btn-wrap,
  .donate-btn-wrap ~ .dropdown {
    display: inline-flex;
  }

  /* Wrap both buttons visually */
  .donate-btn-wrap {
    width: 100%;
  }

  /* Actual buttons */
  .donate-btn,
  .lang-btn {
    width: 100%;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
  }

  /* Remove desktop spacing */
  .dropdown.ms-3 {
    margin-left: 12px !important;
  }

  .dropdown-toggle::after {
    margin-left: 6px;
  }
}
.services-section {
  background-color: #f4ece4;
}

.service-card {
  padding: 20px 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-icon {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
}

.service-card h5 {
  font-family: Georgia, serif;
  font-weight: 500;
  margin-bottom: 15px;
  color: #4a2c1b;
}

.service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
  flex-grow: 1; /* KEY LINE */
      margin-right: 25px;
    margin-left: 25px;
}

.service-btn {
  background-color: #d8632a;
  color: #fff;
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 14px;
  text-decoration: none;
}

.service-btn:hover {
  background-color: #bf5523;
  color: #fff;
}
/* ================= SERVICES MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
  .services-section {
    padding: 30px 10px;
  }

  /* Card spacing */
  .service-card {
    padding: 20px 15px;
    border-radius: 14px;
  }

  /* Icon resize */
  .service-icon {
    width: 110px;
    height: 110px;
    margin-bottom: 15px;
  }

  /* Title */
  .service-card h5 {
    font-size: 16px;
    text-align: center;
    margin-bottom: 10px;
  }

  /* Description */
  .service-card p {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
      margin-right: 0px;
    margin-left: 0px;
  }

  /* Button full width & touch friendly */
  .service-btn {
    width: 100%;
    max-width: 240px;
    padding: 12px 0;
    font-size: 15px;
  }
}

/* ===============================
   FOOTER
================================ */

.temple-footer {
  background: #4a2b1d;
  color: #fff;
  padding: 50px 0 30px;
  font-size: 14px;
}

.footer-logo {
  max-width: 160px;
}

.footer-text {
  line-height: 1.7;
  margin-bottom: 15px;
}

.footer-title {
  font-family: Georgia, serif;
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-list {
  list-style: none;
  padding: 0;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-social a {
  color: #fff;
  margin-right: 12px;
  font-size: 18px;
}

.footer-social a:hover {
  color: #f4a261;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 25px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links span {
  color: #f4a261;
}

.footer-powered img {
  height: 28px;
  vertical-align: middle;
}

.footer-credit span {
  color: #f4a261;
}

/* ===============================
   UTILITIES (Reusable)
================================ */

.text-gold {
  color: #ffd700;
}

.bg-light-temple {
  background-color: #fff3e0;
}

.section-padding {
  padding: 60px 0;
}
/* ================= FOOTER MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
  .temple-footer {
    padding: 35px 15px 25px;
    text-align: left;
  }

  /* Logo */
  .footer-logo {
    max-width: 130px;
    display: block;
  }

  /* Text */
  .footer-text {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* Titles */
  .footer-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  /* Lists */
  .footer-list li {
    margin-bottom: 10px;
  }

  /* Social icons */
  .footer-social {
    margin-top: 15px;
  }

  .footer-social a {
    font-size: 20px;
    margin: 0 10px;
  }

  /* Footer bottom */
  .footer-bottom {
    padding-top: 20px;
  }

  /* Links wrap nicely */
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-powered img {
    height: 24px;
    margin-top: 8px;
  }
  .footer-links {
    flex-direction: column;
    align-items: left;
    gap: 6px;
  }

  /* Hide bullet separators on mobile */
  .footer-links span {
    display: none;
  }

  .footer-links a {
    font-size: 14px;
    padding: 4px 0;
  }
}
