/* Homepage typography at normal browser zoom; scoped to this page. */
.home-page .hero_section { margin-top: 0; }
.home-page .hero_carousel_container { height: calc(100svh - var(--home-navbar-height, 140px)); min-height: 480px; max-height: none; }
.home-page .hero_content { padding: 24px 32px; }
.home-page .hero_slide .hero_title { font-size: clamp(48px, 3.6vw, 56px); line-height: 1.15; margin: 0 0 28px !important; text-wrap: balance; }
.home-page .hero_slide.slide-1 .hero_title { font-size: clamp(60px, 4.5vw, 72px); margin-bottom: 24px !important; }
.home-page .hero_slide.slide-1 .hero_primary_subtitle { max-width: 1100px; margin-right: auto !important; margin-left: auto !important; }
.home-page .hero_slide.slide-1 .hero_brand_tagline {
    margin: 6px 0 0;
    color: #ffffff;
    font-size: clamp(17px, 1.25vw, 20px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.45;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.home-page .hero_slide.slide-1 .hero_brand_accent {
    display: block;
    width: 64px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: #2f80ed;
    box-shadow: 0 2px 8px rgba(47, 128, 237, 0.4);
}
.home-page .hero_slide.slide-1 .hero_buttons { margin-top: 24px; }
.home-page .hero_slide.slide-1 .hero_btn_brand {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #2463d4 0%, #1248aa 100%);
    box-shadow: 0 8px 24px rgba(10, 49, 128, 0.35);
}
.home-page .hero_slide.slide-1 .hero_btn_brand:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: linear-gradient(135deg, #2f73ec 0%, #1755c4 100%);
    box-shadow: 0 12px 32px rgba(10, 49, 128, 0.45);
    transform: translateY(-3px) scale(1.05);
}
.home-page .hero_slide .hero_subtitle { font-size: clamp(20px, 1.5vw, 22px); line-height: 1.45; margin: 0 0 8px !important; }
.home-page .hero_slide .hero_buttons { margin-top: 32px; gap: 12px; }
.home-page .hero_slide .hero_btn { font-size: 18px; padding: 12px 24px; }
.home-page .slide-2 .hero_content, .home-page .slide-3 .hero_content { width: 58%; max-width: 820px; }
.home-page .hero_slide.slide-5 { background: #1f3a93; }
.home-page .slide-5 .hero_image {
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/index-slide5-cpr-training.png');
    background-position: calc(66% + 20px) 33%;
    background-repeat: no-repeat;
    background-size: auto 118%;
}
.home-page .slide-5 .hero_content {
    width: 48%;
    max-width: 780px !important;
    padding: clamp(36px, 4.5vw, 86px);
    padding-left: clamp(94px, calc(6vw + 30px), 146px);
}
.home-page .slide-5 .hero_training_badge {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin: 0 0 clamp(22px, 1.8vw, 32px);
    padding: 7px 19px;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-size: clamp(16px, 1.1vw, 19px);
    font-weight: 500;
    line-height: 1.2;
}
.home-page .hero_slide.slide-5 .hero_title {
    max-width: 680px;
    font-size: clamp(38px, 3vw, 54px);
    line-height: 1.24;
    margin-bottom: clamp(20px, 1.6vw, 28px) !important;
    text-shadow: none;
}
.home-page .slide-5 .hero_subtitle {
    max-width: 650px;
    font-size: clamp(17px, 1.2vw, 22px);
    line-height: 1.5;
    text-shadow: none;
}
.home-page .slide-5 .hero_subtitle_compact { margin-top: 7px !important; }
.home-page .slide-5 .hero_buttons { margin-top: clamp(20px, 1.6vw, 28px); }
.home-page .slide-5 .hero_btn_primary {
    min-width: 190px;
    padding: 12px 26px;
    border-color: #ffffff;
    background: #ffffff;
    color: #1f3a93;
    box-shadow: 0 10px 26px rgba(7, 24, 70, 0.22);
}
.home-page .slide-5 .hero_btn_primary:hover {
    background: #f2f6ff;
    color: #17347f;
}
.home-page .about_us .desc, .home-page .about_us .desc p, .home-page .about_focus_link { font-size: 19px; line-height: 1.65; }
@media (min-width: 1024px) {
    .home-page .nav_items, .home-page .user_login_link, .home-page .user_profile_link { font-size: 16px !important; }
}
@media (min-width: 769px) {
    .home-page .hero_slide.slide-1 .hero_content { width: 92%; max-width: 1100px; }
    .home-page .about_us > .title { font-size: clamp(52px, 4vw, 64px); }
    .home-page .about_us { gap: 36px; }
    .home-page .about_us_content { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; }
    .home-page .about_us .description { justify-content: center; }
    .home-page .about_us .STAT_img { width: min(100%, 720px); aspect-ratio: 4 / 3; justify-self: end; align-self: start; }
}
@media (min-width: 769px) and (max-width: 1100px) {
    .home-page .slide-5 .hero_content {
        width: 52%;
        padding-right: 28px;
    }
    .home-page .hero_slide.slide-5 .hero_title {
        max-width: 100%;
        font-size: 36px;
    }
    .home-page .slide-5 .hero_image {
        background-position: 52% 33%;
    }
}
@media (max-width: 768px) {
    .home-page .hero_carousel_container { height: calc(100svh - var(--home-navbar-height, 80px)); min-height: 560px; max-height: none; }
    .home-page .hero_slide .hero_content { width: min(92vw, 560px) !important; padding: 20px 18px !important; gap: 0 !important; }
    .home-page .hero_slide .hero_title { font-size: clamp(28px, 7.5vw, 32px) !important; line-height: 1.15 !important; margin-bottom: 20px !important; }
    .home-page .hero_slide.slide-1 .hero_title { margin-bottom: 20px !important; }
    .home-page .hero_slide.slide-1 .hero_primary_subtitle { max-width: 520px; }
    .home-page .hero_slide.slide-1 .hero_brand_tagline { margin-top: 7px; font-size: 15px; line-height: 1.4; }
    .home-page .hero_slide.slide-1 .hero_brand_accent { width: 52px; height: 3px; margin-top: 13px; }
    .home-page .hero_slide .hero_subtitle { font-size: 16px !important; line-height: 1.4 !important; margin: 0 0 6px !important; }
    .home-page .hero_slide .hero_buttons { margin-top: 24px; }
    .home-page .hero_slide.slide-1 .hero_buttons { margin-top: 20px; }
    .home-page .hero_slide .hero_btn { font-size: 16px !important; }
    .home-page .slide-5 .hero_content {
        width: 100% !important;
        height: 58%;
        padding: 18px 22px !important;
        justify-content: center;
    }
    .home-page .slide-5 .hero_image {
        inset: 58% 0 auto;
        width: 100%;
        height: 42%;
        background-image: url('../image/index-slide5-cpr-training.png');
        background-position: right 46%;
        background-size: 180% auto;
    }
    .home-page .slide-5 .hero_training_badge {
        min-height: 32px;
        margin-bottom: 12px;
        padding: 5px 14px;
        font-size: 13px;
        border-width: 1.5px;
    }
    .home-page .slide-5 .hero_subtitle_compact { margin-top: 5px !important; }
    .home-page .slide-5 .hero_buttons { margin-top: 12px; }
    .home-page .slide-5 .hero_btn_primary { min-width: 168px; padding: 10px 22px; }
    .home-page .about_us .desc, .home-page .about_us .desc p, .home-page .about_focus_link { font-size: 16px; }
}

@media (max-width: 768px) {
    .home-page .hero_slide.slide-5 .hero_title { font-size: clamp(24px, 6.8vw, 29px) !important; margin-bottom: 12px !important; }
    .home-page .slide-5 .hero_subtitle { font-size: clamp(12px, 3.4vw, 15px) !important; line-height: 1.38 !important; }
}

.home-page .about_focus_link { display: flex; align-items: baseline; gap: 8px; }

/* Homepage customer testimonials */
.home-page .testimonials {
    width: min(1700px, 95vw);
    margin: clamp(40px, 4vw, 64px) auto 0;
    padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px);
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-radius: clamp(16px, 1.5vw, 24px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.05);
}

.home-page .testimonials_header {
    margin-bottom: 36px;
    text-align: center;
}

.home-page .testimonials_eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-page .testimonials_title {
    margin: 0;
    color: #2449b8;
    font-size: clamp(38px, 3.2vw, 54px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.home-page .testimonials_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-page .testimonial_card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 280px;
    flex-direction: column;
    padding: 28px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.home-page .testimonial_quote {
    position: absolute;
    top: 22px;
    right: 24px;
    color: #dbeafe;
    font-size: 34px;
}

.home-page .testimonial_customer {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-right: 38px;
}

.home-page .testimonial_avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.home-page .testimonial_avatar_blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.home-page .testimonial_avatar_green { background: linear-gradient(135deg, #16a34a, #4ade80); }
.home-page .testimonial_avatar_orange { background: linear-gradient(135deg, #ea580c, #fb923c); }
.home-page .testimonial_identity { min-width: 0; }
.home-page .testimonial_identity h3 { margin: 0 0 4px; color: #172554; font-size: 19px; line-height: 1.25; }
.home-page .testimonial_identity span { display: block; color: #2563eb; font-size: 14px; font-weight: 600; line-height: 1.35; }
.home-page .testimonial_card p { margin: 22px 0 0; color: #475569; font-size: 17px; line-height: 1.65; }

@media (max-width: 1000px) {
    .home-page .testimonials_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .home-page .testimonials { width: 100%; padding: 32px 0; border-radius: 0; }
    .home-page .testimonials_header { margin-bottom: 26px; padding: 0 20px; }
    .home-page .testimonials_title { font-size: 32px; }
    .home-page .testimonials_grid {
        display: flex;
        gap: 16px;
        padding: 0 20px 12px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .home-page .testimonials_grid::-webkit-scrollbar { display: none; }
    .home-page .testimonial_card {
        min-height: 300px;
        flex: 0 0 min(84vw, 340px);
        padding: 24px 22px;
        scroll-snap-align: start;
    }
    .home-page .testimonial_card p { font-size: 16px; }
}
