/* Global Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Ensure that content doesn't hide under the fixed navbar */
body {
    padding-top: 120px; /* Adjust this based on the height of your navbar */
}

/* Navbar Styling */
header {
    background-color: #fff4cc; /* Light gold color */
    padding: 10px 0;
    position: fixed; /* Make the navbar fixed */
    top: 0;
    left: 0;
    width: 100%; /* Stretch the navbar across the screen */
    z-index: 1000; /* Make sure it appears on top of other content */
    display: flex;
    justify-content: center; /* Center the entire navbar horizontally */
    box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
}

nav ul.navbar {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center; /* Center-align all navbar items */
    gap: 40px; /* Space out the links evenly */
    margin: 0;
    padding: 0;
}

/* Navbar links styling */
nav a {
    font-size: 18px;
    font-weight: bold;
    color: #6b4e16; /* Same gold-like color */
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s, color 0.3s; /* Smooth hover transition */
}

/* Styling the logo */
.nav-logo img {
    height: 120px; /* Adjust logo size for balance */
}

/* Active link styling */
nav a.active {
    background-color: #e8d6a7; /* Highlight background color */
    color: #333; /* Darker text color for active link */
    border-radius: 5px;
}

/* Styling for Hover Effects */
nav a:hover {
    color: #333;
    background-color: #e8d6a7;
    border-radius: 5px;
}

/* Responsive Navbar */
@media screen and (max-width: 768px) {
    .menu-icon {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    nav ul.navbar {
        display: none; /* Hide the navbar initially on small screens */
        flex-direction: column; /* Stack the navbar items vertically */
        align-items: center;
        background-color: #fff4cc; /* Same background color */
        width: 100%; /* Take full width when displayed */
        position: absolute;
        top: 60px; /* Below the navbar */
        left: 0;
        z-index: 999; /* Ensure it appears on top */
    }

    nav ul.navbar.active {
        display: flex; /* Show the navbar when the hamburger icon is clicked */
    }

    .nav-logo img {
        height: 100px; /* Reduce logo size for smaller screens */
    }

    nav a {
        font-size: 16px; /* Slightly reduce the font size on smaller screens */
        padding: 8px 10px; /* Adjust padding for smaller screens */
    }
}

/* Hero Section Styling */
.hero {
    position: relative;
    background-image: url('your-background-image.jpg'); /* Ensure you have the correct background */
    background-size: cover;
    background-position: center;
    height: 600px; /* Adjust as necessary */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white; /* Keep text white */
    padding: 20px;
  }
  
  /* Add a dark overlay to the background to enhance text visibility */
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
  }
  
  /* Ensure hero content appears on top of the overlay */
  .hero-text, .hero-image {
    position: relative;
    z-index: 2;
  }
  
  /* Styling for Buddha statue */
  .hero-image img.buddha-statue {
    max-width: 400px; /* Adjust the size of the Buddha statue */
    height: auto;
    margin-bottom: 2px; /* Spacing below the image */
  }
  
  /* Styling for hero text */
  .hero-text h1 {
    font-size: 3em;
    margin: 10px 0;
  }
  
  .hero-text p {
    font-size: 1.5em;
    margin: 0;
    color: #fff; /* Keep the text white */
  }
  
/* Temple images styling */
.temple-image {
    text-align: center;
    margin-bottom: 40px;
}

.temple-img {
    width: 100%;
    max-width: 800px; /* Adjust this if necessary */
    height: auto;
    border-radius: 8px;
}

/* Slideshow Styling */
.slideshow {
    text-align: center;
    margin: 20px auto;
}

.slideshow img {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Optional: Adds rounded corners */
}




/* Main Content */
.content {
    max-width: 1200px; /* Limit content width for readability */
    margin: 0 auto; /* Center content */
    padding: 50px 20px; /* Add padding */
    background-color: #faf9f5;
    text-align: left; /* Align text to left for better readability */
    line-height: 1.8; /* Increase line spacing for readability */
}

/* Section Titles */
.section-title {
    border-bottom: 2px solid #e8d6a7; /* Add a subtle separator line */
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.section-title h1 {
    font-size: 2.5em; /* Size for [1] The Noble Eightfold Path */
    color: #6b4e16;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 2em; /* Size for [2] Wisdom (Paññā) */
    color: #6b4e16;
    margin-bottom: 15px;
}

.section-title h3 {
    font-size: 1.5em; /* Size for [3] Right View, Right Intention */
    color: #444;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Text styling for descriptions */
p, .description {
    font-size: 1.2em;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Last Section */
.section-title:last-child {
    border-bottom: none; /* Remove the border for the last section */
}

/* About Us Styling */
.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    font-size: 1.8em;
    color: #6b4e16;
    margin-bottom: 10px;
}

.about-section p, .about-section ul {
    font-size: 1.2em;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-section ul {
    padding-left: 20px;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 20px;
    margin-top: 20px;
}

.board-member {
    text-align: center;
    background-color: #fff4cc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.board-member img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.board-member h3 {
    font-size: 1.3em;
    color: #6b4e16;
    margin-bottom: 5px;
}

.board-member p {
    font-size: 1em;
    color: #444;
}


/* Chants Page Styling */
.chant-section {
    margin-bottom: 40px;
}

table {
    width: 100%;
    table-layout: fixed;
}

table td {
    vertical-align: top;
    padding: 10px 20px;
    border-spacing: 10px;
}

.chant-pali {
    width: 50%;
    text-align: left;
    font-weight: bold;
}

.chant-english {
    width: 50%;
    text-align: right;
    font-style: italic;
}

.chant-section h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #6b4e16;
}

.chant-section p {
    font-size: 1.2em;
}

/* Calendar Container */
.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
  }  

/* Holidays Section */
.holidays-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #faf9f5;
    line-height: 1.8;
  }
  
  .holidays-section h2 {
    font-size: 2em;
    color: #6b4e16;
    margin-bottom: 20px;
  }
  
  .holidays-section .holiday {
    margin-bottom: 30px;
  }
  
  .holidays-section h3 {
    font-size: 1.5em;
    color: #6b4e16;
    margin-bottom: 10px;
  }
  
  .holidays-section p {
    font-size: 1.2em;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.6;
  }
  
  .holidays-section hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
  }  

/* Dharma Talks Section */
.dharma-talks {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .dharma-talks .talk {
    text-align: left;
    margin-bottom: 30px;
  }
  
  .dharma-talks img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
  }
  
  .dharma-talks h2 {
    font-size: 1.8em;
    color: #6b4e16;
    margin-bottom: 10px;
    text-align: center;
  }
  
  .dharma-talks p {
    font-size: 1.2em;
    color: #444;
    line-height: 1.8;
  }
  
  .dharma-talks hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
  }
  
  

/* Footer Styling */
#footer-placeholder footer {
    background-color: #333 !important; /* Ensure the background is applied */
    color: white !important; /* Force the text to be white */
    text-align: center;
    padding: 20px;
    font-size: 1em;
    line-height: 1.5;
}

#footer-placeholder footer p {
    color: white !important; /* Ensure all paragraph text is white */
}

#footer-placeholder footer a {
    color: white !important; /* Ensure links are white */
    text-decoration: none;
}

#footer-placeholder footer a:hover {
    text-decoration: underline;
}

/* General Improvements */
a {
    color: #6b4e16; /* Match the overall theme color */
}

a:hover {
    color: #333;
}
