/* 
* Krishna Janam Bhumi - Main Stylesheet
* Theme: Saffron Hindu Spiritual Theme
*/

/* ===== VARIABLES ===== */
:root {
  --saffron: #ff9933;
  --maroon: #800000;
  --dark-saffron: #e07b00;
  --light-saffron: #ffb366;
  --bg-light: #fff9f0;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e5e5e5;
}

/* ===== GENERAL STYLES ===== */
body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Yatra One", cursive;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

a {
  color: var(--saffron);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--dark-saffron);
  text-decoration: none;
}

.section-title {
  position: relative;
  margin-bottom: 2rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--saffron);
}

.bg-saffron {
  background-color: var(--saffron);
}

.bg-maroon {
  background-color: var(--maroon);
}

.text-saffron {
  color: var(--saffron);
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--saffron);
  border-color: var(--saffron);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--dark-saffron);
  border-color: var(--dark-saffron);
}

.btn-donate {
  background-color: var(--maroon);
  border-color: var(--maroon);
  color: var(--text-light);
}

.btn-donate:hover {
  background-color: #600000;
  border-color: #600000;
}

.btn-volunteer {
  background-color: var(--saffron);
  border-color: var(--saffron);
  color: var(--text-light);
}

.btn-volunteer:hover {
  background-color: var(--dark-saffron);
  border-color: var(--dark-saffron);
}

/* ===== HEADER ===== */
.top-bar {
  font-size: 0.9rem;
}

.social-icons .list-inline-item a {
  color: var(--text-light);
  font-size: 1rem;
  margin-left: 5px;
}

.header-area {
  background-color: #ffffff;
}

.logo img {
  max-height: 80px;
}

/* ===== NAVIGATION ===== */
.navbar {
  padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-light);
  padding: 15px 15px;
  font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--light-saffron);
}

.navbar-toggler {
  border: none;
  color: var(--text-light);
}

.navbar-toggler-icon {
  background-image: none;
  font-size: 1.5rem;
}

.navbar-toggler .fa-bars {
  color: var(--text-light);
}

/* Hide the custom mobile-nav-toggle if it exists (to avoid duplicate icons) */
.mobile-nav-toggle {
  display: none !important; /* Forcefully hide the extra toggle button */
}

.dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  padding: 10px 20px;
}

.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--saffron);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-slide {
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 150px 0;
  color: var(--text-light);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  margin: 0 10px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background-color: #ffffff;
}

.about-image img {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== MISSION SECTION ===== */
.mission-section {
  background-color: var(--bg-light);
}

.mission-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mission-icon {
  font-size: 3rem;
  color: var(--saffron);
  margin-bottom: 20px;
}

.mission-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* ===== NEWS SECTION ===== */
.news-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    background-color: var(--saffron);
    color: var(--text-light);
    padding: 4px 8px; /* Slightly reduced padding for smaller cards */
    border-radius: 5px;
    text-align: center;
    line-height: 1.2;
    margin: 8px 0 0 8px;
    display: inline-block;
}

.news-date span {
    display: block;
    font-size: 0.8rem; /* Reduced from 0.85rem for 4-column layout */
}

.news-content {
    padding: 15px; /* Reduced from 20px for narrower columns */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 1rem; /* Reduced from 1.2rem for 4-column layout */
    margin-bottom: 8px; /* Reduced from 10px */
}

.news-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.news-content h3 a:hover {
    color: var(--saffron);
}

.news-content p {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    color: #666;
    margin-bottom: 12px; /* Reduced from 15px */
    flex-grow: 1;
}

.read-more {
    font-weight: 500;
    color: var(--saffron);
    text-decoration: none;
    font-size: 0.9rem;
}

.read-more i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Responsive adjustments for News Section */
@media (max-width: 991.98px) {
    .news-image {
        padding-top: 56.25%;
    }
}

@media (max-width: 575.98px) {
    .news-card {
        width: 100%;
    }
    .news-image {
        padding-top: 56.25%;
    }
}

/* ===== CTA SECTION ===== */
.cta-section {
  background-color: var(--saffron);
}

/* ===== GALLERY SECTION ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 5px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  width: 50px;
  height: 50px;
  background-color: var(--saffron);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transform: scale(0);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-icon {
  transform: scale(1);
}

/* ===== PAGE BANNER ===== */
.page-banner {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.page-banner-content {
  position: relative;
  z-index: 1;
  color: var(--text-light);
}

.page-banner-content h1 {
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: var(--text-light);
}

.breadcrumb-item.active {
  color: var(--light-saffron);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-light);
}

/* ===== SIDEBAR ===== */
.sidebar {
  margin-bottom: 30px;
}

.widget {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--saffron);
}

.recent-news li {
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  list-style: none;
}

.recent-news li:last-child {
  border-bottom: none;
}

.recent-news li a {
  color: var(--text-dark);
  display: block;
  margin-bottom: 5px;
}

.recent-news li a:hover {
  color: var(--saffron);
}

.recent-news .date {
  font-size: 0.8rem;
  color: #777;
}

.social-icons-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: var(--saffron);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--dark-saffron);
  color: var(--text-light);
  transform: translateY(-3px);
}

/* ===== TEAM SECTION ===== */
.team-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-content {
  padding: 20px;
  text-align: center;
}

.team-content h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.designation {
  color: #777;
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social a {
  width: 35px;
  height: 35px;
  background-color: var(--saffron);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.team-social a:hover {
  background-color: var(--dark-saffron);
  transform: translateY(-3px);
}

/* ===== DONATION FORM ===== */
.donation-uses {
  list-style-type: none;
  padding-left: 0;
}

.donation-uses li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.donation-uses li::before {
  content: "\f004";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--saffron);
}

.donation-form-container {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #222;
}

.footer-widget h4 {
  color: var(--text-light);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--saffron);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: #ccc;
  transition: all 0.3s ease;
}

.footer-links li a:hover {
  color: var(--saffron);
  padding-left: 5px;
}

.footer-social a {
  display: inline-block;
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255,  cambios255, 0.1);
  color: var(--text-light);
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--saffron);
  color: var(--text-light);
  transform: translateY(-3px);
}

.contact-info p {
  color: #ccc;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-info p i {
  width: 30px;
  color: var(--saffron);
}

.newsletter h5 {
  color: var(--text-light);
  margin-bottom: 15px;
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-light);
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
  padding: 8px 20px;
}

.footer-bottom {
  background-color: var(--maroon);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--saffron);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--dark-saffron);
  color: var(--text-light);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto; /* Allow height to adapt to content */
  max-height: 600px; /* Maximum height for desktop */
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide-img {
  width: 100%;
  height: auto; /* Let the image determine its own height */
  max-height: 600px; /* Cap the height for desktop */
  object-fit: contain; /* Ensure no cropping */
  object-position: center; /* Center the image */
  display: block;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  padding: 150px 0;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .hero-section {
    max-height: 450px; /* Adjust max height for smaller screens */
  }
  .hero-slide-img {
    max-height: 450px; /* Cap height for mobile */
  }
  .hero-content {
    padding: 100px 0;
  }
}

@media (max-width: 575px) {
  .hero-section {
    max-height: 350px; /* Adjust max height for very small screens */
  }
  .hero-slide-img {
    max-height: 350px; /* Cap height for very small screens */
  }
  .hero-content {
    padding: 80px 0;
  }
}

/* Social Share Section */
.social-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.social-share h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Social Share Icons */
.social-share-icons {
    padding: 0;
    margin: 0;
}

.social-share-icons li {
    list-style: none;
}

.social-share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--saffron);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-share-icon:hover {
    background-color: var(--dark-saffron);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Platform-specific colors (optional) */
.social-share-icon.facebook {
    background-color: #3b5998;
}

.social-share-icon.facebook:hover {
    background-color: #2d4373;
}

.social-share-icon.twitter {
    background-color: #1da1f2;
}

.social-share-icon.twitter:hover {
    background-color: #0c7abf;
}

.social-share-icon.whatsapp {
    background-color: #25d366;
}

.social-share-icon.whatsapp:hover {
    background-color: #1da851;
}

.social-share-icon.email {
    background-color: #888;
}

.social-share-icon.email:hover {
    background-color: #666;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .social-share-icons {
        justify-content: center;
    }

    .social-share-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .social-share h4 {
        font-size: 1.1rem;
        text-align: center;
    }

    .social-share-icons {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ===== TOP BAR ===== */
@media (max-width: 767px) {
  .top-bar .row {
    flex-direction: column;
    text-align: center;
  }
  .top-bar .col-md-6 {
    width: 100%;
    margin-bottom: 10px;
  }
  .top-bar .text-end {
    text-align: center !important;
  }
  .top-bar .list-inline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .top-bar .social-icons li {
    margin: 0 10px;
  }
}

/* ===== FOOTER BOTTOM ===== */
@media (max-width: 767px) {
  .footer-bottom .row {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom .col-md-6 {
    width: 100%;
    margin-bottom: 10px;
  }
  .footer-bottom .text-md-end {
    text-align: center !important;
  }
  .footer-bottom p {
    margin: 0 auto;
  }
}

/* Posts Section */
.posts-section .news-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.posts-section .news-card:hover {
    transform: translateY(-5px);
}

.posts-section .news-image {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
}

.posts-section .news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.posts-section .news-card:hover .news-image img {
    transform: scale(1.05);
}

.posts-section .news-date {
    background: #ff9933;
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    text-align: center;
    margin: 8px 0 0 8px; /* Position below the image */
    display: inline-block; /* Fit content */
}

.posts-section .news-date span {
    display: block;
    font-size: 0.8rem;
}

.posts-section .news-content {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.posts-section .news-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #333;
}

.posts-section .news-content h3 a {
    color: inherit;
    text-decoration: none;
}

.posts-section .news-content h3 a:hover {
    color: #ff9933;
}

.posts-section .news-content p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    flex-grow: 1;
}

.posts-section .read-more {
    color: #ff9933;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

.posts-section .read-more i {
    margin-left: 5px;
}

.posts-section .read-more:hover {
    color: #e68a00;
}

/* Responsive adjustments for Posts Section */
@media (max-width: 991.98px) {
    .posts-section .news-image {
        padding-top: 56.25%; /* Maintain aspect ratio */
    }
}

@media (max-width: 575.98px) {
    .posts-section .news-card {
        width: 100%;
    }
    .posts-section .news-image {
        padding-top: 56.25%; /* Maintain aspect ratio */
    }
}
/* Saints Section */
.saints-section .saint-card {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

.saints-section .saint-card:hover {
    transform: translateY(-5px);
}

.saints-section .saint-image {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #ff9933; /* Move border to container */
    overflow: hidden;
    line-height: 0;
    position: relative; /* Ensure positioning context for the image */
}

.saints-section .saint-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.saints-section .saint-content {
    margin-top: 10px;
    padding: 0;
}

.saints-section .saint-content h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #333;
}

.saints-section .saint-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Reduce white space from Bootstrap grid */
.saints-section .row > div {
    padding-left: 8px;
    padding-right: 8px;
}

.saints-section .mb-4 {
    margin-bottom: 1rem !important;
}