@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* General Styles */
body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* header-section */
.header {

    display: flex;
    padding: 10px; 
    border-bottom: #d4d4d4 solid 1px;
    box-shadow: 0.5px 0 0.8px rgba(0,0,0,0.75);

}
.logo{
    display: flex;
}
.logo img{
    width: 100px;
    justify-content: center;
    align-self: center;
    top: 0;
    right: 0;
}
.logo-text h1 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 6px;
    margin-left: 3px;
    color: rgb(68, 68, 68);
}

.logo-text h1::after {
    content: "+91 90035 25975";
    display: block;
    font-size: 16px;
    font-weight: normal;
    margin-top: 5px;
    color: #8f8f8f;
}

/* nav-bar section */
nav{
    height: 60px;
    background-color: var(--color1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.nav-bars{
    justify-content: center;
    align-items: center;
    margin-left: 150px;
}
.links-container{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
nav a{ 
    padding: 0 20px;
    display: flex;
    text-decoration: none;
    color: var(--text-color);
}
nav a:hover{
    color: #F3B649;
    transition: 0.5s;
}
nav .home-links{
    fill: var(--text-color);
}
nav svg {
    fill: var(--text-color);
}
#sidebar-active{
    display: none;
}
.open-sidebar-button,.close-sidebar-button{
    display: none;
}

/* Language Switch Container */
.language-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10%;
}

/* Switch Control Styling */
.switch-control {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: rgba(243, 182, 73, 0.8); /* Active switch color */
}

input:checked + .switch-slider:before {
    transform: translateX(26px);
}

/* Language Label Styling */
#langLabel {
    font-size: 16px;
    color: rgb(23, 23, 23);
}



@media(max-width:1250px){
    .links-container{

        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 300px;
        background-color: #d3d3d3;
        box-shadow: -5px 0 5px rgba(0,0,0,0.25);
        transition: 0.75s ease-out;
    }
    nav a{
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }
    .open-sidebar-button,.close-sidebar-button{
        padding: 20px;
        display: block;
    }
    #sidebar-active:checked ~ .links-container{
        right: 0;
    }
    #sidebar-active:checked ~ #overlay{
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }
    .header {
        flex-direction: row; /* Keep row layout */
        justify-content: space-between; /* Align logo to left, menu to right */
        align-items: center;
        padding: 10px;
    }

    .logo {
        flex-direction: row;
        align-items: center;
    }

    .logo-text h1 {
        font-size: 16px; /* Slight size reduction for smaller screens */
    }
    .logo-text h1::after{
        font-size: 14px;
    }

    .nav-bars {
        margin-left: 0; /* Remove unnecessary margin on mobile */
    }

    .open-sidebar-button {
        display: block; /* Ensure menu icon is visible on mobile */
        margin-left: auto; /* Align the menu icon to the right */
    }
}

@media(max-width:430px){
   
    .logo img {
        width: 60px; /* Further reduce logo size for smaller screens */
    }

    .logo-text h1 {
        font-size: 14px; /* Adjust title size */
    }
    .logo-text h1::after{
        font-size: 12px;
    }

    .header {
        padding: 8px; /* Compact padding */
    }
}


/* Header Section */


/* Centering h1 and h3 Tags */
/* Keyframes for fade-up animation */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-up animation class */
.fade-up {
    animation: fadeUp 1s ease-in-out;
}

/* Styling the section */
.devi-nava {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}
#navaPaashanamTitle{
    animation: fadeUp 1s ease-in-out;
}
/* Header styling */
h2, h3 {
    text-align: center;
    margin: 10px 0;
}

h2 {
    font-size: 28px;
    margin-top: 3%;
}

h3 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 15px;
}

h4 {
    font-size: 20px;
    color: rgba(243, 182, 73, 1);
    text-align: center;
    margin: 10px;
}

/* Image styling */
.nava-img {
    width: 80%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    position: relative;
}

.nava-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Benefits section layered over image */
.nava-benefits {
    background-color: rgba(243, 182, 73, 1);
    position: relative;
    z-index: 2;
    padding: 15px;
    width: 60%;
    max-width: 450px;
    margin: -40px auto 20px;
    border-radius: 8px;
   
    
}

.nava-benefits h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 15px;
}

.nava-benefits ul {
    list-style-type: disc;
    font-size: 18px;
    text-align: justify;
    margin-left: 20%;
    padding-bottom: 10px;
    
}

/* Text content styling */
.nava-txt ul {
    list-style-type: disc;
    padding-left: 15px;
    font-size: 18px;
    text-align: justify;
    width: 90%;
    margin: 10px auto;
}
.nava-txt ul li{
    margin-bottom: 10px;
}

/* Responsive design */
@media(max-width: 2000px){
    html,body{
        width: 100%;
        overflow-x: hidden;
    }
}
@media (max-width: 820px) {
    .nava-img {
        width: 90%;
        margin-left: 0;
    }

    .nava-benefits {
        width: 90%;
    }

    .nava-txt ul {
        width: 100%;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 22px;
        text-align: center;
    }
    h3{
        font-size: 18px;
        text-align: center;
    }

    .nava-img img {
        width: 100%;
    }
    .nava-benefits{
        width: 80%;
    }
    .nava-benefits h2{
        font-size: 18px;
    }

    .nava-benefits ul {
        font-size: 16px;
    }

    .nava-txt ul li {
        font-size: 16px;
    }
}



/* Thilakeshwara Section */
.Thilakeshwara {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin-top: 5%;
    flex-wrap: wrap; /* Allows wrapping for small screens */
}

/* Background */
.Thilakeshwara .bg {
    background-color: rgba(243, 182, 73, 1);
    position: absolute;
    top: 10%;
    left: 15%;
    width: 25%; 
    height: 75%;
    z-index: -1;
}

/* Image */
.Thilakeshwara img {
    width: 30%;
    height: auto;
    z-index: 2;
 
    margin: 10px 20px;
}

/* Text Overlay */
.txt-thildevi {
    position: absolute;
    top: 60%;
    left: 10%;
    color: #F3B649;
    font-weight: 400;
}

/* Text Content */
#thil-txt {
    flex: 1;
    padding: 20px;
    z-index: 3;
    margin-left: 10%;
}

#thil-txt h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

#thil-txt ul {
    list-style-type: disc;
    padding-left: 20px;
}

#thil-txt ul li {
    margin-bottom: 10px;
    font-size: 18px;
}

/* Centered Text for Deities */
.h {
    margin-top: 20px;
    text-align: center;
}

.h h5 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Navapashanam Section */
.navapashanam {
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}

.navapashanam h4 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.navapashanam ul {
    list-style-type: disc;
    padding-left: 20px;
}

.navapashanam ul li {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 820px) {
    .Thilakeshwara {
        flex-direction: column;
        align-items: center;
    }

    .Thilakeshwara img {
        width: 70%;
        margin-left: 0;
    }
    .Thilakeshwara .bg {
        top: 1%;
        left: 10%;
        width: 70%; 
        height: 60%;
    }
    

    .txt-thildevi {
        position: static;
        text-align: center;
        margin-top: 10px;
    }

    #thil-txt {
        margin-left: 0;
        padding: 10px;
    }

    .navapashanam ul {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    #thil-txt h4 {
        font-size: 20px;
    }

    #thil-txt ul li {
        font-size: 16px;
    }

    .h h5 {
        font-size: 16px;
    }
    .txt-thildevi{
        display: none;
    }
    
    .navapashanam h4 {
        font-size: 20px;
        text-align: center;
    }
    .Thilakeshwara img {
        margin-left: 5%;
    }
    .Thilakeshwara .bg {
        display: none;
    }
    
}


/* General Button Styling */
button {
    padding: 10px 20px;
    background-color: #F3B649;
    border: none;
    color: #fff;
    font-size: 19.2px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    position: relative;
    margin-left: 85%;
    margin-top: 5%;
    
}



/* Mobile & Tablet View - Align to Left */
@media (max-width: 768px) {
    button {
        margin-left: 5%; /* Align to the left side */
        margin-top: 40px; /* Maintain spacing from top */
    }
}





/* Footer Section */
.footer {
    background-color: #fff;
    color: rgba(73, 72, 72, 1);
    padding: 40px 20px;
    display: flex;
    margin-top: 2%;
    justify-content: space-between;
    align-items: center;
    border-top: solid 1px;
    border-color: #ebebeb;
    flex-wrap: wrap;
    text-align: center;
    gap: 20px; /* Space between sections */
    border-top: solid 1px;
    border-color: #ebebeb;
}

/* Working Hours Section */
.footer .work {
    flex: 1;
    margin-bottom: 20px;
}

.footer .work h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: rgb(21, 21, 21);
}

.footer .work p {
    font-size: 1rem;
    color: rgba(73, 72, 72, 1);
}

/* Logo Section */
.footer .logo-f {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.footer .logo-f img {
    max-height: 80px;
    width: auto;
    margin-bottom: 10px;
}

.footer .logo-f p {
    font-size: 1.2rem;
    color: rgba(73, 72, 72, 1);
}

/* Contact Section */
.footer .contact-footer {
    flex: 1;
    margin-bottom: 20px;
}

.footer .contact-footer h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: rgb(21, 21, 21);
}

.footer .contact-footer p {
    font-size: 1rem;
    color: rgba(73, 72, 72, 1);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.social-icons a {
    font-size: 1.5rem;
    color: rgba(243, 182, 73, 1);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #FFD700;
}

/* Copyright Section */
.copyr {
    color: #222;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    margin-top: 20px;
    width: 100%;
}

.copyr p {
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Tablet View */
    .footer {
        text-align: center;
    }
}

@media (max-width: 576px) {
    /* Mobile View */
    .footer {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .footer div {
        width: 100%; /* Full width for sections */
    }

    .social-icons {
        flex-wrap: wrap;
        gap: 20px;
    }

    .social-icons a {
        font-size: 1.3rem; /* Slightly smaller on mobile */
    }
}



/* Optional Custom Styling for Fade Animation */
/* Fade Left */
[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(-50px); /* Start from the left */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0); /* Move to original position */
}

/* Fade Right */
[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(50px); /* Start from the right */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0); /* Move to original position */
}

/* Fade Up */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(50px); /* Start from below */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0); /* Move to original position */
}

/* Fade Down */
[data-aos="fade-down"] {
    opacity: 0;
    transform: translateY(-50px); /* Start from above */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-aos="fade-down"].aos-animate {
    opacity: 1;
    transform: translateY(0); /* Move to original position */
}

#scrollTopButton {
    position: fixed;
    bottom: 20px; 
    right: 20px; 
    width: 50px; 
    height: 50px; 
    border-radius: 50%;
    background-color: #F3B649; 
    color: white;
    font-size: 24px; 
    border: none; 
    outline: none; 
    cursor: pointer; 
    display: none; 
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease; 
}

#scrollTopButton:hover {
    background-color: #e8a93d; /* Darker shade on hover */
}
