.navbar .navbar-nav .nav-item .nav-link {
    position: relative;
    overflow: hidden;
    z-index: 1; 
    /* height: 100px; */

}
.navbar-light .navbar-nav .nav-link {
    /* max-height: 100px; */
}

.navbar .navbar-nav .nav-item .nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(90deg, #7b4397 0%, #4a429b 100%);
    z-index: -1;
    transition: height 0.35s ease;
    /* border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px; */
}
.webinar-scroll-body {
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;   /* 🚀 Stop X scroll */
    padding: 20px;
}
.webinar-detail-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.webinar-detail-content img {
    max-width: 100%;
    height: auto;
}

/* Make tables responsive */
.webinar-detail-content table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
}

/* Optional: Smooth scrollbar */
.webinar-scroll-body::-webkit-scrollbar {
    width: 6px;
}

.webinar-scroll-body::-webkit-scrollbar-thumb {
    background: #6f42c1;
    border-radius: 10px;
}
.text-purple{
    color: #3f1f80;
}
.navbar .navbar-nav .nav-item .nav-link:hover::before,
.navbar .navbar-nav .nav-item .nav-link.active::before {
    height: 100%;
}

.navbar .navbar-nav .nav-item .nav-link:hover,
.navbar .navbar-nav .nav-item .nav-link.active {
    /* font-weight: 700; */
    color: #fff !important;
}
#scrollToggleBtn {
    position: fixed;
    right: 90px;
    bottom: 30px; 
    /* test  */
    width: 45px;
    height: 75px;
    background: #ffffff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    color: #5f4bb6 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: large;
    display: none;
    
}

#scrollToggleBtn:hover {
    transform: translateY(-5px);
}

#scrollIcon {
    font-size: 22px;
    color: #6f42c1; /* Purple */
}

.webinar-Modal{
    background: url("../../user/images/bg1.png");
    border-radius: 15px;
    overflow: hidden;
}
.webinar-Modal .btn-close:focus,
.webinar-Modal .btn-close:active {
    outline: none !important;
    box-shadow: none !important;
}
/* login button hover  */
.gradient-button a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #7b4397 0%, #4a429b 100%);
    color: #fff;
    text-decoration: none;
    /* border-radius: 6px;    */
    overflow: hidden;     
    z-index: 1;

    transition: color 0.3s ease; 
    border: 1px solid #7b4397;
}

/* single hover overlay */
.gradient-button a::before {
    content: "";
    position: absolute;
    inset: 0;

    background: #ffffff;
    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.35s ease;
    z-index: -1;
}

/* hover */
.gradient-button a:hover::before {
    transform: scaleX(1);
}

.gradient-button a:hover {
    color: #212529;
}
.gradient-button a:hover img {
    filter: brightness(0);
}
/* Default State */
.BG-event .gradient-button a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;      /* White background */
    color: #0a2d60;           /* Blue text */
    text-decoration: none;
    border-radius: 6px;
    overflow: hidden;
    z-index: 1;

    transition: color 0.3s ease;
}

/* Hover Overlay */
.BG-event .gradient-button a::before {
    content: "";
    position: absolute;
    inset: 0;

    background: #0a2d60;      /* Blue overlay */
    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.35s ease;
    z-index: -1;
}

/* Hover Animation */
.BG-event .gradient-button a:hover::before {
    transform: scaleX(1);
}

/* Text color change on hover */
.BG-event .gradient-button a:hover {
    color: #ffffff;
}

/* Optional: Image color invert */
.BG-event .gradient-button a:hover img {
    filter: brightness(0) invert(1);
}



/* model cross icons */
/* base close button */
.custom-close {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;

    color: #fff;
    font-size: 22px;
    font-weight: 600;

    width: 36px;
    height: 36px;

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

    border-radius: 50%;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

/* hover effect */
.custom-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* remove focus ring completely */
.custom-close:focus,
.custom-close:active {
    box-shadow: none !important;
    outline: none !important;
}

/* OUTER WRAPPER (BORDER) */
.submit-btn-wrap {
    padding: 2px;                  /* space for border */
    border-radius: 12px;
    background: linear-gradient(90deg, #7b4397 0%, #4a429b 100%);
    display: inline-block;
}

/* BUTTON */
.submit-btn {
    position: relative;
    background: linear-gradient(90deg, #7b4397 0%, #4a429b 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;

    padding: 10px 70px;            
    border: none;
    border-radius: 10px;           

    cursor: pointer;
    overflow: hidden;
    z-index: 1;

    transition: color 0.3s ease;
}

/* SINGLE HOVER LAYER (NO CUT ISSUE) */
.submit-btn::before {
    content: "";
    position: absolute;
    inset: 0;

    background: #ffffff;
    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.35s ease;
    border-radius: 10px;
    z-index: -1;
}

/* HOVER EFFECT */
.submit-btn:hover::before {
    transform: scaleX(1);
}

.submit-btn:hover {
    color: #0a2d60;
}

#closeLoginModal {
    transition: transform 0.5s ease;
    transform-origin: center;
}

#closeLoginModal:hover {
    transform: rotate(360deg) translateX(6px);
}
#closeRegisterModal {
    transition: transform 0.5s ease;
    transform-origin: center;
}

#closeRegisterModal:hover {
    transform: rotate(360deg) translateX(6px);
}

/* Mobile sidebar arrow animation */
.sidebar-arrow {
    transition: transform 0.3s ease;
}

/* When sidebar is OPEN */
.sidebar-toggle-btn[aria-expanded="true"] .sidebar-arrow {
    transform: rotate(180deg);
}

/* When sidebar is CLOSED */
.sidebar-toggle-btn[aria-expanded="false"] .sidebar-arrow {
    transform: rotate(0deg);
}


/* disabled wrapper */
.gradient-button.btn-disabled {
    opacity: 0.5;
    pointer-events: none;   /* fully blocked */
}

/* disabled link */
.gradient-button .disabled-link {
    cursor: not-allowed;
}

/* stop hover animation when disabled */
.gradient-button.btn-disabled a::before {
    display: none;
}

.gradient-button-inactive {
  background-color: white !important;
  color: #0a2d60 !important;
  font-weight: 400 !important;
}
.scorm-container {
    background: #000;      /* match player bg */
    padding: 0;
}

.scorm-container iframe {
    width: 100%;
    height: 70vh;          /* responsive height */
    min-height: 500px;
    border: none;
    display: block;
}
/* arrow btn code  */
/* ================= DOWN ARROW ================= */

/* ================= COMMON ARROW STYLE ================= */
.home-banner,
.event-section {
    position: relative;
}

.scroll-down-btn,
.scroll-up-btn {
    position: absolute;
    width: 45px;
    height: 75px;
    background: #ffffff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    color: #5f4bb6 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease; 
    font-size: large;
}

/* Icon style */
.scroll-down-btn i,
.scroll-up-btn i {
    color: #0a2d60 !important;
    font-size: 18px;
    font-weight: bold;
}

/* ================= DOWN ARROW (Banner) ================= */

.scroll-down-btn {
    right: 30px;
    bottom: -35px;   /* slightly outside banner */
}

.scroll-down-btn:hover {
    transform: translateY(5px);
}

/* ================= UP ARROW (Event Section) ================= */

.scroll-up-btn {
    right: 30px;
    top: -35px;      /* slightly above event section */
}

.scroll-up-btn:hover {
    transform: translateY(-5px);
}

/* webinar section  */
/* ================= WEBINAR SECTION ================= */

.webinar-section {
    position: relative;
    background: linear-gradient(110deg, #7b4397 0%, #5130a4 100%);
    color: #fff;
    overflow: hidden;
    padding: 8.5rem 0;
}

/* LEFT DOTS */
.webinar-section::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 420px;
    height: 450px;
    background-image: radial-gradient(
        rgba(255,255,255,0.35) 1.5px,
        transparent 1.5px
    );
    background-size: 16px 16px;
    -webkit-mask-image: linear-gradient(to top right, black 25%, transparent 75%);
    mask-image: linear-gradient(to top right, black 25%, transparent 75%);
    opacity: 0.7;
}

/* ================= CONTENT ================= */

.webinar-content {
    position: relative;
    z-index: 2;
    padding-right: 60px;
}

/* ICON + TEXT ALIGNMENT */
.webinar-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.webinar-header img {
    display: block;            /* IMPORTANT */
    margin: 0;                 /* Remove auto margins */
}

.webinar-header span {
    font-size: 17px;
    opacity: 0.9;
}

.webinar-content h2 {
    font-size: 2.6rem;
    font-weight: 600;
    margin: 30px 0;
    line-height: 1.25;
}

/* ================= DATE SECTION ================= */

.webinar-date-wrapper {
    display: flex;
    /* align-items: center; */
    gap: 10px;
    margin-bottom: 40px;
}

.date-square {
    border: 2px solid #fff;
    border-radius: 14px;

    width: 66px;          /* adjust size */
    height: 66px;

    display: flex;
    align-items: center;  /* vertical center */
    justify-content: center; /* horizontal center */

    font-size: 28px;
    font-weight: 700;
    line-height: 1;       /* VERY IMPORTANT */
}

.date-info,
.time-info {
    display: flex;
    flex-direction: column;
}

.month {
    font-size: 25px;
    font-weight: 700;
}

.year {
    font-size: 25px;
    font-weight: 700;
}

.time-label {
    font-size: 25px;
    font-weight: 600;
}

.time-value {
    font-size: 25px;
    font-weight: 700;
}

/* ================= BUTTONS ================= */

.webinar-actions {
    display: flex;
    gap: 20px;
}

.btn-white,
.btn-outline-white {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-white {
    background: #fff;
    color: #5130a4;
}

.btn-outline-white {
    background: #fff;
    color: #5130a4;
}

.btn-white:hover,
.btn-outline-white:hover {
    background: #3f1f80;
    color: #fff;
}

/* ================= RIGHT IMAGE ================= */

.webinar-image {
    position: absolute;
    right: 0;
    bottom: -14px;
    width: 61%;
    height: 100%;
}

.webinar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.border-divided{
    border: 1px solid white;
    height: 4.5rem;
}
/* ================= RESPONSIVE ================= */

.coming-soon-badge {
    display: inline-block;
    background: #ffffff;
    color: #6f42c1;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 25px;
    margin-top: 15px;
}

/* Webinar header text */
.webinar-header span {
    display: block;
    font-size: 14px;
    margin-top: 5px;
    color: #e0d6ff;
}
.about-text {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 28px;
    text-align: left;
}
@media (max-width: 1504px) {
    .home-banner .banner-img img{
        /* height: 60vh !important; */
    }
}
@media (max-width: 1300px) {
    .home-banner .banner-img img{
        height: 50vh !important;
    }
}
@media (max-width: 1100px) {
    .home-banner .banner-img img{
        height: 40vh !important;
    }
}
@media (max-width: 1050px) {
    .home-banner .banner-img img{
        height: 28vh !important;
    }
}
@media (max-width: 950px) {
    .home-banner .banner-img img{
        height: 25vh !important;
    }
}
@media (max-width: 850px) {
    .home-banner .banner-img img{
        height: 26vh !important;
    }
}
@media (max-width: 700px) {
    .home-banner .banner-img img{
        height: 25vh !important;
    }
}
@media (max-width: 500px) {
    .home-banner .banner-img img{
        height: 20vh !important;
    }
}

@media (max-width: 450px) {
    .home-banner .banner-img img{
        height: 17vh !important;
    }
}
@media (max-width: 400px) {
    .home-banner .banner-img img{
        height: 18vh !important;
    }
}
@media (min-width: 768px) {
    .about-text {
        text-align: justify;
    }
}
@media (max-width: 992px) {

    .webinar-section {
        padding: 70px 0 0 0;
    }

    .webinar-content {
        padding: 0 25px;
        /* text-align: center; */
    }

    .webinar-date-wrapper {
        /* justify-content: center; */
        flex-wrap: wrap;
        gap: 15px;
    }

    .webinar-actions {
        /* justify-content: center; */
        flex-wrap: wrap;
    }

    .webinar-image {
        position: relative;
        width: 100%;
        height: auto;
        margin-top: 40px;
    }

    .webinar-image img {
        height: auto;
    }

    .webinar-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .scroll-down-btn{
        bottom: -25px !important;
    }
    .webinar-content h2 {
        font-size: 1.6rem;
    }

    .date-square {
        font-size: 20px;
        height: 52px; 
        width: 52px;
    }

    .month,
    .year,
    .time-value {
        font-size: 14px;
    } 
    .time-label{
        font-size: 14px;
    } 
    .border-divided{
        height: 3.2rem
    }  
    .coming-soon-badge{
        font-size: 18px !important;
    }
}


@media (max-width: 992px) {

    .webinar-section {
        padding: 70px 0 0 0;
    }

    .webinar-content {
        padding: 0 20px;
        /* text-align: center; */
    }

    .webinar-date-wrapper {
        /* justify-content: center; */
    }

    .webinar-actions {
        /* justify-content: center; */
        flex-wrap: wrap;
    }

    /* Image becomes normal block */
    .webinar-image {
        position: relative;
        width: 100%;
        height: auto;
        margin-top: 40px;
    }

    .webinar-image img {
        height: auto;
    }

    .webinar-content h2 {
        font-size: 2rem;
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1272px) {
    .webinar-image{
        width: 75%;
    }
}
@media (max-width: 992px) {
    .scroll-down-btn,
    .scroll-up-btn {
        width: 40px;
        height: 65px;
        right: 20px;
    }
    .webinar-image{
        width: 95% !important;
    }
}

@media (max-width: 768px) {
    .scroll-down-btn,
    .scroll-up-btn {
        width: 38px;
        height: 60px;
        right: 15px;
    }

    .scroll-down-btn i,
    .scroll-up-btn i {
        font-size: 15px;
    }
}

@media (max-width: 580px) {
    .about-section{
        padding: 5rem 0.5rem 5rem;
    } 
    .about-section::before{
        width: 70%;
    } 
    .about-section h2{
        font-size: 1rem;
    } 
    .about-section p{
        font-size: 12px;
    } 
    .section-title{
        font-size: 2rem !important; 
        margin-bottom: 1.5rem !important;
    }
}
@media (max-width: 480px) {
    .scroll-down-btn,
    .scroll-up-btn {
        width: 35px;
        height: 55px;
        right: 12px;
    }

    #scrollToggleBtn{
        width: 35px;
        height: 55px;
    }
    .scroll-down-btn {
        bottom: -28px;
    }

    .scroll-up-btn {
        top: -28px;
    }
}
.scroll-down-btn {
    right: 90px;
    bottom: 0px;   /* instead of -35px */
}



/* ============================
   LEARNING SECTION
============================ */

.learning-section {
    position: relative;
    padding: 4rem 0;
    /* background: linear-gradient(180deg, #f9f9ff 0%, #eef0f8 100%); */
    overflow: hidden;
}

/* Wider container for bigger cards */
.learning-section .container {
    max-width: 1250px;
}

/* Right dotted decoration */
.learning-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 32%;
    height: 100%;
    background-image: radial-gradient(
        rgba(0,0,0,0.07) 1px,
        transparent 1px
    );
    background-size: 16px 16px;
    opacity: 0.7;
    pointer-events: none;
}

/* Section Title */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #5f4bb6;
    margin-bottom: 3rem;
}


/* ============================
   MODULE WRAPPER
============================ */

.module-wrapper {
    position: relative;
    text-align: center;
}

/* ============================
   DEFAULT CARD
============================ */

.module-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Gradient border effect */
.module-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #7b4397, #4a429b);

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

/* Image */
.module-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Dark overlay */
.module-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.2)
    );
}

/* Title on image */
.module-content {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    z-index: 2;
    color: #fff;
    text-align: left;
}

.module-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* ============================
   HOVER CARD (HIDDEN INITIALLY)
============================ */

.module-card-hover {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;

    background: linear-gradient(90deg, #7b4397 0%, #4a429b 100%);
    color: #ffffff;
    padding: 25px;
    display: flex;
    align-items: center;

    transform: translateY(100%);
    transition: transform 0.6s ease;
    z-index: 4;
}

/* Hover Content Styling */
.module-card-hover h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.module-card-hover p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* ============================
   BUTTON
============================ */

.module-btn {
    display: inline-block;
    bottom: 20px;
    background: #ffffff;
    color: #5f4bb6;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #5f4bb6;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

/* ============================
   HOVER EFFECT
============================ */

/* Slide up hover card */
.module-wrapper:hover .module-card-hover {
    transform: translateY(0%);
}

/* Optional slight lift effect */
.module-wrapper:hover .module-card {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Button hover */
.module-wrapper:hover .module-btn {
    background: linear-gradient(90deg, #7b4397, #4a429b);
    color: #ffffff;
} 



