/* ==========================================
   Eye-Catching Insights Numerology Marquee
========================================== */

.insights-service-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
margin-top: 10px;
    background:
        linear-gradient(
            90deg,
            #c99216 0%,
            #f7df74 18%,
            #e5b936 42%,
            #fff0a0 50%,
            #e5b936 58%,
            #f7df74 82%,
            #c99216 100%
        );

    background-size: 220% 100%;
    animation: marqueeGoldFlow 8s linear infinite;

    border-top: 2px solid #b57c09;
    border-bottom: 2px solid #a96f04;

    box-shadow:
        0 7px 18px rgba(110, 72, 3, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(116, 74, 2, 0.22);

    z-index: 5;
}

/* Animated gold movement */

@keyframes marqueeGoldFlow {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 220% 0;
    }
}

/* Side fade */

.insights-service-marquee::before,
.insights-service-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 75px;
    z-index: 4;
    pointer-events: none;
}

.insights-service-marquee::before {
    left: 0;
    background: linear-gradient(
        to right,
        rgba(181,124,9,0.9),
        rgba(181,124,9,0)
    );
}

.insights-service-marquee::after {
    right: 0;
    background: linear-gradient(
        to left,
        rgba(181,124,9,0.9),
        rgba(181,124,9,0)
    );
}

/* Moving track */

.insights-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;

    animation: insightsMarqueeMove 38s linear infinite;
    will-change: transform;
}

.insights-marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Service name */

.insights-service-marquee .insights-marquee-group a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 7px 30px;

    font-family: "Playfair Display", Georgia, serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    letter-spacing: 0.2px;

    color: #171009 !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.45);

    background: rgba(255,255,255,0.08);

    text-decoration: none !important;
    white-space: nowrap;

    transition:
        color 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

/* Elegant separator */

.insights-service-marquee .insights-marquee-group a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;

    width: 2px;
    height: 25px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(70, 42, 0, 0.75),
            transparent
        );

    transform: translateY(-50%);
}

/* Animated underline */

.insights-service-marquee .insights-marquee-group a::before {
    content: "";
    position: absolute;

    left: 50%;
    bottom: 2px;

    width: 0;
    height: 3px;

    background: linear-gradient(
        90deg,
        #3b2400,
        #8b5b06,
        #3b2400
    );

    border-radius: 20px;

    transform: translateX(-50%);
    transition: width 0.35s ease;
}

/* Hover effect */

.insights-service-marquee .insights-marquee-group a:hover,
.insights-service-marquee .insights-marquee-group a:focus {
    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            rgba(37, 24, 5, 0.92),
            rgba(72, 46, 7, 0.92)
        );

    transform: translateY(-3px) scale(1.04);

    box-shadow:
        0 8px 18px rgba(70, 43, 2, 0.28),
        0 0 0 1px rgba(255,255,255,0.22);
}

.insights-service-marquee .insights-marquee-group a:hover::before,
.insights-service-marquee .insights-marquee-group a:focus::before {
    width: calc(100% - 55px);
    background: #f5d76e;
}

/* Pause while hovering */

.insights-service-marquee:hover .insights-marquee-track {
    animation-play-state: paused;
}

@keyframes insightsMarqueeMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Tablet */

@media (max-width: 991px) {

    .insights-service-marquee {
        padding: 8px 0;
    }

    .insights-service-marquee .insights-marquee-group a {
        min-height: 41px;
        padding: 6px 24px;
        font-size: 18px !important;
    }

    .insights-marquee-track {
        animation-duration: 34s;
    }
}

/* Mobile */

@media (max-width: 575px) {

    .insights-service-marquee {
        padding: 6px 0;
    }

    .insights-service-marquee::before,
    .insights-service-marquee::after {
        width: 30px;
    }

    .insights-service-marquee .insights-marquee-group a {
        min-height: 37px;
        padding: 5px 18px;
        font-size: 16px !important;
    }

    .insights-service-marquee .insights-marquee-group a::after {
        height: 19px;
    }

    .insights-marquee-track {
        animation-duration: 29s;
    }
}


/* ==================================
   FREE TOOLS CAROUSEL
================================== */

/* Free Tools - only required overrides */


.free-tools-section {
   /*<!-- padding: 78px 0 72px;-->*/
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 5%, rgba(211,154,60,.14), transparent 24%),
        radial-gradient(circle at 92% 90%, rgba(109,37,55,.10), transparent 25%),
        #fffaf3;
    border-top: 4px solid #d39a3c;
}

.free-tools-heading {
    max-width: 780px;
    margin: 0 auto 34px;
    text-align: center;
}

.free-tools-kicker {
    display: inline-block;
  	margin-top: 37px;
    color: #a36d18;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.free-tools-heading h2 {
    margin: 0 0 10px;
    color: #4d1725;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
}

.free-tools-heading h2 span { color: #d18d20; }

.free-tools-heading p {
    margin: 0;
    color: #5d4b4f;
    font-size: 17px;
    line-height: 1.7;
}

.free-tools-carousel .owl-stage { display: flex; }
.free-tools-carousel .owl-item { display: flex; }

.free-tool-card {
    display: flex;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(211,154,60,.38);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(77,23,37,.09);
    transition: transform .3s ease, box-shadow .3s ease;
}

.free-tool-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 42px rgba(77,23,37,.15);
}

.free-tool-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
	padding: 14px;

 /*   background: #f4e5cc;*/
}

.free-tool-image::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 34%;
    content: "";
    pointer-events: none;
  /*  background: linear-gradient(transparent, rgba(77,23,37,.48));*/
}

.free-tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
		border-radius: 18px;
}

.free-tool-card:hover .free-tool-image img { transform: scale(1.055); }

.free-tool-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    color: #fff;
    background: #6d2537;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 999px;
    box-shadow: 0 5px 15px rgba(77,23,37,.2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
}

.free-tool-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 21px 20px 20px;
}

.free-tool-content h3 {
   /* min-height: 52px;*/
    margin: 0 0 9px;
    font-size: 21px;
    line-height: 1.25;
}

.free-tool-content h3 a { color: #5b1b2b; }
.free-tool-content h3 a:hover { color: #d18d20; }

.free-tool-content p {
    min-height: 66px;
    margin: 0 0 18px;
    color: #67565a;
    font-size: 14px;
    line-height: 1.55;
}

.free-tool-button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2px 4px;
    color: #fff;
    background: linear-gradient(135deg,  #143d32, #0a2e28);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(77,23,37,.17);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.free-tool-button:hover {
    color: #4d1725;
    background: linear-gradient(135deg, #efb955, #d39a3c);
}

.free-tools-carousel .owl-nav {
    display: flex;
    margin-top: 24px;
    justify-content: center;
    gap: 12px;
}

.free-tools-carousel .owl-nav button.owl-prev,
.free-tools-carousel .owl-nav button.owl-next {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin: 0;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #6d2537;
    border-radius: 50%;
    font-size: 22px;
    transition: .25s ease;
}

.free-tools-carousel .owl-nav button:hover {
    color: #4d1725;
    background: #d39a3c;
}

.free-tools-carousel .owl-dots { margin-top: 17px; }
.free-tools-carousel .owl-dot span { background: #dfc99e; }
.free-tools-carousel .owl-dot.active span { width: 26px; background: #6d2537; }

@media (max-width: 767px) {
    .free-tools-section { padding: 55px 0 50px; }
    .free-tools-heading { margin-bottom: 25px; }
    .free-tools-heading p { font-size: 15px; }
    .free-tool-content h3,
    .free-tool-content p { min-height: 0; }
}

/* Skip layout and paint work for homepage sections until they approach view. */
.free-tools-section,
.insights-service-marquee {
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
}

@media (prefers-reduced-motion: reduce) {
    .insights-marquee-track {
        animation: none !important;
        transform: none !important;
    }
}
