/* ==========================================================================
   Intelsense — Premium homepage
   Scoped entirely under .home-premium so the same .area-* classes used on
   other pages are untouched. Base brand colour: #00256b.
   WCAG 2.1 AA: body text >= 4.5:1, large text/UI >= 3:1, visible focus,
   reduced-motion support, amber used only as a non-text accent.
   ========================================================================== */

.home-premium{
    --hp-navy:      #00256b;   /* base brand                                   */
    --hp-navy-deep: #001a4d;   /* gradient shade                               */
    --hp-navy-mid:  #143a86;   /* hover / links on light — 6.9:1 on white      */
    --hp-ink:       #1d2b47;   /* body text — 12.1:1 on white                  */
    --hp-ink-soft:  #45577a;   /* secondary text — 6.0:1 on white              */
    --hp-amber:     #f99e1e;   /* accent — decorative only, never text-on-white*/
    --hp-surface:   #ffffff;
    --hp-tint:      #f4f7fc;   /* section wash                                 */
    --hp-line:      rgba(0, 37, 107, .10);
    --hp-shadow:    0 1px 2px rgba(0, 37, 107, .05), 0 10px 30px rgba(0, 37, 107, .07);
    --hp-shadow-lg: 0 18px 48px rgba(0, 37, 107, .16);
    --hp-radius:    18px;
    --hp-radius-sm: 12px;
    --hp-ease:      cubic-bezier(.4, 0, .2, 1);

    font-family: 'Poppins', sans-serif;
    color: var(--hp-ink);
    background: var(--hp-surface);
    overflow-x: hidden;
}

/* kill fade/zoom scroll animations on the homepage.
   Also forces opacity/transform back to normal so nothing AOS left at
   opacity:0 (e.g. a heading or link) can stay invisible. */
.home-premium [data-aos]{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* neutralise the two legacy decorations that fought the new design:
   - the h2:before bar was hard-positioned (margin-left:415px) and drifted
   - .box-area was an empty div framing the video in a yellow border via
     a -326px negative margin */
.home-premium .area-inr2 h2::before{ display: none !important; }
.home-premium .area-inr2 .box-area{ display: none !important; }

/* section rhythm ---------------------------------------------------------- */

.home-premium .area-2,
.home-premium .area-5,
.home-premium .area-6,
.home-premium .area-9-new{
    float: none;
    width: 100%;
    padding: 84px 0;
    position: relative;
}

.home-premium .area-5{ background: var(--hp-tint); }
.home-premium .area-6{ padding-top: 72px; }

/* shared heading treatment ------------------------------------------------ */
/* Decorative accent bar under section titles. No text added — pure CSS. */

.home-premium .area-inr2 > h2,
.home-premium .area-inr5 > h4,
.home-premium .area-9-new h2{
    position: relative;
    font-weight: 700;
    letter-spacing: -.01em;
    text-transform: none;            /* was uppercase in legacy CSS */
    color: var(--hp-navy);
    margin: 0 0 34px;                /* was 60px, uneven — normalise */
    padding-bottom: 18px;
    line-height: 1.15;
}

.home-premium .area-inr2 > h2,
.home-premium .area-inr5 > h4{ text-align: left; }

.home-premium .area-inr2 > h2{ font-size: clamp(28px, 3.4vw, 40px); }
.home-premium .area-inr5 > h4{ font-size: clamp(24px, 3vw, 34px); }

.home-premium .area-inr2 > h2::after,
.home-premium .area-inr5 > h4::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 66px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--hp-amber), #ffca6b);
}

/* ---------------------------------------------------------------- About */

/* keep the two columns top-aligned and give them room to breathe */
.home-premium .area-2 .row{
    align-items: flex-start;
    row-gap: 30px;
}

.home-premium .area-2 .col-lg-7{ padding-right: 34px; }

.home-premium .area-2 .col-lg-7 > p,
.home-premium .area-5 .col-lg-6 > p{
    color: var(--hp-ink);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.home-premium .area-2 a,
.home-premium .area-5 a:not(.new-btn1):not(button){
    color: var(--hp-navy-mid);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;              /* long substack URL must not overflow */
    transition: color .18s var(--hp-ease);
}

.home-premium .area-2 a:hover,
.home-premium .area-5 a:hover{ color: var(--hp-navy); }

/* subscription card + table ------------------------------------------ */

.home-premium .subscription-section{
    margin-top: 26px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    padding: 22px 24px 26px;
}

.home-premium .subscription-section h5{
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
}

.home-premium .subscription-title{
    color: var(--hp-navy) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-premium .subscription-title::before{
    content: "\f0a9"; /* fa arrow-circle-right */
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    color: var(--hp-amber);
}

.home-premium .subscription-title:hover{ text-decoration: underline !important; }

.home-premium .subscription-table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius-sm);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.home-premium .subscription-table th{
    background: var(--hp-navy);
    color: #fff;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: left;
}

.home-premium .subscription-table td{
    padding: 12px 16px;
    border-top: 1px solid var(--hp-line);
    background: var(--hp-surface);
    color: var(--hp-ink);
    font-size: 14.5px;
    vertical-align: middle;
}

.home-premium .subscription-table tbody tr:nth-child(even) td{
    background: #f7f9fd;
}

.home-premium .subscription-table td a{
    color: var(--hp-navy-mid);
    font-weight: 600;
    text-decoration: none;
}

.home-premium .subscription-table td a:hover{
    color: var(--hp-navy);
    text-decoration: underline;
}

/* video ------------------------------------------------------------- */

.home-premium .area-2 .col-lg-5 > p{
    color: var(--hp-ink);
    font-size: 15px;
    margin-bottom: 14px;
}

.home-premium .area-2 .col-lg-5 iframe{
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow-lg);
    background: #000;
}

/* ------------------------------------------------- Portfolio (navy band) */

.home-premium .area-9-new{
    background:
        radial-gradient(1200px 400px at 15% -10%, rgba(255, 255, 255, .08), transparent 60%),
        linear-gradient(135deg, var(--hp-navy) 0%, var(--hp-navy-deep) 100%);
    color: #fff;
    text-align: center;
}

.home-premium .area-9-new h2{
    color: #fff;
    margin-bottom: 14px;
}

.home-premium .area-9-new h2::after{
    left: 50%;
    transform: translateX(-50%);
}

.home-premium .area-9-new > .container > .area-inr9 > p{
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
    max-width: 720px;
    margin: 0 auto 26px;
    line-height: 1.7;
}

.home-premium .area-9-new a{
    color: #ffd68a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-premium .area-9-new a:hover{ color: #fff; }

/* factsheet links as cards */
.home-premium .portfolio-links{
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 14px;
    max-width: 860px;
    grid-template-columns: repeat(3, 1fr);
}

.home-premium .portfolio-links li{
    margin: 0;
}

.home-premium .portfolio-links li a{
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--hp-radius-sm);
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none !important;
    text-align: left;
    transition: background .2s var(--hp-ease), transform .2s var(--hp-ease), border-color .2s var(--hp-ease);
}

.home-premium .portfolio-links li a::before{
    content: "\f1c1"; /* fa file-pdf */
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    color: var(--hp-amber);
    font-size: 18px;
    flex: none;
}

.home-premium .portfolio-links li a:hover{
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .4);
    transform: translateY(-3px);
}

/* --------------------------------------------------- Partners + value cards */

.home-premium .area-5 .new-btn{ margin-top: 26px; }

.home-premium .area-5 .new-btn1{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--hp-navy);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 15px 28px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    box-shadow: 0 8px 22px rgba(0, 37, 107, .22);
    transition: transform .18s var(--hp-ease), box-shadow .18s var(--hp-ease);
}

.home-premium .area-5 .new-btn1 .fa{ color: var(--hp-amber); }

.home-premium .area-5 .new-btn1:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 37, 107, .32);
}

.home-premium .contact-box{
    height: 100%;
    background: var(--hp-surface);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    padding: 30px 22px;
    text-align: center;
    transition: transform .2s var(--hp-ease), box-shadow .2s var(--hp-ease);
}

.home-premium .contact-box:hover{
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-lg);
}

.home-premium .contact-box i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 16px;
    font-size: 26px;
    color: var(--hp-navy);
    background: linear-gradient(135deg, rgba(0, 37, 107, .10), rgba(249, 158, 30, .14));
}

.home-premium .contact-box h3{
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--hp-navy);
}

/* keep the 4 cards evenly tall inside their rows */
.home-premium .area-5 .contact-box{ margin-bottom: 0; }
.home-premium .area-5 .row.mt-4{ margin-top: 24px !important; }

/* ------------------------------------------------ Why choose / SEBI cards */

.home-premium .area-6 .faq-area,
.home-premium .area-6 .benefit-area{
    height: 100%;
    background: var(--hp-surface);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    padding: 34px 32px;
}

.home-premium .area-6 .benefit-area{
    background:
        linear-gradient(180deg, rgba(0, 37, 107, .04), transparent 40%),
        var(--hp-surface);
}

.home-premium .area-6 h4{
    position: relative;
    text-align: left;                /* legacy CSS centred these; bar is left */
    font-size: clamp(21px, 2.4vw, 26px);
    font-weight: 700;
    color: var(--hp-navy);
    margin-bottom: 22px;
    padding-bottom: 14px;
}

.home-premium .area-6 h4::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 3px;
    border-radius: 3px;
    background: var(--hp-amber);
}

.home-premium .area-6 h5{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--hp-ink);
    margin: 18px 0 6px;
    line-height: 1.4;
}

.home-premium .area-6 h5 i{
    color: var(--hp-amber);
    margin-top: 3px;
    flex: none;
}

.home-premium .area-6 p{
    color: var(--hp-ink-soft);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 4px;
    padding-left: 26px;
}

/* legacy .benefit-area sat on a dark bg — its rules force white text with
   !important (incl. a:hover). On the new white card that makes links vanish.
   Override with matching !important + higher specificity. */
.home-premium .area-6 .benefit-area a{
    color: var(--hp-navy-mid) !important;
    font-weight: 600;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.home-premium .area-6 .benefit-area a:hover,
.home-premium .area-6 .benefit-area a:focus{
    color: var(--hp-navy) !important;
    text-decoration: underline !important;
}

/* legacy also whitens h5 / paragraphs / bullet icons here */
.home-premium .area-6 .benefit-area h5{ color: var(--hp-ink); }
.home-premium .area-6 .benefit-area p{ color: var(--hp-ink-soft); }
.home-premium .area-6 .benefit-area .fa-solid{ color: var(--hp-amber); }

.home-premium .area-6 .benefit-area h5 a{ padding: 0; }

/* ------------------------------------------------------ focus visibility */

.home-premium a:focus-visible,
.home-premium button:focus-visible{
    outline: 3px solid var(--hp-navy-mid);
    outline-offset: 2px;
    border-radius: 6px;
}

.home-premium .area-9-new a:focus-visible,
.home-premium .portfolio-links a:focus-visible{
    outline-color: #ffd68a;
}

/* ----------------------------------------------------------------- responsive */

@media (max-width: 991.98px){
    .home-premium .area-2,
    .home-premium .area-5,
    .home-premium .area-6,
    .home-premium .area-9-new{ padding: 56px 0; }

    .home-premium .area-2 .col-lg-7{ padding-right: 15px; }

    .home-premium .portfolio-links{ grid-template-columns: 1fr; max-width: 460px; }

    .home-premium .area-6 .benefit-area{ margin-top: 22px; }
}

@media (max-width: 575.98px){
    .home-premium .subscription-section{ padding: 18px 16px 20px; }
    .home-premium .subscription-table th,
    .home-premium .subscription-table td{ padding: 10px 12px; }
    .home-premium .contact-box{ padding: 24px 18px; }
    .home-premium .area-6 .faq-area,
    .home-premium .area-6 .benefit-area{ padding: 26px 22px; }
}

/* users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
    .home-premium .contact-box,
    .home-premium .portfolio-links li a,
    .home-premium .area-5 .new-btn1{ transition: none; }
    .home-premium .contact-box:hover,
    .home-premium .portfolio-links li a:hover,
    .home-premium .area-5 .new-btn1:hover{ transform: none; }
}
