/* Global Variables & Reset */
:root {
    --primary-color: #3E2723;
    /* Deep Earthy Brown */
    --primary-light: #6D4C41;
    --accent-color: #FFB300;
    /* Rich Gold */
    --accent-light: #FFCA28;
    --bg-color: #FDFBF7;
    /* Warm Off-White */
    --surface-color: #FFFFFF;
    --text-color: #333333;
    --text-light: #666666;
    --white: #FFFFFF;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s ease;
    --radius: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5em;
    font-weight: 700;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color), #2d1b18);
    color: var(--accent-color);
    padding: 1rem 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header .header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.logo {
    width: 80px;
    height: 100px;
    border-radius: 50% / 40%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    header .header-content {
        flex-direction: column;
        gap: 10px;
    }
}

header .mantra {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

header h1 {
    font-size: 2rem;
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1.3;
}

.sub-header {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-top: 0.2rem;
}

nav {
    background-color: #4E342E;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 0 1rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--accent-color);
}

/* Mobile Menu Toggle (Hidden by default) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    padding: 1rem;
}

/* Hero Banner */
.banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
   background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('frontimage.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 3rem;
}

.banner-content {
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: fadeInUp 1.2s ease-out;
}

.banner h2 {
    font-size: 3.5rem;
    color: var(--accent-color);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.content-block {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
    border-top: 5px solid var(--accent-color);
}

.content-block p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Cards Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--surface-color);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.back-btn-container {
    text-align: center;
    margin: 3rem 0;
}

.back-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Footer (Updated) */
footer {
    background-color: var(--primary-color);
    color: #EFEFEF;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    border-top: 5px solid var(--accent-color);
    margin-top: auto;
}

footer p {
    opacity: 0.8;
    margin-top: 1rem;
}
footer h3 {
    color: var(--accent-color);
    margin-top: 20px;
    font-size: 1.3rem;
}

footer .btn {
    margin-top: 10px;
    display: inline-block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Specific Page Enhancements */

/* Seva Table */
.seva-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.seva-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.seva-table th,
.seva-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.seva-table tr:last-child td {
    border-bottom: none;
}

.seva-table tr:hover {
    background-color: rgba(255, 179, 0, 0.05);
}

.seva-table td:last-child {
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* Forms */
input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.2);
}

label {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Google Translate */
/* Google Translate Refined Styles */
.goog-te-gadget {
    font-size: 0 !important;
    color: transparent !important;
    display: block !important;
}

.goog-logo-link,
.goog-te-gadget span,
.goog-te-banner-frame {
    display: none !important;
}

.goog-te-combo {
    padding: 6px 12px !important;
    border-radius: 6px !important;
    border: 1px solid var(--accent-color) !important;
    background: #fff !important;
    color: var(--primary-color) !important;
    font-family: 'Segoe UI', sans-serif !important;
    font-size: 13px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

#google_translate_element {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1200;
}





/* Mobile Responsiveness */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.4rem;
        padding: 0 10px;
    }

    .nav-container {
    justify-content: space-between;
    padding: 0;
    position: relative;
    }
 .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    .menu-toggle {
        display: block;
    }

    .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #4E342E;

    z-index: 9999;

    max-height: 80vh;
    overflow-y: auto;
    }

   

    .nav-links a {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }

    .banner {
        height: 50vh;
        background-attachment: scroll;
        /* Disable parallax on mobile for performance */
    }

    .banner h2 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-block {
        padding: 2rem 1.5rem;
    }

    #google_translate_element {
        position: relative;
        top: 0;
        right: 0;
        margin: 5px auto;
        display: inline-block;
        transform: scale(0.8);
        /* Even smaller on mobile */
        transform-origin: center;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 350px;
    /* Increased height */
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #1a1a1a;
    /* Dark background for 'contain' mode */
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    background-size: contain;
    /* Changed from cover to contain */
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
    animation: fadeEffect 1s;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 250px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 3px solid var(--white);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

/* Gallery Caption Styles */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 15px 10px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transform: translateY(100%);
    transition: var(--transition);
    font-family: var(--font-body);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border: 3px solid var(--accent-color);
    border-radius: 8px;
    animation: zoomIn 0.3s;
    object-fit: contain;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
    text-decoration: none;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}