.census-page-section{background:#f8fafc;padding:50px 0 75px;min-height:80vh}.census-section-header{text-align:center;max-width:720px;margin:0 auto 40px}.census-badge-sub{display:inline-block;background:#ecfdf5;color:#16a34a;font-weight:700;font-size:12px;padding:5px 14px;border-radius:30px;letter-spacing:.05em;text-transform:uppercase;margin-bottom:10px}.census-page-title{font-size:2.2rem;font-weight:800;color:#0b1f3a;margin-bottom:10px;line-height:1.25}.census-page-subtitle{font-size:1rem;color:#64748b;margin:0;line-height:1.6}.census-grid-modern{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;align-items:stretch}.census-card-custom{background:#ffffff;border-radius:22px;border:1px solid #edf2f7;box-shadow:0 6px 20px rgba(15,23,42,0.06);overflow:hidden;display:flex;flex-direction:column;height:100%;transition:transform .3s ease,box-shadow .3s ease;position:relative}.census-card-custom:hover{transform:translateY(-5px);box-shadow:0 16px 36px rgba(15,23,42,0.12)}.census-card-media{position:relative;height:210px;overflow:hidden;background:#f1f5f9;display:flex;align-items:center;justify-content:center}.census-media-link{width:100%;height:100%;display:flex;text-decoration:none}.census-card-img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}.census-card-custom:hover .census-card-img{transform:scale(1.06)}.census-card-noimg{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f1f5f9;color:#94a3b8;font-size:13px;font-weight:600;gap:8px;text-decoration:none}.census-noimg-icon{color:#94a3b8;opacity:0.8}.census-highlight-badge{position:absolute;top:14px;left:14px;z-index:2;background:#facc15;color:#854d0e;font-size:11.5px;font-weight:700;padding:4px 12px;border-radius:50px;box-shadow:0 2px 8px rgba(0,0,0,0.15);display:inline-flex;align-items:center;gap:4px}.census-wave{position:absolute;bottom:-1px;left:0;width:100%;height:42px;z-index:1;pointer-events:none;display:block}.census-card-body{padding:22px 24px 24px;display:flex;flex-direction:column;flex-grow:1}.census-card-title{font-size:1.2rem;font-weight:800;color:#0b1f3a;line-height:1.35;margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:50px}.census-card-title a{color:inherit;text-decoration:none;transition:color .2s ease}.census-card-title a:hover{color:#16a34a}.census-year-pill{display:inline-flex;align-items:center;gap:6px;background:#f0fdf4;color:#166534;font-size:12.5px;font-weight:600;padding:4px 12px;border-radius:50px;margin-bottom:12px;align-self:flex-start}.census-year-icon{display:inline-flex;align-items:center}.census-card-summary{font-size:14px;color:#475569;line-height:1.62;margin:0 0 18px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:68px;flex-grow:1}.census-action-row{display:flex;align-items:center;margin-top:auto;padding-top:4px;width:100%}.census-btn-view{width:100%;justify-content:center;background:linear-gradient(135deg,#16a34a 0%,#15803d 100%);color:#ffffff!important;font-size:14px;font-weight:700;border-radius:50px;padding:11px 20px;display:inline-flex;align-items:center;gap:8px;text-decoration:none;box-shadow:0 4px 12px rgba(22,163,74,0.25);transition:all .25s ease}.census-btn-view:hover{background:linear-gradient(135deg,#15803d 0%,#166534 100%);transform:translateY(-2px);box-shadow:0 6px 18px rgba(22,163,74,0.38);color:#ffffff!important;text-decoration:none}.census-btn-view .btn-arrow{transition:transform .2s ease}.census-btn-view:hover .btn-arrow{transform:translateX(3px)}.census-btn-share{width:38px;height:38px;border-radius:50%;background:#f0fdf4;border:1.5px solid #bbf7d0;color:#16a34a;display:inline-flex;align-items:center;justify-content:center;transition:all .2s ease;flex-shrink:0;text-decoration:none}.census-btn-share:hover{background:#25d366;border-color:#25d366;color:#ffffff;transform:translateY(-2px);box-shadow:0 4px 12px rgba(37,211,102,0.35)}.census-empty-state{grid-column:1/-1;width:100%}.census-pagination-wrap{display:flex;justify-content:center;margin-top:40px}@media(max-width:1024px){.census-grid-modern{grid-template-columns:repeat(2,1fr);gap:20px}}@media(max-width:640px){.census-grid-modern{grid-template-columns:1fr;gap:18px}.census-page-title{font-size:1.75rem}.census-page-section{padding:35px 0 55px}}body{background:linear-gradient(135deg,#eef2f7 60%,#e6fdf7 100%);font-family:'Segoe UI','Roboto',sans-serif;min-height:100vh}.book-ui-container{max-width:1250px;margin:40px auto;background:#fff;border-radius:20px;box-shadow:0 10px 40px rgba(0,0,0,0.08);overflow:hidden;padding-bottom:20px}.back-link{text-decoration:none;font-size:15px;color:#2f855a;font-weight:600;margin-bottom:20px;display:inline-block;margin-left:48px;margin-top:24px}.back-link:hover{text-decoration:underline}.book-ui-header{display:flex;align-items:flex-start;gap:32px;padding:40px 48px 30px 48px;background:linear-gradient(90deg,#eafff2 50%,#c7f5f1 100%);border-bottom:1px solid #e4f7f5}.book-ui-cover{width:220px;height:300px;background:#f1f5f9;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 25px rgba(0,0,0,0.10);flex:0 0 auto}.book-ui-cover img{width:100%;height:100%;object-fit:cover;display:block}.book-ui-title{font-size:2.3rem;font-weight:800;margin-bottom:12px;color:#14532d}.book-ui-meta .meta-line{font-size:1.1rem;color:#374151;margin-bottom:10px;font-weight:600}.book-ui-meta{flex:1;min-width:0}.book-ui-actions{margin:0 0 24px 0;padding:0 48px}.book-ui-actions .btn-success{background:linear-gradient(90deg,#16a34a 50%,#2dd4bf 100%);border:none;color:#fff;font-weight:600;font-size:1.05rem;border-radius:10px;padding:10px 20px;display:inline-flex;align-items:center;gap:8px;box-shadow:0 4px 12px rgba(22,163,74,0.15);transition:all 0.25s}.book-ui-actions .btn-success:hover{background:#15803d;transform:translateY(-2px)}.flipbook-ui-section{display:flex;gap:32px;padding:0 32px 32px 32px;flex-wrap:wrap}.summary-section,.highlight-list-section{flex:1 1 400px;background:#fdfdfd;border-radius:16px;padding:24px 28px;box-shadow:0 5px 20px rgba(0,0,0,0.05)}.summary-section h5,.highlight-list-section h5{font-weight:700;margin-bottom:16px;font-size:1.2rem;color:#166534}.summary-section p{color:#4b5563;line-height:1.7;font-size:1.05rem;text-align:justify}.chapter-timeline{display:flex;flex-direction:column;gap:24px}.chapter-card{background:#ffffff;border:1px solid #e5e7eb;border-left:5px solid #16a34a;border-radius:12px;padding:18px 22px;box-shadow:0 3px 12px rgba(0,0,0,0.04);transition:0.3s ease}.chapter-card:hover{background-color:#f0fdf4;transform:translateX(4px)}.chapter-heading{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:10px}.chapter-number{background:#dcfce7;color:#15803d;font-weight:700;padding:4px 10px;border-radius:8px;font-size:0.95rem}.chapter-title{font-size:1.1rem;font-weight:700;color:#1e3a8a}.chapter-info{font-size:0.95rem;color:#6b7280;margin-bottom:10px}.chapter-pages{list-style:none;padding-left:0;margin:0}.chapter-pages li{background:#f9fafb;padding:8px 12px;border-radius:8px;font-size:0.95rem;margin-bottom:6px;border-left:4px solid #34d399;color:#374151}

/* Responsive Caste Census Detail styles */
.highlight-pages-list{list-style:none;padding-left:0;margin:0;display:flex;flex-direction:column;gap:10px}
.highlight-page-item{display:flex;align-items:flex-start;gap:10px;background:#ffffff;border:1px solid #e2e8f0;border-radius:10px;padding:10px 14px}
.highlight-page-desc{font-size:0.95rem;color:#475569;line-height:1.5}
@media(max-width:991px){
.book-ui-container{margin:20px 14px;border-radius:16px}
.book-ui-header{padding:25px 20px;gap:20px}
.book-ui-actions{padding:16px 20px}
.flipbook-ui-section{flex-direction:column;padding:10px 20px 24px;gap:20px}
.back-link{margin-left:20px;margin-top:16px}
}
@media(max-width:640px){
.book-ui-header{flex-direction:column;align-items:center;text-align:center}
.book-ui-cover{width:150px;height:210px;margin:0 auto}
.book-ui-title{font-size:1.55rem}
.book-ui-actions{flex-direction:column;width:100%}
.book-ui-actions .btn{width:100%;justify-content:center}
.summary-section,.highlight-list-section{padding:18px 16px;border-radius:12px}
}

.book-ui-container,.flipbook-ui-section,.summary-section,.highlight-list-section,.chapter-card{max-width:100%;min-width:0;overflow:hidden;overflow-wrap:break-word;word-wrap:break-word;box-sizing:border-box}.book-ui-desc,.census-summary,.chapter-info,.highlight-page-desc{max-width:100%;overflow-wrap:break-word;word-wrap:break-word}.book-ui-desc *,.census-summary *,.chapter-info *,.highlight-page-desc *{max-width:100% !important;box-sizing:border-box}.census-summary table,.chapter-info table{display:block;width:100% !important;overflow-x:auto}
