* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: bold;
    color: #b30000;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-link:hover .logo-text {
    color: #b30000;
    /* subtle hover effect */
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}


nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #444;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #b30000;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    nav.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
        color: #b30000;
    }
}

.hero {
    background: linear-gradient(rgba(179, 0, 0, 0.6), rgba(179, 0, 0, 0.6)), url('assets/images/sukhpreet-lotey-WdlLDIX6_q8-unsplash.jpg') center/cover no-repeat;
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    color: #b30000;
    margin-bottom: 0.5rem;
}

.timing-section {
    background: #ffe6e6;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
}

.timing-section h3 {
    font-size: 1.75rem;
    color: #b30000;
    margin-bottom: 0.5rem;
}

footer {
    background-color: #fff;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #ddd;
}

footer p {
    color: #777;
    font-size: 0.875rem;
}

/* About Section Styles */
.about-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 40px;
}

.about-text h2 {
    font-size: 28px;
    color: #b30000;
    margin-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.about-text p {
    font-size: 18px;
    color: #333;
    line-height: 1.7;
}

/* Priests Grid Section */
.priests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.priest-card {
    background-color: #fff8f0;
    border: 1px solid #f2e0d0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.priest-card:hover {
    transform: translateY(-5px);
}

.priest-card img {
    width: 100%;
    max-width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #b30000;
}

.priest-card h3 {
    margin: 10px 0 5px;
    font-size: 20px;
    color: #800000;
}

.priest-card p {
    font-size: 16px;
    color: #444;
}

/* Responsive tweaks if needed */
@media (max-width: 768px) {
    .about-text h2 {
        font-size: 24px;
    }

    .about-text p,
    .priest-card p {
        font-size: 16px;
    }
}

/* General Styles for Events Page */
.events-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.events-section h2 {
    font-size: 28px;
    color: #b30000;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.events-grid,
.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Event Card Styles */
.event-card,
.past-event-card {
    background-color: #fff8f0;
    border: 1px solid #f2e0d0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.event-card:hover,
.past-event-card:hover {
    transform: translateY(-5px);
}

.event-card h3,
.past-event-card h3 {
    margin: 10px 0;
    font-size: 22px;
    color: #800000;
}

.event-card p {
    font-size: 16px;
    color: #444;
}

button {
    background-color: #b30000;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #800000;
}

/* Responsive tweaks if needed */
@media (max-width: 768px) {
    .events-section h2 {
        font-size: 24px;
    }

    .event-card h3,
    .past-event-card h3 {
        font-size: 18px;
    }

    .event-card p,
    .past-event-card p {
        font-size: 14px;
    }
}

/* EVENT DETAILS PAGE */
.event-detail-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px 20px;
    background-color: #fff8f0;
}

.event-details {
    flex: 1 1 55%;
    margin-right: 20px;
}

.event-details h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #b30000;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.event-details p {
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.event-gallery h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #b30000;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.gallery-grid img {
    width: calc(33.33% - 12px);
    /* 4 columns with gap adjustment */
    border-radius: 8px;
    object-fit: cover;
    height: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
    .gallery-grid img {
        width: calc(33.33% - 11px);
        /* 3 columns */
    }
}

@media (max-width: 768px) {
    .gallery-grid img {
        width: calc(50% - 8px);
        /* 2 columns */
    }
}

@media (max-width: 480px) {
    .gallery-grid img {
        width: 100%;
        /* 1 column */
    }
}


/* CONTACT PAGE */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.contact-info {
    flex: 1 1 45%;
    margin-bottom: 30px;
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #b30000;
}

.contact-info p,
.contact-info a {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.contact-form {
    flex: 1 1 45%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #b30000;
}

.contact-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}

.contact-form button {
    margin-top: 15px;
    background-color: #b30000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #800000;
}


/* RESPONSIVE DESIGN */
@media (max-width: 768px) {

    .event-detail-section,
    .contact-section {
        flex-direction: column;
    }

    .event-details,
    .event-gallery,
    .contact-info,
    .contact-form {
        flex: 1 1 100%;
        margin-right: 0;
    }

    .event-gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

.live-darshan {
    background-color: #fff8f0;
    padding: 40px 20px;
    text-align: center;
}

.live-darshan h1 {
    font-size: 2.2rem;
    color: #b30000;
}

.live-darshan p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #444;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.darshan-timings,
.darshan-guidelines,
.darshan-faq {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.darshan-timings h2,
.darshan-guidelines h2,
.darshan-faq h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #b30000;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.darshan-timings ul,
.darshan-guidelines ul {
    list-style-type: disc;
    padding-left: 20px;
    line-height: 1.6;
    color: #333;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h4 {
    font-weight: bold;
    margin-bottom: 5px;
    color: #444;
}

/* Base list style */
ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* List items */
ul li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    transition: color 0.3s ease;
}

/* Hover effect for list items */
ul li:hover {
    color: #8b0000;
    /* deep red shade for temple theme */
}

/* Nested lists */
ul ul {
    list-style-type: circle;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

/* Third level nested list */
ul ul ul {
    list-style-type: square;
    padding-left: 1.5rem;
    margin-top: 0.3rem;
}

/* Optional: Custom bullet icons using pseudo-elements (for enhanced style) */
/*
  ul li::before {
    content: "🔸";
    position: absolute;
    left: -1.2rem;
  }
  ul ul li::before {
    content: "◽";
  }
  ul ul ul li::before {
    content: "▪";
  }
  */
/*/* Base list style
ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
  }
  
  /* List items 
  ul li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    transition: color 0.3s ease;
  }
  
  /* Hover effect for list items 
  ul li:hover {
    color: #8b0000; /* deep red shade for temple theme 
  }
  
  /* Nested lists 
  ul ul {
    list-style-type: circle;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
  }
  
  /* Third level nested list 
  ul ul ul {
    list-style-type: square;
    padding-left: 1.5rem;
    margin-top: 0.3rem;
  }
  
  /* Optional: Custom bullet icons using pseudo-elements (for enhanced style) */
/*
  ul li::before {
    content: "🔸";
    position: absolute;
    left: -1.2rem;
  }
  ul ul li::before {
    content: "◽";
  }
  ul ul ul li::before {
    content: "▪";
  }
  */