೭ ನಿಮಿಷ ಓದಲಾಗಿದೆ
An error occurred while processing the template.
The following has evaluated to null or missing:
==> languagePrefix [in template "48914885574227#20121#T-SBIL-CORP-BLOG-ARTICLE" at line 230, column 32]
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${languagePrefix} [in template "48914885574227#20121#T-SBIL-CORP-BLOG-ARTICLE" at line 230, column 30]
----
1<!-- Blogs Inside Page -->
2<!-- Dev Code -->
3<#assign faqList = questionPairs.getSiblings() />
4<#assign buyNowToken = (languageUtil.get(locale, "sbil-corp-buy-now"))?js_string />
5<#assign metaTitle = layout.getHTMLTitle(locale) />
6<#assign metaDescription = layout.getDescription(locale) />
7<#assign logoURL =
8 themeDisplay.getPortalURL()
9 + "/documents/d/sbil/sbi-life-25-years-logo"
10/>
11
12<#assign desktopImageURL =
13 themeDisplay.getPortalURL()
14 + articleDetailBanner.getData()
15 />
16
17
18<#assign createdDate=.vars["reserved-article-create-date"].data?date("EEE, dd MMM yyyy HH:mm:ss Z") />
19<#assign day=createdDate?string("d")?number />
20<#assign suffix=(day==1 || day==21 || day==31)?then("st", (day==2 || day==22)?then("nd", (day==3 ||
21 day==23)?then("rd", "th" ))) />
22<#assign tableOfContentsToken = (languageUtil.get(locale, "sbil-table-of-contents"))?js_string />
23
24<#assign assetCategoryService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryService") />
25<#assign jsonFactoryUtil = staticUtil["com.liferay.portal.kernel.json.JSONFactoryUtil"] />
26
27<#assign currentArticleId=.vars["reserved-article-id"].data />
28<#assign currentArticleResourcePrimKey=.vars["reserved-article-resource-prim-key"].data />
29
30<#assign articleCategories=assetCategoryService.getCategories("com.liferay.journal.model.JournalArticle",
31 currentArticleResourcePrimKey?number) />
32
33<#assign articleCategoryId='' />
34<#assign articleCategoryName='' />
35<#if articleCategories?has_content>
36 <#assign articleCategory=articleCategories[0] />
37 <#assign articleCategoryName=articleCategory.getTitle(locale) />
38 <#assign articleCategoryId=articleCategory.getCategoryId() />
39</#if>
40
41<#assign metaDescription = layout.getDescription(locale) />
42
43<#assign pageURL = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()>
44
45<#assign articleDetailBannerURL =
46 themeDisplay.getPortalURL()
47 + articleDetailBanner.getData()
48/>
49
50<#assign publishedDateISO = createdDate?string("yyyy-MM-dd") />
51
52<#assign logoURL =
53 themeDisplay.getPortalURL()
54 + "/documents/d/sbil/sbi-life-25-years-logo"
55/>
56
57<div id="currentBlogPrimKeyDiv" currentBlogResourcePrimKey="${currentArticleResourcePrimKey}"></div>
58
59 <div class="Article-Inside-Page">
60 <div>
61 <#if (articleDetailBanner.getData())?? && articleDetailBanner.getData() !="" && articleDetailBannerMobile.getData()?? && articleDetailBannerMobile.getData() !="">
62 <div class="Article-Detail-Banner-Img-Wrapper">
63 <picture>
64 <source media="(max-width: 768px)"
65 srcset="${articleDetailBannerMobile.getData()}"
66 alt="${articleDetailBannerMobile.getAttribute("alt")}">
67 <source media="(min-width: 769px)"
68 srcset="${articleDetailBanner.getData()}"
69 alt="${articleDetailBanner.getAttribute("alt")}">
70 <img class="Article-Detail-Banner-Img"
71 src="${articleDetailBanner.getData()}"
72 alt="${articleDetailBanner.getAttribute("alt")}"
73 data-fileentryid-desktop="${articleDetailBanner.getAttribute("fileEntryId")}"
74 data-fileentryid-mobile="${articleDetailBannerMobile.getAttribute("fileEntryId")}" />
75 </picture>
76 <div class="Article-Detail-Banner-Img-Read-Time">
77 <svg class="Clock-Icon" fill="none" focusable="false" role="presentation">
78 <use class="Clock-Icon-Use" xlink:href="${siteSpritemap}#sbil-articles-read-time-clock" />
79 </svg>
80 <span>${articleReadingTime.getData()}</span>
81 </div>
82 <div class="Article-Detail-Banner-Img-Tag">
83 ${articleCategoryName}
84 </div>
85 </div>
86 </#if>
87
88 </div>
89
90 <div class="Article-Content">
91 <div class="Article-Content-Title-Section">
92 <time class="Article-Content-Title-Section-Date"
93 datetime="${createdDate?string('yyyy-MM-dd')}">
94 ${day?string("00")}${suffix} ${createdDate?string("MMM yyyy")}
95 </time>
96 <h1 class="Article-Content-Title-Section-Title">
97 <#if (articleTitle.getData())??>
98 ${articleTitle.getData()}
99 </#if>
100 </h1>
101 </div>
102 <div class="Article-Content-Container">
103 <div class="Article-SideBar Article-SideBar-Table-Open" id="Article-SideBar">
104 <button class="Article-SideBar-Title-Container-Button" id="Article-SideBar-Title-Container-Button" aria-controls="Article-SideBar-Table">
105 <h3 class="Article-SideBar-Title">${tableOfContentsToken}</h3>
106 <svg class="Article-SideBar-Title-Down-Arrow-Icon" fill="none" focusable="false" role="presentation">
107 <use xlink:href="${siteSpritemap}#sbil-article-sidebar-title-down-arrow-icon" />
108 </svg>
109 </button>
110 <div class="Article-SideBar-Table" aria-labelledby="Article-SideBar-Title-Container-Button" role="region" id="Article-SideBar-Table">
111 <#if articleSubTitle.getSiblings()?has_content>
112 <#list articleSubTitle.getSiblings() as cur_articleSubTitle>
113 <#if (cur_articleSubTitle.articleMenuTitleText.getData())??>
114 <#if (cur_articleSubTitle?index > 0)>
115 <div class="seperator-horizontal"></div>
116 </#if>
117 <a href="#${cur_articleSubTitle.articleMenuTitleText.getData()}"
118 class="Article-SideBar-Nav-Links">
119 <span>${cur_articleSubTitle.articleMenuTitleText.getData()}</span>
120 <span>
121 <svg class="Article-SideBar-Nav-Links-Right-Arrow-Icon" fill="none" focusable="false" role="presentation">
122 <use xlink:href="${siteSpritemap}#sbil-article-sidebar-nav-links-right-arrow-icon" />
123 </svg>
124 </span>
125 </a>
126 </#if>
127 </#list>
128 </#if>
129
130 </div>
131 </div>
132
133 <div class="seperator-vertical"></div>
134
135 <div class="Article-Main-Content">
136
137
138 <#if articleSubTitle.getSiblings()?has_content>
139 <#list articleSubTitle.getSiblings() as cur_articleSubTitle>
140
141 <div class="Article-right-side-content"
142 id="${cur_articleSubTitle.articleMenuTitleText.getData()}">
143
144
145 <div class="Article-Hidden-Menu">
146 <#if (cur_articleSubTitle.articleMenuTitleText.getData())??>
147 ${cur_articleSubTitle.articleMenuTitleText.getData()}
148 </#if>
149 </div>
150
151
152 <div class="Article-right-side-content-wrapper">
153 <#if (cur_articleSubTitle.articleMenuTitleContent.getData())??>
154 ${cur_articleSubTitle.articleMenuTitleContent.getData()}
155 </#if>
156 </div>
157
158 </div>
159
160 </#list>
161 </#if>
162
163 </div>
164 </div>
165
166 </div>
167
168 <!-- FAQ HTML START-->
169 <div>
170 <#if getterUtil.getBoolean(showFaq.getData())>
171 <div class="frequently_asked_questions">
172 <div class="frequently_asked_questions-sectionTitle">
173 <#if (sectionTitle.getData())??>
174 <h3>${sectionTitle.getData()}</h3>
175 </#if>
176 </div>
177
178 <!-- assign count = 0 -->
179 <#assign count = 0>
180 <div class="accordion" id="frequentlyAskedQuestionsAccordion">
181 <#if questionPairs.getSiblings()?has_content>
182 <#list questionPairs.getSiblings() as questionPair>
183 <div class="accordion-card ${(questionPair_index > 4)?then('d-none','')} ${(questionPair_index )}">
184 <button
185 class="accordion-card-header d-flex justify-content-between align-items-center"
186 id="faqAccordionHeader-${questionPair_index}"
187 data-toggle="collapse"
188 data-target="#faqAccordionBody-${questionPair?index}"
189 aria-expanded="${(questionPair_index == 0)?then('true','false')}"
190 aria-controls="faqAccordionBody-${questionPair_index}"
191 >
192 <#if (questionPair.question.getData())??>
193 <h4> ${questionPair.question.getData()} </h4>
194 </#if>
195 <span>
196 <svg class="faq-plus-icon" fill="none" focusable="false" role="presentation">
197 <use class="faq-plus-icon-use" xlink:href="${siteSpritemap}#${(questionPair_index == 0)?then('sbil-faq-minus','sbil-faq-plus')}" />
198 </svg>
199 </span>
200
201 </button>
202
203 <div
204 id="faqAccordionBody-${questionPair_index}"
205 class="collapse${(questionPair_index == 0)?then(' show','')}"
206 aria-labelledby="faqAccordionHeader-${questionPair_index}"
207 data-parent="#frequentlyAskedQuestionsAccordion"
208 >
209 <div class="accordion-card-body">
210 <#if (questionPair.answer.getData())??>
211 <p> ${questionPair.answer.getData()} </p>
212 </#if>
213 </div>
214 </div>
215 </div>
216 <#assign count = questionPair_index>
217 </#list>
218 </#if>
219 </div>
220
221 <button class="secondary_cta_btn_ ${(count > 4)?then('','d-none')}" id="FAQ-ViewMore-Btn">
222 View More
223 <span>
224 <svg focusable="false" aria-hidden="true">
225 <use xlink:href="${siteSpritemap}#sbil-btn-dropright" />
226 </svg>
227 </span>
228 </button>
229 <#if (buttonLink.getData())?? && (buttonLabel.getData())??>
230 <a href="${languagePrefix}${buttonLink.getData()}" class="secondary_cta_btn_ ${(count > 4)?then('d-none','')}" id="FAQ-ViewAll-Btn">
231 ${buttonLabel.getData()}
232 <span>
233 <svg focusable="false" aria-hidden="true">
234 <use xlink:href="${siteSpritemap}#sbil-btn-dropright" />
235 </svg>
236 </span>
237 </a>
238 </#if>
239 </div>
240 </#if>
241 </div>
242 <!-- FAQ HTML END-->
243
244
245
246<#assign languageCode = locale?string?split("_")[0]>
247 <#if languageCode == "en">
248 <#assign languagePrefix = "">
249 <#else>
250 <#assign languagePrefix = "/" + languageCode>
251 </#if>
252
253<#assign validFaqs = [] />
254
255<#list faqList as questionPair>
256 <#assign question = questionPair.question.getData()!"" />
257 <#assign answer = questionPair.answer.getData()!"" />
258
259 <#if question?has_content && answer?has_content>
260 <#assign validFaqs = validFaqs + [{
261 "question": question,
262 "answer": answer
263 }] />
264 </#if>
265</#list>
266
267
268<#if validFaqs?has_content>
269 <script type="application/ld+json">
270 {
271 "@context": "https://schema.org",
272 "@type": "FAQPage",
273 "mainEntity": [
274 <#list validFaqs as faq>
275 {
276 "@type": "Question",
277 "name": "${faq.question?json_string}",
278 "acceptedAnswer": {
279 "@type": "Answer",
280 "text": "${faq.answer?json_string}"
281 }
282 }<#if faq_has_next>,</#if>
283 </#list>
284 ]
285 }
286 </script>
287</#if>
288<script type="application/ld+json">
289 {
290 "@context": "https://schema.org/",
291 "@type": "Organization",
292 "@id": "#Organization",
293 "url": "${themeDisplay.getPortalURL()}",
294 "legalName": "SBI Life Insurance Company Limited",
295 "name": "${metaTitle}",
296 "description": "${metaDescription}",
297 "image": "${desktopImageURL?json_string}",
298 "logo": "${logoURL}",
299 "telephone": "+1800 267 9090",
300 "email": "info@sbilife.in",
301 "address": {
302 "@type": "PostalAddress",
303 "streetAddress": "Natraj, M.V. Road & Western Express Highway Junction, Andheri (East)",
304 "addressLocality": "Mumbai",
305 "addressRegion": "Maharashtra",
306 "addressCountry": "IN",
307 "postalCode": "400069"
308 },
309 "sameAs": [
310 "https://www.facebook.com/Sbilifeinsurance/",
311 "https://x.com/sbilife",
312 "https://www.instagram.com/sbilifeinsurance/",
313 "https://www.youtube.com/user/sbilifeinsurance",
314 "https://www.linkedin.com/company/sbi-life-insurance-co--ltd-/"
315 ]
316 }
317</script>
318
319
320<style>
321 /* .portlet-journal-content .journal-content-article img,
322 .portlet-journal-content .journal-content-article .cke_widget_image {
323 max-width: fit-content;
324 } */
325
326 * {
327 margin: 0;
328 padding: 0;
329 /* box-sizing: border-box; */
330 }
331
332 .Article-Detail-Banner-Img-Wrapper {
333 position: relative;
334 }
335
336 .Article-Detail-Banner-Img {
337 width: 100%;
338 }
339
340 .Article-Detail-Banner-Img-Read-Time {
341 position: absolute;
342 top: 1rem;
343 left: 5.125rem;
344 display: inline-flex;
345 padding: 0.375rem 0.5rem;
346 align-items: center;
347 gap: 0.25rem;
348 border-radius: 0.5rem;
349 background: #FFF;
350 box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
351 }
352
353 .Article-Detail-Banner-Img-Read-Time .Clock-Icon {
354 width: 1.5rem;
355 height: 1.5rem;
356 aspect-ratio: 1/1;
357 }
358
359 .Article-Detail-Banner-Img-Read-Time>span {
360 color: #2A2076;
361 font-size: 0.875rem;
362 font-style: normal;
363 font-weight: 400;
364 line-height: normal;
365 letter-spacing: 0.0188rem;
366 opacity: 0.8;
367 }
368
369 .Article-Detail-Banner-Img-Tag {
370 position: absolute;
371 bottom: 1rem;
372 left: 5.125rem;
373 display: inline-flex;
374 padding: 0.625rem 0.5rem;
375 align-items: center;
376 gap: 0.25rem;
377 border-radius: 0.5rem;
378 background: #2A2076;
379 color: var(--Text-txt-pri-white, #FFF);
380
381 /* Typography/txt-breadcrumbs */
382 font-family: Lato;
383 font-size: var(--Typography-Breadcrumb, 1rem);
384 font-style: normal;
385 font-weight: 400;
386 line-height: normal;
387
388 opacity: 0.8;
389 }
390
391 .Article-Content-Title-Section {
392 display: flex;
393 padding: var(--section-padding);
394 flex-direction: column;
395 align-items: flex-start;
396 gap: 0.75rem;
397 align-self: stretch;
398 }
399
400
401 .Article-Content-Title-Section .Article-Content-Title-Section-Date {
402 color: rgba(0, 0, 0, 0.60);
403 font-family: Lato;
404 font-size: 1rem;
405 font-style: normal;
406 font-weight: 400;
407 line-height: normal;
408 }
409
410
411 .Article-Content-Title-Section .Article-Content-Title-Section-Title {
412 color: #2A2076;
413 font-family: Lato;
414 font-size: var(--section-title-font-size);
415 font-style: normal;
416 font-weight: 600;
417 line-height: normal;
418 }
419
420
421 .Article-Content-Container {
422 max-width: 100%;
423 display: flex;
424 padding: 0 5rem 3.75rem;
425 align-items: flex-start;
426 gap: 0.875rem;
427 align-self: stretch;
428 }
429
430
431 .Article-SideBar {
432 position: sticky;
433 top: 8.75rem;
434 left: 0;
435 height: 100%;
436 display: flex;
437 flex: 1 1 18.6875rem;
438 flex-direction: column;
439 align-items: flex-start;
440 gap: 1.5rem;
441 align-self: stretch;
442 border-radius: 1px;
443 background: rgba(255, 255, 255, 0.25);
444 margin: 0 auto;
445
446 max-height: none;
447 overflow: visible;
448 }
449
450 .Article-SideBar-Title-Container-Button {
451 width: 100%;
452 display: flex;
453 flex-direction: row;
454 align-items: center;
455 justify-content: space-between;
456 background: white;
457 border: none;
458
459 }
460
461
462 .Article-SideBar-Title {
463 color: #2A2076;
464 font-family: Lato;
465 font-size: 1.25rem;
466 font-style: normal;
467 font-weight: 400;
468 line-height: normal;
469 align-self: stretch;
470 /* white-space: nowrap; */
471 }
472
473 .Article-SideBar-Title-Down-Arrow-Icon {
474 width: 1rem;
475 height: 1rem;
476 display: none;
477 }
478
479
480 .Article-SideBar-Table {
481 display: flex;
482 flex-direction: column;
483 align-items: flex-start;
484 gap: 0.625rem;
485 align-self: stretch;
486 }
487
488
489 .Article-SideBar-Nav-Links {
490 display: flex;
491 padding: 0.75rem;
492 justify-content: space-between;
493 align-items: center;
494 align-self: stretch;
495 gap: 0.5rem;
496 /* white-space: nowrap; */
497 text-decoration: none;
498
499 background: white;
500 color: #2A2076;
501 font-family: Lato;
502 font-size: 1rem;
503 font-style: normal;
504 font-weight: 400;
505 line-height: normal;
506 }
507
508
509
510
511 .Article-SideBar-Nav-Links:active {
512 border-radius: 0.5rem;
513 background: rgba(42, 32, 118, 0.05);
514 }
515
516
517
518 .Article-SideBar-Nav-Links:hover {
519 border-radius: 0.5rem;
520 background: rgba(42, 32, 118, 0.05);
521 text-decoration: none;
522 color: #2A2076;
523
524 }
525
526
527 .Article-SideBar-Nav-Links-Right-Arrow-Icon {
528 width: 1rem;
529 height: 1rem;
530 visibility: hidden;
531 }
532
533 .Article-SideBar-Nav-Links:hover .Article-SideBar-Nav-Links-Right-Arrow-Icon,
534 .Article-SideBar-Nav-Links.active-link .Article-SideBar-Nav-Links-Right-Arrow-Icon {
535 visibility: visible;
536 }
537
538
539 .seperator-horizontal {
540 width: 100%;
541 border-top: 1px solid rgba(42, 32, 118, 0.10);
542 }
543
544 .seperator-vertical {
545 width: 1px;
546 background: rgba(42, 32, 118, 0.10);
547 /* height: 100%; */
548 align-self: stretch;
549 }
550
551 .Article-Main-Content-Parent {
552 display: flex;
553 flex-direction: row;
554 }
555
556 .Article-Main-Content {
557 display: flex;
558 flex-direction: column;
559 gap: 1rem;
560 flex: 1 1 59.625rem;
561 text-align: justify;
562 min-width: 0;
563
564 }
565
566 .Article-Hidden-Menu {
567 display: none;
568 color: #2A2076;
569 font-size: 1.4rem;
570 }
571
572 .Article-right-side-content {
573 scroll-margin-top: var(--size-60);
574 }
575
576 .Article-right-side-content-wrapper {
577 display: flex;
578 flex-direction: column;
579 gap: var(--size-32);
580 }
581
582 .Article-Content-Section {
583 display: flex;
584 flex-direction: row;
585 /* flex-wrap: wrap; */
586 }
587
588 .Article-Text-Content-Title-Subtitle-Pair-Section {
589 display: flex;
590 flex-direction: column;
591 align-items: flex-start;
592 gap: var(--size-4);
593 align-self: stretch;
594
595 }
596
597 .Article-Text-Content-Title {
598 color: #2A2076;
599 align-self: stretch;
600 font-family: Lato;
601 font-size: 1rem;
602 font-style: normal;
603 font-weight: 500;
604 line-height: normal;
605 }
606
607 .Article-Text-Content-Subtitle {
608 display: flex;
609 flex-direction: column;
610 gap: 0.625rem;
611
612 align-self: stretch;
613 color: rgba(0, 0, 0, 0.60);
614 font-family: Lato;
615 font-size: 0.875rem;
616 font-style: normal;
617 font-weight: 400;
618 line-height: normal;
619 }
620
621 .Article-Content-Section-Large-Header {
622 color: #2A2076;
623
624 /* Typography/txt-para */
625 font-family: Lato;
626 font-size: 1rem;
627 font-style: normal;
628 font-weight: 400;
629 line-height: normal;
630 }
631
632
633 .Article-Content-Section-Of-Image {
634 display: flex;
635 flex-direction: column;
636 gap: 1.5rem;
637 }
638
639
640 .Article-Content-Section-Containing-Image {
641 gap: 1.75rem;
642 }
643
644 .Article-Content-Section-Containing-Image .Image-Of-Benefits-Of-Life-Insurance {
645 max-width: 11.3873rem !important;
646 height: 26.4375rem;
647 }
648
649 .Article-Content-Section-Containing-Image .Image-Of-Understanding-Types-Of-Life-Insurance {
650 max-width: 19.9375rem !important;
651 height: 31.5rem;
652 border-radius: 1rem;
653 border: 1px solid rgba(42, 32, 118, 0.20);
654 }
655
656
657 .Article-Content-Section-Containing-Video {
658 gap: 2rem;
659 }
660
661 .Article-Content-Section-Containing-Video .Image-Of-Video-Thumbnail {
662 max-width: 19.5625rem !important;
663 height: 11rem;
664 aspect-ratio: 313/176;
665 border-radius: 1rem;
666 border: 1px solid rgba(42, 32, 118, 0.20);
667 }
668
669
670 .Article-Content-Section-Of-Video {
671 display: flex;
672 flex-direction: column;
673 justify-content: space-between;
674 }
675
676 .Article-Content-Section-Of-Video .Article-Content-Section-Containing-Video-Thumbnail-Container {
677 aspect-ratio: 313/176;
678 }
679
680 .Article-Content-Tabular-Section {
681 gap: 2rem;
682 align-items: flex-start;
683 }
684
685 .Article-Content-Table-Section {
686 display: flex;
687 flex-direction: column;
688 align-items: flex-start;
689 gap: 2rem;
690
691 width: 100%;
692 flex: 1 1 auto;
693 align-self: stretch;
694 overflow-x: auto;
695 }
696
697 .Article-Content-Table-Section table {
698 border-collapse: collapse;
699 min-width: 37.5rem;
700 /* keeps table readable */
701 width: max-content;
702 }
703
704
705
706 .Table-Info {
707 display: flex;
708 flex-direction: column;
709 justify-content: space-between;
710 align-items: flex-start;
711 flex: 1 0 0;
712 gap: 0.625rem;
713
714 }
715
716 .Table-Section-Layout {
717 width: 100%;
718 border-radius: 0.75rem;
719 border: 1px solid rgba(42, 32, 118, 0.20);
720
721 }
722
723 .Table-Section-Layout table {
724 width: 100%;
725 border-collapse: collapse;
726 font-family: Lato, sans-serif;
727 }
728
729 /* Make the header sticky */
730 .Table-Section-Layout thead {
731 position: sticky;
732 top: 0;
733 background: linear-gradient(90deg, #D92157, #291F75);
734 color: #FFF;
735 font-size: 1rem;
736 font-weight: 500;
737 z-index: 2;
738 }
739
740 /* Rounded top corners */
741 .Table-Section-Layout thead tr:first-child th:first-child {
742 border-top-left-radius: 0.75rem;
743 }
744
745 .Table-Section-Layout thead tr:first-child th:last-child {
746 border-top-right-radius: 0.75rem;
747 }
748
749 .Table-Section-Layout th,
750 .Table-Section-Layout td {
751 padding: 0.5rem 1rem;
752 text-align: left;
753 }
754
755 /* Scrollable body */
756 .Table-Section-Layout tbody {
757 display: block;
758 max-height: calc(80vh - 7.9375rem);
759 overflow-y: auto;
760 overflow-x: hidden;
761 }
762
763 .Table-Section-Layout thead,
764 .Table-Section-Layout tbody tr {
765 display: table;
766 width: 100%;
767 table-layout: fixed;
768 }
769
770 .Table-Section-Layout tbody tr {
771 border-bottom: 1px solid rgba(42, 32, 118, 0.10);
772
773 border-left: 1px solid rgba(42, 32, 118, 0.10);
774 border-right: 1px solid rgba(42, 32, 118, 0.10);
775 font-size: 0.875rem;
776 font-weight: 400;
777 color: rgba(0, 0, 0, 0.60);
778 }
779
780 /*.Table-Section-Layout tbody tr td:last-child {
781 border-right: 5px solid rgba(42, 32, 118, 0.10);
782 } */
783 /* Rounded bottom corners */
784 .Table-Section-Layout tbody tr:last-child td:first-child {
785 border-bottom-left-radius: 0.75rem;
786 }
787
788 .Table-Section-Layout tbody tr:last-child td:last-child {
789 border-bottom-right-radius: 0.75rem;
790 }
791
792 /* Scrollbar styling */
793 .Table-Section-Layout tbody::-webkit-scrollbar {
794 width: 0.25rem;
795 }
796
797 .Table-Section-Layout tbody::-webkit-scrollbar-thumb {
798 background-color: #2a2076;
799 border-radius: 0.25rem;
800 }
801
802 .Table-Section-Layout tbody::-webkit-scrollbar-thumb:hover {
803 background-color: #2a2076;
804 }
805
806 /* Articles List */
807 .Articles-Section {
808 display: flex;
809 padding: 3.75rem 5rem;
810 flex-direction: column;
811 justify-content: flex-end;
812 align-items: center;
813 gap: 3.25rem;
814 align-self: stretch;
815 }
816
817 .Articles-List-Section {
818 display: grid;
819 grid-template-columns: repeat(3, 1fr);
820 gap: 1.75rem 3.75rem;
821 /*row column*/
822 }
823
824 .Articles-List-Section img {
825 width: 100%;
826 border-radius: 0.9375rem;
827 }
828
829 .Article-Img {
830 position: relative;
831 }
832
833 .Read-Time {
834 position: absolute;
835 left: 0.9375rem;
836 bottom: 0.9375rem;
837 display: inline-flex;
838 padding: 0.375rem 0.5rem;
839 align-items: center;
840 gap: 0.25rem;
841 border-radius: 0.5rem;
842 background: #FFF;
843 }
844
845 .Articles-List-Section .Article-Content .Article-Img .Read-Time span {
846 color: #2A2076;
847 font-family: Lato;
848 font-size: 0.875rem;
849 font-style: normal;
850 font-weight: 400;
851 line-height: normal;
852 letter-spacing: 0.0188rem;
853 opacity: 0.8;
854 }
855
856 .Articles-List-Section .Article-Content .Article-Img .Read-Time .Clock-Icon {
857 width: 1.5rem;
858 height: 1.5rem;
859 aspect-ratio: 1/1;
860 }
861
862 .Articles-List-Section .Article-Content .Article-Text-Content {
863 display: flex;
864 flex-direction: column;
865 align-items: flex-start;
866 gap: 1rem;
867 align-self: stretch;
868 color: #2A2076;
869 margin-top: 1rem;
870 }
871
872 .Articles-List-Section .Article-Content .Article-Text-Content .Article-Title {
873 color: #2A2076;
874 font-family: Lato;
875 font-size: 1.5rem;
876 font-style: normal;
877 font-weight: 600;
878 line-height: normal;
879 letter-spacing: 0.0188rem;
880 text-decoration: none;
881 }
882
883 .Articles-List-Section .Article-Content .Article-Text-Content .Article-CTA {
884 color: #2A2076;
885 font-family: Lato;
886 font-size: 1rem;
887 font-style: normal;
888 font-weight: 700;
889 line-height: normal;
890 letter-spacing: 0.0188rem;
891 text-decoration-line: underline;
892 text-decoration-style: solid;
893 text-decoration-skip-ink: none;
894 text-decoration-thickness: auto;
895 text-underline-offset: auto;
896 text-underline-position: from-font;
897 }
898
899 .Articles-Section-Title-Text {
900 color: #2B1F6B;
901 text-align: center;
902 font-family: Lato;
903 font-size: 2.5rem;
904 font-style: normal;
905 font-weight: 600;
906 line-height: normal;
907 letter-spacing: 0.0188rem;
908 }
909
910 .Article-Tools-And-Calculators {
911 display: flex;
912 padding: 3.75rem 5rem;
913 flex-direction: column;
914 justify-content: flex-end;
915 align-items: center;
916 gap: 3.25rem;
917 align-self: stretch;
918 }
919
920 .Article-Tools-And-Calculators-Title {
921 color: #2A2076;
922 text-align: center;
923
924 /* Typography/txt-title */
925 font-family: Lato;
926 font-size: 2.5rem;
927 font-style: normal;
928 font-weight: 600;
929 line-height: normal;
930 }
931
932 .Article-Tools-And-Calculators-Card-List {
933 display: flex;
934 justify-content: center;
935 align-items: center;
936 gap: 1.75rem;
937 align-self: stretch;
938 }
939
940 .Article-Tools-And-Calculators-Card {
941 display: flex;
942 padding: 1rem 0;
943 flex-direction: column;
944 align-items: center;
945 gap: 1rem;
946 align-self: stretch;
947
948 border-radius: 1rem;
949 border: 1px solid rgba(42, 32, 118, 0.10);
950 background: rgba(255, 255, 255, 0.47);
951 }
952
953 .Article-Tools-And-Calculators-Card-Icon {
954 width: 3rem;
955 height: 3rem;
956 }
957
958 .Article-Tools-And-Calculators-Card-Text {
959 width: 9.5rem;
960 color: var(--Text-txt-pri-blue, #2A2076);
961 text-align: center;
962
963 /* Typography/txt-para */
964 font-family: Lato;
965 font-size: var(--Typography-Paragraph, 1rem);
966 font-style: normal;
967 font-weight: 400;
968 line-height: normal;
969 }
970
971 @media (max-width: 768px) {
972
973 .Article-Content-Title-Section {
974 display: flex;
975 padding: 20px;
976 flex-direction: column;
977 align-items: flex-start;
978 gap: 16px;
979 align-self: stretch;
980 }
981
982 .Article-Detail-Banner-Img-Read-Time {
983 position: absolute;
984 top: 1rem;
985 left: 12px;
986 display: inline-flex;
987 padding: 6px 8px;
988 align-items: center;
989 gap: 4px;
990 border-radius: 8px;
991 background: #FFF;
992 }
993
994 .Article-Detail-Banner-Img-Read-Time .Clock-Icon {
995 width: 16px;
996 height: 16px;
997 aspect-ratio: 1/1;
998 }
999
1000 .Article-Detail-Banner-Img-Read-Time>span {
1001 color: #2A2076;
1002 font-family: Lato;
1003 font-size: 12px;
1004 font-style: normal;
1005 font-weight: 400;
1006 line-height: normal;
1007 letter-spacing: 0.3px;
1008 opacity: 0.8;
1009 }
1010
1011 .Article-Detail-Banner-Img-Tag {
1012 position: absolute;
1013 bottom: 1rem;
1014 left: 12px;
1015 display: inline-flex;
1016 padding: 7px 10px;
1017 align-items: center;
1018 gap: 4px;
1019 border-radius: 8px;
1020 background: #2A2076;
1021 color: var(--Text-txt-pri-white, #FFF);
1022
1023 /* Typography/txt-breadcrumbs */
1024 font-family: Lato;
1025 font-size: var(--Typography-Breadcrumb, 14px);
1026 font-style: normal;
1027 font-weight: 400;
1028 line-height: normal;
1029
1030 opacity: 0.8;
1031 }
1032
1033 .Article-Content-Title-Section .Article-Content-Title-Section-Date {
1034 font-size: 14px;
1035 }
1036
1037
1038 .Article-Content-Title-Section .Article-Content-Title-Section-Title {
1039 font-size: 20px;
1040 }
1041
1042 .Article-Content-Container {
1043 display: flex;
1044 flex-wrap: wrap;
1045 padding: 0 20px 40px 20px;
1046 align-items: flex-start;
1047 gap: 32px;
1048 align-self: stretch;
1049 }
1050
1051 .Article-SideBar {
1052 position: static;
1053 height: auto;
1054 display: flex;
1055 width: 320px;
1056 padding: 16px;
1057 gap: 16px;
1058 border-radius: 8px;
1059 border: 1px solid rgba(42, 32, 118, 0.20);
1060 background: rgba(255, 255, 255, 0.25);
1061
1062 overflow: hidden;
1063 }
1064
1065 .Article-SideBar-Title-Container-Button {
1066 cursor: pointer;
1067 pointer-events: all;
1068 transition: 0.2s;
1069 }
1070
1071 .Article-SideBar-Title {
1072 font-size: 16px;
1073 /* white-space: nowrap; */
1074 }
1075
1076 .Article-SideBar-Title-Down-Arrow-Icon {
1077 transform: rotate(0deg);
1078 transition: transform 0.22s ease;
1079 display: block;
1080 }
1081
1082 .Article-SideBar.Article-SideBar-Table-Open .Article-SideBar-Title-Down-Arrow-Icon {
1083 transform: rotate(180deg);
1084 }
1085
1086 .Article-SideBar-Table {
1087 gap: 16px;
1088
1089 max-height: 0;
1090 overflow: hidden;
1091 transition: max-height 0.26s ease;
1092 }
1093
1094 .Article-SideBar.Article-SideBar-Table-Open .Article-SideBar-Table {
1095 max-height: max-height;
1096 }
1097
1098 .Article-SideBar-Nav-Links {
1099 border-radius: 8px;
1100 width: 100%;
1101 font-family: Lato;
1102 font-size: 14px;
1103 }
1104
1105 .Article-SideBar-Nav-Links:hover .Article-SideBar-Nav-Links-Right-Arrow-Icon,
1106 .Article-SideBar-Nav-Links.active-link .Article-SideBar-Nav-Links-Right-Arrow-Icon {
1107 visibility: hidden;
1108 }
1109
1110 .seperator-vertical {
1111 display: none;
1112 }
1113
1114 .Article-Content-Section {
1115 flex-wrap: wrap;
1116 }
1117
1118
1119
1120 .Article-Content-Section-Containing-Image {
1121 flex-wrap: wrap-reverse;
1122 }
1123
1124 .Article-Text-Content-Title-Subtitle-Pair-Section {
1125 gap: 4px;
1126 }
1127
1128 .Article-Text-Content-Title-Subtitle-Pair-Section .Article-Text-Content-Title {}
1129
1130 .Article-Text-Content-Subtitle {
1131 overflow-x: scroll !important;
1132 width: calc(100vw - 40px);
1133 }
1134
1135 .Article-Text-Content-Subtitle::-webkit-scrollbar {
1136 height: 4px;
1137 /* horizontal scrollbar height */
1138 }
1139
1140
1141 .Article-Text-Content-Subtitle::-webkit-scrollbar-thumb {
1142 background-color: #2a2076;
1143 border-radius: 14px;
1144 }
1145
1146 .Article-Text-Content-Subtitle::-webkit-scrollbar-thumb:hover {
1147 background-color: #2a2076;
1148 }
1149
1150 .Table-Section-Layout th,
1151 .Table-Section-Layout td {
1152 width: 38vw;
1153 }
1154
1155 .Articles-Section {
1156 padding: 40px 20px;
1157 gap: 32px;
1158 }
1159
1160 .Articles-Section .Articles-Section-Title .Blog-Categories {
1161 width: 100%;
1162 }
1163
1164 .Articles-List-Section-Wrapper {
1165 width: 100%;
1166 overflow: hidden;
1167 }
1168
1169 .Articles-List-Section {
1170 display: flex;
1171 overflow-x: auto;
1172 gap: 16px;
1173 padding: 0 20px;
1174 /* Left & right padding added */
1175 scroll-snap-type: x mandatory;
1176 scroll-padding-left: 20px;
1177 }
1178
1179 .Articles-List-Section::-webkit-scrollbar {
1180 display: none;
1181 }
1182
1183 .Articles-List-Section .Article-Content {
1184 flex: 0 0 auto;
1185 min-width: 280px;
1186 scroll-snap-align: start;
1187 width: 80%;
1188 }
1189
1190
1191 /* .Articles-List-Section {
1192 grid-template-columns: 1fr;
1193 gap: 52px;
1194 }
1195
1196 .Articles-List-Section .Most-Popular-Article {
1197 grid-column: 1 / span 1;
1198 } */
1199
1200 .Articles-List-Section .Most-Popular-Article .Most-Popular-Tag {
1201 left: 16px;
1202 top: -16px;
1203 padding: 6px 8px;
1204 gap: 8px;
1205 }
1206
1207 .Articles-List-Section .Most-Popular-Article .Most-Popular-Tag span {
1208 font-size: 12px;
1209 }
1210
1211 .Articles-List-Section .Most-Popular-Article .Article-Img .Read-Time {
1212 left: 15px;
1213 bottom: 15px;
1214 }
1215
1216 .Articles-List-Section .Article-Content .Article-Img .Read-Time {
1217 border-radius: 4px;
1218 }
1219
1220 .Articles-List-Section .Article-Content .Article-Img .Read-Time .Clock-Icon {
1221 width: 16px;
1222 height: 16px;
1223 aspect-ratio: 1/1;
1224 }
1225
1226 .Articles-List-Section .Article-Content .Article-Img .Read-Time span {
1227 font-size: 12px;
1228 }
1229
1230 .Articles-List-Section .Article-Content .Article-Text-Content {
1231 gap: 12px;
1232 align-self: stretch;
1233 color: #2A2076;
1234 margin-top: 16px;
1235 }
1236
1237 .Articles-List-Section .Article-Content .Article-Text-Content .Article-Title {
1238 font-size: 16px;
1239 font-weight: 500;
1240 letter-spacing: 0.3px;
1241 text-decoration: none;
1242 }
1243
1244 .Article-Content-Section-Image-Wrapper {
1245 width: 100%;
1246 }
1247
1248 .Article-Content-Section-Containing-Image .Image-Of-Benefits-Of-Life-Insurance,
1249 .Article-Content-Section-Containing-Image .Image-Of-Understanding-Types-Of-Life-Insurance,
1250 .Article-Content-Section-Containing-Video .Image-Of-Video-Thumbnail {
1251 width: 100%;
1252 height: auto;
1253 max-width: none !important;
1254 }
1255
1256 .Articles-Section-Title-Text {
1257 color: #2B1F6B;
1258 text-align: center;
1259 font-family: Lato;
1260 font-size: 20px;
1261 font-style: normal;
1262 font-weight: 600;
1263 line-height: normal;
1264 letter-spacing: 0.3px;
1265 }
1266
1267 .Table-Section-Layout tbody {
1268 max-height: calc(80vh - 64px);
1269 }
1270
1271
1272 .Article-Tools-And-Calculators {
1273 display: flex;
1274 padding: 40px 20px;
1275 flex-direction: column;
1276 justify-content: center;
1277 align-items: center;
1278 gap: 32px;
1279 align-self: stretch;
1280 }
1281
1282 .Article-Tools-And-Calculators-Title {
1283 font-size: 20px;
1284 letter-spacing: 0.3px;
1285 }
1286
1287 .Article-Tools-And-Calculators-Card-List {
1288 flex-wrap: wrap;
1289 gap: 16px;
1290 align-self: stretch;
1291 }
1292
1293 .Article-Tools-And-Calculators-Card {}
1294
1295 .Article-Tools-And-Calculators-Card-Icon {
1296 width: 32px;
1297 height: 32px;
1298 }
1299
1300 .Article-Tools-And-Calculators-Card-Text {
1301 width: 152px;
1302 color: #2A2076;
1303 text-align: center;
1304 /* Typography/txt-para */
1305 font-family: Lato;
1306 font-size: 14px;
1307
1308 }
1309 }
1310
1311 @media screen and (min-width: 768px) and (max-width: 1024px) {
1312 .Article-Content-Title-Section {
1313 padding: calc(var(--l-scale-factor) * 40px) calc(var(--l-scale-factor) * 80px);
1314 gap: calc(var(--l-scale-factor) * 12px);
1315 }
1316
1317 .Article-Content-Title-Section .Article-Content-Title-Section-Date {
1318 font-size: calc(var(--l-scale-factor) * 16px);
1319 }
1320
1321 .Article-Content-Title-Section .Article-Content-Title-Section-Title {
1322 font-size: calc(var(--l-scale-factor) * 40px);
1323 }
1324
1325 .Article-Content-Container {
1326 padding: 0 calc(var(--l-scale-factor) * 80px) calc(var(--l-scale-factor) * 60px);
1327 gap: calc(var(--l-scale-factor) * 14px);
1328 }
1329
1330 .Article-SideBar {
1331 flex: 1 1 calc(var(--l-scale-factor) * 299px);
1332 top: calc(var(--l-scale-factor) * 140px);
1333 }
1334
1335 .Article-SideBar-Title {
1336 font-size: calc(var(--l-scale-factor) * 20px);
1337 }
1338
1339 .Article-SideBar-Nav-Links {
1340 padding: calc(var(--l-scale-factor) * 16px);
1341 font-size: calc(var(--l-scale-factor) * 16px);
1342 gap: calc(var(--l-scale-factor) * 8px);
1343 }
1344
1345 .Article-SideBar-Nav-Links-Right-Arrow-Icon,
1346 .Article-SideBar-Title-Down-Arrow-Icon {
1347 width: calc(var(--l-scale-factor) * 16px);
1348 height: calc(var(--l-scale-factor) * 16px);
1349 }
1350
1351 .Article-Content-Title-Section {
1352 padding: calc(var(--l-scale-factor) * 40px) calc(var(--l-scale-factor) * 80px);
1353 }
1354
1355 .Article-Text-Content-Title {
1356 font-size: calc(var(--l-scale-factor) * 16px);
1357 }
1358
1359 .Article-Text-Content-Subtitle {
1360 font-size: calc(var(--l-scale-factor) * 14px);
1361 }
1362
1363 .Table-Section-Layout th,
1364 .Table-Section-Layout td {
1365 padding: calc(var(--l-scale-factor) * 8px) calc(var(--l-scale-factor) * 16px);
1366 }
1367
1368 .Table-Section-Layout thead {
1369 font-size: calc(var(--l-scale-factor) * 16px);
1370 }
1371
1372 .Table-Section-Layout tbody tr {
1373 font-size: calc(var(--l-scale-factor) * 14px);
1374 }
1375
1376 .Articles-Section {
1377 padding: calc(var(--l-scale-factor) * 60px) calc(var(--l-scale-factor) * 80px);
1378 gap: calc(var(--l-scale-factor) * 52px);
1379 }
1380
1381 .Articles-List-Section {
1382 gap: calc(var(--l-scale-factor) * 28px) calc(var(--l-scale-factor) * 60px);
1383 }
1384
1385 .Articles-List-Section .Article-Content .Article-Text-Content .Article-Title {
1386 font-size: calc(var(--l-scale-factor) * 24px);
1387 }
1388
1389 .Articles-List-Section .Article-Content .Article-Text-Content .Article-CTA {
1390 font-size: calc(var(--l-scale-factor) * 16px);
1391 }
1392
1393 .Articles-Section-Title-Text {
1394 font-size: calc(var(--l-scale-factor) * 40px);
1395 }
1396
1397 .Article-Tools-And-Calculators {
1398 padding: calc(var(--l-scale-factor) * 60px) calc(var(--l-scale-factor) * 80px);
1399 gap: calc(var(--l-scale-factor) * 52px);
1400 }
1401
1402 .Article-Tools-And-Calculators-Title {
1403 font-size: calc(var(--l-scale-factor) * 40px);
1404 }
1405
1406 .Article-Tools-And-Calculators-Card-Text {
1407 font-size: calc(var(--l-scale-factor) * 16px);
1408 }
1409
1410 .Article-Tools-And-Calculators-Card-Icon {
1411 width: calc(var(--l-scale-factor) * 48px);
1412 height: calc(var(--l-scale-factor) * 48px);
1413 }
1414 }
1415
1416 /* FAQ CSS START */
1417 .frequently_asked_questions {
1418 display: flex;
1419 flex-direction: column;
1420 align-items: center;
1421 gap: 3.25rem;
1422 padding: 3.75rem 2.9375rem;
1423 }
1424
1425 .frequently_asked_questions .frequently_asked_questions-sectionTitle h3 {
1426 font-size: 2.5rem;
1427 font-style: normal;
1428 font-weight: 600;
1429 line-height: normal;
1430 letter-spacing: 0.0188rem;
1431 color: #2B1F6B;
1432 align-self: stretch;
1433 text-align: center;
1434 margin-bottom: 0;
1435 }
1436
1437 .frequently_asked_questions .accordion {
1438 display: flex;
1439 flex-direction: column;
1440 gap: 1.875rem;
1441 width: 100%;
1442 align-items: center;
1443 }
1444
1445 .frequently_asked_questions .accordion-card {
1446 display: flex;
1447 padding: 1rem;
1448 flex-direction: column;
1449 gap: 1rem;
1450 border-radius: 0.75rem;
1451 background: #F8F8FB;
1452 width: min(66.375rem, 100%);
1453 border-radius: 0.75rem;
1454 }
1455
1456 .frequently_asked_questions .accordion-card-header {
1457 border: none;
1458 background-color: transparent;
1459 cursor: pointer;
1460 }
1461
1462 .frequently_asked_questions .accordion-card-header h4 {
1463 color: var(--Text-txt-pri-black, #111);
1464 font-size: var(--Typography-Body, 1.25rem);
1465 font-style: normal;
1466 font-weight: 400;
1467 line-height: normal;
1468 margin-bottom: 0;
1469 }
1470
1471 .faq-plus-icon {
1472 height: 2rem;
1473 width: 2rem;
1474 }
1475
1476 .frequently_asked_questions .accordion-card-body p {
1477 color: rgba(0, 0, 0, 0.60);
1478 font-size: 1rem;
1479 font-style: normal;
1480 font-weight: 400;
1481 line-height: normal;
1482 letter-spacing: 0.0188rem;
1483 margin-bottom: 0;
1484 }
1485
1486 @media only screen and (max-width: 1024px) and (min-width: 768px) {
1487 .frequently_asked_questions {
1488 gap: calc(0.75 * 52px);
1489 padding: calc(0.75 * 60px) calc(0.75 * 47px);
1490 }
1491
1492 .frequently_asked_questions .frequently_asked_questions-sectionTitle h3 {
1493 font-size: calc(0.75 * 40px);
1494 letter-spacing: calc(0.75 * 0.3px);
1495 }
1496
1497 .frequently_asked_questions .accordion {
1498 gap: calc(0.75 * 30px);
1499 }
1500
1501 .frequently_asked_questions .accordion-card {
1502 padding: calc(0.75 * 16px);
1503 gap: calc(0.75 * 16px);
1504 border-radius: calc(0.75 * 12px);
1505 }
1506
1507 .frequently_asked_questions .accordion-card-header h4 {
1508 font-size: calc(0.75 * 20px);
1509 }
1510
1511 .faq-plus-icon {
1512 height: calc(0.75 * 32px);
1513 width: calc(0.75 * 32px);
1514 }
1515
1516 .frequently_asked_questions .accordion-card-body p {
1517 font-size: calc(0.75 * 16px);
1518 letter-spacing: calc(0.75 * 0.3px);
1519 }
1520 }
1521
1522 @media only screen and (max-width: 768px) {
1523 .frequently_asked_questions {
1524 gap: 32px;
1525 padding: 40px 20px;
1526 }
1527
1528 .frequently_asked_questions .frequently_asked_questions-sectionTitle h3 {
1529 font-size: 20px;
1530 }
1531
1532 .frequently_asked_questions .accordion-card {
1533 padding: 12px;
1534 border-radius: 8px;
1535 }
1536
1537 .faq-plus-icon {
1538 height: 24px;
1539 width: 24px;
1540 }
1541
1542 .frequently_asked_questions .accordion-card-header h4 {
1543 font-size: 16px;
1544 }
1545
1546 .frequently_asked_questions .accordion-card-body p {
1547 font-size: 14px;
1548 }
1549 }
1550
1551
1552
1553 /* FAQ CSS START */
1554</style>
1555
1556<script type="module">
1557 // document.addEventListener('DOMContentLoaded', function () {
1558 const links = document.querySelectorAll('.Article-SideBar-Nav-Links');
1559 const sections = document.querySelectorAll('.Article-right-side-content');
1560
1561
1562 let isManualScrolling = false;
1563
1564
1565 function clearActive() {
1566 links.forEach(link => {
1567 link.classList.remove('active-link');
1568 link.style.background = '';
1569 link.style.color = '';
1570 });
1571 }
1572
1573
1574 function setActive(link) {
1575 clearActive();
1576 link.classList.add('active-link');
1577 // Active styles can be controlled via CSS class (recommended)
1578 }
1579
1580 function updateSidebarOnScroll() {
1581 if (isManualScrolling) return; // Preserve flag if smooth scrolling in progress
1582
1583
1584 const fromTop = window.scrollY + 10;
1585 const firstSection = sections[0];
1586
1587
1588 // If scroll is above first section, clear all active sidebar links
1589 if (window.innerWidth <= 768 && fromTop < firstSection.offsetTop) {
1590 // Clear active states and reset styles to white
1591 links.forEach(link => {
1592 link.classList.remove('active-link');
1593 link.style.background = 'white';
1594 link.style.color = '#2A2076'; // Or your white-text color here if needed
1595 });
1596 return;
1597 }
1598
1599
1600 let currentId = null;
1601 sections.forEach(section => {
1602 if (section.offsetTop <= fromTop && section.offsetTop + section.offsetHeight > fromTop) {
1603 currentId = section.getAttribute('id');
1604 }
1605 });
1606
1607
1608 if (currentId) {
1609 links.forEach(link => {
1610 if (link.getAttribute('href').substring(1) === currentId) {
1611 setActive(link);
1612 link.style.background = 'rgba(42, 32, 118, 0.05)'; // active bg color
1613 link.style.color = '#2A2076'; // active text color
1614 link.style.borderRadius= "8px"; // active text color
1615
1616 } else {
1617 link.classList.remove('active-link');
1618 link.style.background = '';
1619 link.style.color = '';
1620 }
1621 });
1622 }
1623 }
1624
1625 // Scroll click events
1626 links.forEach(link => {
1627 link.addEventListener('click', function (e) {
1628 e.preventDefault();
1629 let targetId = link.getAttribute('href').substring(1);
1630 let targetElem = document.getElementById(targetId);
1631 if (targetElem) {
1632 // Set flag before scroll
1633 isManualScrolling = true;
1634 setActive(link);
1635
1636 const elementTop = targetElem.getBoundingClientRect().top + window.scrollY;
1637 // const offset = (window.innerWidth>768) ? 128 : 0;
1638
1639 let offset = 128;
1640 if (window.innerWidth <= 768) {
1641 const fixedHeaderHeight = 64;
1642 const safePadding = 10;
1643 offset = fixedHeaderHeight + safePadding;
1644 }
1645
1646 window.scrollTo({
1647 top: elementTop - offset,
1648 behavior: 'smooth'
1649 });
1650 // Smooth scroll: listen for scroll end to reset the flag
1651 // targetElem.scrollIntoView({ behavior: 'smooth' });
1652
1653 // Fallback to reset after the scroll duration (most browsers, good guess is ~500ms)
1654 setTimeout(() => {
1655 isManualScrolling = false;
1656 updateSidebarOnScroll();
1657 }, 500);
1658 }
1659 });
1660 });
1661
1662
1663 // Listen for scroll to update the sidebar
1664 window.addEventListener('scroll', updateSidebarOnScroll);
1665
1666
1667 // --- MOBILE H4 LOGIC (unchanged) ---
1668 function handleMobileFixedHeaders() {
1669 if (window.innerWidth > 768) {
1670 sections.forEach(section => {
1671 const h2 = section.querySelector('.Article-Hidden-Menu');
1672 if (h2) {
1673 h2.style.display = 'none';
1674 h2.style.position = '';
1675 h2.style.top = '';
1676 h2.style.zIndex = '';
1677 h2.style.background = '';
1678 h2.style.width = '';
1679 h2.style.borderBottom = '';
1680 }
1681 });
1682 return;
1683 }
1684 let scrollTop = window.scrollY + 65;
1685 sections.forEach(section => {
1686 const h2 = section.querySelector('.Article-Hidden-Menu');
1687 if (!h2) return;
1688 const rect = section.getBoundingClientRect();
1689 const sectionTop = rect.top + window.scrollY;
1690 const sectionBottom = sectionTop + section.offsetHeight;
1691
1692 if (scrollTop >= sectionTop && scrollTop < sectionBottom) {
1693 h2.style.display = 'block';
1694 h2.style.position = 'fixed';
1695 h2.style.top = '64px';
1696 h2.style.left = rect.left + 'px';
1697 h2.style.zIndex = '100';
1698 h2.style.background = 'white';
1699 h2.style.width = rect.width + 'px';
1700 h2.style.borderBottom = '1px solid #ccc';
1701 } else {
1702 h2.style.display = 'none';
1703 h2.style.position = '';
1704 h2.style.top = '';
1705 h2.style.left = '';
1706 h2.style.zIndex = '';
1707 h2.style.background = '';
1708 h2.style.width = '';
1709 h2.style.borderBottom = '';
1710 }
1711 });
1712 }
1713
1714
1715 window.addEventListener('scroll', handleMobileFixedHeaders);
1716 window.addEventListener('resize', handleMobileFixedHeaders);
1717 handleMobileFixedHeaders();
1718
1719 const ArticleSideBar = document.getElementById("Article-SideBar");
1720 const ArticleSideBarTitleContainerButton = document.getElementById("Article-SideBar-Title-Container-Button");
1721 const ArticleSideBarTable = document.getElementById("Article-SideBar-Table");
1722
1723 // ✅ Ensure default open height is set on load
1724 ArticleSideBarTable.style.maxHeight = ArticleSideBarTable.scrollHeight + "px";
1725
1726 ArticleSideBarTitleContainerButton.addEventListener("click", () => {
1727 const isOpen = ArticleSideBar.classList.contains("Article-SideBar-Table-Open");
1728
1729 if (isOpen) {
1730 // Closing: animate to height 0
1731 ArticleSideBarTable.style.maxHeight = ArticleSideBarTable.scrollHeight + "px";
1732 setTimeout(() => {
1733 ArticleSideBarTable.style.maxHeight = "0";
1734 }, 10);
1735
1736 ArticleSideBar.classList.remove("Article-SideBar-Table-Open");
1737 ArticleSideBarTitleContainerButton.setAttribute("aria-expanded", "false");
1738 } else {
1739 // Opening: expand dynamically
1740 ArticleSideBar.classList.add("Article-SideBar-Table-Open");
1741 ArticleSideBarTable.style.maxHeight = ArticleSideBarTable.scrollHeight + "px";
1742 ArticleSideBarTitleContainerButton.setAttribute("aria-expanded", "true");
1743 }
1744 });
1745 // });
1746
1747 //FAQ SCRIPT START
1748 const collapseElements = document.querySelectorAll('#frequentlyAskedQuestionsAccordion .collapse');
1749
1750 collapseElements.forEach(collapseEl => {
1751 // When a panel is shown (opened)
1752 $(collapseEl).on('show.bs.collapse', function () {
1753 const header = document.querySelector('[data-target="#' + this.id + '"]');
1754 const svgUse = header?.querySelector('.faq-plus-icon-use');
1755 if (svgUse) {
1756 svgUse.setAttribute(
1757 'xlink:href',
1758 svgUse.getAttribute('xlink:href').replace('#sbil-faq-plus', '#sbil-faq-minus')
1759 );
1760 }
1761 });
1762
1763 // When a panel is hidden (closed)
1764 $(collapseEl).on('hide.bs.collapse', function () {
1765 const header = document.querySelector('[data-target="#' + this.id + '"]');
1766 const svgUse = header?.querySelector('.faq-plus-icon-use');
1767 if (svgUse) {
1768 svgUse.setAttribute(
1769 'xlink:href',
1770 svgUse.getAttribute('xlink:href').replace('#sbil-faq-minus', '#sbil-faq-plus')
1771 );
1772 }
1773 });
1774 });
1775
1776 function changeFAQBtn(){
1777 const viewMoreBtn = document.querySelector('.frequently_asked_questions #FAQ-ViewMore-Btn');
1778 const viewAllBtn = document.querySelector('.frequently_asked_questions #FAQ-ViewAll-Btn');
1779
1780 if (!viewMoreBtn || !viewAllBtn) {
1781 console.error("One or both buttons were not found in the DOM.");
1782 return;
1783 }
1784
1785 viewMoreBtn.classList.add('d-none');
1786 viewAllBtn.classList.remove('d-none');
1787
1788 const accordionCards = document.querySelectorAll('.accordion-card');
1789 accordionCards.forEach((accordionCard) => {
1790 if(accordionCard.classList.contains('d-none')){
1791 accordionCard.classList.remove('d-none');
1792 }
1793 })
1794 }
1795
1796 document?.getElementById("FAQ-ViewMore-Btn")?.addEventListener("click", changeFAQBtn); //FAQ SCRIPT END
1797
1798</script>
1799
1800<script type="application/ld+json">
1801 {
1802 "@context": "https://schema.org",
1803 "@type": "BlogPosting",
1804 "mainEntityOfPage": {
1805 "@type": "WebPage",
1806 "@id": "${pageURL}#webpage"
1807 },
1808 "headline": "${articleTitle.getData()?json_string}",
1809 "description": "${metaDescription}",
1810 "image": "${articleDetailBannerURL?json_string}",
1811 "publisher": {
1812 "@type": "Organization",
1813 "name": "SBI Life",
1814 "logo": {
1815 "@type": "ImageObject",
1816 "url": "${logoURL}"
1817 }
1818 },
1819 "datePublished": "${publishedDateISO}"
1820 }
1821</script>