*,
.icert-course-item {
    box-sizing: border-box
}

* {
    margin: 0;
    padding: 0
}

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    transition: transform .4s ease-out
}

#site-header.header-hidden,
.offer-banner.banner-hidden {
    transform: translateY(-100%)
}

.navbar-main {
    padding: 8px
}

.navbar {
    margin-bottom: 0
}

.container-fluid {
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    flex-shrink: 0
}

.navbar-brand-custom img {
    height: 45px;
    width: auto
}

.navbar-toggler {
    display: none;
    border: none;
    background: 0 0;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: #2c3e50
}

.navbar-collapse {
    display: flex !important;
    align-items: center;
    flex-direction: row;
    flex: 1;
    gap: 20px
}

.navbar-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto
}

.icert-mega-menu,
.icert-nav-dropdown {
    position: relative
}

.nav-link-custom {
    color: #2c3e50;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 15px;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap
}

.nav-link-custom:hover {
    color: #2957a4;
    background: rgba(33, 150, 243, .05);
    text-decoration: none
}

.icert-all-courses-link {
    border: .5px solid #2956a438;
    background: #edf3ffff;
    color: #2957a4
}

.icert-all-courses-link.active,
.icert-all-courses-link:hover {
    background: #2957a4;
    color: #fff
}

.icert-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 980px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .12);
    border-radius: 0 0 8px 8px;
    border-right: .5px solid #8097beff;
    border-bottom: .5px solid #8097beff;
    border-left: .5px solid #8097beff;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s, transform .3s;
    z-index: 999;
    pointer-events: none;
    margin-top: 6px
}

.icert-mega-dropdown.icert-show-dropdown {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto
}

.icert-mega-sidebar {
    background: #f8f9fa;
    border-radius: 12px 0 0 12px;
    padding: 20px 0;
    border-right: 1px solid #e0e0e0
}

.icert-category-item {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: #2c3e50;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    border-left: 3px solid transparent;
    position: relative
}

.icert-category-item.active,
.icert-category-item:hover {
    background: #eef3ffff;
    color: #2957a4;
    border-left-color: #2957a4
}

.icert-category-item i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: 16px
}

.icert-mega-content {
    flex: 1;
    padding: 30px 30px 30px 10px;
    max-height: 600px;
    overflow-y: auto
}

.icert-mega-content::-webkit-scrollbar {
    width: 6px
}

.icert-mega-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px
}

.icert-mobile-accordion,
.icert-subcategory {
    display: none
}

.icert-subcategory.active {
    display: block;
    animation: .4s fadeIn
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.icert-subcategory h5 {
    color: #555;
    font-size: .7em;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: .5px
}

.icert-subcategory h5 i {
    color: #555;
    font-size: 1.1em
}

.icert-subcategory h5 a {
    color: inherit;
    text-decoration: none
}

.icert-subcategory h5 a:hover {
    color: #2957a4
}

.icert-course-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between
}

.icert-course-section {
    flex-basis: calc(50% - 10px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    transition: box-shadow .3s
}

.icert-course-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

.icert-course-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 10px;
    transition: box-shadow .3s ease-in-out;
    width: 100%;
    background: #fff;
    flex-basis: calc(50% - 10px)
}

.login-btn,
.search-input {
    transition: .3s;
    font-size: 15px
}

.icert-course-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1)
}

.icert-course-logo {
    width: 50px;
    height: 50px;
    background-color: #f0f7ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0
}

.icert-course-logo i,
.icert-course-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.icert-course-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: calc(100% - 70px)
}

.icert-nav-dropdown-menu,
.search-suggestions {
    display: none;
    position: absolute;
    background: #fff
}

.icert-course-details a {
    text-decoration: none;
    color: #2957a4
}

.icert-course-details h6 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2
}

.icert-course-details p {
    font-size: 10px;
    color: #8a8a8aff;
    margin: 0
}

.search-container {
    max-width: 450px;
    width: 100%;
    position: relative
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 12px 16px 12px 46px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background: #f8f9fa
}

.search-input:focus {
    outline: 0;
    border-color: #2196f3;
    background: #fff;
    box-shadow: 0 4px 16px rgba(33, 150, 243, .1)
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999
}

.search-suggestions {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
    z-index: 1002
}

.search-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0
}

.search-suggestion-item:last-child {
    border-bottom: none
}

.search-suggestion-item:hover {
    background-color: #f0f7ff;
    color: #1976d2
}

.icert-nav-dropdown-menu {
    top: calc(100% + 18px);
    right: 0;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1001
}

.icert-nav-dropdown-menu.icert-show {
    display: block;
    animation: .3s dropdownFade
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-5px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.icert-nav-dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: #2c3e50;
    text-decoration: none;
    transition: .2s
}

.icert-nav-dropdown-menu a:hover {
    background: #f0f7ff;
    color: #2196f3;
    text-decoration: none
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(33, 150, 243, .1)
}

.login-btn:hover {
    background: linear-gradient(135deg, #1976d2 0, #1565c0 100%);
    box-shadow: 0 2px 4px rgba(33, 150, 243, .2);
    transform: translateY(-1px);
    text-decoration: none
}

@media (max-width:991.98px) {

    .icert-mega-dropdown,
    .navbar-collapse {
        display: none !important
    }

    .navbar-collapse.show {
        display: flex !important;
        max-height: 70vh;
        overflow-y: auto
    }

    .container-fluid {
        padding: 0 20px;
        justify-content: space-between;
        position: relative
    }

    .navbar-brand-custom img {
        height: 60px
    }

    .navbar-toggler {
        display: block
    }

    .navbar-collapse {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
        padding: 20px;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid #eee
    }

    .search-container {
        order: 1;
        max-width: 100%;
        margin: 0 0 15px
    }

    .icert-mega-menu {
        order: 2;
        width: 100%;
        margin: 0;
        padding: 0
    }

    .navbar-nav-right {
        order: 3;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-left: 0;
        gap: 0
    }

    .icert-mega-menu .nav-link-custom {
        width: 100%;
        padding: 7px;
        border-bottom: 1px solid #e8e8e8;
        border-radius: 0;
        justify-content: space-between
    }

    .icert-mega-menu .nav-link-custom:after {
        content: '+';
        font-size: 24px;
        color: #2196f3;
        transition: transform .3s
    }

    .icert-mega-menu .nav-link-custom.icert-active:after {
        transform: rotate(45deg)
    }

    .icert-mobile-accordion {
        display: block;
        padding: 3px;
        background-color: #f7f9fc;
        border-bottom: 1px solid #e8e8e8
    }

    .icert-mobile-toggle {
        width: 100%;
        background: 0 0;
        border: none;
        padding: 14px;
        text-align: left;
        font-size: 15px;
        font-weight: 600;
        color: #2c3e50;
        border-bottom: 1px solid #e0e0e0;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: .3s
    }

    .icert-mobile-accordion .icert-mobile-toggle:last-of-type {
        border-bottom: none
    }

    .icert-mobile-toggle-content {
        display: flex;
        align-items: center;
        gap: 12px
    }

    .icert-mobile-content {
        display: none;
        background: #fff;
        padding: 16px 16px 0;
        border-bottom: 1px solid #e0e0e0
    }

    .icert-mobile-course-section {
        margin-bottom: 20px
    }

    .icert-mobile-course-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px
    }

    .icert-mobile-course-logo {
        background: #f0f7ff;
        padding: 6px;
        flex-shrink: 0
    }

    .icert-mobile-content h6 {
        color: #1976d2;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        margin: 0
    }

    .icert-mobile-content ul {
        list-style: none;
        padding-left: 0
    }

    .icert-mobile-content a {
        display: block;
        padding: 4px 8px;
        color: #4e5b67;
        text-decoration: none;
        border-radius: 6px
    }

    .icert-mobile-content a:hover {
        background: #f0f7ff;
        color: #2196f3
    }

    .navbar-nav-right .icert-nav-dropdown>.nav-link-custom,
    .navbar-nav-right .nav-link-custom {
        width: 100%;
        text-align: left;
        padding: 14px 0;
        border-bottom: 1px solid #e8e8e8;
        border-radius: 0;
        margin-top: 15px
    }

    .navbar-nav-right .icert-nav-dropdown>.nav-link-custom {
        margin-top: 0
    }

    .navbar-nav-right .nav-link-custom:hover {
        background-color: transparent
    }

    .icert-nav-dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid #e8e8e8
    }

    .icert-nav-dropdown-menu a {
        padding: 11px
    }

    .login-btn {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        padding: 12px 20px
    }

    .icert-mobile-course-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: 100%
    }

    .icert-mobile-course-logo {
        width: 40px;
        height: 40px;
        overflow: hidden;
        border-radius: 8px
    }
}

.cat-anchor {
    text-decoration: none;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1.5px solid #b1b1b1ff;
    margin-bottom: 15px
}

.offer-banner {
    background: linear-gradient(135deg, #000000da 0, #1a1a1a 100%);
    color: #fff;
    padding: 5px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid #dc2626;
    overflow: hidden;
    transition: transform .4s ease-out;
    transform: translateY(var(--navbar-height, 0))
}

.offer-banner.banner-at-top {
    transform: translateY(0) !important;
    z-index: 999
}

@media (min-width:769px) {
    .offer-banner {
        top: auto;
        bottom: 0;
        transform: none;
        border-bottom: none;
        border-top: 3px solid #dc2626
    }

    .offer-banner.banner-hidden {
        transform: translateY(100%)
    }

    .offer-banner.banner-at-top {
        top: 0;
        bottom: auto;
        transform: translateY(0) !important
    }

    .close-banner {
        right: 20px;
        left: auto
    }
}

.offer-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1
}

.offer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px
}

.offer-text {
    flex: 1;
    min-width: 200px
}

.coupon-code,
.coupon-section {
    align-items: center;
    display: flex
}

.offer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #dc2626
}

.offer-subtitle {
    font-size: 14px;
    margin-bottom: 0;
    opacity: .9
}

.countdown-label,
.coupon-code {
    font-size: 13px;
    font-weight: 600
}

.coupon-section {
    gap: 15px;
    flex-wrap: wrap
}

.coupon-code {
    background: #dc2626;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    letter-spacing: 1px;
    border: 2px dashed #fff;
    gap: 6px
}

.coupon-code i {
    font-size: 11px
}

.countdown-section {
    display: flex;
    align-items: center;
    gap: 15px
}

.countdown-label {
    opacity: .9
}

.countdown-timer {
    display: flex;
    gap: 3px
}

.countdown-item {
    background: rgba(255, 255, 255, .1);
    border-radius: 6px;
    text-align: center;
    min-width: 45px
}

.countdown-number {
    font-size: 16px;
    font-weight: 700;
    display: block;
    color: #ff3131ff
}

.countdown-label-small {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .8
}

.close-banner {
    position: absolute;
    top: 8px;
    right: 5px;
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: .7;
    transition: opacity .3s
}

.close-banner:hover {
    opacity: 1
}

@media (max-width:768px) {
    .icert-course-section {
        flex-basis: 100%;
        flex-direction: column
    }

    .icert-course-grid {
        flex-direction: column;
        gap: 15px
    }

    .offer-banner {
        padding: 6px 0
    }

    .offer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        text-align: left
    }

    .offer-text {
        flex: 1;
        text-align: left
    }

    .offer-title {
        font-size: 16px;
        margin-bottom: 2px
    }

    .offer-subtitle {
        font-size: 12px;
        margin-bottom: 4px
    }

    .coupon-section {
        justify-content: flex-start;
        margin-bottom: 4px
    }

    .countdown-section {
        display: none
    }

    .close-banner {
        top: 4px;
        right: 12px;
        font-size: 16px
    }
}

@media (max-width:480px) {

    .coupon-section,
    .offer-subtitle {
        margin-bottom: 2px
    }

    .offer-banner {
        padding: 4px 0
    }

    .offer-content {
        gap: 8px
    }

    .offer-title {
        font-size: 14px
    }

    .offer-subtitle {
        font-size: 11px
    }

    .coupon-code {
        padding: 4px 10px;
        font-size: 11px
    }

    .countdown-section {
        display: none
    }

    .close-banner {
        top: 2px;
        right: 8px;
        font-size: 14px
    }
}

@media (max-width:360px) {

    .coupon-section,
    .offer-subtitle {
        margin-bottom: 1px
    }

    .offer-banner {
        padding: 3px 0
    }

    .offer-content {
        gap: 6px
    }

    .offer-title {
        font-size: 13px
    }

    .offer-subtitle {
        font-size: 10px
    }

    .coupon-code {
        padding: 3px 8px;
        font-size: 10px
    }

    .countdown-section {
        display: none
    }
}

.icert-category-layout {
    display: flex;
    gap: 0;
    margin-top: 0
}

.icert-courses-column {
    flex: 2;
    max-height: 480px;
    padding-right: 15px;
    overflow-y: auto;
    position: relative
}

.icert-courses-column::-webkit-scrollbar {
    display: none
}

.icert-articles-governing-column {
    width: 250px;
    display: flex;
    flex-direction: column;
    overflow-x: visible;
    border-left: 1px solid #e0e0e0;
    padding-left: 15px
}

.icert-articles-column {
    width: 250px;
    padding: 0;
    overflow-y: auto
}

.icert-articles-column h6,
.icert-governing-bodies h6 {
    color: #555;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px
}

.icert-articles-column ul {
    list-style: none;
    font-size: 12px;
    padding: 0;
    margin-bottom: 0
}

.icert-articles-column li {
    margin-bottom: 15px;
    line-height: 1
}

.icert-articles-column a,
.icert-governing-bodies li a {
    color: #2957a4;
    text-decoration: none
}

.icert-articles-column a:hover {
    text-decoration: underline
}

.icert-governing-bodies {
    width: 250px;
    overflow-y: auto;
    position: relative
}

.icert-governing-bodies ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.icert-governing-bodies li {
    background-color: #eef7ffff;
    border: .2px solid #2956a44d;
    border-radius: 5px;
    padding: 3px 5px;
    font-size: 12px;
    font-weight: 500
}



/* Mobile adjustments for new layout */

@media (max-width: 768px) {

    .icert-category-layout {

        flex-direction: column;

    }

    .icert-articles-governing-column {

        width: 100%;

    }

    .icert-courses-column {

        max-height: none;

        overflow-y: visible;

    }

}