/* ============================ */
/*   GENERAL STYLES & RESETS    */
/* ============================ */
body {
  font-family: "Khula", Helvetica, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

section {
  padding: 60px 0;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 600;
}

.section-title, .activities-title, .swami-title {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 20px;
}

/* ============================ */
/*       NAVBAR STYLES          */
/* ============================ */
.navbar-wrapper {
  position: sticky; /* Keeps navbar at the top while scrolling */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  max-width: 1512px;
  margin: 0 auto;
}

.SWAATHMA-NIKETHAN {
  font-weight: 600;
  color: #e44931;
  font-size: 1.3rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 40px;
}

.nav-links a {
  color: #000000;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a:focus {
  color: #e44931;
}

/* Mobile Navigation Toggle (Hamburger Menu) */
.nav-toggle {
  display: none; /* Hidden by default on desktop */
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5em;
  z-index: 1001;
}

.hamburger {
  display: block;
  position: relative;
  background-color: #333;
  width: 2em;
  height: 3px;
  border-radius: 1em;
  transition: transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  background-color: #333;
  width: 100%;
  height: 3px;
  border-radius: 1em;
  transition: all 0.3s ease-in-out;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Animation for hamburger when nav is open */
.nav-open .hamburger {
    transform: rotate(45deg);
}
.nav-open .hamburger::before {
    top: 0;
    transform: rotate(90deg);
}
.nav-open .hamburger::after {
    opacity: 0;
}


/* ============================ */
/*       FOOTER STYLES          */
/* ============================ */
.footer {
  background-color: #2f335e;
  color: #ffffff;
  padding: 50px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-section {
  flex: 1;
  min-width: 300px;
}

.contact-title {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 30px;
  height: auto;
  margin-right: 15px;
}

.contact-text {
  font-size: 1.1rem;
  color: #ffffff;
}

a.contact-text {
  text-decoration: underline;
}

.copyright-section {
  display: flex;
  align-items: center;
}

.copyright-icon {
  width: 22px;
  height: 22px;
  margin-right: 10px;
}

.copyright-text {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}


/* ============================ */
/*   INDEX.HTML SPECIFIC STYLES   */
/* ============================ */

/* Hero Section */
.hero {
  height: 470px;
  background: url('https://c.animaapp.com/mcwqwyw6siu2nl/img/rectangle-10.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 20% 5%;
}

.hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* important for mobile responsiveness */
  width: 100%;
  gap: 40px;
}

.hero-image {
  flex: 1 1 40%;
  max-width: 400px;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  flex: 1 1 50%;
}

.hero h2 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.div-wrapper {
  display: inline-block;
  background-color: #ffffff;
  color: #000;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.text-wrapper-3 {
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
}

/* Missions Section */
.missions {
  text-align: center;
}
.our-missions {
    font-size: 2.8rem;
}
.missions .text-wrapper-6 {
    max-width: 660px;
    margin: 0 auto 40px auto;
    font-size: 1.2rem;
}
.frame {
  overflow-x: auto;
  padding-bottom: 20px;
}
.frame::-webkit-scrollbar { height: 0px; }
.frame::-webkit-scrollbar-thumb { background: #ccc; border-radius: 0px; }
.group-2 {
  display: flex;
  gap: 20px;
  width: max-content; /* Allows horizontal scrolling */
}
.group-2 article {
  width: 380px;
  background-color: #2f335e;
  border-radius: 20px;
  padding: 20px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}
.group-2 article img {
  border-radius: 10px;
  margin-bottom: 15px;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.group-2 article p {
  text-align: left;
    font-size: 1.1rem;
    flex-grow: 1; /* Ensures all cards have same height if content differs */
}

/* Talks Section */
#talks {
  background-color: #2f335e;
  color: #ffffff;
}
#talks .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
#talks .talk-content {
    flex: 1;
    min-width: 300px;
}
#talks .text-wrapper {
    font-size: 2.8rem;
}
#talks .explore-timeless {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 550px;
    margin-bottom: 2rem;
}
#talks .group {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 8px 30px;
    display: inline-block;
    text-decoration: none;
}
#talks .text-wrapper-2 {
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
}
#talks .iframe {
    flex-basis: 50%;
    min-width: 300px;
    max-width: 600px;
    width: 100%;
    height: 350px;
    border: none;
}

/* Nath Tradition Section */
.nath-tradition {
    text-align: center;
}
.nath-tradition h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
}
.nath-tradition .container-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}
.nath-tradition .disciples {
    display: flex;
    gap: 30px;
    justify-content: center;
    order: 1;
    flex-wrap: wrap;
}
.nath-tradition .disciple-card {
    position: relative;
    width: 220px;
    margin-bottom: 50px; /* Space for the name below */
}
.disciple-card img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    display: block;
}
.disciple-card p {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background-color: #2f335e;
    color: white;
    padding: 10px;
    border-radius: 14px;
    font-size: 1.1rem;
    text-align: center;
}

.nath-tradition .text-wrapper-5 {
    flex-basis: 100%; /* Take full width */
    max-width: 700px;
    text-align: justify;
    font-size: 1.2rem;
    margin-top: 20px;
    order: 2;
}

.nath-tradition .text-wrapper-5 span {
    font-size: 2rem;
    font-weight: bold;
}

/* Books Section */
#books {   
    padding: 60px;
}
#books .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
#books .book-image {
    flex-shrink: 0;
}
#books img {
    width: 245px;
    height: auto;
}
#books .book-details {
    flex: 1;
}
#books h2 {
    font-size: 2.2rem;
    color: #000;
}
#books p {
    font-size: 1.2rem;
    color: #000;
}

/* =========================== */
/*   ABOUT.HTML SPECIFIC STYLES   */
/* =========================== */

.header {
  height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-top: 60px;  */
}

.header h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.our-story-section .story-content {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.story-content .story-text, .story-content .story-image {
  flex: 1;
  min-width: 300px;
}
.story-text .section-title {
    text-align: left;
}
.story-text .section-description {
    color: black;
    text-align: justify;
    font-size: 1.1rem;
}

.swami-section {
  background-color: #2f335e;
  color: white;
}
.swami-section .swami-content {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}
.swami-content .swami-image {
  flex-shrink: 0;
}
.swami-image .swami-photo {
  width: 327px;
  height: 439px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto; /* Center on smaller screens */
}
.swami-content .swami-text {
  flex: 1;
  min-width: 300px;
}
.swami-text .swami-title {
    color: #ffffff;
}
.swami-description {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

.activities-section .activities-title {
    text-align: center;
}
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.activity-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f5f5f5;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ============================ */
/*   RESPONSIVE MEDIA QUERIES   */
/* ============================ */

@media (max-width: 1024px) {
    .nath-tradition .container-inner {
        flex-direction: column;
        align-items: center;
    }
    .nath-tradition .disciples {
        order: 1;
        margin-bottom: 40px;
    }
    .nath-tradition .text-wrapper-5 {
        order: 2;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 60px; /* Height of the navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  .nav-open .nav-links {
    transform: translateX(0);
  }
  .nav-links li {
    margin-left: 0;
  }
  .nav-links a {
    font-size: 1.5rem;
  }
  
  /* General Layout adjustments */
  .hero {
      height: auto;
      min-height: 80vh;
      text-align: center;
      align-items: center;
  }
  .hero h2 {
      font-size: 2.2rem;
  }
  
  #talks .container,
  #books .container,
  .our-story-section .story-content,
  .swami-section .swami-content {
      flex-direction: column;
      text-align: center;
  }
  .story-text .section-title,
  .swami-text .swami-title {
      text-align: center;
  }
  .swami-description,
  .story-text .section-description {
      text-align: center;
  }
  
  #talks .iframe {
      height: 250px;
  }
  
  .footer-content {
      flex-direction: column;
      text-align: center;
  }
}