/* =========================================
   SERVICES PAGE - HERO SECTION
   ========================================= */
.services-hero {
    padding-top: 150px; 
    padding-bottom: 5rem;
    display: flex;
    justify-content: center;
    position: relative;
    background-color: var(--bg-color);
    overflow: hidden;
}

.text-center { text-align: center; }
.justify-center { justify-content: center; }

/* Subtle Background Glow */
.services-hero .glow-orb {
    position: absolute;
    top: -20%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, rgba(250, 249, 246, 0) 70%);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-color);
    font-weight: 600;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   SERVICES DIRECTORY (STICKY LAYOUT)
   ========================================= */
.services-directory {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem 2rem;
}

.service-category {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    padding: 6rem 0;
    position: relative;
    align-items: flex-start;
}

/* The divider line between major sections */
.category-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(217, 119, 6, 0.2) 50%, transparent 100%);
    margin: 0 10%;
}

/* --- Left Side: Sticky Title --- */
.category-sticky-sidebar {
    position: sticky;
    top: 120px; /* Distance from top of screen when sticky */
}

.cat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--accent-light);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.category-sticky-sidebar h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.category-sticky-sidebar p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Right Side: The Grid of Pujas --- */
.category-content-grid {
    /* Slightly wider minimum size to comfortably hold the new text */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

/* Card Animation Keyframes */
@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.puja-card {
    padding: 2.2rem 2rem;
    text-align: left; /* Changed to left alignment for better readability of paragraphs */
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px; /* Taller to fit content */
    
    /* Apply the entrance animation */
    opacity: 0; 
    animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.puja-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.3);
}

.card-text-content {
    margin-bottom: 1.5rem;
}

.puja-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    letter-spacing: -0.5px;
}

.hindi-text {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.puja-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Interactive Action Button */
.puja-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.puja-action .arrow {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.puja-card:hover .puja-action {
    color: var(--accent-color);
}

.puja-card:hover .puja-action .arrow {
    transform: translateX(5px);
}

/* =========================================
   RESPONSIVE LAYOUT
   ========================================= */
@media (max-width: 1024px) {
    .service-category {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 4rem 0;
    }

    .category-sticky-sidebar {
        position: relative;
        top: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .category-sticky-sidebar p {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding-top: 120px;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .category-content-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .puja-card {
        padding: 1.5rem;
        min-height: 100px;
    }
}