@import url(colors.css);

@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

@font-face {
    font-family: 'MyCustomFont';
    src: url('./../fonts/EuclidCircularA-Regular.woff') format('woff');
    src: url('./../fonts/EuclidCircularA-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'MyCustomFont';
    src: url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap') format('woff');
    src: url('./../fonts/EuclidCircularA-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'MyCustomFont';
    src: url('/fonts/EuclidCircularA-Medium.woff') format('woff');
    src: url('/fonts/EuclidCircularA-Medium.woff2') format('woff2');
    font-weight: 500;
    /* Medium */
    font-style: normal;
}

@font-face {
    font-family: 'MyCustomFont';
    src: url('/fonts/EuclidCircularA-SemiBold.woff') format('woff');
    src: url('/fonts/EuclidCircularA-SemiBold.woff2') format('woff2');
    font-weight: 600;
    /* SemiBold */
    font-style: normal;
}


body {
    padding: 0;
    margin: 0;
    background-color: #f1f5f9 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span {

    font-family: "Bai Jamjuree", sans-serif !important;
}

h1 {
    display: block;
    text-align: center;
    padding: 30px 0px !important;
}

header {
    box-shadow: 0px 4px 10px var(--shadow-light);
    padding: 10px 10px;
    background: white;
}

.header-section {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    position: relative;
}

.logo img {
    height: 50px;
}

.header-content {
    display: flex;
    justify-content: space-evenly;
    width: 70%;
}

.course-list-data {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.5s ease;
    opacity: 0;
    visibility: hidden;
}


.course-dropdown-wrapper:hover .course-list-data,
.course-list-data.active {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.course-input-dropdown {
    position: absolute;
    left: 5%;
    top: 92%;
    width: 85%;
    background: #323440e0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 8px var(--color-darkest);
    z-index: 1000;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 4 columns */
    gap: 5px;
}

.course-drop-input:hover .course-input-dropdown {
    display: grid;
}



.course-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
}

.course-drop-input {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.course-input-li {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #0088cc;
    transition: 0.3s;
}

.course-title {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-right: 8px;
    border-right: 1px solid #ccc;
    color: #192335;
    font-size: 15px;
    font-family: 'MyCustomFont', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.list-item-name {
    font-size: 13px;
    font-family: 'MyCustomFont', sans-serif;
    font-weight: 400;
    color: #181717;
}

.list-item:hover .list-subitems {
    display: flex;
    flex-direction: column;
}

.list-item:hover {
    color: #fff;
    padding: 15px 13px;
    background: var(--color-linkedin);
}

.list-item:hover .list-item-name:hover {
    color: #fff;
}

.sub-item-name:hover {
    color: #fff;
}

.sub-item-name {
    font-size: 15px;
    font-family: 'MyCustomFont', sans-serif;
    font-weight: 400;
    color: #0a0909;
}

.course-input-li input {
    border: none;
    flex: 1;
    padding: 5px;
    font-size: 14px;
    outline: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

ul {
    list-style-type: none;
}

.course-drop-input {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.course-input-li {
    border: 2px solid #0088cc;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    transition: 0.3s;
}

i {
    font-size: 0.75rem;
}

.course-title {
    display: flex;
    align-items: center;
    gap: 5px;
    border-right: 1px solid #ccc;
    padding-right: 8px;
}

.course-input-li input {
    border: none;
    flex: 1;
    padding: 5px;
    font-size: 14px;
    outline: none;
}

.course-input-li i {
    color: #55666b;
    font-size: 16px;
}

.lists {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.list-name {
    position: relative;
}

.list-name-data {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #192335;
    font-size: 15px;
    font-family: 'MyCustomFont', sans-serif;
    font-weight: 600;
}

.list-items {
    position: absolute;
    top: 120%;
    left: 0;
    background: #fff;
    /* background: linear-gradient(145deg, #3d5c96, #2296b3); */
    border-radius: 8px;
    padding: 10px 0 28px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 220px;
    flex-direction: column;
    z-index: 999;
    cursor: pointer;
    width: 100%;
}

.list-items.active {
    display: flex;
    cursor: pointer;
}

.list-item {
    position: relative;
    padding: 11px 16px;
    color: #fff;
    /* color: #333; */
    transition: background 0.3s;
    font-size: 14px;
}

.list-item:hover {
    /* background: linear-gradient(145deg, #a18cd1, #fbc2eb);  */
    background: linear-gradient(145deg, #3d5c96, #2296b3);
    /* background: rgba(255, 255, 255, 0.2); */
    cursor: pointer;
}

/* Submenu arrow */
.submenu-arrow {
    float: right;
    margin-left: 5px;
    font-size: 12px;
}

/* Submenu dropdown */
.list-subitems {
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 220px;
}

.list-subitems.active {
    display: flex;
    flex-direction: column;
}

.list-subitem {
    padding: 10px 16px;
    color: #110c0c;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.list-subitem-data {
    display: flex;
    flex-direction: column;
}

.list-subitem-data:hover {
    background: linear-gradient(145deg, #3d5c96, #2296b3);
    color: #fff;
}

.list-items,
.list-subitems {
    transition: all 0.3s ease;
}

/* Show on hover */
.list-name:hover>.list-items {
    display: flex;
    flex-direction: column;
}

.list-items.active {
    display: flex;
    flex-direction: column;
}

.popup-mobile-menu {
    display: none;
}

.course-list-data {
    max-height: 300px;
    overflow-y: auto;
}

@media (max-width: 1300px) {
    .list-items {
        top: 237%;
        left: -55px;
    }
}

@media (max-width: 1040px) {
    .header-section {
        display: none;
    }

    .popup-mobile-menu {
        display: block;
        overflow-y: scroll;
    }

    .popup-mobile-menu {
        background: #fff;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .sidebar-item a {
        font-weight: bold;
    }

    .mobile-header {
        display: flex;
        justify-content: center;
        background-color: #fff;
        border-bottom: 1px solid #ddd;
        padding: 10px 20px;
        position: sticky;
        top: 0;
        z-index: 999;
    }

    .mobile-header-wrapper {
        width: 100%;
        max-width: 1200px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-header .logo img {
        height: 40px;
    }

    .menu-icons button {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }

    body.menu-open .popup-mobile-menu {
        display: block;
    }

    .d-none {
        display: none;
    }

    body.menu-open .open-menu-btn {
        display: none;
    }

    body.menu-open .close-menu-btn {
        display: inline-block;
    }

    .sidebar-subitem-lists {
        display: none;
    }
}

@media screen and (max-width: 1040px) {

    /* Hide elements initially */
    .mobile-menu-content {
        display: none;
    }

    .popup-mobile-menu {
        width: 100%;
        background-color: #fff;
        transition: width 0.3s ease-in-out;
        overflow-x: hidden;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .popup-mobile-menu.expanded {
        width: 70%;
    }

    .popup-mobile-menu.expanded .mobile-menu-content {
        display: block;
    }

    .mobile-header {
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-header-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        height: 40px;
    }

    .menu-icons button {
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        color: #333;
    }

    .open-menu-btn {
        display: inline-block;
    }

    .close-menu-btn {
        display: none;
    }

    .popup-mobile-menu.expanded .open-menu-btn {
        display: none !important;
    }

    .popup-mobile-menu.expanded .close-menu-btn {
        display: inline-block !important;
    }

    .popup-mobile-menu.expanded .mobile-header {
        height: 100vh;
        overflow: scroll;
    }

    /* Description & contact */
    .description {
        font-size: 14px;
        color: #555;
        margin-top: 10px;
    }

    .navbar-top-left {
        padding: 0;
        margin: 10px 0;
    }

    .navbar-top-left li {
        list-style: none;
        margin-bottom: 5px;
    }

    .navbar-top-left li a {
        text-decoration: none;
        font-size: 14px;
        color: #333;
    }

    .navbar-top-left li i {
        margin-right: 5px;
        color: #007bff;
    }

    /* Sidebar contents */
    .sidebar-contents {
        margin-top: 15px;
        padding: 0;
    }

    .sidebar-items {
        margin-bottom: 10px;
    }

    .sidebar-items a {
        color: #000;
    }

    .sidebar-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* background: #f5f5f5; */
        padding: 10px;
        /* border-radius: 5px; */
        cursor: pointer;
        border-bottom: 1px solid #ccc;
    }

    .sidebar-item p {
        margin: 0;
        font-weight: 600;
    }

    .sidebar-item p a {
        font-weight: 600;
    }

    .sidebar-item i {
        color: #555;
    }

    .sidebar-subitem {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar-item-lists,
    .sidebar-sub-item-lists {
        padding-left: 20px;
        margin-top: 5px;
        display: none;
    }

    .sidebar-item-lists li,
    .sidebar-sub-item-lists li {
        font-family: 'MyCustomFont', sans-serif;
        font-weight: 600;
        color: #494747;
        border-bottom: 1px solid black;
        padding: 10px;
        box-shadow: 2px 2px 2px 2px #ccc;
    }

    .siderbar-content-item {
        font-weight: 500;
        margin-top: 5px;
    }

    /* Utility class */
    .d-none {
        display: none !important;
    }

    .social-default {
        display: flex;
        justify-content: space-evenly;
    }

    .social-default li {
        background: #ccc;
        padding: 12px;
        border-radius: 50%
    }

    .social-default li i {
        font-size: 15px
    }

    .rbt-information-list li {
        display: flex;
        flex-direction: row;

    }

    .rbt-information-list li p {
        font-size: 12px;
        font-family: 'MyCustomFont', sans-serif;
    }

    .description {
        font-family: 'MyCustomFont', sans-serif;
    }

    li p {
        font-family: 'MyCustomFont', sans-serif;
        font-weight: bold;
    }

    li a {
        font-family: 'MyCustomFont', sans-serif;
        font-weight: 500;
    }

    .sidebar-item-lists li {
        font-family: 'MyCustomFont', sans-serif;
        font-weight: 600;
        color: #494747
    }

    .sidebar-item-lists li a {
        font-weight: bold;
    }

    .social-share-wrapper {
        display: flex;
        flex-direction: column;
    }

    .rbt-short-title {
        text-align: center;
    }

}



.course-list-data {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.5s ease;
    opacity: 0;
    visibility: hidden;
    border-radius: 12px;
    background: #d4d1d1;
}

.course-list-data.active {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.course-input-dropdown {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    padding: 20px;
    list-style: none;
}

.course-containerMain {
    position: relative;
    overflow: hidden;
}
 .course-containerMain:hover img{
    scale: 1.2;
    transition: all 0.5s ease-in-out;
}
.coursesDrop {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.coursesDrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.text-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 50%, transparent 100%);
    transition: all 0.4s ease;
    z-index: 2;
}

.category-name {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    padding: 5px 0;
}
