/**
 * NJ Section 3 Elementor Widget Styles
 *
 * @package NJ_Core
 * @version 1.0.0
 */

:root {
    --nirja-font-main: 'Poppins', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nirja-font-heading: 'Marcellus', 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --nirja-font-body: 'Poppins', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}



/* --- Universal & Section Title Text Animations --- */
.nj-word,
.nj-sec1-title .nj-word {
    display: inline-block;
    vertical-align: top;
    margin-right: 0.28em;
    will-change: transform, opacity;
}

/* 1. Word by Word Slide Left to Right */
.nj-anim-word-slide-left-right .nj-word {
    opacity: 0;
    transform: translateX(-35px);
    animation: njWordSlideLeftRight var(--nj-anim-duration, 0.7s) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: calc(var(--nj-word-index, 0) * var(--nj-anim-delay, 0.12s));
}

@keyframes njWordSlideLeftRight {
    0% {
        opacity: 0;
        transform: translateX(-35px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 2. Word by Word Fade Up */
.nj-anim-word-fade-up .nj-word {
    opacity: 0;
    transform: translateY(28px);
    animation: njWordFadeUp var(--nj-anim-duration, 0.7s) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: calc(var(--nj-word-index, 0) * var(--nj-anim-delay, 0.12s));
}

@keyframes njWordFadeUp {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Word Wave (Continuous Loop) */
.nj-anim-word-wave .nj-word {
    display: inline-block;
    animation: njWordWave 3.2s ease-in-out infinite;
    animation-delay: calc(var(--nj-word-index, 0) * 0.16s);
}

@keyframes njWordWave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
        color: #4E5B4F;
    }
}

/* 4. Luxury Text Shimmer */
.nj-anim-text-shimmer {
    background: linear-gradient(90deg, #1D251F 0%, #4E5B4F 35%, #8B9988 50%, #4E5B4F 65%, #1D251F 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: njTextShimmer 4.5s ease-in-out infinite;
}

@keyframes njTextShimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* 5. Subtle Floating Wave */
.nj-anim-floating-wave {
    animation: njFloatingWave 4s ease-in-out infinite;
}

@keyframes njFloatingWave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* =========================================================================
 * NJ SECTION 3: ENHANCE YOUR NATURAL BEAUTY & FLASH HOVER EFFECT
 * ========================================================================= */
.nj-sec3-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.nj-sec3-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.nj-sec3-container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.nj-sec3-header {
    box-sizing: border-box;
    width: 100%;
}

.nj-sec3-subtitle {
    display: inline-block;
    font-family: var(--nirja-font-main, 'DM Sans', sans-serif);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nj-sec3-title {
    font-family: var(--nirja-font-heading, 'Marcellus', 'Marcellus Pro', Georgia, serif);
    transition: color 0.3s ease;
    word-break: break-word;
}

.nj-sec3-desc {
    font-family: var(--nirja-font-main, 'DM Sans', sans-serif);
    font-size: 15px;
    line-height: 1.6;
    color: #6C746B;
    text-align: justify;
    max-width: 700px;
    margin: 14px auto 40px auto;
    word-break: break-word;
}

.nj-sec3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 32px;
    row-gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

.nj-sec3-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.nj-sec3-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.nj-sec3-card-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
    background-color: #f5f3ef;
}

.nj-sec3-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.nj-sec3-card-thumb.nj-zoom-effect:hover .nj-sec3-thumb-img {
    transform: scale(1.06);
}

/* Luxury Light Flash Sweep Animation */
.nj-sec3-card-thumb.nj-flash-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
    z-index: 4;
}

.nj-sec3-card:hover .nj-sec3-card-thumb.nj-flash-effect::after {
    left: 150%;
    transition: left 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nj-sec3-card-body {
    box-sizing: border-box;
    width: 100%;
}

.nj-sec3-card-title {
    font-family: var(--nirja-font-heading, 'Marcellus', 'Marcellus Pro', Georgia, serif);
    transition: color 0.3s ease;
}

.nj-sec3-card-desc {
    font-family: var(--nirja-font-main, 'DM Sans', sans-serif);
    text-align: justify;
    text-justify: inter-word;
    transition: color 0.3s ease;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NJ Section 3 â€” Style 2: Luxury Architectural Box Style
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.nj-sec3-grid-style2 {
    display: grid;
    column-gap: 32px;
    row-gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

.nj-sec3-s2-box {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border: 1px solid #ECE7DE;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(8, 61, 66, 0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
    height: 100%;
}

.nj-sec3-s2-box:hover {
    transform: translateY(-8px);
    border-color: #A97725;
    box-shadow: 0 22px 48px rgba(169, 119, 37, 0.15);
}

/* Top Accent Notch Bar */
.nj-sec3-s2-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #A97725 0%, #C59A45 50%, #083D42 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 5;
}

.nj-sec3-s2-box:hover .nj-sec3-s2-accent-bar {
    opacity: 1;
}

/* Media Wrap & Frame */
.nj-sec3-s2-media-wrap {
    padding: 14px 14px 0 14px;
    box-sizing: border-box;
    width: 100%;
}

.nj-sec3-s2-media-frame {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    background-color: #08292C;
}

.nj-sec3-s2-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nj-sec3-s2-box:hover .nj-sec3-s2-img {
    transform: scale(1.07);
}

/* Dark gradient scrim at bottom of image */
.nj-sec3-s2-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 61, 66, 0.45) 0%, transparent 55%);
    pointer-events: none;
}

/* Floating Number Badge (Hidden) */
.nj-sec3-s2-num-badge {
    display: none !important;
}

/* Floating Action Circle */
.nj-sec3-s2-action-circle {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(169, 119, 37, 0.2);
    color: #083D42;
    z-index: 3;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nj-sec3-s2-box:hover .nj-sec3-s2-action-circle,
.nj-sec3-s2-action-circle:hover,
.nj-sec3-card:hover .nj-sec3-s2-action-circle {
    background: #f7941d !important;
    background-color: #f7941d !important;
    border-color: #f7941d !important;
    color: #FFFFFF !important;
    transform: rotate(45deg);
    box-shadow: 0 6px 18px rgba(247, 148, 29, 0.45) !important;
}

/* Body Content */
.nj-sec3-s2-body {
    padding: 22px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-sizing: border-box;
}

.nj-sec3-s2-title {
    font-family: var(--nirja-font-heading, 'Cinzel', 'Marcellus', Georgia, serif);
    font-size: 1.42rem;
    font-weight: 600;
    color: #083D42;
    margin: 0;
    line-height: 1.32;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
}

.nj-sec3-s2-box:hover .nj-sec3-s2-title {
    color: #A97725;
}

/* Expanding Title Accent Notch */
.nj-sec3-s2-title-notch {
    width: 26px;
    height: 2px;
    background: linear-gradient(90deg, #A97725 0%, #E2BC4B 100%);
    border-radius: 2px;
    margin: 10px 0 12px 0;
    transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nj-sec3-s2-box:hover .nj-sec3-s2-title-notch {
    width: 52px;
}

.nj-sec3-s2-desc {
    font-family: var(--nirja-font-main, 'DM Sans', sans-serif);
    font-size: 14.5px;
    line-height: 1.65;
    color: #556264;
    margin: 0;
    flex: 1;
    text-align: left;
}

/* Footer Action Bar */
.nj-sec3-s2-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #F0ECE4;
}

.nj-sec3-s2-explore-text {
    font-family: var(--nirja-font-main, 'DM Sans', sans-serif);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #A97725;
    transition: color 0.3s ease;
}

.nj-sec3-s2-arrow-pill {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(169, 119, 37, 0.08);
    color: #A97725;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nj-sec3-s2-box:hover .nj-sec3-s2-arrow-pill,
.nj-sec3-s2-arrow-pill:hover,
.nj-sec3-card:hover .nj-sec3-s2-arrow-pill {
    background: #f7941d !important;
    background-color: #f7941d !important;
    border-color: #f7941d !important;
    color: #FFFFFF !important;
    transform: translateX(5px);
    box-shadow: 0 4px 14px rgba(247, 148, 29, 0.4) !important;
}

/* Responsive adjustments for Style 2 */
@media (max-width: 1024px) {
    .nj-sec3-s2-media-frame {
        height: 210px;
    }

    .nj-sec3-s2-body {
        padding: 18px 20px 20px 20px;
    }

    .nj-sec3-s2-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .nj-sec3-grid-style2 {
        row-gap: 26px;
    }

    .nj-sec3-s2-media-frame {
        height: 220px;
    }

    .nj-sec3-s2-body {
        padding: 16px 18px 20px 18px;
    }
}


   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.nj-sec3-slider-wrapper {
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    padding: 40px 0;
}
.nj-sec3-marquee-track {
    display: flex;
    width: max-content;
    animation: njMarquee 40s linear infinite;
}
.nj-sec3-marquee-track:hover {
    animation-play-state: paused;
}
@keyframes njMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-33.333333%)); }
}
.nj-sec3-s3-card {
    flex: 0 0 auto;
    width: 350px;
    margin: 0 20px;
}
.nj-sec3-s3-media-wrap {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 200px 200px 20px 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, border-radius 0.4s ease;
}
.nj-sec3-s3-card:hover .nj-sec3-s3-media-wrap {
    transform: translateY(-15px);
    border-radius: 20px;
}
.nj-sec3-s3-media-frame {
    width: 100%;
    height: 100%;
    position: relative;
}
.nj-sec3-s3-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.nj-sec3-s3-card:hover .nj-sec3-s3-img {
    transform: scale(1.1);
}
.nj-sec3-s3-overlay-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.nj-sec3-s3-num {
    display: none !important;
}
.nj-sec3-s3-content-floating {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: #fff;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.nj-sec3-s3-card:hover .nj-sec3-s3-content-floating {
    transform: translateY(0);
}
.nj-sec3-s3-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: var(--nirja-font-heading, serif);
    color: #fff;
}
.nj-sec3-s3-desc {
    font-size: 0.95rem;
    opacity: 0;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    transition: opacity 0.4s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nj-sec3-s3-card:hover .nj-sec3-s3-desc {
    opacity: 1;
}
.nj-sec3-s3-explore {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #A97725;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.4s ease;
}
.nj-sec3-s3-card:hover .nj-sec3-s3-explore,
.nj-sec3-s3-explore:hover,
.nj-sec3-card:hover .nj-sec3-s3-explore {
    background: #f7941d !important;
    background-color: #f7941d !important;
    transform: translateX(0);
    opacity: 1;
}
@media (max-width: 768px) {
    .nj-sec3-s3-card { width: 280px; }
    .nj-sec3-s3-media-wrap { height: 400px; }
}




/* Style 3 Grid Layout overrides */
.nj-sec3-grid.nj-sec3-grid-style3 .nj-sec3-s3-card {
    width: 100%;
    margin: 0;
}

@media (max-width: 991px) {
    .nj-sec3-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .nj-sec3-title {
        font-size: 2.1rem !important;
    }

    .nj-sec3-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* ==========================================================================
   Bottom Action Button ("More Details") - Universal across all styles
   ========================================================================== */
.nj-sec3-bottom-action {
    width: 100%;
    margin-top: 45px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.nj-sec3-btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 38px;
    background-color: #2b3992;
    color: #ffffff !important;
    font-family: var(--nirja-font-main, sans-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 18px rgba(43, 57, 146, 0.25);
    cursor: pointer;
}

.nj-sec3-btn-more:hover,
.nj-sec3-btn-more:focus {
    background-color: #f7941d !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(247, 148, 29, 0.35);
    text-decoration: none !important;
}

.nj-sec3-btn-more .nj-sec3-btn-label {
    display: inline-block;
    line-height: 1;
}

.nj-sec3-btn-more .nj-sec3-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.3s ease;
}

.nj-sec3-btn-more .nj-sec3-btn-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.nj-sec3-btn-more:hover .nj-sec3-btn-icon-right {
    transform: translateX(4px);
}

.nj-sec3-btn-more:hover .nj-sec3-btn-icon-left {
    transform: translateX(-4px);
}

@media (max-width: 767px) {
    .nj-sec3-bottom-action {
        margin-top: 35px;
    }

    .nj-sec3-btn-more {
        padding: 12px 30px;
        font-size: 14px;
    }
}
