.heading {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)), url('https://upload.wikimedia.org/wikipedia/commons/4/43/Hadimba_Temple_Manali.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

h1.title {
    font-size: 3rem;
    margin: 0 0 10px 0;
    color: #071D5A;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

header p {
    font-size: 1.2rem;
    margin-top: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.search-container {
    text-align: center;
    margin: -30px auto 40px auto;
    position: relative;
    z-index: 10;
}

.search-container form {
    display: inline-block;
    background: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-container input[type="text"] {
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    outline: none;
    border-radius: 30px;
    width: 300px;
}

.search-container button {
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.search-container button:hover {
    background-color: #a00028;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

.category-title {
    font-size: 2rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
    margin: 40px 0 20px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.deity {
    font-size: 0.95rem;
    color: #b8860b;
    margin-bottom: 12px;
    font-weight: bold;
}

.card-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 20px;
}

.btn-details {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-details:hover {
    background-color: var(--secondary-color);
    color: #000;
}

.no-results {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
}