/*
====================================================
  styles.css - Main Stylesheet for Krishna Sridhar Bhatt Website
  -------------------------------------------------------------
  - All custom styles for layout, typography, and components
  - Responsive design via media queries
  - Section comments for easy navigation
  - Edit this file to update site-wide styles
====================================================
*/

/* === Reset & Base Styles === */
/* Ensure no extra margins and paddings */
* {
    box-sizing: border-box;
}

/* Enable vertical scrolling but hide scrollbar */
html, body {
    /* height: 100vh; */
    overflow-y: auto; /* Enable scrolling */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
    font-family: 'Josefin Sans', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    padding-top: 30px;
}
.service-detail-body{
    margin-top: 250px !important;
}
body::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome, Safari, and Edge */
}

/* Blurred Background Image */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('/resources/bg.jpg') no-repeat center center/cover; */
    background: #f5ede2;
    filter: blur(5px); /* Adjust blur intensity */
    z-index: -1;
}

/* Visually hidden elements (for accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* === Navbar Styles === */
/* Glassmorphism Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 75px;
    z-index: 1000;
    border-bottom:2px solid black;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 10px 15px;
    transition: all 0.3s ease;
    margin: 0 5px;
    white-space: nowrap;
}

.navbar a:hover {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.krishna {
    display: flex;
    width: 100%;
    flex-direction: row; /* Default to row */
    margin: 10px 0px;
    padding: 20px;
}
.welcomeline{
    margin-top:25px;
    padding: 15px;
    text-align: center;
    padding-bottom: 0;
}

.welcome {
    display: flex;
    width: 100%;

    flex-direction: row; /* Default to row */
}

.note, .disimg{
    flex: 1;
    height: 350px;
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    text-align: center;
    padding: 15px;
}
.note{
    font-weight: 700;
}
.profilepic, .aboutme {
    flex: 1;
    height: 500px;
    display: flex;
    padding: 16px;
    margin: 0;
    flex-direction: column;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    text-align: center;
}

.name {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20%;
    margin: 5px;
    padding: 0px;
    width: 100%;
}

.about {
    line-height:1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80%;
    margin: 0;
    padding: 15px;
    width: 100%;
}

.krishna-btn-container{
    margin: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.disimg img, .profilepic img {
    max-width: 100%;
    max-height: 100%; 
    height: 100%;
    width: 100%;
    object-fit: cover; /* Maintains aspect ratio */
    padding: 0;
    margin: 0;
}


.disimg img{
    object-fit: contain;
}

.service {
    border-radius: 5px;
    width: 100%;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden; /* Ensures blur stays within service box */
    margin: 5px 0;
    padding: 10px;
}

.service:hover {
    border:2px solid black;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: scale(1.01);
}

.service::before {
    
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: backdrop-filter 0.3s ease;
    z-index: 0; /* Keeps the blur effect behind content */
}

.service * {
    position: relative;
    z-index: 1; /* Ensures text remains sharp */
}

.services-container {
  width: 100%; /* Adjust width as needed */
  font-family: inherit;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  padding: 20px;
  margin: 10px 0px;
}

.services-container h1 {
    font-size: 2.5rem;
  margin: 10px 0 20px 0;
  text-align: center;
}

.service h2 {
  padding-left: 10px;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.service p {
  padding: 5px;
  line-height: 1.6;
}

.servicelist {
  list-style-type: disc;
  padding-left: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: large;
  text-decoration: underline;
  margin: 10px 0;
}

.servicelist li {
  margin-right: 20px;
  margin-bottom: 10px;
  white-space: nowrap; /* For desktop view */
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 35px;
}

.carousel-container h2 {
    color: black;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.carousel {
    display: flex;
    animation: scroll 20s linear infinite;
    width: 100%;
}

.carousel img {
    width: 300px;
    height: 200px;
    margin-right: 20px;
    object-fit: cover;
    border: 2px solid black;
    flex-shrink: 0; /* Prevent image shrinking */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Clone images at the end for seamless loop */
.carousel::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 100%;
    background: inherit;
}

/* === Testimonials Section === */
/* Testimonials Section Styles */
.testimonials-section {
    padding: 30px 20px;
    margin: 30px 5px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonials-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #333;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: inherit;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.testimonial-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.testimonial-location {
    font-size: 0.9rem;
    color: #666;
}

/* === Footer & Contact Section === */
/* Footer Styles */
.footer{
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    padding: 15px; 
    margin: 30px 5px 10px 5px; 
    text-align: center; 
    border-radius: 10px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fd1 {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    border: 2px solid red;
    border-radius: 10px;
}

.fd1 > div {
    flex: 1;
    min-width: 300px;
    padding: 10px;
}

/* Contact Form Styles */
.contact-form-section {
    border: 2px solid red;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form-section h3 {
    margin-bottom: 20px;
    text-align: center;
    color: purple;
    font-size: 1.5em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #357abd, #2c5aa0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}

/* Form validation error styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.3);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    border-color: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.4);
}

/* Disabled button styles */
.submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled:hover {
    background: #cccccc;
    transform: none;
    box-shadow: none;
}

.fd2 {
    /* margin-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1); */
    padding-top: 10px;
}

/* === Language Selector & Social Links === */
/* Language selector styles */
.language-selector {
    position: relative;
    margin-left: auto;
}

.language-selector select {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    color: #333;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.language-selector select:hover,
.language-selector select:focus {
    background: rgba(255, 255, 255, 0.5);
}

/* Profile image styles */
.profile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Social media links */
.social-link {
    color: inherit;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.7;
}

/* === Page Titles & Gallery === */
/* Page title styles */
.page-title {
    text-align: center;
    position: fixed;
    top: 64px; /* Position below navbar */
    left: 0;
    right: 0;
    z-index: 999;
    padding: 15px;
    background: white;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
}

.page-title h1 {
    font-size: 2rem;
    color: #333;
}

/* Gallery page styles */
.gallery-container {
    margin-top:120px;
    padding: 20px;
    /* margin: 20px 5px; */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Service detail page styles */
.service-detail-container {
    padding: 20px;
    margin: 0 5px 20px 5px; /* Removed top margin since it's inside scrollable container */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-detail-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: space-between;
    margin-top: 25px;
}

.service-detail-column {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    margin: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
}

.service-detail-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Make the navigation links look clickable */
.navbar a, .service {
    cursor: pointer;
}

/* Update carousel images to indicate they are clickable */
.carousel img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* === Highlighted Rituals Section === */
.highlighted-rituals-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.highlighted-rituals-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.rituals-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rituals-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.rituals-right {

    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.rituals-right h2 {
    margin: 0 0 10px 0;
    font-size: 3rem;
    font-weight: bold;
}

.rituals-right h4 {
    margin: 5px 0;
    font-size: 1.5rem;
    color: #666;
}
@media (max-width: 700px) {
    .highlighted-rituals-button {
        flex-direction: row;
        align-items: stretch;
        gap: 15px;
        padding: 10px;
    }
    
    .rituals-left {
        flex: 0.6; /* 60% of space */
        min-height: 120px;
        align-items: center;
        justify-content: center;
        display: flex;
    }
    
    .rituals-left img {
        width: auto;
        max-width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 10px;
        display: block;
        margin: 0 auto;
    }
    
    .rituals-right {
        flex: 0.4; /* 40% of space */
        justify-content: center;
        padding: 5px;
    }
    
    .rituals-right h2 {
        font-size: 1.2rem;
        margin: 0 0 8px 0;
    }
    
    .rituals-right h4 {
        font-size: 0.9rem;
        margin: 3px 0;
    }
}

/* Target section highlight effect */
:target {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% {
        background-color: rgba(255, 255, 0, 0.3);
        box-shadow: 0 0 20px rgba(255, 255, 100, 0.5);
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

/* Add padding to top of sections for better positioning with fixed navbar */

/* Improve section visibility when targeted */
#about-section:target, #contact-section:target {
    animation: highlight 2s ease;
}



/* ===== MOBILE-SPECIFIC STYLES ===== */
@media screen and (max-width: 768px) {
    /* Adjust navbar spacing */
    .navbar {
        flex-wrap: wrap;
        padding: 15px;
        justify-content: center;
    }
    
    .navbar a {
        font-size: 0.9rem;
        padding: 8px 5px;
        margin: 2px;
    }
    
    /* Language selector alignment */
    .language-selector {
        margin: 5px auto;
    }
    
    /* Section height adjustments */
    .note, .disimg {
        height: auto;
        min-height: 200px;
        min-width: 300px;
    }

    .note{
        font-weight: 700;
    }
    
    .welcome, .krishna {
        flex-wrap: wrap;
        flex-direction: column-reverse; /* For mobile: show .disimg first, then .note */
    }
    
    /* Profile section adjustments */
    .profilepic, .aboutme {
        height: auto;
        min-height: 200px;
        min-width: 300px;
    }
    .name h1{
        font-size: 3rem;
    }
    /* Service list adjustments */
    .servicelist {
        grid-template-columns: repeat(2, 1fr);
        font-size: 0.9rem;
        white-space: normal; /* Allow wrapping on mobile */
    }
    
    /* Heading size adjustments */

    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    /* Carousel adjustments */
    .carousel img {
        width: 200px;
        height: 150px;
    }
    
 
    
    /* Make text more readable on small screens */
    p, li, .testimonial-text {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    /* Ensure the language selector is properly sized */
    .language-selector select {
        padding: 5px;
        font-size: 0.9rem;
    }
    
    /* Adjust service-detail columns */
    .service-detail-column {
        text-align:justify;
        border: 1px solid black;
        min-width: 280px;
        padding: 15px;
        margin: 10px 5px;
    }
    
    /* Adjust spacing for mobile */
    .services-container,
    .testimonials-section{
        padding: 15px;
        margin: 10px 0px;
    }
    
    /* Contact form mobile adjustments */
    .contact-form-section {
        padding-top: 10px;
    }
    
    .contact-form-section h3 {
        font-size: 1.3em;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9em;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .gallery-container{
        margin-top: 120px;
    }
    /* Ensure gallery grid works on mobile */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .navbar a {
        font-size: 0.8rem;
        padding: 6px 4px;
        margin: 1px;
    }
    
    .servicelist {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    
    .carousel img {
        width: 150px;
        height: 120px;
    }
    
    
    h2 {
        font-size: 2rem;
    }
    
    /* Ensure images don't break layout */
    .disimg img, .profilepic img {
        max-height: 250px;
    }
}

/* Fix for touch devices */
@media (hover: none) {
    .service:hover, .gallery-item:hover, .testimonial-card:hover, .carousel img:hover {
        transform: none; /* Disable hover effects on touch devices */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .gallery-item:active, .testimonial-card:active, .carousel img:active {
        transform: scale(0.98); /* Add touch feedback instead */
    }
}

.fa {
    font-family: "Noto Serif Kannada", serif;
    padding: 30px;
    font-size: 30px;
    width: 80px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
  }
  
  .fa:hover {
      opacity: 0.7;
  }
  
  .fa-facebook {
    background: #3B5998;
    color: white;
  }
  .fa-instagram {
    background: #ea4c89;
    color: white;
  }
  .fa-whatsapp {
    background: #25D366;
    color: white;
  }

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-button {
    display: flex;
    align-items: center;
    padding: 15px 31px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-button i {
    font-size: 40px;
}

.social-button.facebook {
    background-color: #1877f2;
}

.social-button.whatsapp {
    background-color: #25d366;
}

.social-button.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

@media (max-width: 768px) {
    .social-buttons {
        gap: 10px;
    }
    
    .social-button {
        width: 100%;
        justify-content: center;
    }
}

/* --- Navbar Hamburger Toggle --- */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 10px;
    z-index: 1100;
}
.navbar-toggle .bar {
    width: 26px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* --- Navbar Dropdown --- */
.navbar-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 10px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 180px;
    z-index: 1200;
    padding: 10px 0;
    animation: fadeIn 0.2s;
}
.navbar-dropdown a {
    color: #333;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.navbar-dropdown a:hover {
    background: #f0f0f0;
}
.navbar-dropdown .dropdown-language {
    padding: 10px 24px 0 24px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Navbar Title (Site Name) --- */
.navbar-title {
    margin-left: auto;
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.navbar-title img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* --- Navbar Links (inline) --- */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Responsive Styles --- */
@media (max-width: 900px) {
    .navbar-title img {
        height: 35px;
        max-width: 180px;
    }
}
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }
    .navbar-links {
        display: none;
    }
    .navbar-title {
        margin-left: auto;
    }
    .navbar-title img {
        height: 30px;
        max-width: 150px;
    }
}
@media (max-width: 480px) {
    .navbar-dropdown {
        left: 0;
        right: 0;
        min-width: unset;
        width: 95vw;
        margin: 0 auto;
    }
}

/* === Gokarna Section === */
/* Gokarna Section Styles */
.gokarna-section {
    margin: 40px auto;
    padding: 30px 10px;
    padding-top: 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    max-width: 600px;
    text-align: center;
}
.gokarna-section h2 {
    font-size: 2rem;
    margin-bottom: 18px;
    color: #2d2d2d;
    letter-spacing: 1px;
}
.gokarna-image-placeholder {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}
.gokarna-image-placeholder img {
    display: block;
    margin: 0 auto 18px auto;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.gokarna-btn-container {
    text-align: center;
}
.gokarna-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(90deg, #f7b733 0%, #fc4a1a 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(252,74,26,0.08);
    transition: background 0.2s, transform 0.2s;
    margin-top: 10px;
    cursor: pointer;
}
.gokarna-btn:hover {
    background: linear-gradient(90deg, #fc4a1a 0%, #f7b733 100%);
    transform: translateY(-2px) scale(1.04);
}

/* --- Gokarna Page Styles --- */
.gokarna-main-image {
    width: 100%;
    max-width: 850px;
    margin: 40px auto 24px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.gokarna-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    display: block;
}
.gokarna-details {
    max-width: 700px;
    margin: 0 auto 32px auto;
    background: rgba(255,255,255,0.13);
    border-radius: 10px;
    padding: 24px 18px;
    padding-top:0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: justify;
}
.gokarna-details h1 {
    text-align:center;
    font-size: 3rem;
    margin-bottom: 12px;
    color: #2d2d2d;
    font-weight: 800;
}
.gokarna-details h3{
    font-size:1.5rem;
}
.gokarna-details p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
}
.gokarna-map-preview {
    max-width: 700px;
    margin: 32px auto 48px auto;
    position: relative;
    border-radius: 12px;
    display: block;
}
.gokarna-map-preview img {
    width: 100%;
    height: auto;
    display: block;
}
.gokarna-map-preview .map-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 1.1rem;
    padding: 14px 0;
    text-align: center;
    width: 100%;
    opacity: 0.85;
    transition: background 0.2s, opacity 0.2s;
    letter-spacing: 1px;
}
.gokarna-map-preview:hover .map-overlay {
    background: rgba(252,74,26,0.85);
    opacity: 1;
}
.gokarna-map-preview:hover {
    box-shadow: 0 4px 20px rgba(252,74,26,0.18);
}

h1, h2, h3, h4, h5, h6 {
    /* font-family: 'Josefin Sans', sans-serif !important; */
    font-weight: 800;
}


.bio-content h2{
    /* color: darkviolet;
    margin-left:10px; */
    text-align: center;
    color: black;
}

h2{
    color:darkviolet;
    margin-left:10px; 

}
h3{
    color:purple;
    text-align: center;
}
.service-detail-column strong{
    color:blue;
}
.services-container,
.testimonial-text {
    font-family: inherit !important;
}

.gokarna-map-embed {
    width: 100%;
    aspect-ratio: 16/9;
    min-height: 200px;
    max-height: 350px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.gokarna-map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .gokarna-main-image, .gokarna-map-preview {
        max-width: 98vw;
    }
    .gokarna-main-image img {
        max-width: 48vw;
    }
}
@media (max-width: 600px) {
    .gokarna-main-image {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 90%;
    }
    .gokarna-main-image img {
        max-width: 100%;
    }
    .gokarna-map-preview {
        max-width: 100%;
    }
}

.heading-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: center;
}
.heading-link h2 {
    margin: 0;
    transition: color 0.2s, text-decoration 0.2s;
    cursor: pointer;
}
.heading-link:hover h2 {
    color: #b85c00;
    text-decoration: underline;
}

.mnb-page h1, .mnb-page h2, .mnb-page h3, .mnb-page h4, .mnb-page h5, .mnb-page h6 {
    text-decoration: underline;
    color: #1565c0;
    font-weight: 800;
    margin-left:0;
    text-align: left;
}
.mnb-page p {
    text-align: justify;
}

.mnb-image-container {
    text-align: center;
    margin: 24px 0;
}
.mnb-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.mnb-image-caption {
    font-size: 0.95em;
    color: #555;
    margin-top: 8px;
}

.highlighted-rituals {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    margin: 24px 0;
    text-align: center;
}
.highlighted-rituals > div {
    flex: 1 1 0;
    border: 2px solid #1565c0;
    border-radius: 14px;
    background: rgba(21,101,192,0.07);
    padding: 18px 8px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.highlighted-rituals h2 {
    color: #1565c0;
    font-weight: 800;
    /* font-size: 1.35rem; */
    text-align: center;
    margin: 0;
    text-decoration: underline;
    letter-spacing: 0.5px;
    width: 100%;
}
@media (max-width: 700px) {
    .highlighted-rituals {
        flex-direction: column;
        gap: 12px;
    }
}

/* Glyph, by Harry Roberts */
hr.style-eight {
    height: 0;
    overflow: visible; /* For IE */
    padding: 0;
    border: none;
    border-top: medium double #333;
    color: #333;
    text-align: center;
}
hr.style-eight:after {
    content: "§";
    display: inline-block;
    position: relative;
    top: -0.7em;
    font-size: 1.5em;
    padding: 0 0.25em;
    background: #f5ede2;
    
}

body, [data-translate] {
    font-family: 'Josefin Sans', sans-serif;
}

html[lang="hi"] [data-translate] {
    font-family: 'Tiro Devanagari Hindi', serif;
}

html[lang="kn"] [data-translate] {
    font-family: 'Noto Serif Kannada', serif;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: inherit;
}

.services-container {
    width: 100%;
    font-family: inherit;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    padding: 20px;
    margin: 10px 0px;
}

.allservices{
    padding: 15px;
    text-align: center;
    font-size: 1.5rem;
}

/* === Library Section === */
/* Library Section Styles */
.library {

    padding: 5px 10px 35px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    max-width: 100%;
    text-align: center;
}

.library > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.library img {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.library img:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.library .gokarna-btn {
    margin-top: 0;
}

/* Responsive design for library */
@media (max-width: 768px) {
    .library > div {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .library > div img {
        flex-shrink: 0;
        flex-basis: auto;
    }
    
    .library > div .gokarna-btn {
        flex-basis: 100%;
        margin-top: 15px;
    }
    
    .library img {
        width: 100px;
        height: 130px;
    }
    
}

@media (max-width: 480px) {
    .library > div {
        gap: 10px;
    }
    
    .library img {
        width: 150px;
        height: 200px;
    }
    

}

/* Scrollable content container */
.scrollable-content {
    position: fixed;
    top: 220px; /* Position below page-title */
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Home page (index.html) contact section layout */
.home-contact-section .contact-flex-container {
    display: flex;
    gap: 0px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 0;
    border: 2px solid red;
    border-radius: 5px;
}
.home-contact-section .contact-form-section {
    border: 1.5px solid orange;
    flex: 3 1 0%;
    min-width: 320px;
    max-width: 600px;
    margin: 10px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 25px;
}
.home-contact-section .contact-side-column {
    flex: 2 1 0%;
    display: flex;
    padding: 15px;
    flex-direction: column;
    gap: 15px;
    min-width: 260px;
    max-width: 400px;
    justify-content: stretch;
}
.home-contact-section .contact-info-box, .home-contact-section .social-media-box {
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 28px 20px 20px 20px;
    margin: 0;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.home-contact-section .contact-info-box p {
    margin: 8px 0;
    font-size: 1em;
}

@media (max-width: 900px) {
    .home-contact-section .contact-flex-container {
        flex-direction: column;
        gap: 24px;
        padding: 20px 0;
    }
    .home-contact-section .contact-form-section, .home-contact-section .contact-side-column {
        max-width: 100%;
        min-width: 0;
    }
    .home-contact-section .contact-side-column {
        flex-direction: column;
        gap: 24px;
        justify-content: stretch;
    }
    .home-contact-section .contact-info-box, .home-contact-section .social-media-box {
        flex: 1 1 0%;
        min-width: 0;
        margin: 0;
    }
}
@media (max-width: 600px) {
    .home-contact-section .contact-flex-container {
        flex-direction: column;
        gap: 16px;
        padding: 10px 0;
    }
    .home-contact-section .contact-side-column {
        flex-direction: column;
        gap: 16px;
    }
    .home-contact-section .contact-info-box, .home-contact-section .social-media-box {
        padding: 16px 10px 10px 10px;
    }
}

/* Restore original .footer and .fd1 styles for other pages */
.footer {
    width: 100%;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 28px 20px 20px 20px;
    margin: 0 auto 20px auto;
    border: 1px solid rgba(0,0,0,0.08);
    display: block;
}
.fd1 {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    border-radius: 10px;
}
.fd1 > div {
    flex: 1;
    min-width: 300px;
    padding: 10px;
}

/* Google Reviews Slider Styles */
.google-reviews-section {
    padding: 30px 20px;
    margin: 30px 5px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.google-reviews-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #333;
}
.google-reviews-slider {
    display: flex;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 220px;
}
.google-review-card {
    min-width: 320px;
    max-width: 400px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s cubic-bezier(0.4,0,0.2,1);
    margin: 0 10px;
    opacity: 1;
    position: absolute;
    left: 0; right: 0;
    margin-left: auto;
    margin-right: auto;
}
.google-review-card.hide {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}
.google-review-card.show {
    opacity: 1;
    z-index: 1;
}
.google-review-author {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.google-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 1px solid #ccc;
}
.google-review-name {
    font-weight: bold;
    font-size: 1.1rem;
}
.google-review-rating {
    color: #FFD700;
    margin-left: 8px;
    font-size: 1.2rem;
}
.google-review-date {
    font-size: 0.9rem;
    color: #666;
    margin-left: 8px;
}
@media (max-width: 480px) {
    .google-review-card {
        min-width: 220px;
        max-width: 95vw;
        padding: 10px;
    }
    .google-reviews-slider {
        min-height: 160px;
    }
}
/* End Google Reviews Slider Styles */

/* Google Reviews Slider Animation */
.google-review-card {
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s cubic-bezier(0.4,0,0.2,1);
}
.google-review-card.slide-in-right {
    animation: slideInRight 0.5s forwards;
    z-index: 2;
}
.google-review-card.slide-out-left {
    animation: slideOutLeft 0.5s forwards;
    z-index: 1;
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}
/* End Google Reviews Slider Animation */

.bio {
    margin: 20px;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
  }
  .bio-image {
    flex: 0 0 30%;
    max-width: 30%;
  }
  .bio-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
  }
  .bio-content {
    text-align: justify;
  }
  @media (max-width: 700px) {
    .bio {
      flex-direction: column;
      gap: 1rem;
    }
    .bio-image, .bio-content {
      max-width: 100%;
      flex: 1 1 100%;
    }
    .bio-image {
      margin-bottom: 1rem;
    }
  }

/* Responsive image styling for markdown content */
.mnb-page img {
    width: 500px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
    margin: 20px auto;
}

.mnb-page div[style*="text-align: center"] {
    margin: 20px 0;
}

.mnb-page div[style*="text-align: center"] p {
    margin-top: 10px;
    font-style: italic;
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .mnb-page img {
        width: 300px;
    }
}

/* --- Shloka Markdown Responsive Styles --- */
.shloka-markdown {

    text-align: center;
    padding: 10px 20px;
    word-break: break-word;
    white-space: pre-line;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0 auto;
    font-weight: 600;
}

@media (max-width: 900px) {
    .shloka-markdown {
        font-size: 0.9rem;
    }
}
@media (max-width: 700px) {
    .shloka-markdown {
        font-size: 1.05rem;
    }
    .note, .disimg {
        min-width: unset;
        width: 100%;
        padding: 8px 2px;
        height: auto;
        min-height: 120px;
    }
}
@media (max-width: 480px) {
    .shloka-markdown {
        font-size: 0.98rem;
    }
    .note, .disimg {
        min-width: unset;
        width: 100%;
        padding: 4px 0px;
        height: auto;
        min-height: 80px;
    }
    .disimg img {
        
        width: auto;
        max-width: 100%;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
}

/* Ensure .note content is always centered and never overflows */
.note {
    overflow-x: auto;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

/* --- About Me Section Responsive Styles --- */
@media (max-width: 900px) {
  .krishna {
    flex-direction: column-reverse;
    padding: 10px 2vw;
    gap: 0;
  }
  .aboutme, .profilepic {
    min-width: unset;
    width: 100%;;
    height: auto;
  }
  .name h1 {
    font-size: 2.2rem;
    margin: 0 0 8px 0;
    text-align: center;
  }
  .about {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 10px;
    text-align: center;
  }
  .krishna-btn-container {
    margin: 12px 0 0 0;
    padding: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  .krishna-btn-container .gokarna-btn {
    font-size: 1rem;
    padding: 10px 18px;
    width: 90%;
    max-width: 320px;
    min-width: 120px;
    margin: 0 auto;
    display: block;
  }
}
@media (max-width: 700px) {
  .krishna {
    flex-direction: column-reverse;
    padding: 6px 1vw;
  }
  .aboutme, .profilepic {
    min-width: unset;
    width: 100%;
    height: auto;
  }
  .name h1 {

    margin: 0 0 6px 0;
  }
  .about {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .krishna-btn-container {
    margin: 8px 0 0 0;
  }
  .krishna-btn-container .gokarna-btn {
    font-size: 0.98rem;
    padding: 8px 10px;
    width: 98%;
    min-width: 90px;
  }
}
@media (max-width: 480px) {
  .krishna {
    flex-direction: column-reverse;
    padding: 2px 0;
  }
  .aboutme, .profilepic {
    min-width: unset;
    width: 100%;

    height: auto;
  }
  .name h1 {

    margin: 0 0 4px 0;
  }
  .about {
    font-size: 0.92rem;
    margin-bottom: 6px;
  }
  .krishna-btn-container {
    margin: 6px 0 0 0;
  }
  .krishna-btn-container .gokarna-btn {
    font-size: 0.92rem;
    padding: 7px 6px;
    width: 100%;
    min-width: 70px;
  }
}

/* --- Contact Section Responsive Styles --- */
@media (max-width: 900px) {
  .fd1 {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  .fd1 > div {
    min-width: unset;
    width: 100%;
    padding: 15px;
    text-align: center;
  }
  .fd1 h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  .fd1 p {
    font-size: 1rem;
    line-height: 1.4;
    margin: 8px 0;
  }
  .social-buttons {
    gap: 12px;
    margin-top: 15px;
  }
  .social-button {
    padding: 12px 20px;
    font-size: 12px;
  }
  .social-button i {
    font-size: 32px;
  }
}
@media (max-width: 700px) {
  .fd1 {
    flex-direction: column;
    gap: 12px;
    padding: 10px;
  }
  .fd1 > div {
    padding: 12px;
  }
  .fd1 h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .fd1 p {
    font-size: 0.95rem;
    margin: 6px 0;
  }
  .social-buttons {
    gap: 10px;
    margin-top: 12px;
  }
  .social-button {
    font-size: 11px;
  }
  .social-button i {
    font-size: 28px;
  }
}
@media (max-width: 480px) {
  .fd1 {
    flex-direction: column;
    gap: 10px;
    padding: 8px;
  }
  .fd1 > div {
    padding: 10px;
  }
  .fd1 h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .fd1 p {
    font-size: 0.9rem;
    margin: 5px 0;
  }
  .social-buttons {
    gap: 8px;
    margin-top: 10px;
  }
  .social-button {
    font-size: 10px;
    min-width: 60px;
  }
  .social-button i {
    font-size: 24px;
  }
}