/* =====================
   Reset & Base - AUTHENTIC HINDU THEME
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Noto Serif Devanagari', 'Noto Sans', sans-serif;
    background-color: #fdf6ee; /* Warm paper tone */
    color: #2c0b00; /* Dark brown text, not harsh black */
    line-height: 1.6;
    font-size: 16px;
    background-image: radial-gradient(#ffe0b2 1px, transparent 1px);
    background-size: 20px 20px;
}

a { color: #c0392b; text-decoration: none; transition: color 0.2s; }
a:hover { color: #d35400; text-decoration: underline; }

.container {
    max-width: 900px; /* Narrower reading width looks more "book-like" */
    margin: 0 auto;
    padding: 0 16px;
}

/* =====================
   Top Invocation Strip
   ===================== */
.top-invocation {
    background: #800000; /* Kumkum Maroon */
    color: #ffd700; /* Gold */
    text-align: center;
    font-size: 0.9rem;
    padding: 6px 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #b7950b;
}

/* =====================
   Header
   ===================== */
.site-header {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid #e6ccb2;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #d35400;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-om {
    font-size: 2rem;
    color: #800000;
    line-height: 1;
}

.header-mission {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-style: italic;
    border-left: 3px solid #f39c12;
    padding-left: 10px;
}

.shloka-box {
    margin-top: 10px;
    background: #fff8e1;
    color: #800000;
    text-align: center;
    padding: 4px;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px dashed #d35400;
    display: none; /* Show on desktop only mostly */
}
@media(min-width: 600px) {
    .shloka-box { display: block; width: 100%; }
}

/* =====================
   Navigation
   ===================== */
.main-nav {
    background: #e67e22; /* Saffron */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.main-nav .container {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.main-nav a {
    color: #fff;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
    background: #d35400;
    border-bottom-color: #ffd700;
    text-decoration: none;
}

/* =====================
   Hero Section
   ===================== */
.hero-card {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffcc80;
    border-radius: 8px;
    padding: 6px; /* Frame effect */
    margin: 30px 0;
    box-shadow: 0 10px 20px rgba(211, 84, 0, 0.1);
}
.hero-inner {
    border: 2px solid #fff;
    border-radius: 6px;
    padding: 30px 20px;
    text-align: center;
}
.hero-date {
    display: inline-block;
    background: #fff;
    color: #d35400;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.hero-inner h1 {
    font-size: 2.2rem;
    color: #800000;
    margin-bottom: 15px;
    line-height: 1.2;
}
.hero-inner p {
    font-size: 1.1rem;
    color: #5d4037;
    margin-bottom: 25px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.btn-primary {
    background: #c0392b;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 0 #922b21;
    transition: transform 0.1s, box-shadow 0.1s;
}
.btn-primary:active {
    transform: translateY(4px);
    box-shadow: none;
}
.btn-primary:hover { text-decoration: none; color: #fff; background: #a93226; }

.trust-badge {
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =====================
   Section Styling
   ===================== */
.section-block {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #f0e0d0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.section-header {
    text-align: center;
    margin-bottom: 25px;
    color: #d35400;
    font-family: 'Noto Serif Devanagari', serif;
}
.ornament {
    color: #f39c12;
    font-size: 1.5rem;
    padding: 0 10px;
    vertical-align: middle;
}
.section-header h2 {
    display: inline-block;
    font-size: 1.6rem;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 5px;
    color: #800000;
}

/* =====================
   Featured Card
   ===================== */
.featured-card {
    background: #fff8e1;
    border-left: 5px solid #d35400;
    padding: 20px;
    border-radius: 4px;
}
.featured-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.small-note { font-size: 0.9rem; color: #7f8c8d; font-style: italic; margin-top: 5px; }

.btn-secondary {
    display: inline-block;
    border: 2px solid #d35400;
    color: #d35400;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}
.btn-secondary:hover { background: #d35400; color: #fff; text-decoration: none; }


/* =====================
   Deity Grid
   ===================== */
.deity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}
.deity-box {
    background: #fff;
    border: 1px solid #ebdccb;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.deity-box:hover {
    transform: translateY(-3px);
    border-color: #d35400;
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.1);
    text-decoration: none;
}
.deity-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid #f39c12; /* Golden border */
    padding: 2px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.deity-box:hover .deity-img {
    transform: scale(1.05);
    border-color: #d35400;
}
.deity-name { font-weight: 700; color: #800000; font-size: 1.1rem; }
.deity-desc { font-size: 0.8rem; color: #7f8c8d; margin-top: 4px; }

/* =====================
   Quick Links
   ===================== */
.block-heading-simple {
    font-size: 1.4rem;
    color: #5d4037;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}
.link-group h4 {
    color: #d35400;
    margin-bottom: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.link-group ul { list-style: none; padding-left: 0; }
.link-group li {
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #eee;
}
.link-group a {
    color: #2c3e50;
    font-size: 0.95rem;
    display: block;
}
.link-group a:hover { color: #d35400; padding-left: 5px; }

.btn-text {
    color: #d35400;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px dashed #d35400;
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
}
.btn-text:hover { background: #fff3e0; text-decoration: none; }

/* =====================
   Tools / Community (Redesigned)
   ===================== */
.community-block {
    background: #fffbf0; /* Very light cream */
    border: 1px solid #f3e5ab;
    padding: 30px 20px;
}
.community-block h3 {
    text-align: center;
    color: #800000;
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    width: 100%;
}
.community-block h3::after {
    content: "🛠️";
    font-size: 1rem;
    position: absolute;
    top: -15px;
    right: 50%;
    transform: translateX(50%);
}

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

.tool-card-new {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: center;
    gap: 20px;
    border-left: 5px solid #e67e22; /* Saffron accent */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.tool-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.15);
}

/* Decorative background pattern for tool cards */
.tool-card-new::before {
    content: "";
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #fff3e0 0%, transparent 70%);
    opacity: 0.6;
    z-index: 0;
}

.tool-icon-box {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff8e1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffe0b2;
    z-index: 1;
}

.tool-img {
    width: 45px;
    height: 45px;
    object-fit: contain; /* Prevent distortion */
    border: none;
    border-radius: 0; 
}

/* Specific adjustment for round images like Mala */
.tool-img.round-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e67e22;
}


.tool-info {
    flex-grow: 1;
    z-index: 1;
}

.tool-info strong {
    display: block;
    color: #5d4037;
    font-size: 1.2rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.tool-info p {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 12px;
    line-height: 1.4;
}

.btn-tool-action {
    display: inline-block;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #fff;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(211, 84, 0, 0.2);
    transition: all 0.2s;
    text-align: center;
}

.btn-tool-action:hover {
    background: linear-gradient(135deg, #d35400 0%, #a04000 100%);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.status-badge {
    display: inline-block;
    background: #f1f2f6;
    color: #7f8c8d;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Mobile specific tweaks for tools */
@media (max-width: 600px) {
    .tool-cards { grid-template-columns: 1fr; }
    .tool-card-new { padding: 15px; }
    .tool-icon-box { width: 60px; height: 60px; }
    .tool-img { width: 35px; height: 35px; }
    .tool-img.round-img { width: 100%; height: 100%; }
}

/* =====================
   Share Section (Emotional)
   ===================== */
.share-section-emotional {
    background: #e74c3c; /* Strong Red */
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}
.share-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.share-desc {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.wa-share-big {
    display: inline-block;
    background: #25D366;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.wa-share-big:hover { transform: scale(1.05); text-decoration: none; background: #20bd5a; color: #fff; }
.wa-icon { font-size: 1.2rem; vertical-align: middle; margin-right: 5px; }

/* =====================
   Footer
   ===================== */
.site-footer-new {
    background: #2c0b00; /* Deep coffee brown */
    color: #dcdde1;
    padding: 40px 0 20px;
    text-align: center;
    border-top: 4px solid #d35400;
}
.om-footer {
    font-size: 3rem;
    color: #5d4037;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Noto Serif Devanagari', serif;
}
.footer-links { margin: 15px 0; }
.footer-links a { color: #f39c12; }
.footer-disclaimer { font-size: 0.8rem; opacity: 0.6; margin-top: 20px; }

/* =====================
   Responsive
   ===================== */
@media(max-width: 600px) {
    .header-content { justify-content: center; text-align: center; }
    .header-mission { border-left: none; border-top: 2px solid #f39c12; padding-top: 5px; padding-left: 0; width: 100%; }
    .hero-inner h1 { font-size: 1.8rem; }
}
/* =====================
   Articles Pages (Shared)
   ===================== */
.en-trans { background: #fffbf5; border-left: 3px solid #c0392b; padding: 8px 12px; margin: 8px 0; font-size: 0.95rem; color: #333; }
.roman { font-style: italic; color: #666; font-size: 0.9rem; line-height: 1.8; }


/* =====================
   Mobile Optimizations (Responsive)
   ===================== */
@media (max-width: 600px) {
    /* Improve Container usage */
    .container {
        padding: 0 12px;
        width: 100%;
    }

    /* Adjust Navigation for touch */
    .main-nav .container {
        gap: 10px;
        justify-content: space-between;
    }
    .main-nav a {
        padding: 10px 8px;
        font-size: 0.9rem;
        flex: 1; /* Distribute space evenly */
        text-align: center;
    }

    /* Hero Section Tweaks */
    .hero-card { margin: 20px 0; }
    .hero-inner { padding: 20px 15px; }
    .hero-inner h1 { font-size: 1.8rem; } /* Smaller heading */
    .hero-inner p { font-size: 1rem; margin-bottom: 20px; }
    
    .btn-primary {
        width: 100%; /* Full width button on mobile */
        text-align: center;
        padding: 14px;
    }

    /* Deity Grid - Ensure 2 columns on small screens */
    .deity-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
        gap: 10px;
    }
    .deity-box { padding: 10px 5px; }
    .deity-img { width: 60px; height: 60px; } /* Smaller images */
    .deity-name { font-size: 1rem; }
    .deity-desc { font-size: 0.75rem; }

    /* Tool Cards stacking */
    .tool-cards {
        grid-template-columns: 1fr; /* Stack vertically */
    }
    
    /* Section Headers */
    .section-header h2 { font-size: 1.4rem; }
    
    /* Share Button */
    .wa-share-big {
        font-size: 1rem;
        padding: 12px;
        width: 100%;
        display: block;
    }
}
