@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@1,500&family=Karla+Tamil+Inclined:wght@400;700&family=Montserrat:ital,wght@0,500;1,500&family=Roboto+Condensed:ital,wght@0,800;1,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Coiny&family=Kanit:ital,wght@1,500&family=Karla+Tamil+Inclined:wght@400;700&family=Karla+Tamil+Upright:wght@700&family=Montserrat:ital,wght@0,500;1,500&family=Roboto+Condensed:ital,wght@0,800;1,800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1{
    font-family: "Kanit", serif;
    font-weight: 900;
    font-style: italic;      
}

h2{
    font-family: 'Karla Tamil Inclined', sans-serif;
    font-weight: 750;
    font-style: italic;
}

h3, h4, h5, p{
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    gap: 2px;
}

h6{
    font-family: sans-serif;
}

body {
    font-family: 'Arial', sans-serif;
    color: black;
    line-height: 1.6;
    position: relative;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1; /* Video stays behind the content */
    overflow: hidden;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Slightly transparent for text readability */
}


/* Header section start  */
header {
    padding-top: 150px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    padding: 15px;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Logo on the left */
.logo img {
    width: 130px;
    height: auto;
}

/* Center heading */
.navbar-heading h1 {
    font-size:35px;
    text-align: center;
    color: rgb(67,151,36);
    margin: 0;
    flex-grow: 1;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Dropdown styling */
.dropdown {
    position: relative;
    display: inline-block;
    top: 3px;
    right: 50px;
}

.dropbtn {
    background-color: #2c3e50;
    color: white;
    padding: 10px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    /* width: 100px; */
}

.dropbtn i {
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f1f1f1;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    width: 50px;
}

.dropdown-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-content ul li {
    padding: 10px 16px;
    text-align: left;
}

.dropdown-content ul li a {
    text-decoration: none;
    color: black;
    display: block;
}

.dropdown-content ul li:hover {
    background-color: #ddd;
}

.show {
    display: block;
}

/* Media Query for Tablet and Mobile Views */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row; /* Keep logo, heading, and menu in one line */
        justify-content: space-between; /* Ensure proper spacing */
    }

    .navbar-heading {
        flex-grow: 1;
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* Ensures heading stays centered */
    }

    .navbar-heading h1 {
        font-size: 20px;
    }

    .logo img {
        width: 90px;
    }

    .dropbtn {
        padding: 12px;
        font-size: 14px;
    }

    .dropdown-content ul li {
        padding: 10px 15px;
    }

    .dropdown-content ul li a {
        font-size: 14px;
    }
}

/* Media Query for Small Mobile Devices */
@media (max-width: 480px) {
    .navbar {
        flex-direction: row; /* Keep logo, heading, and menu in one line */
        justify-content: space-between;
    }

    .navbar-heading h1 {
        font-size: 18px;
    }

    .logo img {
        width: 60px;
    }

    .dropbtn {
        padding: 10px;
        font-size: 12px;
    }

    .dropdown-content ul li {
        padding: 8px 10px;
    }

    .dropdown-content ul li a {
        font-size: 12px;
    }
}

/* Ḥeader section end */


/* thooran-32 */
#thooran-32 p{
    font-size: 2rem;
    margin-bottom: 15px;
    color: rgb(114, 7, 7);
}

#thooran-32 tr td{
    text-align: center;
}


/* Main Content */
main {
    padding: 0px 40px;
    position: relative;
}

section {
    margin-bottom: 20px;
}

.history, .main-content, .prayers, .temple {
    padding: 20px;
    border-radius: 10px;
    background-color: transparent;
    color: black; /* Ensuring consistent white color for text */
    position: relative;
}

/* Typography Styling */
h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: rgb(114, 7, 7);
}

p{
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 500;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0px 20px; /* Centering the image horizontally */
}

/* Container that holds both images */
.image-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

/* Image styles */
img {
    max-width: 160%; /* Each image takes up about 45% of the container's width */
    height: auto;
}

.img-right {
    order: 2; /* Make this image appear on the right side */
}

.img-left {
    order: 1; /* Make this image appear on the left side */
}

.iamge-descrip p{
    text-align: center;
    font-size:clamp(1.1rem) ;
    line-height: 1.8;
    font-weight: 500;
}

.iamge-descrip{
    padding-bottom: 20px;
}

.blog-descrip{
    padding-top: 20px;
}

.blog-descrip h3{
    text-align: center;
    font-size:clamp(1.1rem) ;
    line-height: 1.8;
    font-weight: 800;
}

.blog-descrip a{
    text-decoration: none;
}


/*  POPUP Window  */

/* Popup Styling */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto; /* Enable scrolling if content overflows */
    z-index: 1000;
}

.popup {
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 50%; /* Limit the width of the popup */
    max-height: 100%; /* Limit the height of the popup */
    overflow: auto; /* Enable scrolling within the popup */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}

.popup img{
    width: 95%;
    height: 97%;
}

.Images{
    width: 20rem;
    height: 50vh;
}

/* ---------footer---------- */
.footer{
    width: 100%;
    height: 15rem;
    background-color: #020202;
    text-align: center;
    padding-bottom: 50px;

}
.footer h6{
    font-weight: 300;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px; 
    cursor: pointer;
}
.detail-1{
    padding-top: 10px;
}
.detail-2{
}

.footer h6 span{
    color: white;
}

.footer p{
    color: #777;
}

.footer img{
    padding-top: 10px;
    width: 20rem;
    height: 10rem;
}


/* Media Queries for responsiveness */

/* Media query for screens smaller than 768px */
@media only screen and (max-width: 768px) {
    header h1 {
        font-size: 2rem;
        padding-left: 50px;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .image-container {
        flex-direction: column; /* Stack images vertically on smaller screens */
        justify-content: center;
        align-items: center;
    }

    img {
        max-width: 80%; /* Images take up more space on smaller screens */
        margin-bottom: 20px; /* Add spacing between images when stacked */
    }

    /* .img-left, .img-right {
        order: 0; /* No need to order when stacked vertically */
    } */
}

/* Media query for screens smaller than 480px */
@media only screen and (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    p {
        font-size: 0.9rem;
    }

    main {
        padding: 15px;
    }

    .history, .main-content, .prayers, .temple {
        padding: 15px;
    }
}



   /* General Styles */
   body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Section 1 Styles */
#section-1 {
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 5px solid rgb(67, 151, 36);
}

#section-1 h2 {
    color: rgb(67, 151, 36);
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
}

#section-1 .carousel-inner img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Section 2 Styles */
#section-2 {
    padding: 20px;
    background-color: #f0f4f8;
    border-bottom: 5px solid rgb(36, 123, 160);
}

#section-2 h2 {
    color: rgb(36, 123, 160);
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
}

#section-2 .carousel-inner img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Section 3 Styles */
#section-3 {
    padding: 20px;
    background-color: #fff0f0;
    border-bottom: 5px solid rgb(160, 36, 67);
}

#section-3 h2 {
    color: rgb(160, 36, 67);
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
}

#section-3 .carousel-inner img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Shared Carousel Styles */
.carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px;
}

.carousel-indicators button {
    background-color: #ccc;
    border-radius: 50%;
    width: 10px;
    height: 10px;
}

.carousel-indicators button.active {
    background-color: #333;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #section-1 h2,
    #section-2 h2,
    #section-3 h2 {
        font-size: 24px;
    }

    .carousel-inner img {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .carousel-inner img {
        max-height: 200px;
    }
}