:root {
    --primary: #7d8cff;
    --primary-rgb: 87, 99, 282;
    --secondary: #112257;
    --secondary-rgb: 252, 121, 82;
    --light-blue: #e5ebfb;
    --white: #ffffff;
}

.home-default-banner {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 3rem;
}
.home-software{
    background-image: -moz-linear-gradient( 90deg, #112257 0%, #112257 100%);
    background-image: -webkit-linear-gradient( 90deg, #112257 0%, #112257 100%);
    background-image: -ms-linear-gradient( 90deg, #112257 0%, #112257 100%);           
}
.bg-blue{
    background-color: var(--secondary);
}
.home-software .top-bar{
    border: none;
    background: var(--primary);
    margin-bottom: 1.5rem;
}
.home-software .top-bar-links a:hover {
    color: var(--primary);
}
.home-default-banner .container .row {
    position: relative;
    z-index: 3;
}

/* Hero: vertically center copy with laptop image on laptop/desktop */
@media (min-width: 992px) {
    .home-default-banner .container .row {
        align-items: center;
    }
    .marketing-banner{
        margin-bottom: 17rem;
    }
}
.home-software .banner-abstract-shape {
    bottom: -70%;
    background-image: url(../assets/images/bg.svg);
    z-index: 1;
    position: absolute;
    left: -5%;
    height: calc(100% + 240px);
    margin-top: 0px;
    background-repeat: no-repeat;
    background-position: top center;
    width: 120%;
}
.home-default-banner .banner-img img {
    max-width: initial;
    transform: translateX(-10rem);
    z-index: 3;
}

.home-software .marketing-banner{
    padding: 0;
}

.social-icons ul{
    justify-content: flex-end;
}
.top-bar .social-icons a {
    opacity: 1;
    color: var(--white);
    font-size: 1rem;
}
.top-bar .social-icons a:hover{
    color: var(--primary);
}
.section-title > span {
    color: var(--primary);
}
.section-title h1{
    font-weight: 700;
}
.section-title h1 strong {
    white-space: inherit;
}

.navbar .dropdown-menu li::after{
    background: var(--primary);
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:focus,
.navbar .dropdown-item:hover,
.navbar .dropdown-item:active,
.navbar .dropdown-menu > li.show > a {
    color: var(--primary);
}
@media (min-width: 991.99px){
    .header-anim.fixed-top {
        background-color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        -moz-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}


/* Buttons */
.btn-light {
    color: var(--primary);
}
.btn-outline-primary:hover,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus {
    color: var(--white);
    background-color: #1e3a8a;
    border-color: #1e3a8a;
}
.btn-light.default:hover,
.btn-light.default:focus,
.btn-light.default.focus {
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.btn-outline-secondary:hover,
.btn-secondary:hover,
.btn-secondary.focus, 
.btn-secondary:focus {
    color: var(--white);
    background-color: var(--primary) ;
    border-color: var(--primary);
}
/* Buttons */

.icon-style-border-bottom .icon{
    color: var(--primary);
}
.icon-style-border-bottom .arrow-icon a {
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.home-software-services{
}
.service-bottom-text{
    display: flex;
    margin-top: 3rem;
    justify-content: center;        
}
.service-bottom-text p{
    margin: 0;
    padding: 0.7rem 3rem;
    background: var(--white);
    border-radius: 7px;
    box-shadow: 0px 0px 68px 0px rgba(0, 0, 0, 0.08);      
    margin-bottom: -1.5rem;
    text-align: center;
}

.tick-icon-bordered .icon-space{
    border-color: transparent;
    background: var(--light-blue);
    color: var(--primary);
}
.tick-icon-bordered .text-space h4{
    color: var(--secondary);
}
.home-services-tabs .tab-pane{
    padding: 4rem 0 0 0;
    position: relative;
}
.home-services-tabs .tab-pane .row{
    position: relative;
    z-index: 2;
}

.home-services-tabs .img-abstract {
    position: absolute;
    pointer-events: none;
    left: -60%;
    height: calc(100% + 240px);
    top: 10%;
    margin-top: 0;
    background-image: url(../assets/images/software-tab-abstract.png);
    background-repeat: no-repeat;
    background-position: top right;
    width: 100%;
    z-index: 1;
}

.home-software-video {
    margin-bottom: 15rem;
}
.home-software-video .video-bg-off{
    background: var(--primary);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: -15rem;
    margin-left: 2rem;
}
.home-software-video .video-bg-off img{
    max-width: 100%;
    width: 100%;
    left: 0;    
    margin: 0;
    box-shadow: none;
}
.home-software-video .video-play-btn {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    right: auto;
}
.home-software-video .video-play-btn a{
    background: var(--primary);
}

.home-software-video .video-play-btn .popup-video {
    -webkit-animation: spineer-white 2s infinite;
    animation: spineer-white 2s infinite;
}
.home-default-faqs-counter,
.pricing-wrap.popular-plan.alternate-version {
    background: var(--primary);
}

.home-default-faqs-counter .counter-text h2,
.alternate-version.pricing-wrap .plan-price{
    color: var(--secondary);
}

.popular-plan.alternate-version .plan-price, .popular-plan .pricing-info, .popular-plan .plan-name, .popular-plan .icons-listing li {
    color: var(--white);
}

.pricing-wrap.popular-plan.alternate-version .icons-listing.not-included li, 
.pricing-wrap.popular-plan.alternate-version .icons-listing.not-included li::before{
    color: var(--secondary);
    opacity: 0.5;
}
.alternate-version.pricing-wrap .pricing-saving{
    background: var(--light-blue);
}

.ebook-card {
    position: relative;
    overflow: visible;
    /* padding-bottom: 12rem; */
    margin-bottom: 12rem;
}

.ebooks-row {
    margin-bottom: -12rem;
}

.ebook-cover-image-wrapper {
    position: relative;
    width: calc(100% + 4rem);
    margin: -3rem -2rem -11rem -2rem;
    padding: 0;
    z-index: 1;
    height: auto;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* background: transparent; */
}

.ebook-cover-image {
    width: 110%;
    max-width: 110%;
    height: auto;
    max-height: 350px;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    transform: translateY(-40%) rotate(-3deg);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    background: transparent;
}

.ebook-card:hover .ebook-cover-image {
    transform: translateY(-40%) rotate(-2deg) scale(1.02);
}

/* Adjust card content spacing when image is present */
.ebook-card .ebook-cover-image-wrapper ~ .pricing-saving-wrap {
    position: relative;
    z-index: 3;
}

.ebook-card .ebook-cover-image-wrapper ~ .plan-name {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .ebook-card {
        padding-bottom: 2rem;
        margin-bottom: 12rem;
    }
    
    .ebooks-row {
        margin-bottom: -2rem;
    }
    
    .ebook-cover-image-wrapper {
        width: calc(100% + 3rem);
        margin: -2.5rem -1.5rem 1rem -1.5rem;
    }
    
    .ebook-cover-image {
        max-height: 240px;
        transform: translateY(-35%) rotate(-2deg);
    }
    
    .ebook-card:hover .ebook-cover-image {
        transform: translateY(-35%) rotate(-1.5deg) scale(1.01);
    }
}

.home-software-abstract .btn-set .btn:not(:last-child) {
    margin-right: 1rem;
}

.home-software-abstract .home-services-imgs {
    margin-bottom: 120px;
}
.home-software-abstract .home-services-imgs img{
    border-radius: 7px;
    box-shadow: 0px 0px 68px 0px rgba(0, 0, 0, 0.1);
    
    animation-duration: 2.3s;
    animation-iteration-count: infinite;
    transform-origin: center bottom;
    animation-name: up-down-move;
    animation-timing-function: linear;
}
.home-software-abstract{
    /* overflow: hidden; */
}
.home-software-abstract .home-services-imgs .off-pattern {
    position: relative;
    animation-duration: 2.5s;
    margin-bottom: -150px;
    margin-left: -80px;
}

.home-software-abstract.faqs-bg .img-abstract {
    background-image: url(../assets/images/software-tab-abstract.png);
    left: -62%;
    top: -50px;
}

.owl-carousel .owl-dot.active span {
    background: var(--primary);
}

.testimonial-shadow .name, 
.testimonial-single .testimonial-box .name,
.testimonial-shadow h2, 
.testimonial-single h2{
    color: var(--secondary);
}

.testimonial-shadow .name{
    font-size: 1.25rem;
}
.testimonial-shadow h6{
    color: var(--secondary);
}
.testimonial-shadow{
    background: var(--light-blue);
}

.owl-carousel .owl-dot.active span:before {
    border: 2px solid var(--primary);
}

/* Footer Top Section - Social Icons & Newsletter */
.footer-wrap.home-software {
    background: transparent;
    padding: 0;
    margin-top: 4rem;
}

.footer-top-section {
    background: var(--light-blue);
    padding: 2.5rem 0;
}

.footer-social-icons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social-icons ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #9ca3af;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-icons ul li a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-newsletter {
    text-align: right;
}

.newsletter-title {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.newsletter-desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    justify-content: flex-end;
}

.newsletter-input-group {
    display: flex;
    align-items: stretch;
    max-width: 400px;
    width: 100%;
}

.newsletter-input {
    flex: 1;
    border: 1px solid var(--secondary);
    border-radius: 4px 0 0 4px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--secondary);
    border-right: none;
    height: auto;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: none;
}

.newsletter-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.newsletter-submit-btn {
    background: var(--secondary);
    border: 1px solid var(--secondary);
    border-radius: 0 4px 4px 0;
    padding: 0;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    flex-shrink: 0;
}

.newsletter-submit-btn:hover {
    background: #0d1a45;
    border-color: #0d1a45;
    color: var(--white);
}

.newsletter-submit-btn i {
    font-size: 1.2rem;
}

/* Main Footer Section */
.footer-main {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 2rem 0 2rem;
    margin-top: 0;
}

.footer-wrap.home-software footer {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.footer-brand .footer-logo {
    margin-bottom: 1.5rem;
}

.footer-brand .footer-logo img {
    max-height: 50px;
    width: auto;
}

.footer-contact-info {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item i {
    color: var(--primary);
    margin-right: 0.75rem;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
}

.footer-widget {
    margin-bottom: .5rem;
}

.footer-widget .widget-title {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.about-description {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    display: flex;
    align-items: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-links li a i {
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.footer-links li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-widget-contact i,
.subscribe-form h4 {
    color: var(--white);
}

.footer-widget-contact a {
    color: var(--primary);
}

.footer-widget-contact a:hover {
    color: var(--white);
}

/* Footer Bottom Section */
.footer-bottom-section {
    background: var(--light-blue);
    padding: 1.5rem 0;
}

.copyright-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.copyright-text strong {
    color: var(--primary);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.footer-legal-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--secondary);
}

.footer-legal-links .separator {
    color: #9ca3af;
    margin: 0 0.25rem;
}

/* Scroll to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(125, 140, 255, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.on {
    opacity: 0;
    visibility: hidden;
}

.back-to-top:hover {
    background: #6073ff;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(125, 140, 255, 0.4);
}

.back-to-top i {
    font-size: 1.2rem;
    color: var(--white);
}


.widget-listing.icons-listing-anchor li a::before, 
.widget-listing.icons-listing li::before,
.widget-listing li a:hover,
.tiny-footer strong,
.tiny-footer-links a{
    color: var(--primary);
}

.widget-listing li a,
footer .widget-title,
.tiny-footer-links a:hover{
    color: var(--secondary);
}

.tiny-footer {
    padding: 2rem 0;
    margin-top: auto;
}

/*---- Singup/Signin Popups Start ---*/
.popup-wrapper::after,
.or-text span{
    background-color: var(--light);
}
.popup-wrapper{
    background-color: var(--secondary);
}
/*---- Singup/Signin Popups End ---*/

/* Media Queries */
@media only screen 
  and (min-width: 1024px) 
  and (max-height: 1366px) 
  and (-webkit-min-device-pixel-ratio: 1.5) {

    .home-default-banner .banner-img img {
        transform: translateX(-10rem);
    }
    
}
@media (min-width: 992px) and (max-width: 1199px){
    
}
@media (max-width: 991px) {
    header {
        background-color: transparent;
    }
    .fixed-top.navbar{
        background-color: rgba( var(--primary-rgb), 0.8);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        -moz-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    /* Hamburger menu: ensure toggler is visible and collapsed menu is usable */
    .navbar-toggler {
        display: inline-flex;
        padding: 0.4rem 0.6rem;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.95);
    }
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(125, 140, 255, 0.4);
    }
    .navbar-toggler-icon {
        width: 1.35em;
        height: 1.35em;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }
    .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: stretch;
    }
    .navbar-collapse .nav-item {
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .navbar-collapse .nav-item:last-child {
        border-bottom: none;
    }
    .navbar-collapse .nav-link,
    .navbar-collapse .nav-btn-masterclass,
    .navbar-collapse .nav-btn-consultation {
        display: block;
        padding: 0.85rem 1rem;
        color: #1f2937 !important;
    }
    .navbar-collapse .nav-btn-masterclass,
    .navbar-collapse .nav-btn-consultation {
        text-align: center;
        margin: 0.25rem 1rem;
        margin-right: 1rem;
        margin-left: 1rem;
    }
    .navbar-collapse .btn {
        margin: 0.25rem 1rem;
    }
    .home-default-banner .banner-img img {
        max-width: 100%;
        transform: none;
    }
    .home-software .marketing-banner{
        text-align: center;
    }
    .home-software .home-default-banner{
        padding: 3rem 0;
    }
    .home-software .banner-img{
        padding-top: 3rem;
        width: 80%;
        margin: 0 auto;
    }
    /* Hero: mobile-friendly typography and spacing */
    .home-default-banner .marketing-banner .title > span {
        font-size: 0.9rem;
        display: inline-block;
        margin-bottom: 0.5rem;
    }
    .home-default-banner .marketing-banner .title h1 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        line-height: 1.25;
        margin-bottom: 1rem;
    }
    .home-default-banner .marketing-banner .lead {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 1.25rem;
    }
    .home-default-banner .marketing-banner .cta-group {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    .home-default-banner .marketing-banner .cta-group .btn {
        margin: 0;
    }
    .home-services-tabs .img-abstract {
        left: -30%;
        top: 0;
        background-size: contain;
    }

    .home-software-video{
        margin-bottom: 7rem;
    }
    .home-software-video .video-bg-off{
        margin-bottom: -7rem;
    }

    .home-software-abstract.faqs-bg .img-abstract {
        top: 0;
        background-size: contain;
    }
    .home-services-tabs .tab-pane{
        padding: 0;
    }

    .footer-wrap.home-software {
        margin-top: 7rem;
    }
    
    .footer-newsletter {
        text-align: left;
        margin-top: 2rem;
    }
    
    .newsletter-form {
        justify-content: flex-start;
    }
    
    .footer-main {
        padding: 2rem 0 1.5rem;
    }
    
    .tiny-footer {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    /* Structure Drives Performance bar: stack in flow on mobile */
    .hero-tagline-card-section {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-bottom: 0;
        padding: 0.75rem 0;
    }
    .hero-tagline-card-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-tagline-card {
        font-size: 1.1rem;
        padding: 0.75rem 1.25rem;
        max-width: 100%;
    }
    /* Review bar: tighter and stacked for mobile */
    .review-rating-card-section {
        margin-top: 0;
        margin-bottom: 2.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .review-rating-card {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
    .review-label {
        font-size: 0.95rem;
        white-space: normal;
        text-align: center;
    }
    .review-title {
        font-size: 1.35rem;
    }
    .review-rating-text,
    .review-count {
        font-size: 1rem;
    }
    .review-count {
        font-size: 1.35rem;
    }
    .star-rating i {
        font-size: 1.25rem;
    }
    .review-left {
        align-items: center;
        text-align: center;
    }
    .review-right {
        align-items: center;
        text-align: center;
    }

    .top-bar .social-icons ul {
        justify-content: center;
    }
    .home-software .top-bar{
        margin-bottom: 0.8rem;
        padding: 0.8rem 0;
    }

    .service-bottom-text p{
        padding: 1rem 0.7rem;
    }

    .home-software-video{
        margin-bottom: 5rem;
    }
    .home-software-video .video-bg-off{
        margin-bottom: -5rem;
        margin-left: 0;
    }
    
    .footer-top-section {
        padding: 2rem 0;
    }
    
    .footer-social-icons {
        margin-bottom: 1.5rem;
    }
    
    .footer-social-icons ul {
        justify-content: flex-start;
    }
    
    .footer-newsletter {
        text-align: left;
        margin-top: 0;
    }
    
    .newsletter-title {
        font-size: 1.1rem;
    }
    
    .newsletter-input-group {
        max-width: 100%;
    }
    
    .footer-main {
        border-radius: 15px 15px 0 0;
        padding: 2rem 0 1.5rem;
    }
    
    .footer-widget {
        margin-bottom: 2rem;
    }
    
    .footer-bottom-section {
        padding: 1.25rem 0;
    }
    
    .footer-legal-links {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top i {
        font-size: 1rem;
    }
}
@media (max-width: 575px) {

    .home-software-abstract .home-services-imgs{
        margin-bottom: 4rem;
    }
    .footer-top-section {
        padding: 1.5rem 0;
    }
    
    .footer-main {
        padding: 1.5rem 0 1rem;
    }
    
    .newsletter-title {
        font-size: 1rem;
    }
    
    .newsletter-desc {
        font-size: 0.85rem;
    }
    
    .footer-widget .widget-title {
        font-size: 1rem;
    }
    
    .tiny-footer{
        margin-top: 2rem;
    }

    .home-services-imgs {
        margin-bottom: 5rem;
    }
    .home-services-imgs img {
        width: 200px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .home-software .home-default-banner{
        padding: 1.5rem 0;
    }
    .home-software .banner-img{
        padding-top: 1.5rem;
        width: 90%;
        margin: 0 auto;
    }
    .home-default-banner .marketing-banner .title h1 {
        font-size: 1.5rem;
    }
    .home-default-banner .marketing-banner .lead {
        font-size: 0.9rem;
    }
    .hero-tagline-card {
        font-size: 1rem;
        padding: 0.65rem 1rem;
    }
    .review-rating-card {
        padding: 1rem 0.75rem;
    }
    .review-title,
    .review-count {
        font-size: 1.2rem;
    }
    .home-software-abstract .btn-set .btn{
        margin: 0.7rem 0;
    }
}
@media (max-width: 320px) {
    .home-services-imgs img{
        width: 170px;
    }
    .home-software-abstract .btn-set .btn:not(:last-child){
        margin-bottom: 0.7rem;
    }
}

/* Stats Bar Section */
.stats-bar-section {
    background: var(--secondary);
    padding: 3rem 0;
    margin-bottom: 0;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
    color: var(--white);
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    text-transform: lowercase;
}

@media (max-width: 991px) {
    .stats-bar {
        gap: 1.5rem;
    }
    
    .stat-item {
        min-width: 140px;
        flex: 0 0 calc(33.333% - 1rem);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 767px) {
    .stats-bar-section {
        padding: 2.5rem 0;
    }
    
    .stats-bar {
        gap: 1.5rem;
    }
    
    .stat-item {
        min-width: 120px;
        flex: 0 0 calc(50% - 0.75rem);
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 575px) {
    .stats-bar {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: 100%;
        width: 100%;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* AI Tools Section */
.ai-tools-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.tools-nav-bar {
    background: transparent;
    margin-bottom: 3rem;
    overflow: visible;
}

.tools-nav-bar .nav {
    flex-wrap: wrap;
    gap: .8rem 0.1rem;
    justify-content: center;
}

.tools-nav-bar .nav-item {
    flex-shrink: 0;
}

.tools-nav-bar .nav-link {
    padding: 0.75rem 1.5rem;
    color: #6b7280;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tools-nav-bar .nav-link i {
    font-size: 1rem;
}

.tools-nav-bar .nav-link:hover {
    color: var(--primary);
    background: rgba(125, 140, 255, 0.15);
    transform: translateY(-2px);
}

.tools-nav-bar .nav-link.active {
    color: var(--white);
    background: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(125, 140, 255, 0.3);
}

.ai-tools-content {
    margin-top: 2rem;
}

.ai-tools-content .tool-img {
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ai-tools-content .tool-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.ai-tools-content .section-title h5 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.ai-tools-content .section-title p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .tools-nav-bar {
        padding: 1rem 0;
    }
    
    .tools-nav-bar .nav {
        gap: 0.5rem;
    }
    
    .tools-nav-bar .nav-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .ai-tools-content .row {
        flex-direction: column;
    }
    
    .ai-tools-content .tool-img {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .tools-nav-bar {
        padding: 0.75rem 0;
    }
    
    .tools-nav-bar .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .tools-nav-bar .nav-link i {
        font-size: 0.9rem;
    }
    
    .ai-tools-content .section-title h5 {
        font-size: 1.5rem;
    }
}

/* Tool Data Cards - Replaces image in left column */
.tool-cards-wrap {
    height: 100%;
    min-height: 380px;
}
.tool-data-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    height: 100%;
}
.tool-data-layout.tool-data-layout--sidebar {
    gap: 0.65rem;
    min-height: 360px;
}
@media (max-width: 991px) {
    .tool-data-layout { grid-template-columns: 1fr; }
    .tool-data-layout.tool-data-layout--sidebar {
        min-height: auto;
        grid-template-columns: 1fr 1fr;
    }
    .tool-cards-wrap { min-height: auto; margin-bottom: 2rem; }
}
@media (max-width: 575px) {
    .tool-data-layout.tool-data-layout--sidebar { grid-template-columns: 1fr; }
}
.tool-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(125, 140, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}
.tool-data-layout--sidebar .tool-stat-card {
    padding: 0.85rem 1rem;
    border-radius: 10px;
}
.tool-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
}
.tool-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.tool-stat-card.trend-accent::before { background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
.tool-stat-card.portfolio-accent::before { background: linear-gradient(90deg, #059669, #10b981); }
.tool-stat-card.risk-accent::before { background: linear-gradient(90deg, #dc2626, #f59e0b); }
.tool-stat-card.price-accent::before { background: linear-gradient(90deg, #0891b2, #06b6d4); }
.tool-stat-card.earnings-accent::before { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.tool-stat-card.sentiment-accent::before { background: linear-gradient(90deg, #ec4899, #f43f5e); }
.tool-stat-card.advisor-accent::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.tool-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.tool-data-layout--sidebar .tool-stat-card .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.tool-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.tool-data-layout--sidebar .tool-stat-card .stat-value {
    font-size: 1.35rem;
}
.tool-stat-card .stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.35rem;
}
.tool-data-layout--sidebar .tool-stat-card .stat-label {
    font-size: 0.75rem;
    margin-top: 0.2rem;
}
.tool-mini-chart {
    height: 56px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-top: 1rem;
}
.tool-data-layout--sidebar .tool-mini-chart {
    height: 36px;
    gap: 4px;
    margin-top: 0.5rem;
}
.tool-mini-chart .bar {
    flex: 1;
    min-width: 8px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--primary), rgba(125, 140, 255, 0.5));
    animation: toolBarGrow 0.8s ease-out forwards;
}
@keyframes toolBarGrow {
    from { transform: scaleY(0); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
}
.tool-sparkline {
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}
.tool-sparkline::after {
    content: '';
    position: absolute;
    inset: 8px 12px 12px;
    background: linear-gradient(90deg,
        transparent 0%, transparent 15%, rgba(34, 197, 94, 0.8) 15%, rgba(34, 197, 94, 0.8) 18%,
        transparent 18%, transparent 35%, rgba(34, 197, 94, 0.6) 35%, rgba(34, 197, 94, 0.6) 38%,
        transparent 38%, transparent 55%, rgba(34, 197, 94, 0.9) 55%, rgba(34, 197, 94, 0.9) 58%,
        transparent 58%, transparent 75%, rgba(34, 197, 94, 0.7) 75%, rgba(34, 197, 94, 0.7) 78%,
        transparent 78%, transparent 95%, rgba(34, 197, 94, 0.85) 95%, rgba(34, 197, 94, 0.85) 98%
    );
    clip-path: polygon(0 100%, 15% 85%, 35% 70%, 55% 55%, 75% 40%, 95% 25%, 100% 20%);
}
.tool-benefits-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}
@media (max-width: 767px) {
    .tool-benefits-row { grid-template-columns: 1fr; }
}
.tool-benefit-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(125, 140, 255, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}
.tool-benefit-pill:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(125, 140, 255, 0.15);
}
.tool-benefit-pill i {
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}
.tool-benefit-pill span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
}
.tool-cta-row {
    margin-top: 2rem;
    text-align: center;
}
.tool-data-header {
    margin-bottom: 2rem;
}
.tool-data-header h5 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.tool-data-header p {
    color: #6b7280;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}
.tool-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.75rem;
}
.tool-data-layout--sidebar .tool-progress-bar {
    margin-top: 0.4rem;
    height: 6px;
}
.tool-data-layout--sidebar .tool-stat-card p {
    font-size: 0.7rem !important;
    margin-top: 0.35rem !important;
}
.tool-data-layout--sidebar .tool-sparkline {
    height: 32px;
    margin-top: 0.5rem;
}
.tool-progress-bar .fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s ease;
}

/* Tools snapshot dashboard card (same design as tools page hero widget) */
.ai-tools-section .tools-hero-dashboard {
    position: relative;
    border-radius: 20px;
    background: #ffffff !important;
    color: #e5e7eb;
    padding: 1.5rem 1.6rem;
    border: 4px solid rgba(195, 25, 135, 0.72);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.ai-tools-section .tools-hero-dashboard::before {
    content: '';
    position: absolute;
    top: -35%;
    right: -10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2), transparent 65%);
    pointer-events: none;
}
.ai-tools-section .tools-hero-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.ai-tools-section .tools-hero-dashboard-title {
    font-weight: 700;
    color: #112257;
    font-size: 1.1rem;
}
.ai-tools-section .tools-hero-dashboard-badge {
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: #b32eaf;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
/* Card color variants: green (MasterClass), orange (Book Consultation), pink (default) */
.ai-tools-section .tools-hero-dashboard--green {
    border-color: rgba(5, 150, 105, 0.85);
}
.ai-tools-section .tools-hero-dashboard--green .tools-hero-dashboard-badge {
    background: #059669;
}
.ai-tools-section .tools-hero-dashboard--orange {
    border-color: rgba(238, 114, 26, 0.85);
}
.ai-tools-section .tools-hero-dashboard--orange .tools-hero-dashboard-badge {
    background: #ee721a;
}
.ai-tools-section .tools-hero-dashboard--pink {
    border-color: rgba(195, 25, 135, 0.72);
}
.ai-tools-section .tools-hero-dashboard--pink .tools-hero-dashboard-badge {
    background: #b32eaf;
}
.ai-tools-section .tools-hero-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    font-size: 0.85rem;
}
.ai-tools-section .tools-hero-stat-card {
    background: #112257;
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
}
.ai-tools-section .tools-hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.3rem;
}
.ai-tools-section .tools-hero-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #f9fafb;
}
.ai-tools-section .tools-hero-chart-row {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    align-items: center;
}
.ai-tools-section .tools-hero-sparkline {
    flex: 1;
    height: 48px;
    border-radius: 999px;
    background: #7d8cff;
    position: relative;
    overflow: hidden;
}
.ai-tools-section .tools-hero-sparkline::before {
    content: '';
    position: absolute;
    inset: 12px 6px;
    background: repeating-linear-gradient(to right,
            #112257,
            #112257 4px,
            transparent 4px,
            transparent 8px);
    opacity: 0.6;
}
.ai-tools-section .tools-hero-chart-legend {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    color: #112257;
    text-align: right;
}
.ai-tools-section .tools-hero-chart-legend span strong {
    color: #112257;
}
@media (max-width: 768px) {
    .ai-tools-section .tools-hero-dashboard {
        padding: 1.2rem 1.2rem;
    }
    .ai-tools-section .tools-hero-chart-row {
        flex-direction: column;
        align-items: stretch;
    }
    .ai-tools-section .tools-hero-chart-legend {
        text-align: center;
    }
}

/* Wrapper so orange tagline doesn't pull the white card up */
.hero-tagline-and-review-wrap {
    position: relative;
}

/* Hero tagline card – orange, out of flow so white card stays put */
.hero-tagline-card-section {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    z-index: 15;
    margin-bottom: -28px;
    pointer-events: none;
}
.hero-tagline-card-section .container {
    pointer-events: auto;
}
.hero-tagline-card {
    background: #ee721a;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    max-width: 420px;
    margin: 0 auto;
}

/* Founder name card – orange, right below CEO image (About section) */
.pattern_abstract_bg:has(.founder-name-card-wrap) {
    padding-bottom: 5rem;
    overflow: visible;
}
.founder-name-card-wrap {
    position: absolute;
    left: 78%;
    bottom: 0;
    transform: translate(-50%, 50%);
    display: flex;
    justify-content: center;
    padding-right: 0;
    z-index: 2;
}
.pattern_abstract_bg .founder-name-card-wrap {
    padding-right: 0;
}
.founder-name-card {
    background: #7d8cff;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    max-width: 320px;
    letter-spacing: 0.02em;
}
@media (max-width: 991px) {
    .founder-name-card-wrap {
        left: 50%;
        bottom: 0;
        transform: translate(-50%, 50%);
        justify-content: center;
        padding-right: 0;
    }
}
@media (max-width: 767px) {
    .founder-name-card-wrap {
        position: relative;
        left: 0;
        bottom: 0;
        transform: none;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Review Rating Card */
.review-rating-card-section {
    margin-top: -50px;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.review-rating-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 2rem;
}

.review-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.review-label {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    white-space: nowrap;
}

.review-title {
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.star-rating i {
    font-size: 1.5rem;
    color: var(--primary);
}

.star-rating i.bi-star-half {
    color: var(--primary);
    opacity: 0.7;
}

.review-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    text-align: right;
    white-space: nowrap;
}

.review-rating-text {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
}

.review-count {
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

@media (max-width: 991px) {
    .review-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .review-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
    }
}

@media (max-width: 767px) {
    .review-rating-card {
        padding: 1.5rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1.5rem;
    }
    
    .review-left {
        width: 100%;
    }
    
    .review-right {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }
    
    .review-rating-card-section {
        margin-top: -60px;
    }
}

@media (max-width: 575px) {
    .review-rating-card {
        padding: 1.25rem 1.5rem;
    }
    
    .review-title,
    .review-count {
        font-size: 1.5rem;
    }
    
    .review-rating-card-section {
        margin-top: -40px;
    }
}

.courses-section-bg {
    position: relative;
    background-image: url(../assets/images/course_bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ebooks-section-bg {
    position: relative;
    background-image: url(../assets/images/stocks4.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Course Cards Styling */
.course-card {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.course-card-link {
    color: inherit;
    display: block;
    height: 100%;
}

.course-card-link:hover .course-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.course-card-link:hover .course-title,
.course-card-link:hover .course-enroll-btn {
    color: var(--primary, #7d8cff);
}

.course-thumbnail-wrap {
    position: relative;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    overflow: hidden;
    height: 140px;
    background: #f0f2f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Coming Soon! overlay: centered on image, yellow/gold, bold, dark outline */
.course-card-coming-soon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.course-card-coming-soon {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.02em;
    color: #f0b429 !important;
    text-shadow:
        0 0 2px rgba(0, 0, 0, 1),
        0 1px 3px rgba(0, 0, 0, 1),
        1px 1px 4px rgba(0, 0, 0, 1),
        1px 2px 4px rgba(0, 0, 0, 0.9),
        -1px -1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    line-height: 1.2;
}

.course-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.course-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    height: 120px;
}

.course-icon-main {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.course-icon-main i {
    font-size: 2.5rem;
    color: white;
}

.course-icon-accent {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: calc(50% - 30px);
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.course-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #112257;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.course-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.course-enroll-btn {
    color: #7d8cff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: auto;
}

.course-enroll-btn:hover {
    color: #5a6fd8;
    text-decoration: none;
}

.course-enroll-btn:focus {
    color: #5a6fd8;
    text-decoration: none;
}

.course-card-divider {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
    opacity: 1;
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-card-price-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #112257;
}

.course-card-price-discount {
    color: #dc2626;
}

.course-card-price-original {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.course-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.course-card-students {
    font-size: 0.9rem;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.course-card-students i {
    font-size: 1rem;
    color: #9ca3af;
}

/* Last course in order: yellow-orange card with adjusted text colors and white "Coming Soon!" */
.course-card--last {
    background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.course-card-link:hover .course-card--last {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

.course-card--last .course-thumbnail-wrap {
    border: 3px solid #fff;
    box-sizing: border-box;
}

.course-card--last .course-title {
    color: #112257;
}

.course-card--last .course-description {
    color: rgba(17, 34, 87, 0.75);
}

.course-card--last .course-enroll-btn {
    color: #112257;
    font-weight: 700;
}

.course-card-link:hover .course-card--last .course-title,
.course-card-link:hover .course-card--last .course-enroll-btn {
    color: #0f1e45;
}

.course-card--last .course-card-divider {
    border-top-color: rgba(17, 34, 87, 0.2);
}

.course-card--last .course-card-price {
    color: #112257;
}

.course-card--last .course-card-price-discount {
    color: #dc2626;
}

.course-card--last .course-card-price-original {
    color: rgba(17, 34, 87, 0.6);
}

.course-card--last .course-card-students,
.course-card--last .course-card-students i {
    color: rgba(17, 34, 87, 0.65);
}

/* Case study cards – same design as course cards (image placement, layout) */
.case-study-card-link {
    color: inherit;
    display: block;
    height: 100%;
}

.case-study-card-link:hover .case-study-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.case-study-card-link:hover .case-study-title,
.case-study-card-link:hover .case-study-cta {
    color: var(--primary, #7d8cff);
}

.case-study-card {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.case-study-thumb-wrap {
    margin-bottom: 1.25rem;
    border-radius: 16px;
    overflow: hidden;
    height: 140px;
    background: #f0f2f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-study-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--secondary), var(--primary));
}

.case-study-thumb-placeholder i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.case-study-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #112257;
    margin-bottom: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-study-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-study-cta {
    color: #7d8cff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: auto;
}

@media (max-width: 767.98px) {
    .case-study-title {
        font-size: 1.25rem;
    }
    .case-study-card {
        padding: 2rem 1.5rem;
    }
}

/* Responsive adjustments for course cards */
@media (max-width: 991.98px) {
    .course-card {
        margin-bottom: 2rem;
    }
}

/* Fix stationary image in Need Help section */
.faqs-bg .home-services-imgs img {
    animation: none !important;
    transform: none !important;
}

@media (max-width: 767.98px) {
    .course-icon-main {
        width: 80px;
        height: 80px;
    }
    
    .course-icon-main i {
        font-size: 2rem;
    }
    
    .course-icon-accent {
        width: 35px;
        height: 35px;
        right: calc(50% - 25px);
    }
    
    .course-title {
        font-size: 1.25rem;
    }
    
    .course-card {
        padding: 2rem 1.5rem;
    }
}

/* ========== AI Chatbot widget (bottom-right on front pages) ========== */
.ptw-chatbot-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    font-family: inherit;
}

.ptw-chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(125, 140, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ptw-chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(125, 140, 255, 0.5);
}

.ptw-chatbot-toggle i {
    font-size: 1.5rem;
}

.ptw-chatbot-toggle-hidden {
    opacity: 0;
    pointer-events: none;
}

.ptw-chatbot-panel {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 2rem);
    height: 500px;
    max-height: 70vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(17, 34, 87, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.ptw-chatbot-panel-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ptw-chatbot-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a8a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ptw-chatbot-title {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ptw-chatbot-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.ptw-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ptw-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f8fafc;
}

.ptw-chatbot-message {
    display: flex;
    width: 100%;
}

.ptw-chatbot-message-user {
    justify-content: flex-end;
}

.ptw-chatbot-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ptw-chatbot-bubble p:last-child,
.ptw-chatbot-bubble ul:last-child,
.ptw-chatbot-bubble ol:last-child {
    margin-bottom: 0;
}

.ptw-chatbot-bubble-bot {
    background: #fff;
    color: #1f2937;
    border: 1px solid rgba(125, 140, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.ptw-chatbot-bubble-user {
    background: linear-gradient(135deg, var(--primary) 0%, #6b7cf7 100%);
    color: #fff;
}

.ptw-chatbot-footer {
    padding: 0.75rem 1rem;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ptw-chatbot-input {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    padding: 0.6rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9rem;
    resize: none;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.ptw-chatbot-input:focus {
    outline: none;
    border-color: var(--primary);
}

.ptw-chatbot-send {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.ptw-chatbot-send:hover:not(:disabled) {
    background: var(--secondary);
}

.ptw-chatbot-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .ptw-chatbot-panel {
        width: calc(100vw - 1rem);
        right: -0.5rem;
    }
    .ptw-chatbot-widget {
        bottom: 1rem;
        right: 1rem;
    }
}