/* Define custom CSS variables for easy branding updates */
:root {
    --zed-primary: #ff0000; /* Example Primary Blue - REPLACE with ZedCapital's Brand Primary Color */
    --zed-primary-hover: #b80d14;
    /* e70c0c; */
    --zed-light-red-hover: #ffb5b5;
    --zed-secondary: #7b7b7b; /* Example Secondary Grey */
    --zed-backgound-color: #f7f7f7;
    --zed-icon-color: #e7e7e7;
    --zed-dark-text: #000; /* Dark text for headings */
    --zed-light-bg: #fff; /* Light background for the section */
    --zed-card-bg: #fff; /* Card background */
    --zed-banner-bg-start: #f8f9fa; /* Light background for the banner (can be a gradient or image) */
    --zed-banner-bg-end: #e2e6ea;
    --border-radius-lg: 0.75rem; /* Larger border-radius for rounded elements */
    --zed-border-color: #d5d5d5;
    --zed-card-back: #f8f9fa; /* rgba(249, 249, 249, 0.6);*/
    --zed-green-text: #233f57;
    --zed-white-glass-effect: #f8f9facf;
    --zed-success: green;
    --zed-success-hover: #19b57c;
    --float-distance: 14px;   /* how far it moves up/down */
    --float-duration: 4.5s;   /* how slow/fast the loop is */
    --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
    --gold: #c9a84c;
    /* f0a500; */
    --blue: #1551a0;
    --purple: #7c3aed;
    --purple-s: #faf5ff;
    --teal: #0891b2;
    --teal-s: #ecfeff;
    --green: #166534;
    --green-s: #f0fdf4;
    --navy: #1a2e5a;
    --cyan: #0891b2;
    --amber: #b45309;
    --amber-s: #fffbeb;
    --rose: #a01a45;
    --orange: #c2540a;
    --orange-s: #fff7ed;
    --navy-s: #eff6ff;
    --emerald: #0a7c52;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

::-webkit-scrollbar {
    width: 5px
}

::-webkit-scrollbar-track {
    background: var(--zed-light-red-hover)
}

::-webkit-scrollbar-thumb {
    background: var(--zed-primary);
    border-radius: 3px
}

.bg-danger{
    background-color: var(--zed-primary) !important;
}
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl{
    --bs-gutter-x: 6rem !important;
}

/* Full screen overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo Style */
.preloader-logo {
  width: 200px; /* Adjust size as needed */
  animation: fadeIn 1.5s ease-in-out;
}

.text-red {
    color: var(--zed-primary) !important;
}

.text-green {
    color: var(--zed-success) !important;
}

.bg-red{
    background-color: var(--zed-primary) !important;
}

.text-gray{
  color: var(--zed-secondary) !important;
}

.h2{
    font-size: 2.5rem;
    font-weight: 900;
}

.f-20{
    font-size: 1.1rem;
}

.center-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    color: var(--zed-dark-text);
    margin-top: -80px;
}

.center-message h1 {
    font-size: 2.5rem;
}

.verticle-center{
    display: flex;
    align-items: center;      /* Vertically center */
    justify-content: center;  /* Horizontally center (optional) */
}

.center-message h1 span {
    font-size: 3rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideIn 2.2s ease-in forwards;
}

/**
 * Menu Nevigate
 */

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-brand img {
    width: 200px;
}

.nav-link {
    margin: 0 5px;
    font-weight: 500;
}

li.nav-item{
    font-size: 1rem;
}

#indexCarousel .carousel-item img {
    /* height: 70vh; */
    object-fit: cover;
}

#indexCarousel .carousel-indicators [data-bs-target]{
    background-color: var(--zed-primary) !important;
}
.top-bar {
    background-color: var(--zed-dark-text);
    color: #fff;
    /* height: 35px; */
    font-size: 14px;
}

.top-bar .dropdown-toggle,
.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar li a {
    color: var(--zed-dark-text);
    text-decoration: none;
}

.top-bar .dropdown-menu {
    min-width: auto;
}

.dropdown-menu.show{
    padding: 10px;
}

.top-bar .dropdown-item {
    font-size: 14px;
}

.top-bar .flag-text {
    font-size: 13px;
}

.flag-img {
    height: 18px;
    width: auto;
    margin-right: 6px;
}

/* Second-level menu */
.sub-menu {
    border-top: 1px solid var(--zed-border-color);
    border-bottom: 2px solid var(--zed-border-color);
    position: fixed;
    width: 100%;
    background-color: #ffffffbd;
    z-index: 1;
}
.sub-menu .nav-link {
    font-size: 0.95rem;
    color: #555;
    margin: 0 10px;
}
.sub-menu .nav-link.active {
    font-weight: 600;
    color: var(--zed-primary);
}

.sub-menu .nav-link:hover {
    color: var(--zed-primary-hover);
}

.demo-account-btn {
    background: #fff;
    font-weight: 100;
    padding: 6px 12px;
    color: var(--zed-primary);
    border-radius: 5px;
    margin: 0 5px;
    border: 1px solid var(--zed-primary);
    font-size: 0.9rem;
}

.live-account-btn {
    background: var(--zed-primary);
    font-weight: 100;
    padding: 6px 12px;
    color: #fff;
    border-radius: 5px;
    margin: 0 5px;
    border: 1px solid var(--zed-primary);
    font-size: 0.9rem;
}

a.live-account-btn:hover {
    background: #e70c0c;
    color: #fff;
}

a.demo-account-btn:hover {
    border: 1px solid #bb0404;
    color: #bb0404;
}

.div-demo-account-btn button,
.div-live-account-btn button {
    width: 125px;
}

.sticky-header {
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
}

.sticky-belt{
    background-color: var(--zed-dark-text);
}
.dropdown-item img {
    width: 20px;
    display: none;
}

.menu li a {
    text-decoration: none;
    transition: all 0.8s;
}
.menu li:hover {
    background: url("data:image/svg+xml; base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEi%0D%0AIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhs%0D%0AaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB3aWR0%0D%0AaD0iMzkwcHgiIGhlaWdodD0iNTBweCIgdmlld0JveD0iMCAwIDM5MCA1MCIgZW5hYmxlLWJhY2tn%0D%0Acm91bmQ9Im5ldyAwIDAgMzkwIDUwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0i%0D%0Abm9uZSIgc3Ryb2tlPSIjZDk0ZjVjIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLW1pdGVybGlt%0D%0AaXQ9IjEwIiBkPSJNMCw0Ny41ODVjMCwwLDk3LjUsMCwxMzAsMAoJYzEzLjc1LDAsMjguNzQtMzgu%0D%0ANzc4LDQ2LjE2OC0xOS40MTZDMTkyLjY2OSw0Ni41LDI0My42MDMsNDcuNTg1LDI2MCw0Ny41ODVj%0D%0AMzEuODIxLDAsMTMwLDAsMTMwLDAiLz4KPC9zdmc+Cg==");
    animation: line 3s;
}
.menu li a:hover {
    color: var(--zed-primary-hover);
}

@keyframes line {
    0% {
        background-position-x: 390px;
    }
}

/**
 * Banner Slider
 */
/* Hero Banner Section Styling */
.hero-banner {
    /* Background gradient for a modern look - adjust colors as needed */
    background: linear-gradient(to right, var(--zed-banner-bg-start), var(--zed-banner-bg-end));
    padding: 6rem 0; /* Ample vertical padding */
    min-height: 60vh; /* Minimum height for the banner */
    display: flex;
    align-items: center; /* Vertically center content */
    border-bottom: 1px solid rgba(0,0,0,.05); /* Subtle bottom border */
}

#indexCarousel {
    margin-top: 120px;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.banner-content {
    position: relative;
    z-index: 1;
}

h1.fw-bold{
    font-size: 2.8rem;
}

/* Fixed button */
#backToTop {
    position: fixed;
    bottom: 10px;
    right: 10px;
    border-radius: 0;
    padding: 8px !important;
    height: 40px;
    width: 40px;
    background-color: var(--zed-primary);
}

/* Hover bounce */
#backToTop:hover {
    transform: translateY(-5px);
    transition: transform 0.5s ease-in-out;
}

.show-all-btn{
    font-weight: 500;
    color: var(--zed-primary);
    float: right;
    margin-top: 8px;
    text-decoration: none;
}

.show-all-btn:hover i{
    transition: transform 0.2s ease;
    transform: translateX(10px);
}

.float-y {
    animation: floatY var(--float-duration) ease-in-out infinite;
    will-change: transform; /* smoother on modern browsers */
    display: inline-block;  /* keeps transforms clean on imgs */
}

/* Variants */
.float-y.alt {            /* up then down a bit more */
    animation-name: floatYAlt;
}

.float-on-hover {         /* hover-only float */
    transition: transform .3s ease;
}
.float-on-hover:hover {
    animation: floatY var(--float-duration) ease-in-out infinite;
}

.swal2-actions button{
    min-width: 100px;
}
.swal2-cancel{
    margin-right: 15px;
}

.arrow-list {
    list-style: none; /* remove default dots */
    padding-left: 0; /* remove extra padding */
}

.arrow-list li {
    position: relative;
    padding-left: 20px; /* space for the arrow */
}

.arrow-list li::before {
    content: "›"; /* or ">" */
    position: absolute;
    left: 0;
    color: var(--zed-primary); /* Bootstrap primary color */
    font-size: 40px;
    margin: -20px 0 0 0;
}

.custom-pointer {
    cursor: pointer;
}

#custom-tabs {
    padding: 10px;
}

#custom-tabs button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #f1f1f1;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

#custom-tabs button.active {
    background: black;
    color: white;
}

iframe {
    border: none;
    width: 100%;
    height: 65vh; /* 80% height of the screen */
    flex-grow: 1;
}

/**
 * Custom CSS
 */
/**
 * Start Course Section
 */
    /* Next-Level Page Header */
    .page-header {
        background: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark-navy) 100%);
        padding: 80px 0;
        color: white;
        border-bottom: 8px solid var(--prinary-teal);
        position: relative;
    }

    .page-header::after {
        content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
        background: linear-gradient(to top, var(--primary-blur), transparent);
    }
    
    .course-card {
        background: #fff;
        border-radius: 20px;
        padding: 25px;
        border: 1px solid var(--box-border);
        box-shadow: var(--card-shadow);
        transition: var(--transition-smooth);
        position: relative;
        overflow: hidden;
    }

    .course-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: var(--primary-teal);
    }

    .course-card:hover {
        transform: translateY(-10px);
    }

    .course-img {
        border-radius: 15px;
        width: 100%;
        /* height: 150px; */
        object-fit: cover;
    }

    .course-title {
        font-size: 22px;
        font-weight: 600;
    }

    .course-desc {
        font-size: 14px;
        color: var(--text-muted);
    }

    .course-list li {
        list-style: none;
        font-size: 14px;
        margin-bottom: 8px;
        position: relative;
        padding-left: 5px;
        transition: var(--transition-fast);
        cursor: pointer;
    }

    .course-list li:hover {
        transform: translateX(8px);
        color: var(--primary-teal);
    }

    .course-list li:hover::after {
        width: 100%;
    }

    .course-list li:hover i {
        transform: translateX(4px);
    }

    .course-list li i {
        color: var(--primary-teal);
        margin-right: 8px;
    }

    .badge-level {
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--zed-icon-color);
        color: var(--zed-dark-text);
        padding: 5px 12px;
        border-radius: 50px;
        font-size: 12px;
    }
/**
 * End Course Section
 */