@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Roboto+Slab:wght@400;700&display=swap');

/*
   Rustic & Historic Redesign for Vilash Mansion
   - Typography: 'Lora' for headings (classic, literary feel), 'Roboto Slab' for body (sturdy, readable).
   - Color Palette: Earthy Brown (#6B4F4F), Muted Terracotta (#A87C7C), Aged Paper (#F5EEDC), Dark Wood (#483434).
   - Textures: Subtle noise/texture on the background to evoke aged paper.
*/

/* --- Global Resets & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto Slab', serif;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    background-color: #F5EEDC; /* Aged Paper */
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.12' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

a {
    text-decoration: none;
    color: #A87C7C; /* Muted Terracotta */
    transition: color 0.3s ease;
}

a:hover {
    color: #6B4F4F; /* Earthy Brown */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    color: #6B4F4F; /* Earthy Brown */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.6rem; }

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 70px 0;
    border-bottom: 1px solid #DCD0B3;
}

/* --- Header & Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(245, 238, 220, 0.85); /* Semi-transparent Aged Paper */
    border-bottom: 1px solid #DCD0B3;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 35px;
}

nav a {
    color: #6B4F4F;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    height: 1px;
    width: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #A87C7C;
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* --- Hero Section (Homepage) --- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 60px 20px;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(72, 52, 52, 0.5), rgba(72, 52, 52, 0.5)), url('../images/mansion3.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 10px solid #483434;
}

.hero h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #A87C7C;
    color: #F5EEDC;
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 2px solid #A87C7C;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #6B4F4F;
    border-color: #6B4F4F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* --- Homepage Sections --- */
.home-about, .home-events {
    text-align: center;
}

.home-about p, .home-events p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* --- Slideshow --- */
.slideshow-container {
    position: relative;
    margin: auto;
    max-width: 900px;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    vertical-align: middle;
    border: 12px solid #fff;
    border-bottom-width: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    filter: sepia(0.2);
    height: 500px; /* Set a fixed height */
    object-fit: cover; /* Ensure images cover the area without distortion */
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 45%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #333;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.next {
    right: -25px;
}
.prev {
    left: -25px;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 1);
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #C3B699;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.active, .dot:hover {
    background-color: #6B4F4F;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from { opacity: .4 } to { opacity: 1 }
}

@keyframes fade {
    from { opacity: .4 } to { opacity: 1 }
}

/* --- About Page: History Section --- */
.history-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 50px;
    align-items: center;
}

.history-text p {
    margin-bottom: 20px;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info p {
    margin-bottom: 15px;
}

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

.contact-form label { display: none; } /* Using placeholders */

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #DCD0B3;
    border-radius: 2px;
    background-color: #fff;
    font-family: 'Roboto Slab', serif;
    font-size: 1rem;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #A87C7C;
}

.contact-form button {
    align-self: flex-start;
}

/* --- What's On Page --- */
.event, .exhibition, .tour {
    background-color: transparent;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #DCD0B3;
    border-left: 5px solid #A87C7C;
}

/* --- Visit Page --- */
.opening-hours table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px;
    border-collapse: collapse;
    text-align: left;
    background-color: #fff;
    border: 1px solid #DCD0B3;
}

.opening-hours th, .opening-hours td {
    padding: 15px;
    border-bottom: 1px solid #F5EEDC;
}

.opening-hours th {
    color: #6B4F4F;
    background-color: #F0E6D0;
}

/* --- Footer --- */
footer {
    background-color: #483434; /* Dark Wood */
    color: #F5EEDC;
    padding: 50px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    color: #DCD0B3;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    header {
        flex-direction: column;
        padding: 15px;
    }

    nav ul {
        margin-top: 15px;
        padding: 0;
    }

    nav li {
        margin: 0 10px;
    }

    .history-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .prev, .next {
        top: 40%;
    }
    .next { right: 5px; }
    .prev { left: 5px; }
}
