/* style.css - ओरिजिनल हरा और केसरिया थीम */
:root {
    --primary-green: #2e7d32;
    --light-green: #e8f5e9;
    --saffron: #e65100;
    --bg-color: #f5f5f5;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, sans-serif; }
body { background-color: var(--bg-color); color: #333; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }

/* App Header */
header { background-color: var(--primary-green); color: white; text-align: center; padding: 15px 10px; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
header h1 { font-size: 22px; margin-bottom: 5px; }
header p { font-size: 13px; color: #c8e6c9; }

/* Navigation Menu */
nav { display: flex; overflow-x: auto; background-color: white; padding: 10px; white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,0.05); scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { text-decoration: none; color: var(--saffron); font-weight: bold; padding: 8px 16px; margin-right: 10px; border-radius: 20px; background-color: #fff3e0; transition: 0.3s; font-size: 14px;}
nav a.active-tab { background-color: var(--saffron); color: white; }
nav a:hover { background-color: #ffd54f; color: #333; }

/* Main Content Container */
.container { padding: 15px; padding-bottom: 30px; flex: 1; }
.section-card { background: white; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.section-card h2 { color: var(--primary-green); border-bottom: 2px solid var(--saffron); padding-bottom: 8px; margin-bottom: 15px; font-size: 20px; }
.section-card h3 { color: var(--saffron); font-size: 18px; margin-top: 20px; margin-bottom: 10px; }
.section-card p { font-size: 15px; margin-bottom: 10px; text-align: justify; }

/* Quote */
.quote { font-style: italic; background-color: #ffe0b2; padding: 15px; border-radius: 8px; text-align: center; font-weight: bold; color: #d84315; margin: 15px 0; font-size: 18px;}

/* Accordion (29 Rules) */
.accordion-item { border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.accordion-header { background-color: var(--light-green); padding: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; color: var(--primary-green); font-size: 15px; transition: background 0.3s;}
.accordion-header:hover { background-color: #c8e6c9; }
.accordion-icon { font-size: 20px; font-weight: bold; color: var(--saffron); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease; background: white; }
.accordion-content.open { max-height: 500px; padding: 15px; border-top: 1px solid #e0e0e0; overflow-y: auto;}
.explanation-box { margin-bottom: 10px; }
.explanation-box strong { color: #d84315; font-size: 14px; }
.explanation-box p { font-size: 14px; color: #555; margin-top: 4px; }

/* Shabad Cards */
.shabad-item { border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 15px; overflow: hidden; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.shabad-header { background-color: var(--light-green); padding: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; color: var(--primary-green); font-size: 16px; transition: background 0.3s;}
.shabad-header:hover { background-color: #c8e6c9; }
.shabad-icon { font-size: 22px; font-weight: bold; color: var(--saffron); }
.shabad-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out, padding 0.5s ease; background: white; }
.shabad-content.open { max-height: 2000px; padding: 15px; border-top: 1px solid #e0e0e0; overflow-y: auto;}
.mool-paath { font-size: 16px; font-weight: 500; color: #111; white-space: pre-line; margin-bottom: 15px; border-left: 4px solid var(--saffron); padding-left: 10px; background: #fffcf2; padding: 10px; border-radius: 0 8px 8px 0;}
audio { width: 100%; height: 40px; border-radius: 20px; outline: none; margin-bottom: 15px; }
audio::-webkit-media-controls-panel { background-color: #fff3e0; }

/* Sub Accordion (Shabad Meaning & Utility) */
.sub-accordion { border: 1px dashed #bdbdbd; border-radius: 6px; margin-bottom: 10px; overflow: hidden; }
.sub-header { background-color: #f5f5f5; padding: 10px 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: bold; color: #424242; }
.sub-icon { color: var(--primary-green); font-weight: bold; font-size: 18px; }
.sub-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease; background: #fafafa; }
.sub-content.open { max-height: 500px; padding: 12px 15px; border-top: 1px dashed #bdbdbd; font-size: 14px; color: #555; }

/* Story Specific Styles (Khejarli & Guru) */
.story-image { width: 100%; height: auto; border-radius: 8px; margin: 15px 0; box-shadow: 0 3px 6px rgba(0,0,0,0.15); display: block; }
.highlight-text { background-color: var(--light-green); padding: 12px; border-left: 4px solid var(--primary-green); margin: 15px 0; font-weight: 500; font-size: 15px; border-radius: 0 8px 8px 0; }
.story-paragraph { margin-bottom: 12px; font-size: 15px; color: #444; text-align: justify; }

/* Footer */
footer { text-align: center; padding: 20px 15px; color: white; background-color: var(--primary-green); margin-top: auto; }
.footer-company { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.footer-credits { font-size: 13px; color: #c8e6c9; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.footer-credits strong { color: #ffd54f; font-weight: normal;}