/*
  Homepage compact redesign.
  Keeps the legacy theme intact while giving the public home page a tighter,
  modern responsive rhythm across desktop and mobile.
*/

.home-compact {
    color: #102331;
}

.home-compact .container {
    max-width: 1160px;
}

.home-compact .slider-bg {
    min-height: clamp(360px, 46vw, 500px) !important;
    background-position: center center !important;
}

.home-compact .slider-bg .overlay {
    background: linear-gradient(90deg, rgba(7, 23, 35, 0.82) 0%, rgba(7, 23, 35, 0.54) 48%, rgba(7, 23, 35, 0.24) 100%);
}

.home-compact .slider-content {
    padding: 82px 0 64px;
}

.home-compact .s-slider-content {
    margin-top: 0 !important;
}

.home-compact .slider-content h2 {
    max-width: 720px;
    margin-bottom: 18px;
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.08;
    letter-spacing: 0;
}
.home-compact .slider-content h2.kitm-long-hero-title {
    max-width: 650px;
    font-size: clamp(25px, 2.7vw, 38px);
    line-height: 1.12;
}

.home-compact .s-slider-content p {
    max-width: 600px;
    margin: 0;
    padding-right: 0;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.home-compact .slider-btn {
    margin-top: 24px !important;
}

.home-compact .btn,
.home-compact .ss-btn {
    min-height: 46px;
    padding: 13px 24px;
    border-radius: 6px;
    line-height: 1.2;
}

.home-compact .slider-active .slick-arrow {
    width: 46px;
    height: 46px;
    line-height: 46px;
    font-size: 18px;
}

.home-compact .service-details-two {
    margin-top: -34px;
    padding-bottom: 30px;
    z-index: 2;
}

.home-compact .service-details-two .row {
    row-gap: 18px;
}

.home-compact .services-box07 {
    height: 100%;
    padding: 24px;
    border-radius: 8px;
    background: rgba(18, 88, 117, 0.94);
    box-shadow: 0 16px 40px rgba(8, 28, 42, 0.14);
}

.home-compact .services-box07 .sr-contner {
    align-items: flex-start;
    gap: 16px;
}

.home-compact .services-box07 .sr-contner .icon {
    width: 54px;
    min-width: 54px;
    margin-right: 0;
}

.home-compact .services-box07 .sr-contner .icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.home-compact .services-box07 .sr-contner .text h5 {
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: 0;
}

.home-compact .services-box07 .sr-contner .text p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.55;
}

.home-compact .about-area {
    padding-top: 34px !important;
    padding-bottom: 36px !important;
    background: #f3f8fc !important;
}

.home-compact .animations-02 {
    display: none;
}

.home-compact .s-about-img {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 52px rgba(16, 35, 49, 0.13);
}

.home-compact .s-about-img img {
    width: 100%;
    max-height: 330px;
    margin: 0;
    object-fit: cover;
}

.home-compact .about-content {
    padding-left: 22px !important;
}

.home-compact .second-title {
    padding-bottom: 16px !important;
}

.home-compact .second-title h5 {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.home-compact .second-title h2 {
    margin-bottom: 0;
    font-size: clamp(28px, 3.1vw, 42px);
    line-height: 1.15;
    letter-spacing: 0;
}

.home-compact .about-content p,
.home-compact .about-content li {
    font-size: 15px;
    line-height: 1.65;
}

.home-compact .about-content2 {
    margin-top: 18px;
}

.home-compact .about-content2 ul {
    margin-bottom: 0;
}

.home-compact .about-content2 li {
    margin-bottom: 14px;
}

.home-compact .about-content2 h3 {
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.25;
}

.home-compact .cta-area {
    padding-top: 26px !important;
    padding-bottom: 26px !important;
}

.home-compact .cta-title h2 {
    margin-bottom: 6px;
    font-size: clamp(25px, 2.6vw, 36px);
    line-height: 1.18;
    letter-spacing: 0;
}

.home-compact .cta-title p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.55;
}

.home-compact .cta-btn {
    margin-top: 8px !important;
}

.home-compact .testimonial-area {
    padding-top: 30px !important;
    padding-bottom: 46px !important;
    background: #0f536f;
}

.home-compact .single-testimonial {
    max-width: 780px;
    margin: 0 auto;
}

.home-compact .single-testimonial .qt-img img {
    width: 42px;
    opacity: 0.82;
}

.home-compact .single-testimonial p {
    margin-top: 16px;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.home-compact .testi-author img {
    width: 72px;
    height: 72px;
    margin-top: 18px;
    object-fit: cover;
}

.home-compact .ta-info h6 {
    margin-bottom: 3px;
    font-size: 18px;
}

.home-compact .ta-info span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.footer-p {
    padding-top: 36px !important;
}

.footer-top {
    padding-bottom: 22px !important;
}

.footer-widget {
    margin-bottom: 22px !important;
}

.f-widget-title h2 {
    margin-bottom: 18px;
    font-size: 21px;
    line-height: 1.25;
}

.footer-link li,
.f-contact li {
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .home-compact .slider-bg {
        min-height: 390px !important;
    }

    .home-compact .slider-content {
        padding: 70px 0 54px;
    }

    .home-compact .service-details-two {
        margin-top: 0;
        padding-top: 28px;
    }

    .home-compact .about-content {
        padding-left: 0 !important;
        margin-top: 28px;
    }

    .home-compact .s-about-img img {
        max-height: 280px;
    }

    .home-compact .cta-area .text-right {
        text-align: left !important;
    }
}

@media (max-width: 767px) {
    .home-compact .slider-bg {
        min-height: 340px !important;
    }

    .home-compact .slider-bg .overlay {
        background: rgba(7, 23, 35, 0.72);
    }

    .home-compact .slider-content {
        padding: 52px 0 46px;
    }

    .home-compact .slider-content h2 {
        margin-bottom: 14px;
        font-size: 31px;
    }

    .home-compact .s-slider-content p {
        font-size: 14px;
        line-height: 1.55;
    }

    .home-compact .btn,
    .home-compact .ss-btn {
        min-height: 42px;
        padding: 12px 18px;
        font-size: 13px;
    }

    .home-compact .service-details-two {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .home-compact .services-box07 {
        padding: 20px;
    }

    .home-compact .services-box07 .sr-contner {
        gap: 14px;
    }

    .home-compact .services-box07 .sr-contner .icon,
    .home-compact .services-box07 .sr-contner .icon img {
        width: 46px;
        min-width: 46px;
        height: 46px;
    }

    .home-compact .services-box07 .sr-contner .text h5 {
        font-size: 17px;
    }

    .home-compact .about-area {
        padding-top: 34px !important;
        padding-bottom: 36px !important;
    }

    .home-compact .s-about-img img {
        max-height: 230px;
    }

    .home-compact .about-content {
        margin-top: 24px;
    }

    .home-compact .second-title h2 {
        font-size: 27px;
    }

    .home-compact .about-content p,
    .home-compact .about-content li {
        font-size: 14px;
        line-height: 1.6;
    }

    .home-compact .about-content2 h3 {
        font-size: 18px;
    }

    .home-compact .cta-area {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

    .home-compact .testimonial-area {
        padding-top: 34px !important;
        padding-bottom: 54px !important;
    }

    .home-compact .single-testimonial p {
        font-size: 15px;
    }

    .footer-p {
        padding-top: 30px !important;
    }

    .footer-top {
        padding-bottom: 16px !important;
    }
}

/* Compact rectangle feature grid for 10 homepage points */
.home-compact .service-details-two {
    padding-top: 18px;
}

.home-compact .service-details-two .feature-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-left: 0;
    margin-right: 0;
}

.home-compact .service-details-two .feature-tile {
    max-width: none;
    flex: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
}

.home-compact .service-details-two .feature-tile .services-box07 {
    min-height: 112px;
    padding: 14px 15px;
    border-radius: 7px;
    box-shadow: 0 10px 24px rgba(8, 28, 42, 0.1);
}

.home-compact .service-details-two .feature-tile .sr-contner {
    gap: 10px;
}

.home-compact .service-details-two .feature-tile .icon,
.home-compact .service-details-two .feature-tile .icon img {
    width: 34px;
    min-width: 34px;
    height: 34px;
}

.home-compact .service-details-two .feature-tile h5 {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.22;
}

.home-compact .service-details-two .feature-tile p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 1199px) {
    .home-compact .service-details-two .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home-compact .service-details-two {
        padding-top: 14px;
    }

    .home-compact .service-details-two .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-compact .service-details-two .feature-tile .services-box07 {
        min-height: 106px;
        padding: 12px;
    }

    .home-compact .service-details-two .feature-tile .sr-contner {
        display: block;
    }

    .home-compact .service-details-two .feature-tile .icon {
        margin-bottom: 7px;
    }

    .home-compact .service-details-two .feature-tile h5 {
        font-size: 14px;
    }

    .home-compact .service-details-two .feature-tile p {
        font-size: 11.5px;
    }
}

@media (max-width: 420px) {
    .home-compact .service-details-two .feature-grid {
        grid-template-columns: 1fr;
    }

    .home-compact .service-details-two .feature-tile .services-box07 {
        min-height: auto;
    }

    .home-compact .service-details-two .feature-tile .sr-contner {
        display: flex;
    }
}

/* KITM hero apply form */
.kitm-hero-apply-card {
    width: min(100%, 430px);
    margin: 82px 0 50px auto;
    padding: 26px 28px 28px;
    background: rgba(255, 255, 255, .35);
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: relative;
    z-index: 2;
}
.kitm-hero-apply-card h3 {
    color: #1d3fb8;
    font-size: 26px;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 18px;
    font-weight: 800;
}
.kitm-quick-apply-form {
    display: grid;
    gap: 12px;
}
.kitm-quick-apply-form input,
.kitm-quick-apply-form select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .54);
    border-radius: 5px;
    background: rgba(255, 255, 255, .46);
    color: #30343b;
    padding: 0 14px;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.kitm-quick-apply-form input:focus,
.kitm-quick-apply-form select:focus {
    background: rgba(255, 255, 255, .64);
    border-color: rgba(29, 63, 184, .55);
}
.kitm-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.kitm-quick-apply-form button {
    height: 48px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(90deg, #2868f0, #ffcd1c);
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
}
.home-compact .single-slider .row {
    align-items: center;
}
@media (max-width: 991px) {
    .kitm-hero-apply-card {
        margin: 20px auto 42px;
    }
    .home-compact .slider-content.s-slider-content {
        margin-top: 90px;
        text-align: center;
    }
}
@media (max-width: 575px) {
    .kitm-hero-apply-card {
        padding: 22px 18px;
    }
    .kitm-quick-grid {
        grid-template-columns: 1fr;
    }
}

/* Homepage program explorer */
.home-compact .kitm-program-explorer {
    background: #f6f8fb;
    padding: 58px 0 64px;
}
.home-compact .kitm-program-head h2 {
    color: #2458f5;
    font-size: 46px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 30px;
}
.home-compact .kitm-program-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 220px;
    gap: 14px;
    margin-bottom: 34px;
}
.home-compact .kitm-program-filters select,
.home-compact .kitm-program-filters button {
    min-height: 54px;
    border-radius: 8px;
    border: 1px solid #e1e6ef;
    background: #fff;
    color: #202938;
    font-size: 16px;
    font-weight: 700;
    padding: 0 18px;
    box-shadow: 0 10px 24px rgba(17, 42, 84, .05);
}
.home-compact .kitm-program-filters button {
    border: 0;
    background: linear-gradient(90deg, #2264ff, #f2b600);
    color: #fff;
    cursor: pointer;
}
.home-compact .kitm-program-row {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding-bottom: 12px;
}
.home-compact .kitm-program-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    min-width: max-content;
}
.home-compact .kitm-program-card {
    flex: 0 0 360px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 8px;
    background: #fff;
    padding: 30px;
    box-shadow: 0 18px 44px rgba(20, 39, 78, .08);
    color: #202938;
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-compact .kitm-program-card:hover {
    color: #202938;
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(20, 39, 78, .12);
}
.home-compact .kitm-program-card span {
    color: #718096;
    font-size: 15px;
    font-weight: 800;
}
.home-compact .kitm-program-card h3 {
    color: #2458d8;
    font-size: 25px;
    line-height: 1.28;
    font-weight: 800;
    margin: 18px 0;
}
.home-compact .kitm-program-card p {
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 16px;
}
.home-compact .kitm-program-card strong {
    color: #2366ff;
    font-size: 15px;
    font-weight: 800;
}
.home-compact .kitm-program-card[hidden] {
    display: none;
}
.home-compact .kitm-program-row.is-empty:before {
    content: "No programs found for this selection.";
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    color: #4a5568;
    font-weight: 700;
}
@media (max-width: 991px) {
    .home-compact .kitm-program-head h2 { font-size: 36px; }
    .home-compact .kitm-program-filters { grid-template-columns: 1fr; }
    .home-compact .kitm-program-card { flex-basis: 310px; }
}
@media (max-width: 575px) {
    .home-compact .kitm-program-explorer { padding: 42px 0 46px; }
    .home-compact .kitm-program-head h2 { font-size: 30px; }
    .home-compact .kitm-program-card { flex-basis: 280px; min-height: 230px; padding: 24px; }
    .home-compact .kitm-program-card h3 { font-size: 22px; }
}

/* KITM feature one-line marquee */
.home-compact .kitm-feature-marquee-section {
    padding: 0 0 28px;
    overflow: hidden;
    background: #fff;
}
.home-compact .kitm-feature-scroll {
    width: 100%;
    overflow: hidden;
    padding: 0 0 4px;
}
.home-compact .kitm-feature-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: max-content;
    animation: kitmFeatureMarquee 60s linear infinite;
    will-change: transform;
}
.home-compact .kitm-feature-scroll:hover .kitm-feature-track {
    animation-play-state: paused;
}
.home-compact .kitm-feature-track .feature-tile {
    flex: 0 0 288px;
    width: 288px;
    max-width: 288px;
    margin: 0;
}
.home-compact .kitm-feature-track .services-box07 {
    min-height: 132px;
    height: 100%;
    margin: 0;
}
@keyframes kitmFeatureMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (max-width: 767px) {
    .home-compact .kitm-feature-marquee-section {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 10px;
    }

    .home-compact .kitm-feature-track .feature-tile {
        flex-basis: 280px;
        width: 280px;
        max-width: 280px;
    }
}

/* Safety polish for the current homepage hero and quick-apply form. */
.home-compact .kitm-hero-apply-card {
    max-width: 420px;
    margin: 54px 0 54px auto;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 18px;
    background: rgba(255, 255, 255, .35);
    box-shadow: 0 22px 60px rgba(7, 23, 35, .2);
    backdrop-filter: blur(16px);
}
.home-compact .kitm-hero-apply-card h3 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: 0;
}
.home-compact .kitm-hero-apply-card input,
.home-compact .kitm-hero-apply-card select,
.home-compact .kitm-hero-apply-card button {
    min-height: 50px;
    border-radius: 9px;
}
.home-compact .courses-item .thumb img,
.home-compact .kitm-youtube-card img,
.home-compact .kitm-placement-photo img {
    content-visibility: auto;
}
@media (max-width: 1199px) {
    .home-compact .slider-content h2 {
        font-size: clamp(30px, 4vw, 48px);
    }
    .home-compact .kitm-hero-apply-card {
        max-width: 390px;
    }
}
@media (max-width: 991px) {
    .home-compact .slider-bg {
        min-height: auto !important;
    }
    .home-compact .slider-bg .row {
        align-items: center;
    }
    .home-compact .slider-content {
        padding: 58px 0 18px;
        text-align: center;
    }
    .home-compact .slider-content h2,
    .home-compact .s-slider-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .home-compact .kitm-hero-apply-card {
        margin: 18px auto 46px;
    }
}
@media (max-width: 575px) {
    .home-compact .slider-content {
        padding-top: 42px;
    }
    .home-compact .slider-content h2 {
        font-size: clamp(28px, 9vw, 38px);
        line-height: 1.12;
    }
    .home-compact .slider-content h2.kitm-long-hero-title {
        font-size: clamp(21px, 6.5vw, 28px);
        line-height: 1.16;
    }
    .home-compact .s-slider-content p {
        font-size: 14px;
        line-height: 1.55;
    }
    .home-compact .kitm-hero-apply-card {
        width: calc(100% - 24px);
        padding: 24px 18px;
        border-radius: 16px;
    }
    .home-compact .kitm-quick-grid {
        grid-template-columns: 1fr;
    }
}
