/* Vrat Landing Page Styles */
:root {
    --vrat-saffron: #FF9933;
    --vrat-saffron-light: #FFF5E6;
    --vrat-red: #D9381E;
    --vrat-text: #2D2D2D;
    --vrat-text-light: #666;
    --bg-offwhite: #FAFAFA;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
}

.vrat-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--vrat-text);
}

/* 1️⃣ Hero Section */
.vrat-hero {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE4C4 100%);
    padding: 60px 20px;
    border-radius: 0 0 24px 24px;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vrat-red);
    margin-bottom: 12px;
}

.hero-subhed {
    font-size: 1.1rem;
    color: var(--vrat-text-light);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pill {
    background: white;
    color: var(--vrat-red);
    padding: 8px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pill:hover {
    background: var(--vrat-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(217, 56, 30, 0.3);
}

/* 2️⃣ Discovery Section */
.vrat-discovery {
    margin-bottom: 50px;
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 24px;
}

#vratSearch {
    width: 100%;
    padding: 14px 48px 14px 20px;
    border: 2px solid #EEE;
    border-radius: 30px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#vratSearch:focus {
    outline: none;
    border-color: var(--vrat-saffron);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
}

.filter-chip {
    border: 1px solid #E0E0E0;
    background: white;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--vrat-text);
}

.filter-chip:hover {
    background: #F5F5F5;
}

.filter-chip.active {
    background: var(--vrat-saffron);
    color: white;
    border-color: var(--vrat-saffron);
}

.reset-filters {
    background: none;
    border: none;
    text-decoration: underline;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
}

/* 3️⃣ Categorized Grid */
.vrat-category-section {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.8rem;
    color: var(--vrat-text);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-count {
    font-size: 1rem;
    background: #EEE;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: normal;
}

.category-context {
    color: #777;
    margin-bottom: 24px;
    font-size: 1rem;
}

.vrat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.vrat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    /* Important for grid */
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid transparent;
}

.vrat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: #ffe0b2;
}

.card-header {
    margin-bottom: 15px;
}

.vrat-deity-badge {
    background: var(--vrat-saffron-light);
    color: var(--vrat-saffron);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.vrat-name {
    margin: 0;
    font-size: 1.25rem;
    color: var(--vrat-text);
}

.vrat-freq {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vrat-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

.cta-link {
    color: var(--vrat-red);
    font-weight: 600;
    font-size: 0.95rem;
}

/* 4️⃣ Related Tools */
.related-tools-block {
    background: linear-gradient(to right, #2c3e50, #4ca1af);
    padding: 40px;
    border-radius: var(--border-radius);
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

.related-tools-block h3 {
    margin-top: 0;
    margin-bottom: 30px;
}

.tools-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tool-link-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tool-link-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tool-icon {
    font-size: 1.5rem;
}

.tool-name {
    font-weight: 600;
}

/* 6️⃣ FAQ Section */
.vrat-faq {
    background: #FFF;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.vrat-faq h2 {
    text-align: center;
    margin-bottom: 30px;
}

.faq-item {
    border-bottom: 1px solid #EEE;
    margin-bottom: 15px;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    padding: 15px 0;
    list-style: none;
    /* Hide default triangle */
    position: relative;
    padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-weight: 300;
    font-size: 1.5rem;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-answer {
    padding-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

/* Detail Page specific simplified styles */
.vrat-detail-layout {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.vrat-header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff5e6, #fff);
    padding: 40px;
    border-radius: 12px;
    position: relative;
}

.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

.vrat-header h1 {
    color: #d9381e;
    margin: 10px 0;
}

.deity-badge {
    background: #d9381e;
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.vrat-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #f9f9f9;
    color: #333;
}

.tab-btn.active {
    background: #fff5e6;
    color: #d9381e;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rules-flex {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.rule-box {
    flex: 1;
    padding: 20px;
    border-radius: 12px;
}

.rule-box.allowed {
    background: #e8f5e9;
    color: #1b5e20;
}

.rule-box.restricted {
    background: #ffebee;
    color: #b71c1c;
}

.rule-box ul {
    list-style: none;
    padding: 0;
}

.rule-box li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.rule-box li:last-child {
    border-bottom: none;
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.variant-item {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #666;
}

.rules-note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    color: #0d47a1;
    margin-top: 20px;
}

/* Steps */
.vidhi-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.vidhi-steps li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
}

.vidhi-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: #ff9933;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .rules-flex {
        flex-direction: column;
    }

    .vrat-tabs {
        gap: 10px;
    }

    .tab-btn {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .search-container {
        max-width: 100%;
    }
}