
/* ============================================
   KPCL HOMEPAGE - All classes prefixed kpcl-hp-
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800;900&family=Red+Hat+Text:ital,wght@0,300..700;1,300..700&display=swap');

body {
    font-family: "Red Hat Text", sans-serif !important;
}


/* --- UX Smooth Animations --- */
.kpcl-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.kpcl-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Staggering delays for grouped items */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

@keyframes kpclFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes kpclFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----- Hero ----- */
.kpcl-hp-hero {
    background-color: var(--hp-pink) !important;
    padding: 30px 0 100px !important; /* Pink space below search box */
    position: relative !important;
    overflow: hidden !important;
}

/* â”€â”€ Hero image â€” inline in the row (visible all breakpoints) â”€â”€ */
.kpcl-hp-hero-img-col {
    position: relative;
    display: flex;
    align-items: center; /* Centered vertically */
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    margin-bottom: 0; /* Removed negative margin for proper centering */
}
/* White radial glow behind the image */
.kpcl-hp-hero-img-col::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 65%);
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}
.kpcl-hp-hero-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    display: block;
    transform: scale(1.0); /* Reduced from 1.3 */
    transform-origin: bottom right;
}

/* Modern Wave Divider at Top of Hero */
.kpcl-hp-hero-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}
.kpcl-hp-hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}
.kpcl-hp-hero-wave .shape-fill {
    fill: #ffffff;
}

/* Soft gradient fade at the bottom of hero so search box blends in */
.kpcl-hp-hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.08));
    pointer-events: none;
    z-index: 1;
}
.kpcl-hp-hero-inner {
    position: relative;
    z-index: 2;
}
.kpcl-hp-hero-title {
    font-family: 'Nunito', 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    font-size: 68px !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    margin-bottom: 0 !important;
    text-transform: none !important;
    letter-spacing: -1.5px !important;
}
.kpcl-hp-hero-subtitle {
    font-family: 'Nunito', 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 32px !important;
    color: #ffffff !important;
    margin-bottom: 0 !important;
}


/* ----- Search Box ----- */
.kpcl-hp-search-wrap {
    position: relative !important;
    z-index: 30 !important;
    margin-top: -40px !important; /* Pulled much higher */
}
.kpcl-hp-search-box {
    background-color: var(--hp-navy) !important;
    border-radius: 8px !important;
    padding: 25px 30px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    position: relative;
    z-index: 30;
}
.kpcl-hp-label {
    display: block;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    font-family: 'Inter', sans-serif !important;
}

/* ===== Search Inputs ===== */
.kpcl-hp-input-wrap {
    position: relative;
    width: 100%;
}
.kpcl-hp-input {
    height: 52px !important;
    line-height: 52px !important;
    border-radius: 6px !important;
    border: none !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    color: #333 !important;
    background-color: #ffffff !important;
    width: 100% !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}
.kpcl-hp-input::placeholder {
    color: #999;
}
.kpcl-hp-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hp-pink);
    font-size: 18px;
    pointer-events: none;
}

/* ===== Find Course Button ===== */
.kpcl-hp-find-btn {
    background-color: #c20093 !important; /* Darker magenta for button */
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    border: none !important;
    border-radius: 8px !important;
    height: 52px !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: 0.25s !important;
}
.kpcl-hp-find-btn:hover {
    background-color: #a3007b !important;
}

/* ----- Badges Strip ----- */
.kpcl-hp-badges {
    background: #ffffff !important;
    border-radius: 12px !important; /* Rounded on all corners */
    padding: 22px 35px !important;
    margin-top: -60px !important; /* Overlap the pink hero background */
    box-shadow:
        0 12px 24px rgba(0,0,0,0.07),
        0 30px 60px rgba(0,0,0,0.05) !important;
    position: relative;
    z-index: 28;
}
.kpcl-hp-badge-item {
    display: flex;
    align-items: center;
    gap: 12px; /* Gap between icon and text */
    text-align: left;
}
.kpcl-hp-badge-icon {
    font-size: 26px !important;
    color: var(--hp-navy) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    margin-right: 2px !important;
}
.kpcl-hp-badge-text strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--hp-navy);
    font-family: 'Outfit', sans-serif;
}

/* ----- Section headings ----- */
.kpcl-hp-section-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 32px !important;
    color: var(--hp-navy) !important;
}
.kpcl-hp-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
    margin-bottom: 45px;
}
.kpcl-hp-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--hp-pink);
    border-radius: 2px;
}
.kpcl-hp-underline-left {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 25px;
}
.kpcl-hp-underline-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--hp-pink);
    border-radius: 2px;
}

/* ----- Course Cards ----- */
.kpcl-hp-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #eaeaea;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.kpcl-hp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(230,0,126,0.1);
}
.kpcl-hp-card-icon {
    width: 48px;
    height: 48px;
    background: var(--hp-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
}
.kpcl-hp-card-icon i {
    font-size: 20px;
    color: #ffffff;
}
.kpcl-hp-card h4 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--hp-navy) !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
}
.kpcl-hp-card p {
    font-size: 13px !important;
    color: #555 !important;
    line-height: 1.6 !important;
    flex-grow: 1;
    margin-top: 15px;
}
.kpcl-hp-card-link {
    color: var(--hp-pink) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
}
.kpcl-hp-card-link i {
    margin-left: 6px;
}
.kpcl-hp-card-link:hover {
    color: #c8006e !important;
}

/* ----- Stats / Why KPCL ----- */
.kpcl-hp-why-bg {
    background-color: #fff6fb !important; /* very light pink */
    border-radius: 16px;
    padding: 40px 40px;
}
.kpcl-hp-stat-num {
    font-family: 'Outfit', sans-serif !important;
    font-size: 44px !important;
    font-weight: 900 !important;
    color: var(--hp-navy) !important;
    margin-bottom: 4px !important;
}
.kpcl-hp-stat-label {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    color: var(--hp-navy) !important;
    margin-bottom: 4px !important;
}
.kpcl-hp-stat-sub {
    font-size: 13px;
    color: #888;
}

/* ----- Testimonials ----- */
.kpcl-hp-testi-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 30px;
    margin: 15px 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}
.kpcl-hp-testi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.kpcl-hp-testi-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 60px;
    color: rgba(230,0,126, 0.04);
    z-index: 0;
    transition: 0.4s;
}
.kpcl-hp-testi-card:hover::before {
    transform: scale(1.1) rotate(5deg);
    color: rgba(230,0,126, 0.08);
}
.kpcl-hp-testi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    z-index: 1;
    position: relative;
}
.kpcl-hp-testi-author-info {
    display: flex;
    align-items: center;
}
.kpcl-hp-testi-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 18px;
    border: 3px solid #f8f9fa;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.kpcl-hp-testi-author-info strong {
    display: block;
    font-size: 17px;
    color: var(--hp-navy);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}
.kpcl-hp-testi-author-info small {
    color: var(--hp-pink);
    font-size: 12px;
    font-weight: 700;
    display: block;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.kpcl-hp-testi-meta {
    text-align: right;
}
.kpcl-hp-stars {
    display: flex;
    gap: 3px;
    justify-content: flex-end;
}
.kpcl-hp-stars i {
    color: #ffb113;
    font-size: 14px;
}
.kpcl-hp-verified {
    display: inline-flex;
    align-items: center;
    background: rgba(0,204,131,0.1);
    color: #00a86b;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.kpcl-hp-verified i {
    margin-right: 4px;
    font-size: 12px;
}
.kpcl-hp-testi-card blockquote {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin: 0;
    flex-grow: 1;
    border: none !important;
    padding: 0 !important;
    z-index: 1;
    position: relative;
    font-style: italic;
}

/* ----- Marquee / Partners ----- */
.kpcl-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    display: flex;
}
.kpcl-marquee-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-left: 30px;
    animation: marquee-scroll 25s linear infinite;
    width: max-content;
}
.kpcl-marquee-content:hover {
    animation-play-state: paused;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}
.kpcl-partner-logo {
    background: #ffffff;
    padding: 15px 35px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    min-width: 160px;
    transition: transform 0.3s;
}
.kpcl-partner-logo:hover {
    transform: scale(1.1);
}
.kpcl-partner-logo img {
    height: 40px;
    object-fit: contain;
}
.kpcl-partner-logo span {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--hp-navy);
}

/* ----- CTA ----- */
.kpcl-hp-cta {
    background-color: var(--hp-pink) !important;
}
.kpcl-hp-cta-btn-white {
    background-color: #ffffff !important;
    color: var(--hp-pink) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 13px 28px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.25s !important;
}
.kpcl-hp-cta-btn-white:hover {
    background-color: #f0f0f0 !important;
    color: var(--hp-pink) !important;
}
.kpcl-hp-cta-btn-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255,255,255,0.5) !important;
    border-radius: 8px !important;
    padding: 13px 28px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.25s !important;
}
.kpcl-hp-cta-btn-outline:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
}

/* Override admin panel rich text to match new design */
.kpcl-hp-hero-admin-content span.sub-title {
    font-size: 22px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6 !important;
    display: block !important;
    font-weight: 400 !important;
}
.kpcl-hp-hero-admin-content h1 {
    font-family: "Red Hat Text", sans-serif !important;
    font-weight: 900 !important;
    font-size: 46px !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    margin-bottom: 15px !important;
    letter-spacing: -1px !important;
}
.kpcl-hp-hero-admin-content p {
    font-size: 22px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
    display: block !important;
}
.kpcl-hp-hero-admin-content .hero-btn {
    display: none !important;
}

/* Modern Course Cards */
.kpcl-modern-course-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.02);
}
.kpcl-modern-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.kpcl-modern-course-card .img-wrapper {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.kpcl-modern-course-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.kpcl-modern-course-card:hover .img-wrapper img {
    transform: scale(1.08);
}
.kpcl-modern-course-card .badge-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    color: var(--hp-navy);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.kpcl-modern-course-card .kpcl-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.kpcl-modern-course-card .course-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--hp-navy);
    line-height: 1.4;
    margin-bottom: 15px;
    margin-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kpcl-modern-course-card .kpcl-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 18px;
}
.kpcl-modern-course-card .price-box {
    font-weight: 800;
    color: #00cc83; /* Changed to green as requested */
    font-size: 20px;
}
.kpcl-modern-course-card .price-box small {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    font-weight: 500;
    margin-left: 6px;
}

/* Dynamic About Section Overrides (Keeps Admin Content, Upgrades Design) */
.kpcl-dynamic-about .about-section {
    padding: 60px 0;
    background: transparent !important;
}
@media (min-width: 992px) {
    .kpcl-dynamic-about .about-section .row {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row-reverse;
        align-items: center;
    }
}
.kpcl-dynamic-about .about-man {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    border: 8px solid #fff;
    margin-bottom: 40px;
}
.kpcl-dynamic-about .about-man img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.kpcl-dynamic-about .youtube-video-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--hp-pink);
    color: white;
    width: 75px; height: 75px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 30px rgba(230,0,126,0.5);
    transition: 0.3s;
    text-decoration: none;
    z-index: 10;
}
.kpcl-dynamic-about .youtube-video-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    color: white;
}
.kpcl-dynamic-about .youtube-video-play i {
    margin-left: 5px;
}
.kpcl-dynamic-about .sub-title {
    display: inline-block;
    color: var(--hp-pink);
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    margin-bottom: 15px;
    background: rgba(230,0,126,0.1) !important;
    padding: 6px 16px !important;
    border-radius: 30px;
    font-size: 13px;
    letter-spacing: 1px;
}
.kpcl-dynamic-about .section-title h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--hp-navy) !important;
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 30px;
}
.kpcl-dynamic-about .about-features .row {
    row-gap: 24px;
}
.kpcl-dynamic-about .feature-item {
    display: flex;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    padding: 24px;
    height: 100%;
    transition: 0.3s;
    flex-direction: column;
}
.kpcl-dynamic-about .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.kpcl-dynamic-about .feature-item .icon {
    width: 45px;
    height: 45px;
    background: rgba(230,0,126,0.08);
    color: var(--hp-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 15px;
}
.kpcl-dynamic-about .feature-item h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--hp-navy);
    font-size: 17px;
    margin-bottom: 10px;
}
.kpcl-dynamic-about .feature-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
.kpcl-dynamic-about .theme-btn {
    display: inline-block;
    background-color: var(--hp-pink) !important;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 14px 35px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 25px;
    box-shadow: 0 10px 20px rgba(230,0,126,0.2);
    border: none;
}
.kpcl-dynamic-about .theme-btn i {
    margin-left: 8px;
}
.kpcl-dynamic-about p {
    color: #666;
    line-height: 1.8;
}

.kpcl-modern-course-card .arrow-btn {
    color: var(--hp-pink);
    background: rgba(230,0,126,0.08);
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: 0.3s ease;
    text-decoration: none;
}
.kpcl-modern-course-card:hover .arrow-btn {
    background: var(--hp-pink);
    color: #fff;
    transform: translateX(4px);
}

/* ============================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ============================================ */
@media (max-width: 991px) {
    .kpcl-hp-hero {
        padding: 40px 0 100px !important;
        min-height: auto;
    }
    .kpcl-hp-hero-img-col {
        margin-bottom: 0;
    }
    .kpcl-hp-hero-admin-content h1 {
        font-size: 38px !important;
    }
}

/* â”€â”€ Tablet / large mobile (576-767px) â”€â”€ */
@media (max-width: 767px) {
    /* Hero layout: text+image side by side */
    .kpcl-hp-hero {
        padding: 40px 0 100px !important;
    }
    .kpcl-hp-hero-row {
        align-items: center !important;
    }
    .kpcl-hp-hero-img-col {
        margin-bottom: 0;
        left: 40px !important; /* Adjust for tablet */
        margin-right: -80px !important;
        top: 80px !important;
    }
    .kpcl-hp-hero-img {
        max-width: 120%;
    }

    /* Hero Typography */
    .kpcl-hp-hero-title {
        font-size: 36px !important;
    }
    .kpcl-hp-hero-kpcl {
        font-size: 44px !important;
        margin-bottom: 12px !important;
    }
    .kpcl-hp-hero-subtitle {
        font-size: 15px !important;
    }
    .kpcl-hp-hero-desc {
        font-size: 13px !important;
    }

    /* Admin rich text hero */
    .kpcl-hp-hero-admin-content h1 {
        font-size: 26px !important;
    }
    .kpcl-hp-hero-admin-content p,
    .kpcl-hp-hero-admin-content span.sub-title {
        font-size: 14px !important;
    }

    /* Search Box */
    .kpcl-hp-search-wrap {
        margin-top: -20px !important; /* Pulled higher for tablet/mobile */
        margin-bottom: 30px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .kpcl-hp-search-box {
        padding: 20px 15px !important;
        border-radius: 0 !important;
    }
    .kpcl-hp-search-box h4 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    /* Badges */
    .kpcl-hp-badges { padding: 15px !important; }
    .kpcl-hp-badge-item { flex-direction: column; text-align: center; gap: 6px; }
    .kpcl-hp-badge-icon { margin-right: 0 !important; margin-bottom: 4px; }

    /* Section Headings */
    .kpcl-hp-section-title { font-size: 26px !important; }
    .kpcl-hp-why-bg { padding: 30px 20px; }
    .kpcl-dynamic-about .section-title h2 { font-size: 28px !important; }
    .kpcl-partner-logo { min-width: 120px; height: 60px; padding: 10px 20px; }
    .kpcl-partner-logo img { height: 30px; }
}

/* â”€â”€ Small mobile (<576px) â”€â”€ */
@media (max-width: 575px) {
    /* Hero Layout (Side by side) */
    .kpcl-hp-hero {
        padding: 40px 0 100px !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
    .kpcl-hp-hero-img-col {
        margin-bottom: 0;
        padding: 0;
        justify-content: center;
        left: 10px !important; /* Safe value to prevent overflow */
        margin-right: -30px !important; /* Safe value */
        top: 20px !important;
        position: relative;
        z-index: 35 !important;
    }
    .kpcl-hp-hero-img {
        max-width: 150%; /* Scale safely */
        margin: 0 auto;
        transform: none !important;
    }
    .kpcl-hp-hero-text-col {
        text-align: left;
        padding-top: 10px;
    }
    .kpcl-hp-hero-admin-content h1 {
        font-size: 32px !important; /* Bigger like reference */
        text-align: left;
        line-height: 1.1 !important;
        margin-bottom: 15px !important;
    }
    .kpcl-hp-hero-admin-content p,
    .kpcl-hp-hero-admin-content span.sub-title {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
    }
    .kpcl-hp-hero-title { font-size: 30px !important; }
    .kpcl-hp-hero-kpcl  { font-size: 38px !important; }
    .kpcl-hp-hero-subtitle { font-size: 14px !important; margin-bottom: 8px !important; }
    .kpcl-hp-hero-desc { font-size: 13px !important; line-height: 1.5 !important; }

    /* Search */
    .kpcl-hp-search-box   { padding: 18px 15px !important; }
    .kpcl-hp-search-box h4 { font-size: 16px !important; }
    .kpcl-hp-search-box form.row { row-gap: 12px !important; }
    .kpcl-hp-input  { height: 48px !important; line-height: 48px !important; }
    .kpcl-hp-find-btn { height: 48px !important; }

    /* Badges */
    .kpcl-hp-badge-item { margin-bottom: 5px; }
    .kpcl-hp-badge-icon { font-size: 22px !important; }

    /* Stats */
    .kpcl-hp-stat-num   { font-size: 36px !important; }
    .kpcl-hp-stat-label { font-size: 15px !important; }

    /* Section Headings */
    .kpcl-hp-section-title { font-size: 22px !important; }

    /* Course Cards */
    .kpcl-modern-course-card .img-wrapper { height: 160px; }
    .kpcl-modern-course-card .course-title { font-size: 16px; }
}

@media (max-width: 380px) {
    .kpcl-hp-hero-title  { font-size: 24px !important; }
    .kpcl-hp-hero-kpcl   { font-size: 30px !important; }
    .kpcl-hp-hero-img    { max-width: 220px; }
    .kpcl-hp-badges .col-6 { width: 100% !important; }
    .kpcl-hp-badge-item  { flex-direction: row; text-align: left; }
    .kpcl-hp-badge-icon  { margin-right: 10px !important; margin-bottom: 0; }
}

/* About Us Dynamic Content Mobile Alignment */
@media (max-width: 767px) {
    .kpcl-dynamic-about .feature-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: #ffffff;
        padding: 25px 20px;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.06);
        margin-bottom: 20px;
        height: 100%;
    }
    .kpcl-dynamic-about .feature-item .icon {
        margin-bottom: 15px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--hp-pink-light, rgba(230,0,126,0.1));
        color: var(--hp-pink);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        margin-right: 0 !important;
    }
    .kpcl-dynamic-about .feature-item .content h5 {
        font-size: 18px;
        margin-bottom: 10px;
        font-weight: 800;
        color: var(--hp-navy);
    }
    .kpcl-dynamic-about .feature-item .content p {
        font-size: 14px;
        margin-bottom: 0;
        color: #555;
    }
    .kpcl-dynamic-about .about-features .col-sm-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 10px;
    }
    .kpcl-dynamic-about .about-features .row {
        margin: 0;
    }
    .kpcl-dynamic-about .section-title h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
        text-align: center;
    }
    .kpcl-dynamic-about .section-title .sub-title {
        display: inline-block;
        margin-bottom: 15px;
    }
    .kpcl-dynamic-about .about-btns {
        text-align: center;
        margin-top: 20px;
    }
}

@media (min-width: 768px) {
    .kpcl-dynamic-about .feature-item {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
    }
    .kpcl-dynamic-about .feature-item .icon {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background-color: var(--hp-pink-light, rgba(230,0,126,0.1));
        color: var(--hp-pink);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
        margin-top: 3px;
    }
    .kpcl-dynamic-about .feature-item .content h5 {
        font-size: 18px;
        font-weight: 800;
        color: var(--hp-navy);
        margin-bottom: 8px;
    }
    .kpcl-dynamic-about .feature-item .content p {
        font-size: 15px;
        color: #555;
        line-height: 1.5;
    }
}

