.section-padding {
    padding: 80px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cardo', serif;
}

h1 {
    font-size: 64px;
}

h2 {
    font-size: 48px;
}

h3 {
    font-size: 36px;
}

h4 {
    font-size: 32px;
}

h5 {
    font-size: 24px;
}

h6 {
    font-size: 18px;
}

div,
p,
li,
span,
a,
.section-desc,
.who-desc {
    font-family: 'Alata', sans-serif;
}

@media (max-width: 1440px) {
    .sub-title {
        font-size: 36px;
        line-height: normal;
    }

    .top-logo.w-auto {
        width: 60% !important;
    }

    .title-text {
        font-size: 54px;
    }

    .title-text {
        font-size: 60px;
    }

    ul.career-list {
        line-height: 26px;
    }
}

/* ------------------ Responsive ------------------ */
@media (max-width: 1023px) {
    .news-title {
        font-size: 28px;
    }

    .ranking-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

}

@media (max-width: 991px) {
       .navbar-collapse {
        position: relative;
        overflow-x: hidden;
    }
.dropdown-menu li:hover {
    background: linear-gradient(90deg, #DE0211 0%, #8E1921 100%) !important;
}

.dropdown-menu li:hover a {
    color: #ffffff !important;
}

    .navbar-nav .dropdown-menu {
        position: static !important;
    }

    .navbar-nav .dropdown-item {
        padding: 8px 16px;
        white-space: normal;
    }

    .nav-item.dropdown > .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .top-bar {
        display: none !important;
    }

    .dropdown-toggle::after {
        position: absolute;
        right: 0;
    }

    .hero-text-box {
        padding: 0 30px !important;
    }

    .course-tabs .nav-link:first-child {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .container,
    .container-md,
    .container-sm {
        width: 100% !important;
        max-width: 100% !important;
    }

    .mobile-header {
        display: block;
        background-color: #8b0c1a;
        padding: 12px 0;
    }

    .mobile-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-left-logo,
    .mobile-center-logo {
        height: auto;
        width: auto;
    }

    .mobile-title {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #fff;
    }

    .mobile-text .title {
        font-family: 'Cardo', serif;
        font-size: 32px;
        font-weight: 400;
        line-height: 48px;
    }

    /* Force hamburger white */
    .mobile-toggle svg rect {
        fill: #ffffff !important;
    }

    /* Mobile dropdown background */
    .nav-bar {
        border-top: 1px solid #fff;
    }

    .nav-link {
        color: #333 !important;
    }

    .dropdown-menu {
        background-color: #F8F9FC !important;
    }

    .dropdown-item {
        color: #333 !important;
    }

    .carousel-caption-custom {
        bottom: 60px;
    }

    #courseSlider .carousel-indicators {
        justify-content: center;
        margin-right: 15%;
    }

    /* SDSS Team */
    h6.team-name,
    .team-desigination {
        height: auto;
    }

    .legacy-bg-img {
        object-position: 65% 100% !important;
        z-index: 3;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 48px;
    }

    h2,
    .main-heading {
        font-size: 32px;
        line-height: auto;
    }

    h3 {
        font-size: 28px;
        line-height: auto;
    }

    h4 {
        font-size: 24px;
        line-height: auto;
    }

    h5 {
        font-size: 20px !important;
        line-height: auto;
    }

    h6 {
        font-size: 18px;
        line-height: auto;
    }

    .section-padding {
        padding: 40px 0;
    }

    img.testimonial-img {
        padding-bottom: 20px;
    }
}

@media (max-width: 595px) {

    .ranking-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .mobile-text .title {
        font-family: 'Cardo', serif;
        font-size: 16px;
        font-weight: 400;
        line-height: normal;
    }
}