body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #fff5e6;
}

.navbar {
    background: #ff9933;
    padding: 15px;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar .support-link {
    display: none;
    background: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    color: #ff9933;
    font-weight: bold;
    border: 2px solid #ff9933;
    transition: background 0.3s, color 0.3s;
}

.navbar .support-link:hover {
    background: #ff9933;
    color: white;
}

.navbar.scrolled .support-link {
    display: inline-block;
}

@media (max-width: 768px) {
    .navbar a {
        display: block;
        margin: 10px 0;
    }
    .navbar.scrolled .support-link {
        display: block;
    }
}

.header {
    position: relative;
    width: 100%;
    aspect-ratio: 1278 / 725; /* Maintain exact ratio */
    margin-top: 60px;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(60%);
}


.header-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.header-text h1 {
    font-size: 2.5em;
    margin: 0;
}

.donation-card {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 300px;
    transform: translateZ(20px);
    transition: transform 0.3s;
    z-index: 10;
}

.donation-card:hover {
    transform: translateZ(30px) scale(1.02);
}

@media (max-width: 768px) {
    .header {
        height: 300px;
    }
    .header-text h1 {
        font-size: 1.8em;
    }
    .header-text p {
        font-size: 0.9em;
    }
    .donation-card {
        max-width: 200px;
        padding: 10px;
        right: 5px;
    }
}

.thought-box {
    color: #ff9933;
    position: fixed;
    top: 60px; /* Keep at 60px from top */
    width: 100%;
    /* height: 40px;            */
    /* padding: 10px 20px;     */
    overflow: hidden;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    z-index: 1000;          /* Make sure it's above other content */
    background: #ffe6cc;    /* Optional: for visibility */
}


.thought-scroll {
    display: inline-block;
    padding-left: 100%;      /* start fully outside from right */
    animation: scrollLeft 60s linear infinite;
}

.thought-scroll p {
    display: inline-block;
    margin: 0 2em;  /* spacing between messages */
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}


@media (max-width: 768px) {
    .thought-box {
        padding: 5px 10px;
    }
    .thought-box p {
        font-size: 0.9em;
    }
}

.carousel {
    width: 100%;
    overflow: hidden;
    height: 250px;
    margin-top: 0;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .carousel {
        height: 200px;
    }
    .carousel-images img {
        height: 200px;
    }
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.events-section, .services-section, .gallery-section, .about-contact-section, .info-section {
    gap: 20px;
    margin: 40px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff9f2, #ffe6cc);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    perspective: 1000px;
}

.events-section, .services-section, .about-contact-section {
    display: flex;
    align-items: stretch;
}

.info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.featured-info, .services-info {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.event-cards, .services-cards {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin: 10px auto;
    display: block;
}

.event-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin: 5px auto;
    display: block;
}

.gallery-section {
    flex-direction: column;
    position: relative;
    padding-bottom: 40px; /* Space for pagination dots */
}

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 900px; /* Adjusted for 4 cards with gaps */
    margin: 0 auto;
    perspective: 1000px;
}

.gallery-grid {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px; /* Space between cards */
    padding: 0 20px;
}

.gallery-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: rotateY(10deg) translateZ(20px);
    flex-shrink: 0;
    background: white;
    padding: 10px;
}

.gallery-image:hover {
    transform: scale(1.1) rotateY(0deg) translateZ(40px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.gallery-nav {
    background: #ff9933;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1.5em;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 1;
    transition: background 0.3s;
}

.gallery-nav.prev {
    left: -50px;
}

.gallery-nav.next {
    right: -50px;
}

.gallery-nav:hover {
    background: #e68a00;
}

/* Pagination Dots */
.gallery-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.gallery-dot.active {
    background: #ff9933;
}

.gallery-dot:hover {
    background: #e68a00;
}

@media (max-width: 768px) {
    .gallery-container {
        max-width: 620px; /* 4 × 150px + gaps */
    }
    .gallery-image {
        width: 150px;
        height: 150px;
    }
    .gallery-nav.prev {
        left: -40px;
    }
    .gallery-nav.next {
        right: -40px;
    }
    .gallery-nav {
        width: 30px;
        height: 30px;
        font-size: 1.2em;
    }
}

.about-us, .contact-us {
    flex: 1;
}

.section-header {
    width: 100%;
    height: 150px;
    object-fit: cover;
	object-position:top;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}

h2 {
    color: #ff9933;
    text-align: center;
    margin-bottom: 20px;
}

.card {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateZ(20px);
    transition: transform 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateZ(30px) scale(1.02);
}

.card h3 {
    color: #333;
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.card p {
    margin: 5px 0;
    font-size: 0.9em;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.events-section .card-grid,
.services-section .card-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
}

.info-section .card-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
}

.management-team .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 5px;
    text-align: center;
}

.management-team .team-grid p {
    margin: 5px 0;
    font-size: 0.85em;
}

.learn-more {
    display: block;
    background: #ff9933;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    margin-top: 5px;
    transition: background 0.3s;
    font-size: 0.9em;
}

.learn-more:hover {
    background: #e68a00;
}

.section-link {
    margin: 20px auto 0;
    width: fit-content;
}

@media (max-width: 768px) {
    .events-section, .services-section, .gallery-section, .about-contact-section, .info-section {
        flex-direction: column;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .info-section .card-grid {
        grid-template-columns: 1fr;
    }
    .management-team .team-grid {
        grid-template-columns: 1fr;
    }
    .event-image {
        width: 80px;
        height: 80px;
    }
    .section-header {
        height: 100px;
    }
    .thumbnail {
        width: 100px;
        height: 100px;
    }
}

.footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

/* Additions for contact.html */
.card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}	




/* /* Container setup */ */
/* .about-contact-section { */
  /* display: flex; */
  /* gap: 20px; */
  /* margin: 40px 0; */
  /* padding: 20px; */
  /* flex-wrap: wrap; */
  /* justify-content: center; */
/* } */

/* /* Shared card styles */ */
/* .card-section { */
  /* background: #fff9f2; */
  /* border-radius: 10px; */
  /* box-shadow: 0 8px 20px rgba(0,0,0,0.1); */
  /* width: 300px; */
  /* overflow: hidden; */
  /* transition: transform 0.3s, box-shadow 0.3s; */
/* } */

/* .card-section:hover { */
  /* transform: translateY(-5px); */
  /* box-shadow: 0 12px 25px rgba(0,0,0,0.15); */
/* } */

/* /* Header bar styling */ */
/* .card-header { */
  /* background: #ff9933; */
  /* color: white; */
  /* font-size: 1.3em; */
  /* padding: 15px; */
  /* text-align: center; */
  /* font-weight: bold; */
/* } */

/* /* Content area styling */ */
/* .card-content { */
  /* padding: 20px; */
  /* text-align: center; */
/* } */

/* .card-content p { */
  /* margin: 12px 0; */
  /* color: #333; */
  /* font-size: 0.95em; */
  /* line-height: 1.4; */
/* } */

/* /* Learn More button */ */
/* .learn-more { */
  /* display: inline-block; */
  /* background: #ff9933; */
  /* color: white; */
  /* padding: 8px 16px; */
  /* border-radius: 5px; */
  /* text-decoration: none; */
  /* margin-top: 15px; */
  /* transition: background 0.3s; */
/* } */
/* .learn-more:hover { */
  /* background: #e68a00; */
/* } */

/* /* Responsive layout */ */
/* @media (max-width: 800px) { */
  /* .about-contact-section { */
    /* flex-direction: column; */
    /* align-items: center; */
  /* } */
  /* .card-section { */
    /* width: 90%; */
    /* max-width: 400px; */
  /* } */
/* } */




.support-temple-section {
    padding: 40px 20px;
    background-color: #fef7e5;
    text-align: center;
}

.support-card {
    max-width: 600px;
    margin: auto;
    background: #fff8e1;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 30px;
}

.support-card h2 {
    font-size: 28px;
    color: #8b5e3c;
    margin-bottom: 15px;
}

.support-message {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.bank-details p {
    margin: 5px 0;
    font-weight: 500;
    color: #4e342e;
}

.donate-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #a9744f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.donate-link:hover {
    background-color: #8b5e3c;
}
