/*
Theme Name: Neha Infotech
Theme URI: https://www.nehainfotech.com/
Version: 3.0
Author: Neha Infotech
Author URI: https://www.nehainfotech.com/
Description: Premium institute theme for Neha Infotech — SAP, ERP & IT online training. Editorial typography, structured grid, restrained academic palette. Compatible with Bootstrap 4 widgets, Elementor, Contact Form 7, and the bundled reviews shortcodes.
*/

/* =================================================================
   PALETTE
   Forest ink (primary)  + parchment (canvas) + terracotta (accent)
   Inspired by academic catalogs / MIT OpenCourseWare / Coursera.
   ================================================================= */
:root{
    /* Ink scale */
    --ni-ink-900:   #0d1f1c;   /* deepest text */
    --ni-ink-800:   #1a3530;   /* primary brand */
    --ni-ink-700:   #2a4a44;
    --ni-ink-500:   #4f6a64;   /* secondary text */
    --ni-ink-400:   #7a8e89;
    --ni-ink-300:   #a8b6b2;
    --ni-ink-200:   #d0d8d5;
    --ni-ink-100:   #e6eae8;   /* hairline rule */

    /* Canvas */
    --ni-paper:     #faf7f1;   /* warm parchment */
    --ni-paper-2:   #f3ede1;
    --ni-white:     #ffffff;

    /* Accent — terracotta */
    --ni-accent:    #c34a2c;
    --ni-accent-2:  #a23a20;
    --ni-accent-soft: #f4dccf;

    /* Functional (preserved from original tokens) */
    --ni-blue:      #0F4C90;   /* legacy original brand for Elementor backward-compat */
    --ni-warning:   #c47600;
    --ni-danger:    #c0392b;

    /* Type */
    --ni-serif:     "Source Serif Pro", "Source Serif 4", Georgia, serif;
    --ni-sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ni-mono:      "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Radii */
    --ni-r-sm: 2px;
    --ni-r-md: 4px;
    --ni-r-lg: 6px;

    /* Hairlines & shadows */
    --ni-line:      1px solid var(--ni-ink-100);
    --ni-shadow-1:  0 1px 2px rgba(13,31,28,.04), 0 8px 24px -12px rgba(13,31,28,.10);
    --ni-shadow-2:  0 2px 4px rgba(13,31,28,.05), 0 18px 40px -18px rgba(13,31,28,.16);

    /* Layout */
    --ni-container: 1240px;
}

/* =================================================================
   FONT IMPORTS — done after :root so var() resolution works
   ================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* =================================================================
   BASE
   ================================================================= */
html, body {
    width: 100% !important;
    overflow-x: hidden !important;
}
body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--ni-paper) !important;
    color: var(--ni-ink-800) !important;
    font-family: var(--ni-sans) !important;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern", "liga", "calt";
}

a {
    color: var(--ni-ink-800);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--ni-ink-200);
    transition: text-decoration-color .2s ease, color .2s ease;
}
a:hover {
    text-decoration: none !important;
    color: var(--ni-accent);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ni-ink-900);
    font-family: var(--ni-serif);
    font-weight: 400;
    letter-spacing: -.015em;
    line-height: 1.18;
    margin: 0 0 .6em;
}
h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 400; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
h4 { font-size: 20px; font-weight: 500; }
h5 { font-size: 17px; font-weight: 500; font-family: var(--ni-sans); letter-spacing: 0; }

p { margin-bottom: 1.15rem; }
img { max-width: 100%; height: auto; }
::selection { background: var(--ni-ink-900); color: var(--ni-paper); }

/* Editorial eyebrow utility — used in headers across the theme */
.ni-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ni-sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--ni-accent);
    margin-bottom: 18px;
}
.ni-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--ni-accent);
}

/* =================================================================
   TOP UTILITY BAR  (.header-top)
   ================================================================= */
.header-top {
    padding: 10px 0;
    background: var(--ni-ink-900);
    color: var(--ni-paper);
    font-family: var(--ni-sans);
    font-size: 13px;
    letter-spacing: .01em;
    font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.header-top a {
    color: var(--ni-paper);
    text-decoration: none;
}
.header-top a:hover { color: var(--ni-accent-soft); }
.header-top .fa { color: var(--ni-accent); margin-right: 6px; font-size: 12px; }
.header-top .text-right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: 4px;
    border-radius: 50%;
    transition: background .2s, transform .2s;
}
.header-top .text-right a .fa {
    color: var(--ni-paper);
    font-size: 12px;
    margin: 0;
}
.header-top .text-right a:hover {
    background: rgba(255,255,255,.08);
}

/* =================================================================
   NAVBAR  (.navbar .mainmenu)
   Sticky, hairline rule, ultra-clean.
   ================================================================= */
.navbar {
    padding: 18px 0 !important;
    color: var(--ni-ink-800);
    background: var(--ni-paper);
    border-bottom: var(--ni-line);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: padding .25s ease, box-shadow .25s ease, background .25s ease;
}
.navbar.is-scrolled {
    padding: 12px 0 !important;
    background: rgba(250, 247, 241, .96);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    box-shadow: var(--ni-shadow-1);
}
.navbar-brand { padding: 2px 0; }
.navbar-brand img {
    max-height: 48px;
    transition: opacity .2s ease;
}
.navbar-brand:hover img { opacity: .85; }

.navbar-expand-lg .navbar-nav .nav-link {
    padding: 10px 18px !important;
    font-family: var(--ni-sans);
    font-weight: 500;
    font-size: 14px;
    color: var(--ni-ink-700);
    text-transform: none;
    letter-spacing: .01em;
    position: relative;
    text-decoration: none;
    transition: color .2s ease;
}
.navbar-expand-lg .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 2px;
    height: 1px;
    background: var(--ni-ink-800);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.nav-link:hover { color: var(--ni-ink-900) !important; }
.nav-link:hover::after { transform: scaleX(1); }
.active a, .current-menu-item .nav-link { color: var(--ni-ink-900) !important; }
.active a::after, .current-menu-item .nav-link::after { transform: scaleX(1); }

.navbar-toggler {
    border: 1px solid var(--ni-ink-200);
    border-radius: var(--ni-r-sm);
    padding: 8px 10px;
    background: transparent;
}
.navbar-toggler:focus { outline: none; box-shadow: 0 0 0 2px var(--ni-ink-100); }
.icon-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    border-radius: 1px;
    background-color: var(--ni-ink-800);
    margin: 5px 0;
    transition: background .2s;
}

/* =================================================================
   HERO — SPLIT LAYOUT
   #one-parallax keeps the same markup. We disable the background
   image entirely (we want a clean editorial canvas, not an overlay
   composition). The .overlay-breadcrumbs container becomes a CSS
   grid: title block left, info card right.
   ================================================================= */

#one-parallax {
    position: relative;
    background-image: none !important;     /* override inline style from PHP */
    background: var(--ni-paper);
    border-bottom: var(--ni-line);
    overflow: hidden;
}
/* very subtle baseline grid texture so the canvas isn't visually empty */
#one-parallax::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--ni-ink-100) 1px, transparent 1px);
    background-size: 100% 80px;
    background-position: 0 0;
    opacity: .45;
    pointer-events: none;
    mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
}
/* small terracotta corner accent */
#one-parallax::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 88px;
    background: var(--ni-accent);
}

.overlay-breadcrumbs {
    position: relative;
    padding: 88px 0 88px;
    color: var(--ni-ink-900);
    background: transparent;
}
.overlay-breadcrumbs > .container {
    position: relative;
    z-index: 2;
}

/* The inner .row > .col-md-12 wrapper is where the title, line and
   rightText live. We turn that single column into a 12-col grid so
   we can split content left / info right without altering markup. */
.overlay-breadcrumbs .col-md-12 {
    text-align: left !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
    row-gap: 24px;
    align-items: end;
    max-width: 100%;
    margin: 0 !important;
    padding: 0;
}

/* LEFT column: the .line and the <h2> live in source order — we
   place them in cell 1. The .rightText (breadcrumb) takes cell 2.   */

.overlay-breadcrumbs .line {
    /* repurposed as a small uppercase eyebrow */
    grid-column: 1 / 2;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    background: transparent;
    margin: 0 0 14px;
    font-family: var(--ni-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ni-accent);
}
.overlay-breadcrumbs .line::before {
    content: "Institute";
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.overlay-breadcrumbs .line::after {
    content: "";
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--ni-accent);
    margin-left: 14px;
    vertical-align: middle;
}

.overlay-breadcrumbs h1,
.overlay-breadcrumbs h2,
.overlay-breadcrumbs h3 {
    grid-column: 1 / 2;
    grid-row: 2;
    color: var(--ni-ink-900);
    font-family: var(--ni-serif);
    font-weight: 400;
    font-size: clamp(40px, 5.4vw, 72px);
    line-height: 1.04;
    letter-spacing: -.025em;
    margin: 0;
    text-wrap: balance;
}

/* RIGHT column: breadcrumb pill — placed in cell 2 */
.overlay-breadcrumbs .rightText {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: end;
    justify-self: end;
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 28px 32px;
    background: var(--ni-white);
    border: var(--ni-line);
    border-radius: var(--ni-r-md);
    box-shadow: var(--ni-shadow-1);
    font-family: var(--ni-sans);
    font-size: 13px;
    font-weight: 400;
    color: var(--ni-ink-500);
    letter-spacing: 0;
    text-transform: none;
    position: relative;
}
.overlay-breadcrumbs .rightText::before {
    content: "Navigation";
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ni-ink-400);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: var(--ni-line);
}
.overlay-breadcrumbs .rightText a {
    color: var(--ni-ink-800);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--ni-ink-200);
    padding-bottom: 1px;
    transition: border-color .2s, color .2s;
}
.overlay-breadcrumbs .rightText a:hover {
    color: var(--ni-accent);
    border-color: var(--ni-accent);
}

/* Hero entrance */
@keyframes ni-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
.overlay-breadcrumbs .line { animation: ni-fade-up .55s ease both; }
.overlay-breadcrumbs h1,
.overlay-breadcrumbs h2,
.overlay-breadcrumbs h3 { animation: ni-fade-up .7s .08s ease both; }
.overlay-breadcrumbs .rightText { animation: ni-fade-up .8s .18s ease both; }

@media (max-width: 991.98px) {
    .overlay-breadcrumbs { padding: 64px 0 72px; }
    .overlay-breadcrumbs .col-md-12 {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 20px;
    }
    .overlay-breadcrumbs .rightText {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        max-width: 100%;
    }
}

/* =================================================================
   MAIN PAGE BODY
   ================================================================= */
.main-page-body {
    padding: 80px 0 110px;
    background: var(--ni-paper);
}

/* =================================================================
   CARDS  (.card / .post-info)
   Editorial flat cards with hairline rules — no rounded corners.
   ================================================================= */
.card {
    border-radius: 0 !important;
    border: var(--ni-line);
    background: var(--ni-white);
    box-shadow: none;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.card:hover { box-shadow: var(--ni-shadow-1); border-color: var(--ni-ink-200); }
.card-body { padding: 36px 40px; }

.post-info { background: var(--ni-white); }
.post-info .card-body { padding: 40px 48px; }

.post-info .card-title,
.post-title {
    font-family: var(--ni-serif);
    font-weight: 500;
    color: var(--ni-ink-900);
    margin-bottom: 8px;
    letter-spacing: -.015em;
}
.post-info .card-title a,
.post-title a {
    color: var(--ni-ink-900);
    text-decoration: none;
}
.post-info .card-title a:hover,
.post-title a:hover { color: var(--ni-accent); }

.post-info .card-subtitle {
    font-family: var(--ni-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--ni-ink-400);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: var(--ni-line);
}
.post-info .card-subtitle .fa {
    color: var(--ni-accent);
    margin-right: 4px;
    font-size: 11px;
}
.post-info .card-subtitle a {
    color: var(--ni-ink-700);
    border-bottom: none;
    text-decoration: none;
}
.post-info .card-subtitle a:hover { color: var(--ni-accent); }

.post-info p {
    text-align: left !important;
    color: var(--ni-ink-700);
    font-size: 16px;
    line-height: 1.75;
    max-width: 70ch;
}
.post-info p:last-child { margin-bottom: 0; }

/* Page title rule — under the H2 on page.php */
.page-title-hr {
    position: relative;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: var(--ni-line);
}
.page-title-hr::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 2px;
    background: var(--ni-accent);
}

/* =================================================================
   SIDEBAR  (#rsidebar widget area, .sidebar / .sidebar-li / .bg-rs)
   The widget output is fixed by functions.php — we style around it.
   ================================================================= */
.sidebar, .sidebar ul, .footersidebar, .footersidebar ul { width: 100%; }
.sidebar ul, .sidebar ul li, .sidebar ul li ul li,
.footersidebar ul, .footersidebar ul li, .footersidebar ul li ul li {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0;
}
.sidebar ul li { line-height: 32px !important; font-size: 15px; }
.sidebar ul li ul { padding: 12px 0 12px 14px !important; }
.footersidebar ul li ul { padding: 0 !important; }

.sidebar-li { margin-bottom: 28px; }
.sidebar-li .card {
    border: var(--ni-line);
    background: var(--ni-white);
    overflow: hidden;
}
.sidebar-li .card-body { padding: 24px 28px; }

.sidebar-li ul li:before {
    content: "›";
    font-weight: 400;
    color: var(--ni-accent);
    padding-right: 10px;
    font-size: 16px;
}
.sidebar-li ul li a {
    color: var(--ni-ink-800);
    font-weight: 400;
    text-decoration: none;
    transition: color .2s, padding-left .2s;
}
.sidebar-li ul li a:hover {
    color: var(--ni-accent);
    padding-left: 3px;
}
.sidebar-li h2 {
    padding: 22px 28px 0 28px;
    font-size: 13px;
    font-family: var(--ni-sans);
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ni-ink-400);
    margin: 0;
}
.sidebar-li ul { padding: 12px 28px 22px !important; }

/* The widget card title — output by register_sidebar in functions.php */
.bg-rs { background: var(--ni-ink-900) !important; }
.sidebar h3.card-title {
    font-size: 13px !important;
    color: var(--ni-paper) !important;
    padding: 18px 28px !important;
    margin: 0 !important;
    font-family: var(--ni-sans);
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    position: relative;
}
.sidebar h3.card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ni-accent);
}

/* =================================================================
   FORMS — Contact Form 7, Quick Enquiry, Review form
   ================================================================= */
.quick-enquiry-form,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 14px !important;
    border: 1px solid var(--ni-ink-200) !important;
    border-radius: var(--ni-r-sm) !important;
    background: var(--ni-white);
    font-family: var(--ni-sans);
    font-size: 14.5px;
    color: var(--ni-ink-900);
    transition: border .2s, box-shadow .2s, background .2s;
    margin-bottom: 12px;
    line-height: 1.5;
}
.quick-enquiry-form::placeholder,
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: var(--ni-ink-400);
}
.quick-enquiry-form:focus,
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--ni-ink-800) !important;
    box-shadow: 0 0 0 3px rgba(13,31,28,.08);
}

/* Primary button — used by CF7 submit, review form, header CTA */
.btn-primary,
.wpcf7-form input[type="submit"] {
    background: var(--ni-ink-900) !important;
    color: var(--ni-paper) !important;
    border: 0 !important;
    padding: 13px 28px !important;
    border-radius: var(--ni-r-sm) !important;
    font-family: var(--ni-sans);
    font-weight: 500 !important;
    letter-spacing: .03em !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all .25s ease !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
.btn-primary:hover,
.wpcf7-form input[type="submit"]:hover {
    background: var(--ni-accent) !important;
    transform: translateY(-1px);
}
.wpcf7-not-valid-tip {
    color: var(--ni-danger);
    font-size: 12.5px;
    margin-top: -8px;
    margin-bottom: 8px;
    display: block;
}
.wpcf7-response-output {
    border-radius: var(--ni-r-sm) !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    margin: 16px 0 0 !important;
}

/* =================================================================
   REVIEWS  (output of display_reviews / review_form shortcodes)
   ================================================================= */
.fa-star:before { color: #d4a373; }   /* terracotta-adjacent */
.rating-desc {
    font-family: var(--ni-sans);
    font-size: 13px;
    color: var(--ni-ink-500);
    display: block;
    margin: 8px 0 16px;
}
.rating-desc .fa { margin-right: 1px; }

/* =================================================================
   PAGINATION  (function pagenavi() output)
   ================================================================= */
.pagenavi {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 40px 0 24px;
    padding-top: 32px;
    border-top: var(--ni-line);
    font-family: var(--ni-sans);
}
.pagenavi .pages {
    font-size: 13px;
    color: var(--ni-ink-400);
    margin-right: auto;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.pagenavi a,
.pagenavi span.current,
.pagenavi span.expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    border: var(--ni-line);
    border-radius: var(--ni-r-sm);
    color: var(--ni-ink-800);
    font-weight: 500;
    font-size: 14px;
    background: var(--ni-white);
    text-decoration: none !important;
    transition: all .2s ease;
}
.pagenavi a:hover {
    border-color: var(--ni-ink-800);
    color: var(--ni-ink-900);
}
.pagenavi span.current {
    background: var(--ni-ink-900);
    color: var(--ni-paper);
    border-color: var(--ni-ink-900);
}
.pagenavi span.expand {
    border: 0;
    background: transparent;
    min-width: 24px;
    color: var(--ni-ink-400);
}

/* =================================================================
   FOOTER  (.footer-top / .footer-bottom)
   ================================================================= */
.footer-top {
    position: relative;
    background: var(--ni-ink-900);
    color: rgba(250, 247, 241, .72);
    padding: 80px 0 56px;
    overflow: hidden;
}
.footer-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ni-accent), transparent);
    opacity: .5;
}
.footer-top a {
    color: rgba(250, 247, 241, .85);
    text-decoration: none;
}
.footer-top a:hover { color: var(--ni-accent-soft); }

.footer-top .footer-box h4 {
    color: var(--ni-paper);
    font-family: var(--ni-serif);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(250,247,241,.1);
    letter-spacing: -.01em;
    position: relative;
}
.footer-top .footer-box h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 1px;
    background: var(--ni-accent);
}
.footer-top .footer-box h5 {
    margin-top: 0;
    font-size: 12px;
    font-family: var(--ni-sans);
    font-weight: 600;
    color: rgba(250,247,241,.7);
    letter-spacing: .14em;
    text-transform: uppercase;
}
.footer-top ul { padding: 0 !important; margin: 0; }
.footer-top li {
    list-style: none;
    line-height: 30px;
    font-size: 14.5px;
    font-family: var(--ni-sans);
}

.footer-top .fancy-list li a {
    position: relative;
    padding-left: 16px;
    display: inline-block;
    transition: padding .2s ease, color .2s ease;
}
.footer-top .fancy-list li a::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--ni-accent);
    font-weight: 400;
    opacity: .8;
    transition: transform .2s, opacity .2s;
}
.footer-top .fancy-list li a:hover {
    padding-left: 22px;
    color: var(--ni-paper);
}
.footer-top .fancy-list li a:hover::before {
    transform: translateX(4px);
    opacity: 1;
}

.footer-contact li {
    line-height: 1.7;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.footer-contact li i {
    color: var(--ni-accent) !important;
    padding-right: 0 !important;
    font-size: 14px;
    margin-top: 5px;
    min-width: 16px;
}
.footer-contact li a:hover i { color: var(--ni-paper); }
.footer-contact li a { color: rgba(250,247,241,.85); }

.footer-box img {
    max-height: 48px !important;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
    opacity: .92;
}

.footer-bottom {
    padding: 22px 0;
    background: #060f0d;
    color: rgba(250,247,241,.5);
    font-family: var(--ni-sans);
    font-size: 13px;
    border-top: 1px solid rgba(250,247,241,.05);
}
.footer-bottom p { margin: 0; text-align: center; letter-spacing: .04em; }

/* =================================================================
   ELEMENTOR INTEGRATION
   Preserve the original color tokens for backward-compat, but bring
   the visual treatment in line with the new restrained aesthetic.
   ================================================================= */
.elementor-element.elementor-button-warning .elementor-button {
    background-color: var(--ni-warning) !important;
    color: var(--ni-paper);
    border-radius: var(--ni-r-sm) !important;
    padding: 14px 28px !important;
    font-family: var(--ni-sans) !important;
    font-weight: 500 !important;
    letter-spacing: .03em;
    transition: all .25s ease !important;
    box-shadow: none !important;
}
.elementor-element.elementor-button-warning .elementor-button:hover {
    transform: translateY(-1px);
    background-color: var(--ni-accent) !important;
}
.elementor-element.elementor-button-info .elementor-button {
    background-color: var(--ni-ink-900) !important;
    color: var(--ni-paper);
    border-radius: var(--ni-r-sm) !important;
    padding: 14px 28px !important;
    font-family: var(--ni-sans) !important;
    font-weight: 500 !important;
    letter-spacing: .03em;
    transition: all .25s ease !important;
    box-shadow: none !important;
}
.elementor-element.elementor-button-info .elementor-button:hover {
    transform: translateY(-1px);
    background-color: var(--ni-accent) !important;
}
.elementor-element.elementor-button-danger .elementor-button {
    background-color: var(--ni-accent) !important;
    color: var(--ni-paper);
    border-radius: var(--ni-r-sm) !important;
    padding: 14px 28px !important;
    font-family: var(--ni-sans) !important;
    font-weight: 500 !important;
    transition: all .25s ease !important;
    box-shadow: none !important;
}
.elementor-element.elementor-button-danger .elementor-button:hover {
    transform: translateY(-1px);
    background-color: var(--ni-accent-2) !important;
}

h1.elementor-heading-title,
h2.elementor-heading-title,
h3.elementor-heading-title,
h4.elementor-heading-title {
    color: var(--ni-ink-900) !important;
    font-family: var(--ni-serif);
    font-weight: 400;
    letter-spacing: -.015em;
}
h3.elementor-image-box-title {
    font-size: 1.35rem;
    font-weight: 500 !important;
    color: var(--ni-ink-900);
    font-family: var(--ni-serif);
    margin-bottom: 12px;
}
p.elementor-image-box-description {
    text-align: left !important;
    color: var(--ni-ink-700);
    line-height: 1.7;
    font-size: 15.5px;
}
.elementor-image-box-wrapper { transition: transform .3s ease; }
.elementor-image-box-wrapper:hover { transform: translateY(-3px); }

/* =================================================================
   BOOTSTRAP CAROUSEL — kept editorial, no shadows over images
   ================================================================= */
.carousel-inner { max-height: 600px; }
.carousel-caption {
    top: 24%;
    bottom: auto !important;
    padding: 24px;
}
.carousel-caption h2,
.carousel-caption h5 {
    color: #fff !important;
    text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.carousel-caption h2 {
    font-family: var(--ni-serif);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -.015em;
}
.carousel-caption h5 {
    font-family: var(--ni-sans);
    font-size: 16px;
    font-weight: 400;
}

/* =================================================================
   ORIGINAL DIVIDER (preserved — used inside Elementor sections)
   Reskinned to match the palette.
   ================================================================= */
.divider-block {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 2px;
    background-color: var(--ni-accent);
    vertical-align: top;
    overflow: hidden;
    transform: skewX(0);
    -webkit-transform: skewX(0);
}
.divider-block-gap {
    position: absolute;
    background-color: var(--ni-paper);
    top: 0;
    bottom: 0;
    width: 12px;
    animation: DividerAnimation 1.5s infinite ease-in-out;
}
@keyframes DividerAnimation {
    0% { left: -12px; }
    100% { left: 100%; }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 991.98px) {
    .navbar-expand-lg .navbar-nav .nav-link { padding: 10px 14px !important; }
    .navbar-expand-lg .navbar-nav .nav-link::after { display: none; }
    .navbar-collapse {
        background: var(--ni-white);
        margin-top: 14px;
        padding: 14px;
        border: var(--ni-line);
        border-radius: var(--ni-r-md);
        box-shadow: var(--ni-shadow-1);
    }
}

@media (max-width: 767.98px) {
    .header-top { font-size: 12.5px; padding: 8px 0; }
    .header-top .text-right { margin-top: 6px; text-align: left !important; }
    .navbar-brand img { max-height: 42px; }

    .main-page-body { padding: 48px 0 72px; }
    .card-body, .post-info .card-body { padding: 28px 24px; }
    .page-title-hr { padding-bottom: 18px; margin-bottom: 22px; }

    .footer-top { padding: 56px 0 36px; }
    .footer-top .footer-box { margin-bottom: 36px; }
    .footer-top .footer-box:last-child { margin-bottom: 0; }
    .sidebar { margin-top: 32px; }
}
