/********** Template CSS **********/
:root {
    --primary: #06BBCC;
    --light: #F0FBFC;
    --dark: #181d38;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service ***/
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
.testimonial-item img {
    object-fit: cover;
    object-position: center;
}

.category img, .course-item img {
    object-fit: cover;
}
.category a img {
    transition: transform .4s ease;
}
.category a:hover img {
    transform: scale(1.04);
}

/* ===== Share Market Academy - Responsive Image Enhancements ===== */
/* Ensure all images are responsive and cover their containers properly */
.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 280px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .carousel-item img {
        height: 380px;
    }
}

/* About section image */
.about-img-container {
    position: relative;
    overflow: hidden;
}

/* Category images uniform height */
.category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

/* Course card images uniform height */
.course-item .position-relative.overflow-hidden {
    height: 200px;
}

.course-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.course-item:hover img {
    transform: scale(1.05);
}

/* Header/page hero images */
.page-header {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}


/* Brilliant Share Market Academy theme enhancements */
:root{--primary:#087B2F;--secondary:#E2A100;--accent-red:#E42519;--dark:#111111;--light:#F8FFF9}
.text-primary{color:var(--primary)!important}.bg-primary,.btn-primary{background-color:var(--primary)!important;border-color:var(--primary)!important}
.btn-primary{color:#fff!important;box-shadow:0 8px 18px rgba(8,123,47,.22);transition:all .25s ease}.btn-primary:hover{background-color:#055f24!important;border-color:#055f24!important;transform:translateY(-2px);box-shadow:0 12px 24px rgba(8,123,47,.32)}
.btn-light{color:var(--dark)!important;border:1px solid rgba(0,0,0,.08);transition:all .25s ease}.btn-light:hover{color:#fff!important;background:var(--secondary)!important;border-color:var(--secondary)!important}
.section-title{color:var(--primary)!important}.section-title::before,.section-title::after{background:var(--secondary)!important}
.navbar .navbar-brand{min-height:76px}.navbar-brand img.brilliant-site-logo{max-height:72px;width:auto;object-fit:contain}
.navbar-light .navbar-nav .nav-link:hover,.navbar-light .navbar-nav .nav-link.active{color:var(--primary)!important}
.header-carousel .owl-nav .owl-prev,.header-carousel .owl-nav .owl-next{border-color:var(--secondary)!important;color:var(--secondary)!important}.header-carousel .owl-nav .owl-prev:hover,.header-carousel .owl-nav .owl-next:hover{background:var(--primary)!important;border-color:var(--primary)!important}
.service-item{border-radius:14px;background:linear-gradient(180deg,#fff 0%,#f4fff7 100%);border:1px solid rgba(8,123,47,.08);box-shadow:0 8px 24px rgba(0,0,0,.06);transition:all .25s ease}.service-item:hover{background:linear-gradient(180deg,var(--primary) 0%,#0a5e28 100%);transform:translateY(-6px)}.service-item i{color:var(--primary)!important}.service-item:hover i,.service-item:hover h5,.service-item:hover p{color:#fff!important}
.course-item,.testimonial-item .testimonial-text{border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.08)}.course-item img{transition:all .35s ease}.course-item:hover img{transform:scale(1.04)}.course-item h5,.course-item a{color:var(--dark)}
.testimonial-item img{object-fit:cover;object-position:center;border-color:var(--secondary)!important}
.footer{background:linear-gradient(135deg,#07140b 0%,#0a2d16 60%,#111 100%)!important}.footer .btn.btn-social:hover{color:#fff!important;background:var(--primary)!important;border-color:var(--primary)!important}.back-to-top{background:var(--primary)!important;border-color:var(--primary)!important}
.whatsapp-chat-avatar{color:var(--primary)!important}.whatsapp-chat-header{background:var(--primary)!important}.whatsapp-chat-form button,.whatsapp-chat-button{background:#25D366!important}
@media(max-width:991.98px){.navbar-brand img.brilliant-site-logo{max-height:58px}}


/* Logo visibility and HD hero image enhancement */
.navbar .navbar-brand {
    min-height: 92px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
.navbar-brand img.brilliant-site-logo {
    max-height: 88px !important;
    width: auto !important;
    image-rendering: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
}
.header-carousel .owl-carousel-item img {
    object-fit: cover;
    object-position: center;
}
.header-carousel .owl-carousel-item {
    max-height: 720px;
    overflow: hidden;
}
.footer img[src*="brilliant-logo"] {
    max-width: 280px !important;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.15));
}
@media (max-width: 991.98px) {
    .navbar .navbar-brand {
        min-height: 78px !important;
    }
    .navbar-brand img.brilliant-site-logo {
        max-height: 68px !important;
    }
}
@media (max-width: 575.98px) {
    .navbar-brand img.brilliant-site-logo {
        max-height: 58px !important;
        max-width: 240px !important;
    }
}


/* Market live widget and visual polish */
.market-live-section {
    background: linear-gradient(135deg, #f7fff9 0%, #ffffff 48%, #fff8e6 100%);
    position: relative;
    overflow: hidden;
}
.market-live-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 15%, rgba(8,123,47,.10), transparent 28%),
        radial-gradient(circle at 92% 70%, rgba(226,161,0,.14), transparent 30%);
    pointer-events: none;
}
.market-live-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1.6fr;
    gap: 28px;
    align-items: center;
    padding: 26px;
    border-radius: 20px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(8,123,47,.10);
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
}
.market-live-heading h2 {
    color: #071b0e;
    font-weight: 800;
}
.market-live-heading p {
    color: #4b5563;
}
.market-live-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.market-stat-card {
    padding: 18px 16px;
    border-radius: 16px;
    background: linear-gradient(160deg, #071b0e, #0a5e28);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    animation: marketFloat 4s ease-in-out infinite;
}
.market-stat-card:nth-child(2) {
    animation-delay: .35s;
    background: linear-gradient(160deg, #102033, #087B2F);
}
.market-stat-card:nth-child(3) {
    animation-delay: .7s;
    background: linear-gradient(160deg, #1f1600, #E2A100);
}
.market-stat-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    right: -28px;
    top: -28px;
    background: rgba(255,255,255,.14);
}
.market-stat-card span {
    display: block;
    font-size: 13px;
    letter-spacing: .8px;
    text-transform: uppercase;
    opacity: .9;
}
.market-stat-card strong {
    display: block;
    font-size: 32px;
    line-height: 1.2;
    margin-top: 8px;
}
.market-stat-card small {
    opacity: .85;
}
.market-up {
    color: #f8fffe;
}
.market-ticker-box {
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(8,123,47,.12);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
.course-item, .service-item, .testimonial-item .testimonial-text {
    transition: transform .25s ease, box-shadow .25s ease;
}
.course-item:hover, .service-item:hover, .testimonial-item:hover .testimonial-text {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(8,123,47,.14);
}
@keyframes marketFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
@media (max-width: 991.98px) {
    .market-live-wrap {
        grid-template-columns: 1fr;
    }
    .market-live-cards {
        grid-template-columns: 1fr;
    }
}

/* Clean readable market dashboard */
.market-top-ticker {
    background: #071b0e;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(226,161,0,.35);
    border-bottom: 1px solid rgba(226,161,0,.35);
}
.market-top-ticker-track {
    display: inline-block;
    padding: 10px 0;
    animation: tickerMove 28s linear infinite;
}
.market-top-ticker span {
    display: inline-block;
    margin-right: 42px;
    font-weight: 600;
    letter-spacing: .3px;
}
.market-top-ticker b {
    color: #48d36f;
    margin-left: 6px;
}
@keyframes tickerMove {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}
.market-note {
    display: block;
    margin-top: 10px;
    color: #6b7280;
}
.market-app-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 22px;
}
.market-mini-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(8,123,47,.12);
    box-shadow: 0 10px 26px rgba(0,0,0,.06);
}
.market-mini-card span {
    display: block;
    color: #087B2F;
    font-weight: 800;
    margin-bottom: 8px;
}
.market-mini-card strong {
    display: block;
    font-size: 22px;
    color: #071b0e;
    margin-bottom: 8px;
}
.market-mini-card p {
    margin: 5px 0;
    color: #344054;
}
.market-mini-card b, .market-up {
    color: #087B2F !important;
}
.sentiment-bar {
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}
.sentiment-bar em {
    display: block;
    height: 100%;
    background: linear-gradient(90deg,#087B2F,#E2A100);
    border-radius: 999px;
}
@media (max-width: 991.98px) {
    .market-app-board {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575.98px) {
    .market-app-board {
        grid-template-columns: 1fr;
    }
}


/* Enroll modal and breadcrumb usability fixes */
.enroll-modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: 0;
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
}
.enroll-modal-header {
    background: linear-gradient(135deg, #087B2F 0%, #0a5e28 100%);
    padding: 16px 24px;
}
.enroll-modal-logo {
    width: 72px;
    height: 54px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.enroll-success-title {
    color: #087B2F;
}
.breadcrumb-item a {
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: #E2A100 !important;
}
