/* Panchaiyati Café Website Styles
 * 
 * Table of Contents:
 * 1. CSS Variables
 * 2. Base Styles
 * 3. Typography
 * 4. Header & Navigation
 * 5. Hero Section
 * 6. Buttons & Common UI Elements
 * 7. Heritage Section & Feature Cards
 * 8. Gallery Section
 * 9. Testimonials Section
 * 10. Responsive Styles
 * 11. Alerts & Utility Classes
 * 12. Accessibility Improvements
 * 13. Print Styles
 */


/* ===== 1. CSS Variables ===== */
:root {
    /* Color palette */
    --primary-color: #18335e; /* Dark blue */
    --secondary-color: #12294b; /* Deeper blue */
    --accent-color: #18335e; /* Dark blue for accents */
    --dark-color: #12294b; /* Deeper blue for text and accents */
    --light-color: #f5f5f5; /* Light gray for backgrounds */
    --text-dark: #12294b;
    --text-light: #f5f5f5;
    --border-color: #d8e1f3;
    --bg-color: #f5f5f5;
}

/* ===== 2. Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== 3. Typography ===== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.3em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1em;
    font-size: 1rem;
    color: var(--secondary-color);
}

.subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5em;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* ===== 4. Header & Navigation ===== */

/* Main Header Container */
#site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

/* ===== 4.1 Logo Styles ===== */
/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-logo {
    height: 180px; /* Increased height to accommodate larger logo */
    width: auto; /* Maintain aspect ratio */
    max-width: 200px; /* Match the new logo dimensions */
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

.logo-icon {
    width: 100px;
    height: 100px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ===== 4.2 Header & Navigation ===== */

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    height: 90px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #007bff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 24px;
    background: #333;
    border-radius: 3px;
    opacity: 1;
    left: 8px;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
    top: 12px;
}

.menu-toggle span:nth-child(2) {
    top: 19px;
}

.menu-toggle span:nth-child(3) {
    top: 26px;
}

.menu-toggle.active span:nth-child(1) {
    top: 19px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active span:nth-child(3) {
    top: 19px;
    transform: rotate(-135deg);
}

.menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ===== 10. Responsive Navigation ===== */

/* Responsive Media Queries */
@media screen and (max-width: 992px) {
    .site-header {
        padding: 0.8rem 5%;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        z-index: 100;
        padding: 4rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Overlay for mobile menu */
    .nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 90;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .nav.active::before {
        opacity: 1;
        visibility: visible;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@media screen and (max-width: 480px) {
    .site-header {
        padding: 0.25rem 4%;
        height: 80px;
    }
    
    .logo a {
        font-size: 1rem;
    }
    
    .navbar-logo {
        width: 65px;
        height: 65px;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-circle {
        width: 12px;
        height: 12px;
    }
    
    .nav-menu {
        width: 85%;
        padding: 4rem 1.5rem 1.5rem;
    }
}



/* ===== 10. Responsive Styles ===== */

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    /* Header & Navigation */
    #site-header {
        padding: 1rem 5%;
    }

    .navbar-logo {
        height: 90px;
        max-width: 160px;
    }
    
    .logo a {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    

}






/* ===== 5. Hero Section ===== */
.hero {
    min-height: 80vh;
    /* Fallback for browsers that don't support custom properties */
    min-height: calc(100vh - 80px); /* Subtract approximate header height */
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background-image: url('../assets/images/alwar-pattern.svg');
    background-size: 300px;
    background-repeat: repeat;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 51, 94, 0.85);
    z-index: 0;
}

.hero-content {
    max-width: 700px;
    background-color: #fff;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-content p {
    margin-bottom: 2rem;
}

/* ===== 6. Buttons & Common UI Elements ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #12294b;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    margin: 2rem auto;
    text-align: center;
}

/* Heritage Section */
/* ===== 7. Heritage Section & Feature Cards ===== */
.heritage-section {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--light-color);
}

.heritage-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.heritage-section .subtitle {
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.heritage-section .tagline {
    margin: 40px auto 0;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-style: italic;
}

.heritage-features {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 3rem;
}

.feature-card {
    flex: 1;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-image {
    height: 180px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration {
    width: 120px;
    height: 120px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.feature-card:hover .illustration {
    transform: scale(1.05);
}

/* Feature illustrations */
.elephant-illustration {
    background-image: url('../assets/images/elephant-illustration.svg');
}

.palace-illustration {
    background-image: url('../assets/images/palace-illustration.svg');
}

.cultural-illustration {
    background-image: url('../assets/images/cultural-illustration.svg');
}

/* ===== 10. Responsive Styles ===== */



/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    /* Header & Navigation */
    header {
        padding: 1rem 5%;
    }
    
    .logo a {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 80px;
        max-width: 140px;
    }
    .heritage-image {
        flex: 1 1 100%;
    }
    .heritage-text {
        flex: 1 1 100%;
    }
    .feature-card {
        flex: 1 1 100%;
    }
}

/* ===== 11. Alerts & Utility Classes ===== */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.text-danger {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Privacy Policy and Terms & Conditions Pages */
.content-section {
    padding: 4rem 5%;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.policy-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.policy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ===== 8. Menu Section ===== */
.menu-section {
    padding: 5rem 5%;
    background-color: rgba(175, 160, 231, 0.7);
    background-image: linear-gradient(rgba(16, 40, 78, 0.9), rgba(45, 66, 99, 0.9)), url('../assets/images/pattern-bg.svg');
    background-size: 50px;
    background-repeat: repeat;
    background-position: center;
    position: relative;
}



.menu-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.92);
    z-index: 0;
}

.menu-section h2,
.menu-section .subtitle,
.menu-section .menu-tabs,
.menu-section .menu-carousel-container {
    position: relative;
    z-index: 1;
}

/* Menu Tabs */
.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 10px 20px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-color);
}

.tab-btn:hover {
    background-color: rgba(24, 51, 94, 0.1);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Menu Content */
.menu-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    background-color: #021738;
    padding: 2rem;
}

.menu-content.active {
    display: block;
    opacity: 1;
}

/* Menu Carousel */
.menu-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.menu-carousel-inner {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px; /* Add padding to avoid scrollbar overlap */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.menu-carousel-inner::-webkit-scrollbar {
    display: none;
}

/* Menu Item */
.menu-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(33.333% - 14px); /* Show exactly 3 items, accounting for gap */
    min-width: 280px;
    max-width: 350px;
    white-space: normal; /* Allow text to wrap inside the card */
    scroll-snap-align: center; /* Ensure items snap to center when scrolling */
}

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

.menu-image-cap {
    height: 180px;
    overflow: hidden;
    position: relative;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-image-cap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-image-cap img {
    transform: scale(1.1);
}

.menu-icon {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
}

.card-body {
    padding: 1.25rem;
    flex: 1;
}

.card-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.card-text {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.list-group {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.price-item {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-align: right;
}

/* Menu Controls */
.menu-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    width: 100%;
    pointer-events: none;
}

.menu-carousel-container p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-top: 15px;
    font-style: italic;
    text-align: center;
    position: relative;
    z-index: 2;
}

.menu-controls .carousel-control {
    pointer-events: auto;
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.menu-controls .carousel-control:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
    opacity: 1;
}

/* Responsive Menu */
@media (max-width: 992px) {
    .menu-item {
        flex: 0 0 calc(50% - 10px);
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .menu-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .menu-controls .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .menu-item {
        flex: 0 0 calc(80% - 10px);
        min-width: 220px;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 70px;
        max-width: 120px;
    }
    .menu-section {
        padding: 3rem 5%;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .menu-item {
        flex: 0 0 calc(90% - 10px);
        min-width: 200px;
    }
    
    .menu-image-cap {
        height: 150px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
}

/* ===== 9. Gallery Section ===== */
.gallery-section {
    padding: 5rem 5%;
    background-color: #fff;
    text-align: center;
}

.gallery-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
    overflow: hidden;
}

.gallery-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-item {
    flex: 0 0 100%;
    height: 400px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

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

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

/* Gallery overlay and captions */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.gallery-caption h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: white;
}

.gallery-caption p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Gallery controls */
.gallery-controls {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-section {
        padding: 3rem 5%;
    }
    
    .gallery-item {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        height: 250px;
    }
    
    .gallery-caption h4 {
        font-size: 1rem;
    }
    
    .gallery-caption p {
        font-size: 0.8rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* ===== 10. Testimonials Section ===== */
.testimonials-section {
    padding: 5rem 5%;
    background-color: var(--bg-color);
    text-align: center;
}

.testimonial-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    flex: 0 0 100%;
    padding: 0 1rem;
    display: none;
}

.testimonial-item.active {
    display: block;
}

.testimonial-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: 'Georgia', serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-right: 1rem;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.author-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.testimonial-controls {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Makes it responsive for smaller screens */
    margin-top: 24px;
}

/* Arrow buttons */
.carousel-control {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background-color: transparent;
    color: var(--primary-color);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Dot wrapper */
.carousel-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Dots */
.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dots .dot:hover {
    background-color: #bbb;
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    background-color: var(--primary-color);
    transform: scale(1.4);
}



/* Footer */
footer {
    background-color: var(--primary-color);
    padding: 3rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 2rem;
}

/* Footer Details */
.footer-brand {
    flex: 1;
}

.footer-logo {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo img {
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

.footer-brand p,
.footer-brand h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    
}

.footer-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    color: #f5f5f5;
}

.footer-social a:hover {
    background-color: #fff;
    color: var(--blue-color);
    transition: all 0.3s;
}

.footer-links {
    flex: 1;
}

.footer-links h4,
.footer-newsletter h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0;
    font-size: 1rem;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-newsletter {
    flex: 1;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-arrow {
    width: 40px;
    background-color: #18335e;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-arrow:hover {
    background-color: #12294b;
}

.footer-links {
    text-align: center;
    padding: 0.5rem 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

.copyright {
    padding: 1rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.copyright p {
    color: var(--text-light);
}
/* Page Hero Section */
.page-hero {
    min-height: 40vh;
    /* Fallback for browsers that don't support custom properties */
    min-height: calc(50vh - 80px); /* Subtract approximate header height */
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 5%;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-image: url('../assets/images/alwar-pattern.svg');
    background-size: 300px;
    background-repeat: repeat;
    background-position: center;
}

.page-hero::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 51, 94, 0.85);
    z-index: 0;
}

.page-hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    color: var(--text-light);
}

.page-hero-content h1 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 3rem;
}

.page-hero-content p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0;
}

.page-hero-content p:nth-child(3) {
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 15px;
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}



/* About Page Styles */
.about-section {
    padding: 5rem 5%;
    background-color: var(--bg-color);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    gap: 40px;
    margin-bottom: 4rem;
    align-items: center;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.mission-values {
    margin-bottom: 4rem;
}

.values-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.value-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.value-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.team-section {
    margin-bottom: 3rem;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.team-member {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.member-social {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.member-social a {
    color: var(--primary-color);
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.member-social a:hover {
    color: var(--secondary-color);
    transition: color 0.3s;
    cursor: pointer;

}

.member-image {
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.cta-section {
    padding: 6rem 5%;
    background-color: var(--primary-color);
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: left;
    padding: 1.2rem;
}

.cta-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-content .hindi-tagline {
    font-family: 'Arial', sans-serif;
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-content .welcome-message {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.cta-content .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cta-content .btn-primary:hover {
    background-color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: visible;
    pointer-events: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-float .whatsapp-icon {
    width: 35px;
    height: 35px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    }
    
    .whatsapp-float .whatsapp-icon {
        width: 32px;
        height: 32px;
    }
}

/* Contact Page Styles */
.contact-page-section {
    padding: 5rem 5%;
    background-color: var(--bg-color);
}

.contact-page-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.contact-info-block, .contact-form-block {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.social-connect h3 {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-section {
    padding: 5rem 5%;
    background-color: #fff;
}

.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* Contact Form */
.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #18335e;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    font-family: 'Poppins', sans-serif;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 51, 94, 0.2);
}

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

/* Map Section */
.map-container {
    margin: 3rem;

}

.map-placeholder {
    height: 300px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #12294b;
}

.map-icon {
    width: 50px;
    height: 50px;
    background-color: #18335e;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.map-address {
    color: #18335e;
    margin-top: 0.5rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #021738;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links a:hover {
    background-color: #18335e;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar-logo {
        height: 100px;
        max-width: 180px;
    }
    
    .heritage-features {
        gap: 20px;
    }
    
    .testimonial-carousel-inner {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 992px) {
    .heritage-features {
        flex-direction: column;
        align-items: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature-card {
        width: 100%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    nav ul {
        gap: 1.2rem;
    }
    
    .hero {
        height: auto;
        min-height: 70vh;
        padding: 4rem 5%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        padding: 1rem 5%;
        position: relative;
    }
    
    .hero {
        padding: 3rem 5%;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .testimonial-carousel-inner {
        grid-template-columns: 1fr;
    }
    
    .testimonial-content {
        padding: 2rem 1.5rem;
    }
    
    .quote-icon {
        font-size: 3rem;
    }
    
    .heritage-section,
    .testimonials-section,
    .contact-section,
    .about-section,
    .contact-page-section,
    .faq-section {
        padding: 3rem 5%;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* About page responsive */
    .about-content {
        flex-direction: column;
    }
    
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Contact page responsive */
    .contact-page-container {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 2rem 5%;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .tab-btn {
        margin-bottom: 0.5rem;
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: center;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .carousel-controls {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-image {
        height: 150px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links ul {
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .btn-arrow {
        width: 100%;
        padding: 10px;
    }
    
    .heritage-section,
    .testimonials-section,
    .contact-section {
        padding: 2.5rem 5%;
    }
}

/* Small devices (phones, 320px to 480px) */
@media (min-width: 320px) and (max-width: 480px) {
    body {
        font-size: 0.8rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .navbar-logo {
        width: 65px;
        height: 65px;
    }
    
    .hero-content p {
        font-size: 0.8rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .btn-primary {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-image {
        height: 100px;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .copyright {
        font-size: 0.7rem;
    }
}

/* Medium devices (tablets, 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .feature-image {
        height: 120px;
    }
    
    .contact-info {
        padding: 1.2rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

/* Large devices (desktops, 769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-image {
        height: 150px;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .copyright {
        font-size: 0.9rem;
    }
}

/* ===== 12. Accessibility Improvements ===== */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== 13. Print Styles ===== */
@media print {
    header, footer, .btn-primary, .btn-secondary {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }
    
    main {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .page-hero, .hero {
        background-image: none !important;
        color: black;
        min-height: auto;
        padding: 1cm 0;
    }
    
    .page-hero::after, .hero::after {
        display: none;
    }
    
    .page-hero-content h1, .hero-content h1,
    .page-hero-content p, .hero-content p {
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
    
    a[href^="#"]::after {
        display: none;
    }
    
    .contact-form-block, .map-container, .social-links {
        page-break-inside: avoid;
    }
}
