        /* --- 1. CSS Variables & Reset --- */
        :root {
            --bg-color: #f9f7f2;
            --card-bg: #ffffff;
            --text-main: #2c2c2c;
            --text-muted: #666;
            --accent-color:#990000; 
            --nav-bg: #f9f7f2; /* Same as body for seamless look, or white */
            --link-color: #428bca;
            --price-color: #e17325;
            --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
            --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
            --font-heading: 'Tiro Devanagari Marathi', serif;
            --font-body: 'Tiro Devanagari Marathi', serif;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            background-color: var(--bg-color);
            font-family: var(--font-body);
            color: var(--text-main);
            font-size: 1.1rem;
            line-height: 1.6;
            /* IMPORTANT: Add padding to top equal to header height to prevent overlap */
            padding-top: 120px; 
        }

        section {
            padding: 1rem;
        }

        a {
            color: var(--link-color);
            text-decoration: none;
        }
        /* --- 2. Sticky Navigation Styles --- */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: var(--nav-bg);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 2rem;
            z-index: 1000;
            transition: all 0.3s ease; /* Smooth shrinking animation */
            border-bottom: 1px solid transparent;
        }

        /* State: Scrolled Down (Shrunk) */
        .navbar.scrolled {
            padding: 0.5rem 2rem;
            background-color: #ffffff; /* Slight background change for contrast */
            box-shadow: var(--shadow-sm);
            border-bottom: 1px solid #eee;
        }

        .logo {
            font-family: var(--font-heading);
            font-size: 2rem;
            font-weight: 700;
            color: var(--accent-color);
            text-decoration: none;
            transition: font-size 0.3s ease;
        }

         .logo img{ height: 6rem; width: auto; vertical-align: middle;}

        .navbar.scrolled .logo img{
            width: 3rem; /* Logo shrinks */
            height: auto
        }

        .nav-links {
            list-style: none;
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--link-color);
            font-weight: 700;
            font-size: 1rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            transition: color 0.2s;
        }

        .nav-links a:hover {
            color: var(--accent-color);
        }

        /* Hamburger Icon (Hidden on Desktop) */
        .menu-toggle {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
            background: none;
            border: none;
            color: var(--text-main);
        }

        .page-title {
            display: none;
        }

        /* --- 3. Hero / Intro Section --- */
        .hero {
            text-align: center;
            padding: 2rem 1rem 2rem 1rem;
        }
        .hero h1 {
            font-family: var(--font-heading);
            font-size: 3rem;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
        }
        .hero p { color: var(--text-muted); font-style: italic; }

        .hero img.book-cover {
            box-shadow: var(--shadow-md);
            border-radius: 8px;
            transition: transform 0.3s ease;
        }

        /* --- 4. Grid & Cards (Previous CSS) --- */
        .book-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto 4rem auto;
            padding: 0 2rem;
        }
        .features-grid {
            display: grid;
            grid-template-columns: none; 
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto 4rem auto;
            padding: 0 2rem;
        }
        .references-grid {
            display: grid;
            grid-template-columns: none; 
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto 4rem auto;
            padding: 0 2rem;
            scroll-margin-top: 10rem;
        }
        .card {
            background: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

        .badge {
            position: absolute; top: 10px; right: 10px;
            background-color: #e17325; color: white;
            padding: 4px 10px; font-size: 0.9rem;
            text-transform: uppercase; font-weight: normal;
            border-radius: 4px; z-index: 10;
            letter-spacing: 0.05rem;
        }

        .card-image {
            width: 100%; height: 350px;
            background-color: #d6d6d1; overflow: hidden;
        }

        .card-image img {
            width: 100%; height: 100%; object-fit: contain;
            transition: transform 0.5s ease;
        }
        .card:hover .card-image img { transform: scale(1.05); }
        .card-header { display: flex; border-bottom: 1px dashed #eee; gap: 1rem; }

        .card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; text-align: justify;}
        .author { color: var(--accent-color); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
        .title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.5rem; line-height: 1.7rem; color: var(--accent-color)}
        .title a {color: var(--link-color); text-decoration: none;}
        .section-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--accent-color); margin: 0.5rem auto 1rem auto; text-align: center; }
        .details { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }
        .card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 1rem; }
        .price { font-weight: 700; font-size: 1.25rem; color: var(--price-color); }
        .note { font-size: 1rem; color: var(--text-muted); margin-top: 1rem; }
        .card-header .title {
            font-size: 1.2rem;
            margin: 0;
            line-height: 1.2rem;
        }
        .card-header .thumb {
            height: 100px;
            width: auto;
            background: #ffffff;
            border-radius: 4px;
            overflow: hidden;
            display: inline-block;
        }
        .card-header .thumb img {
            width: auto;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        #meaning, #secret, #references {
            scroll-margin-top: 8rem;
        }
        
        input[type="text"], input[type="number"] {
            width: 100%; padding: 4px;
            border: 1px solid #aaa; border-radius: 4px;
            font-size: 1rem; font-family: var(--font-body);
            height: 1.7rem; box-shadow: var(--shadow-sm);
        }

        .btn {
            background-color: transparent; border: 1px solid var(--text-main);
            padding: 6px 12px; cursor: pointer; font-family: var(--font-body);
            color: var(--link-color); font-size: 1rem;
            font-weight: bold; transition: all 0.2s ease; border-radius: 4px;
        }
        .btn:hover { background-color: #990000; color: white; }

        #dynamic {
          text-align: center;
          padding: 4rem 0;
        }

        /* --- 5. Mobile Responsiveness --- */
        @media (max-width: 768px) {
            body { padding-top: 100px; } /* Adjust for smaller initial header */
            
            .menu-toggle { display: block; }

            .logo {
                    display: block;
                    width: max-content;
                    margin: auto;
            }

            .logo img{ height: 4rem; width: auto; margin:auto}
            .hero img.book-cover {
                width: 70%; height: auto;
            }

            .navbar.scrolled .logo {
                margin: 0;
            }            

            .navbar.scrolled .logo img{
                width: 2rem; /* Logo shrinks */
                height: auto;
                vertical-align: middle;
            }            

            .navbar.scrolled .page-title {
                display: inline-block;
                width: max-content;
                margin: auto;
            }

            .navbar.scrolled #page-subtitle {
                display: none;
            }

            .nav-links {
                display: none; /* Hidden by default on mobile */
                position: absolute;
                top: 100%; /* Pushes it right below the header */
                left: 0;
                width: 100%;
                background-color: #fff;
                flex-direction: column;
                align-items: center;
                padding: 2rem 0;
                border-bottom: 1px solid #eee;
                box-shadow: var(--shadow-md);
            }

            .nav-links.active {
                display: flex; /* Shown when JS toggles 'active' class */
            }

            .hero h1 { font-size: 2rem; }
            .hero img { width: 100%; height: auto; }
            .book-grid { padding: 0 1rem; }
            .features-grid { padding: 0 1rem; }
            .references-grid { padding: 0 1rem; }
        }

        
        .flourish-header {
        height: 50px;
        background-image: url('../images/card-flourish-top.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin: 20px auto;
        }

        .flourish-divider {
        height: 10px;
        background-image: url('../images/flourish-divider.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin: 20px auto;
        }

        .flourish-footer {
        height: 50px;
        background-image: url('../images/card-flourish-bottom.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin: 20px auto;
        }

        .flourish-list {
        /* text-align: center; */
        list-style: none;
        }

        .flourish-list-item {
        padding: 0px 0px 0px 30px;
        background-image: url('../images/flourish-bullet-left.png');
        background-size: auto;
        background-repeat: no-repeat;
        background-position: left;
        display: block;
        margin: 5px auto;
        text-align: left;
        }

        .flourish-list-item a {
        color:var(--link-color);
        }

        .flourish-list-item a:hover, .flourish-list-item a:active {
        color: orange;
        }

        /* --- 6. Book Thumbnails List (Responsive) --- */
        .book-list {
            max-width: 1200px;
            margin: 0 auto 2rem;
            padding: 0 2rem;
        }

        .features {
            max-width: 1200px;
            margin: 0 auto 2rem;
            padding: 0 0.5rem;
        }

        .thumbnail-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
            gap: 1rem;
        }

        .feature-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(0px, 1fr));
            gap: 0.5rem;
            margin: 0.5rem auto;
            max-width: 800px;

        }

        .list-item {
            display: flex;
            gap: 1rem;
            align-items: center;
            background: var(--card-bg);
            padding: 0.85rem 1rem;
            border-radius: 8px;
            box-shadow: var(--shadow-sm);
            text-decoration: none;
            color: inherit;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }
        .reference-item {
            align-items: center;
            background: var(--card-bg);
            padding: 0.85rem 1rem;
            border-radius: 8px;
            box-shadow: var(--shadow-sm);
            text-decoration: none;
            color: inherit;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }
        .feature-item {
            gap: 1rem;
            align-items: center;
            background: var(--card-bg);
            padding: 1rem 1rem;
            border-radius: 8px;
            box-shadow: var(--shadow-sm);
            text-decoration: none;
            color: inherit;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }

        .list-item:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-md);
        }

        .thumb {
            flex: 0 0 80px;
            height: 100px;
            background: #eaeaea;
            border-radius: 4px;
            overflow: hidden;
            display: inline-block;
        }

        .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .meta { display: flex; flex-direction: column; min-width: 0; }

        .meta .author {
            color: var(--link-color);
            font-size: 1.2rem;
            font-weight: 700;
            text-transform: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .meta .jump {
            color: var(--link-color);
            font-size: 1.2rem;
            font-weight: 700;
            text-transform: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
        }

        .meta .title {
            font-family: var(--font-heading);
            color: var(--accent-color);
            font-size: 1.05rem;
            margin-top: 0.25rem;
            line-height: 1.1;
/*             white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis; */
        }

        @media (max-width: 768px) {
            .book-list { padding: 0 1rem; }
            .list-item { padding: 0.6rem; }
            .thumb { flex: 0 0 60px; height: 80px; }
            .thumbnail-list { gap: 0.75rem; }
        }

        /* --- Adhyay Content Styles --- */

        .viewSelector {
          width: 99%;
            margin: auto;
            display: flex;
            justify-content: space-evenly;
        }

        .viewSelector a {
          border-radius: 5px;
          display: inline-block;
          padding: 5px;
        }

        .viewSelector a.current{
          background-color: #ffe57d;
          display: inline-block;
        }

        .subnav {
            display: flex;
            justify-content: space-evenly;
            align-items: center;
        }
        
        .ovi {
          font-family: 'Tiro Devanagari Marathi', serif;
          font-size: 1.2rem;
          font-weight: 100;
          line-height: 1.8rem;  
          padding: 3px 0px;
          color: #000;
          display: block;
          text-align: center;
        }
        a  .ovi {
          color: #3190f5;
        }
        a .ovi:hover, a .ovi:active {
          color: #ff8400;
        }

        .second {
            border-bottom: 1px dashed #ddd;
            margin-bottom: 1rem;
        }

        .ovi a {
            color: var(--link-color);
        }

        .referenceOvi a {
          display: inline-block;
          padding: 3px;
          border-bottom: 1px dashed #ddd;
        }


        .referenceOvi a:hover {
          color: #990000;
        }


        .referenceOvi a:visited {
          background-color: #eee;
        }

        .ovi-result {
          margin: 7px 0;
          padding: 7px 0;
          border-bottom: 1px dashed #ddd;
          font-size: 1.2rem;
        }
        .ovi-result a {
          color: var(--link-color);
          font-size: 2rem;
          line-height: 3rem;

        }

        .ovi-result a:hover, .ovi-result a:active{
          color: #ff8400;

        }

        .shloka {font-family: 'Tiro Devanagari Marathi', serif; font-size: 1.2rem; font-weight: 600;padding: 3px 0;display: block;color: var(--text-main);margin: 0 auto;text-align: center;} 
        .shloka a:hover, .shloka a:active {color: #ff8400;}

        .card-content .shloka {
          font-size: 1.0rem;
          line-height: 1.2rem;
          color: var(--price-color);
        }

        .source {
          font-size: 1.0rem;
          padding: 3px 0;
          display: block;
          color: var(--text-muted);
          text-align: right;
          font-style: italic;
        }
        .narration, .narration a {
          font-family: 'Tiro Devanagari Marathi', serif;
          font-weight: 300;
          font-size: 1.2rem;
          padding: 5px;
          display: block;
          color: #ff8400;
          text-align: center;
          margin: 1rem 0 0 0;
        }

        .narrator {
            display: block;
            text-align: center;
            height: 100px;
            width: auto;
            /* padding: 1rem;
            margin: 1rem auto; */
        }

        .introduction {
          font-family: 'Tiro Devanagari Marathi', serif;
          font-size: 1.4rem;
          font-weight: 600;
          padding: 5px;
          display: block;
          color: #889fb9;
          text-align: center;
        }

        .conclusion {
          font-family: 'Tiro Devanagari Marathi', serif;
          font-size: 1.4rem;
          font-weight: 600;
          padding: 10px 5px;
          display: block;
          color: #889fb9;
          text-align: center;
        }

        .gita-conclusion {
          font-family: 'Tiro Devanagari Marathi', serif;
          font-size: 1.4rem;
          font-weight: 600;
          padding: 10px 5px;
          display: block;
          color: #889fb9;
          text-align: center;
        }
        .counts {
          font-family: 'Tiro Devanagari Marathi', serif;
          font-size: 1.4rem;
          font-weight: 600;
          padding: 5px;
          display: block;
          color: #000000;
          text-align: center;
        }

        .shabda {
            font-weight: bold;
        }

        #anvay {
            display: grid;
            grid-auto-columns: auto;
            grid-template-columns: 40% 60%;
        }