/*
Theme Name: Vekka Temple
Theme URI: http://example.com/vekka
Author: Antigravity
Author URI: http://example.com
Description: A premium WordPress theme for Vekka Temple, featuring festival management, albums, and donation details.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: temple, spiritual, gallery, festival, responsive
Text Domain: vekka
*/

/* --- Design System & CSS Reset --- */
:root {
    --primary: #8e1b1b;
    /* Deep Temple Red */
    --primary-light: #b02a2a;
    --accent: #d4af37;
    /* Gold */
    --accent-hover: #f1c40f;
    --dark: #1a1a1a;
    --light: #f9f9f9;
    --text: #333;
    --text-muted: #666;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 0 0;
}

/* Components */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-gold {
    background: var(--accent);
    color: var(--dark);
}

.btn-gold:hover {
    background: var(--accent-hover);
    border-color: var(--accent);
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card Style */
.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--dark);
}

.carousel-inner {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-bottom: 70px;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)); */
}

.carousel-content {
    position: relative;
    z-index: 2;
    padding: 10px 10px;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    width: 90%;
}

.carousel-content h2 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 5px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.carousel-item.active .carousel-content h2 {
    transform: translateY(0);
    opacity: 1;
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 5px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.4s;
}

.carousel-item.active .carousel-content p {
    transform: translateY(0);
    opacity: 1;
}

/* Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.carousel-btn:hover {
    background: var(--accent);
    color: var(--dark);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .carousel {
        height: 400px;
    }

    .carousel-content h2 {
        font-size: 32px;
    }

    .carousel-content p {
        font-size: 16px;
    }

    .carousel-prev,
    .carousel-next {
        display: none;
    }

    /* Header Mobile Adjustments */
    .header-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo a {
        font-size: 20px;
        gap: 10px;
    }

    .logo-img {
        height: 40px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav ul li a {
        font-size: 13px;
    }
}

/* Temple Info Styles */
.temple-info {
    padding: 80px 0;
    background: #fff;
}

.info-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.info-sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 100px;
}

.info-main {
    flex: 1;
}

.section-title {
    font-size: 32px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.content-text p {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.8;
}

.highlight-box {
    background: #fff9e6;
    border-left: 5px solid var(--accent);
    padding: 30px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.quick-facts {
    background: var(--primary);
    color: var(--white);
    border-radius: 15px;
    overflow: hidden;
}

.quick-facts h3 {
    color: var(--accent);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.quick-facts ul li {
    margin-bottom: 15px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
}

.quick-facts ul li strong {
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

article {
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .info-layout {
        flex-direction: column;
    }

    .info-sidebar {
        flex: 1;
        width: 100%;
        position: static;
        margin-bottom: 40px;
    }
}

/* Map Styles */
.temple-map {
    padding-bottom: 80px;
    background: #fff;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    line-height: 0;
}

.map-container iframe {
    display: block;
}