:root {
  --iskcon-saffron: #ff9933;
  --iskcon-white: #ffffff;
  --iskcon-blue: #4169e1;
  --iskcon-dark: #1a237e;
  --text-color: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--iskcon-white);
  color: var(--text-color);
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, var(--iskcon-dark), var(--iskcon-blue));
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 50px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

nav ul {
  display: flex;
  list-style: none;
  /* gap: 2rem; */      /* changes */
  gap: 0.5rem;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  /* padding: 0.5rem 1rem;  */
  padding: 0.5rem 0.2rem;
  border-radius: 4px;
  /* text-align: center; */
  overflow: visible;
}
ul a{
  display: block;
  text-align: center;
}
nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.active {
  background-color: var(--iskcon-saffron);
}

main {
  margin-top: 80px;
  padding: 2rem 0;
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 2rem;
}

.hero {
  height: 80vh;
  min-height: 500px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("Images/cover2.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}
.hero-content li {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 0.1rem;
}

.btn {
  display: inline-block;
  background-color: var(--iskcon-saffron);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  border: 2px solid var(--iskcon-saffron);
}

.btn:hover {
  background-color: transparent;
  color: var(--iskcon-saffron);
}

.sec {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--iskcon-dark);
  position: relative;
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--iskcon-dark);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--iskcon-saffron);
  margin: 1rem auto;
}

/* prabhupada photo  */
.prabhupada-container{
  display: list-item;
  list-style-type: none;
  align-items: center;
  text-align: center;

  }
.prabhupada {
  display: flex;
  align-items: center;
  text-align: center;
}

.photo-container {
  margin-bottom: 30px;
  width: 100%;
  display: flex;
  justify-content: center; /* Center the image horizontally */
}

.portrait {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #e0d6c2;
  object-fit: contain; /* Ensure image scales properly */
}

.title {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: #8c1e1e;
  font-weight: 375;
}

.name {
  font-size: 2.8rem;
  font-weight: 600;
  color: #8c1e1e;
  margin-top: 0;
  line-height: 1.1;
}

.pranam-mantra {
  font-size: 1.2rem;
  font-weight: 450;
}

.team-grid,
.courses-grid,
.deity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card,
.course-card,
.deity-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.team-card:hover,
.course-card:hover {
  transform: translateY(-10px);
}

.team-img {
  height: 300px;
  width: 100%;
  object-fit: cover;
}

.team-info,
.course-info {
  padding: 1.5rem;
}

.team-info h3,
.course-info h3 {
  color: var(--iskcon-dark);
  margin-bottom: 0.5rem;
}

.team-role,
.course-duration {
  color: var(--iskcon-saffron);
  font-weight: 500;
  margin-bottom: 1rem;
}

.shloka-container {
  background-color: var(--iskcon-dark);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.shloka-text {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.shloka-meaning {
  font-size: 1rem;
}

.shloka-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.shloka-btn {
  background-color: var(--iskcon-saffron);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}
/* Deity Darshan */

.show-more-container {
  text-align: center;
  text-decoration: none;
}

.show-more-button {
  display: block;
  margin: 0 auto;
  text-decoration: none;
}

/* Donation */
#donation {
  height: 80vh;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}
.donation-container {
  background-color: var(--iskcon-dark);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}
.qr {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

form {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

textarea {
  min-height: 120px;
}

.submit-btn {
  background-color: var(--iskcon-saffron);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn:hover {
  opacity: 0.9;
}

footer {
  background-color: var(--iskcon-dark);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--iskcon-saffron);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

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

.social-icon:hover {
  color: var(--iskcon-saffron);
  transform: scale(1.2);
}

.event-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.event-links .btn {
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
  /* margin-top: 0.1rem; */
}
.initials{
  /* position: fixed; */
  /* position: sticky; */
  top: 0;
  bottom: 0;
  right: 0;
  font-size: xx-small;
  color: cyan;
}
/* DARK MODE  */
.dark-mode-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dark-mode-toggle i {
  position: absolute;
  transition: opacity 0.3s ease;
}
.dark-mode-toggle .fa-sun {
  opacity: 1;
}
.dark-mode-toggle .fa-moon {
  opacity: 0;
}
body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}
body.dark-mode .team-card,
body.dark-mode .course-card,
body.dark-mode,
body.dark-mode form {
  background-color: #1e1e1e;
  color: #f0f0f0;
}
body.dark-mode .section-title {
  color: #f0f0f0;
}
body.dark-mode .team-info h3,
body.dark-mode .course-info h3 {
  color: #f0f0f0;
}
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background-color: #2d2d2d;
  color: #f0f0f0;
  border-color: #444;
}
/* DARK MODE  */
.copyright {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Mobile Responsive Fixes for Section Merging */
@media only screen and (max-width: 600px) {
  .logo-text {
    font-size: 1rem;
    font-weight: 700;
    display: contents;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

  nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  nav.active {
    max-height: 600px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
  }

  nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav a {
    display: block;
    padding: 1rem;
  }

  /* Fix section merging on mobile */
  main {
    margin-top: 70px;
    padding: 1rem 0;
  }

  section {
    padding: 2.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
  }

  /* Ensure clear separation between deity and donation sections */
  #deity-darshan {
    padding-bottom: 3rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--iskcon-saffron);
  }

  #donation {
    padding-top: 3rem;
    margin-top: 2rem;
    height: auto;
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero {
    height: 60vh;
    min-height: 400px;
    padding: 2rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
  }

  .section-title::after {
    width: 60px;
    height: 3px;
  }

  /* prabhupada  */
  .prabhupada {
    padding: 15px;
  }
  .name {
    font-size: 1.7rem;
  }
  .title {
    font-size: 1.1rem;
  }
  .prabhupada {
    max-width: 95vw; /* Increase max width on smaller screens */
  }
  .portrait {
    max-width: 90vw; /* Make image more responsive on mobile */
  }
  .pranam-mantra {
    font-size: 1rem;
  }

  /* Grid adjustments for mobile */
  .team-grid,
  .courses-grid,
  .deity-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .team-card,
  .course-card,
  .deity-card {
    margin-bottom: 1rem;
  }

  .team-img {
    height: 250px;
  }

  .team-info,
  .course-info {
    padding: 1rem;
  }

  /* Donation section specific fixes */
  .donation-container {
    padding: 1.5rem;
    margin: 1rem 0.5rem 2rem 0.5rem;
  }

  /* Shloka section fixes */
  .shloka-container {
    margin: 1rem 0.5rem;
    padding: 1.5rem;
  }

  .shloka-text {
    font-size: 1rem;
  }

  .shloka-meaning {
    font-size: 0.9rem;
  }

  /* donation  */
  .qr {
    height: 300px;
    width: 100%;
    object-fit: cover;
  }

  /* Footer mobile fixes */
  .footer-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-links a {
    padding: 0.5rem;
    display: block;
    width: 100%;
    text-align: center;
  }

  .social-icons {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Additional spacing for mobile */
  .container {
    width: 95%;
    padding: 0 0.5rem;
  }

  /* Ensure buttons don't overlap */
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    margin: 0.5rem 0;
  }

  /* Event links spacing */
  .event-links {
    gap: 0.3rem;
  }

  .event-links .btn {
    padding: 0.4rem;
    font-size: 0.8rem;
  }
}

/* Extra small devices */
@media only screen and (max-width: 400px) {
  section {
    padding: 2rem 0;
    margin-bottom: 1rem;
  }

  #deity-darshan {
    padding-bottom: 2.5rem;
    margin-bottom: 1.5rem;
  }

  #donation {
    padding-top: 2.5rem;
    margin-top: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Added animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Additional fixes to prevent section merging */
.section-divider {
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--iskcon-saffron),
    transparent
  );
  margin: 2rem 0;
}

/* Ensure sections have clear visual boundaries */
section:not(:last-child) {
  position: relative;
}

section:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background-color: var(--iskcon-saffron);
  opacity: 0.3;
}

/* Mobile-specific section boundaries */
@media only screen and (max-width: 600px) {
  section:not(:last-child)::after {
    width: 60px;
    height: 1px;
  }
}
