/*
 * PDF storefront - Phase 4
 * Scope: homepage testimonials, partner/logo strip and homepage footer only.
 * The existing header/navigation is intentionally untouched.
 */

.phase1-home .pdf4-home-container {
    width: calc(100% - 44px);
    max-width: 1320px;
    margin: 0 auto;
    padding-right: 0;
    padding-left: 0;
}

/* ---------- Testimonials ---------- */
.phase1-home .pdf4-testimonials {
    margin-top: 18px;
    padding: 20px 0 14px;
    background: var(--pdf4-section-bg, #fbfcf7);
    color: var(--pdf4-section-text, #1e293b);
}

.phase1-home .pdf4-section-heading {
    margin-bottom: 15px;
}

.phase1-home .pdf4-section-heading--center {
    text-align: center;
}

.phase1-home .pdf4-section-heading h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0 0 8px;
    color: #18212a;
    font-family: inherit;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.phase1-home .pdf4-section-heading h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 99px;
    background: #3185c5;
    transform: translateX(-50%);
}

.phase1-home .pdf4-section-heading p {
    margin: 7px 0 0;
    color: #687480;
    font-size: 12px;
    line-height: 1.45;
}

.phase1-home .pdf4-testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.phase1-home .pdf4-testimonial-card {
    flex: 0 1 410px;
    min-width: 0;
    padding: 16px 17px 15px;
    border: 1px solid #e4e9ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(22, 43, 62, .06);
}

.phase1-home .pdf4-testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
    color: #f4a62a;
    font-size: 11px;
}

.phase1-home .pdf4-testimonial-stars .pdf4-star-muted {
    color: #d9dee3;
}

.phase1-home .pdf4-testimonial-quote {
    display: -webkit-box;
    min-height: 72px;
    margin: 0 0 13px;
    overflow: hidden;
    color: #43505c;
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.phase1-home .pdf4-testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 11px;
    border-top: 1px solid #eef1f4;
}

.phase1-home .pdf4-testimonial-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 2px solid #eef5fa;
    border-radius: 50%;
    background: #f6f8fa;
}

.phase1-home .pdf4-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phase1-home .pdf4-testimonial-author-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.phase1-home .pdf4-testimonial-author-copy strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phase1-home .pdf4-testimonial-author-copy span {
    overflow: hidden;
    color: #7a858f;
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Partner / client logo strip ---------- */
.phase1-home .pdf4-partners {
    padding: 5px 0 20px;
    background: #fbfcf7;
}

.phase1-home .pdf4-partner-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.phase1-home .pdf4-partner-card {
    display: flex;
    min-width: 0;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    overflow: hidden;
    border: 1px solid #e0e6eb;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(22, 43, 62, .045);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.phase1-home a.pdf4-partner-card:hover,
.phase1-home a.pdf4-partner-card:focus-visible {
    border-color: #bdd6e7;
    box-shadow: 0 5px 13px rgba(22, 43, 62, .09);
    transform: translateY(-2px);
}

.phase1-home .pdf4-partner-card img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 38px;
    object-fit: contain;
}

/* ---------- Compact PDF-style footer (homepage only) ---------- */
.phase1-home footer.footer-two.footer-six-area.footer-eight-area {
    width: calc(100% - 28px);
    max-width: 1400px;
    margin: 0 auto 12px;
    overflow: hidden;
    padding-top: 0 !important;
    border-radius: 10px;
    background: #233b73 !important;
    color: #fff;
    box-shadow: 0 8px 28px rgba(21, 38, 75, .14);
}

.phase1-home footer.footer-eight-area > .container {
    max-width: 1180px;
    padding-right: 20px;
    padding-left: 20px;
}

.phase1-home .footer-eight-top {
    margin: 0 0 25px !important;
    padding: 14px 0 13px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .22) !important;
}

.phase1-home .footer-eight-top .row {
    align-items: center;
}

.phase1-home .footer-eight-top-wrap h4 {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.phase1-home .subscribe-six-input {
    display: flex !important;
    width: 100%;
    min-height: 34px;
    align-items: center;
    padding: 2px 3px 2px 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .26) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .12) !important;
}

.phase1-home .subscribe-six-input input {
    min-width: 0;
    height: 30px !important;
    flex: 1 1 auto;
    padding: 0 6px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 10px !important;
}

.phase1-home .subscribe-six-input input::placeholder {
    color: rgba(255, 255, 255, .72) !important;
}

.phase1-home .subscribe-six-input .subscribe-six-button,
.phase1-home .subscribe-six-input .subscribe-eight-button {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 0 auto;
    transform: none !important;
}

.phase1-home .subscribe-six-input button {
    min-height: 28px !important;
    padding: 5px 14px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #5369cd, #8b62d6) !important;
    color: #fff !important;
    font-size: 9px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.phase1-home .footer-eight-top-info {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.phase1-home .footer-eight-top-icon span {
    display: inline-flex;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 11px;
}

.phase1-home .footer-eight-top-info-con {
    min-width: 0;
}

.phase1-home .footer-eight-top-info-con p {
    margin: 0 0 1px !important;
    color: rgba(255, 255, 255, .66) !important;
    font-size: 9px !important;
    line-height: 1.2;
}

.phase1-home .footer-eight-top-info-con a {
    display: block;
    overflow: hidden;
    color: #fff !important;
    font-size: 10px !important;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phase1-home .footer-eight-top + .row {
    padding-bottom: 24px;
}

.phase1-home .footer-two__widget-logo img {
    width: auto;
    max-width: 130px;
    height: 42px !important;
    object-fit: contain;
}

.phase1-home .footer-two__widget-content p {
    max-width: 260px;
    margin: 8px 0 12px !important;
    color: rgba(255, 255, 255, .7) !important;
    font-size: 10px !important;
    line-height: 1.6 !important;
}

.phase1-home .footer-two__widget-intro h5 {
    margin: 0 0 10px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.phase1-home .footer-two__widget-intro .line {
    display: none !important;
}

.phase1-home .footer-two__widget-content ul {
    margin: 0 !important;
    padding: 0 !important;
}

.phase1-home .footer-two__widget-content ul li {
    margin: 0 0 6px !important;
    line-height: 1.25 !important;
}

.phase1-home .footer-two__widget-content ul li a,
.phase1-home .footer-two__widget-content--contact ul li a {
    color: rgba(255, 255, 255, .76) !important;
    font-size: 9.5px !important;
    line-height: 1.45 !important;
}

.phase1-home .footer-two__widget-content ul li a:hover,
.phase1-home .footer-two__widget-content ul li a:focus-visible {
    color: #fff !important;
}

.phase1-home .footer-two__widget .social {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.phase1-home .footer-two__widget .social a {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff !important;
    font-size: 9px;
}

.phase1-home .footer-two__copyright.footer-six-copyright {
    margin-top: 0 !important;
    padding: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .13);
    background: transparent !important;
}

.phase1-home .footer-six-copyright .container {
    max-width: 1180px;
}

.phase1-home .footer-six-copyright-border {
    min-height: 42px;
    padding: 8px 0 !important;
    border: 0 !important;
}

.phase1-home .footer-two__copyright-inner p,
.phase1-home .footer__bottom-list a {
    margin: 0 !important;
    color: rgba(255, 255, 255, .7) !important;
    font-size: 8.5px !important;
    line-height: 1.35 !important;
}

.phase1-home .footer__bottom-list {
    gap: 14px !important;
    margin: 0 !important;
}

@media (max-width: 991.98px) {
    .phase1-home .pdf4-partner-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .phase1-home .footer-eight-top {
        margin-bottom: 20px !important;
    }

    .phase1-home .footer-eight-top + .row {
        padding-bottom: 16px;
    }
}

@media (max-width: 767.98px) {
    .phase1-home .pdf4-home-container {
        width: calc(100% - 24px);
    }

    .phase1-home .pdf4-testimonials {
        margin-top: 14px;
        padding-top: 17px;
    }

    .phase1-home .pdf4-section-heading h2 {
        font-size: 18px;
    }

    .phase1-home .pdf4-section-heading p {
        font-size: 11px;
    }

    .phase1-home .pdf4-testimonial-grid {
        gap: 10px;
    }

    .phase1-home .pdf4-testimonial-card {
        flex-basis: 100%;
        padding: 14px;
    }

    .phase1-home footer.footer-two.footer-six-area.footer-eight-area {
        width: calc(100% - 16px);
        margin-bottom: 8px;
        border-radius: 9px;
    }

    .phase1-home footer.footer-eight-area > .container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .phase1-home .footer-eight-top {
        padding-top: 16px !important;
        padding-bottom: 14px !important;
    }

    .phase1-home .footer-eight-top-wrap h4 {
        margin-bottom: 8px;
        text-align: center;
    }

    .phase1-home .footer-eight-top-info {
        justify-content: flex-start !important;
        margin-top: 8px;
    }

    .phase1-home .footer-two__widget-content p {
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .phase1-home .pdf4-partner-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .phase1-home .pdf4-partner-card {
        min-height: 56px;
        padding: 7px 9px;
    }

    .phase1-home .pdf4-partner-card img {
        height: 32px;
    }

    .phase1-home .footer-eight-top-info-con a {
        font-size: 9px !important;
    }

    .phase1-home .footer-eight-top + .row > [class*="col-"] {
        margin-bottom: 18px !important;
    }

    .phase1-home .footer-two__widget,
    .phase1-home .footer-two__widget-intro,
    .phase1-home .footer-two__widget-content {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .phase1-home .footer-two__widget-logo,
    .phase1-home .footer-two__widget .social {
        justify-content: flex-start !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .phase1-home .pdf4-testimonial-card,
    .phase1-home .pdf4-partner-card {
        transition: none !important;
    }
}

/* ============================================================
   Homepage visual scale & polish correction
   Requested after Phase 4.
   Scope: homepage content only. Existing header/navigation untouched.
   This file loads after Phase 2/3 CSS, so these rules intentionally
   refine their visual scale without changing JS or backend logic.
   ============================================================ */

/* ---------- Shared homepage rhythm ---------- */
.phase1-home .pdf2-section-container,
.phase1-home .pdf3-section > .container,
.phase1-home .pdf3-showcase-section > .container,
.phase1-home .pdf4-home-container {
    max-width: 1320px;
}

.phase1-home .pdf2-category-section {
    padding-top: 24px;
    padding-bottom: 14px;
}

.phase1-home .pdf2-quick-deal-section {
    padding-top: 12px;
    padding-bottom: 30px;
}

.phase1-home .pdf3-section,
.phase1-home .pdf3-showcase-section {
    padding-top: 22px;
    padding-bottom: 20px;
}

/* ---------- Shop By Category: larger, cleaner, premium card rail ---------- */
.phase1-home .pdf2-category-panel {
    overflow: hidden;
    border: 1px solid #e0e8ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(31, 55, 78, .075);
}

.phase1-home .pdf2-section-heading {
    position: relative;
    display: flex;
    min-height: 62px;
    align-items: center;
    padding: 15px 22px 13px;
    border-bottom: 1px solid #eaf0f4;
    background: linear-gradient(90deg, #f3f9fd 0%, #ffffff 72%);
}

.phase1-home .pdf2-section-heading::before {
    content: "";
    width: 5px;
    height: 28px;
    margin-right: 11px;
    border-radius: 999px;
    background: #3185c5;
    box-shadow: 0 2px 7px rgba(49, 133, 197, .22);
}

.phase1-home .pdf2-section-heading h2 {
    color: #17212b;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: .005em;
}

.phase1-home .pdf2-category-shell {
    padding: 18px 28px 20px;
}

.phase1-home .pdf2-category-track {
    gap: 18px;
    padding-top: 4px;
    padding-bottom: 5px;
}

.phase1-home .pdf2-category-item {
    flex-basis: 132px;
}

.phase1-home .pdf2-category-image-wrap {
    aspect-ratio: 1 / .84;
    border: 1px solid #e6edf2;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 4px 12px rgba(25, 47, 65, .075);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.phase1-home .pdf2-category-image {
    padding: 9px;
}

.phase1-home .pdf2-category-name {
    min-height: 36px;
    margin-top: 9px;
    color: #26323c;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.phase1-home .pdf2-category-item:hover .pdf2-category-image-wrap,
.phase1-home .pdf2-category-item:focus-visible .pdf2-category-image-wrap {
    border-color: #a9cfe8;
    box-shadow: 0 10px 22px rgba(31, 82, 117, .14);
    transform: translateY(-4px);
}

.phase1-home .pdf2-scroll-btn {
    width: 39px;
    height: 62px;
    border-radius: 10px;
    color: #1e6d9f;
}

/* ---------- Quick Deal: scale up with the rest of the homepage ---------- */
.phase1-home .pdf2-quick-deal-panel {
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(31, 55, 78, .07);
}

.phase1-home .pdf2-quick-deal-titlebar {
    min-height: 50px;
    padding: 10px 18px;
}

.phase1-home .pdf2-quick-deal-titlebar h2 {
    font-size: 20px;
    font-weight: 750;
}

.phase1-home .pdf2-quick-deal-titlebar h2 span {
    font-size: 19px;
}

.phase1-home .pdf2-deal-tab {
    min-height: 43px;
    padding: 10px 16px;
    font-size: 13px;
}

.phase1-home .pdf2-product-shell {
    padding: 18px 26px 20px;
}

.phase1-home .pdf2-product-track {
    gap: 18px;
}

.phase1-home .pdf2-product-card {
    flex-basis: 194px;
}

.phase1-home .pdf2-product-media {
    border-radius: 9px;
    background: #f8fafb;
}

.phase1-home .pdf2-product-info {
    padding: 9px 5px 3px;
}

.phase1-home .pdf2-product-name {
    min-height: 38px;
    font-size: 13px;
    line-height: 1.42;
}

.phase1-home .pdf2-price-row {
    margin-top: 5px;
}

.phase1-home .pdf2-price-row strong {
    font-size: 16px;
}

.phase1-home .pdf2-price-row del {
    font-size: 11px;
}

.phase1-home .pdf2-stock-text {
    min-height: 18px;
    margin-top: 4px;
    font-size: 10px;
}

.phase1-home .pdf2-deal-badge {
    min-width: 44px;
    min-height: 44px;
    font-size: 11px;
}

/* ---------- Phase 3: overall typography / card scale ---------- */
.phase1-home .pdf3-section-card,
.phase1-home .pdf3-category-rail,
.phase1-home .pdf3-spotlight {
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(31, 55, 78, .075);
}

.phase1-home .pdf3-section-head {
    min-height: 66px;
    padding: 15px 20px 14px;
    border-radius: 14px 14px 0 0;
}

.phase1-home .pdf3-section-head h2,
.phase1-home .pdf3-section-head-plain h2 {
    padding-left: 15px;
    font-size: 23px;
    font-weight: 750;
}

.phase1-home .pdf3-section-head h2::before,
.phase1-home .pdf3-section-head-plain h2::before {
    width: 5px;
    height: 28px;
}

.phase1-home .pdf3-view-all {
    min-height: 38px;
    padding: 8px 17px;
    border-radius: 8px;
    font-size: 13px;
}

.phase1-home .pdf3-product-track {
    gap: 20px;
    padding: 19px 20px 23px;
}

.phase1-home .pdf3-product-card {
    flex-basis: 238px;
}

.phase1-home .pdf3-product-link {
    border-radius: 12px;
}

.phase1-home .pdf3-product-info {
    padding: 13px 11px 12px;
}

.phase1-home .pdf3-product-name {
    min-height: 43px;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.5;
}

.phase1-home .pdf3-price-row {
    min-height: 30px;
    margin-top: 7px;
}

.phase1-home .pdf3-price-row strong {
    font-size: 17px;
}

.phase1-home .pdf3-price-row del {
    font-size: 12px;
}

.phase1-home .pdf3-stock-note {
    min-height: 19px;
    margin-top: 4px;
    font-size: 10.5px;
}

.phase1-home .pdf3-discount-badge {
    min-width: 50px;
    height: 50px;
    font-size: 12.5px;
}

.phase1-home .pdf3-explore-card {
    padding: 0 18px 20px;
}

.phase1-home .pdf3-explore-card .pdf3-section-head {
    margin: 0 -18px 18px;
}

.phase1-home .pdf3-explore-grid {
    gap: 18px;
}

.phase1-home .pdf3-explore-group {
    padding: 16px 14px 14px;
    border-radius: 12px;
}

.phase1-home .pdf3-explore-group h3 {
    min-height: 27px;
    margin-bottom: 12px;
    font-size: 15px;
}

.phase1-home .pdf3-explore-items {
    gap: 12px;
}

.phase1-home .pdf3-explore-image-wrap {
    border-radius: 10px;
}

.phase1-home .pdf3-explore-item-title {
    min-height: 35px;
    margin-top: 7px;
    font-size: 12px;
}

.phase1-home .pdf3-see-more {
    margin-top: 12px;
    font-size: 12px;
}

.phase1-home .pdf3-showcase-stack {
    gap: 26px;
}

.phase1-home .pdf3-category-rail {
    padding: 0 18px 19px;
}

.phase1-home .pdf3-rail-title-wrap {
    min-height: 61px;
    margin: 0 -18px 8px;
    padding: 12px 19px;
    border-radius: 14px 14px 0 0;
}

.phase1-home .pdf3-rail-title,
.phase1-home .pdf3-spotlight-title {
    min-width: 160px;
    min-height: 39px;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 14px;
}

.phase1-home .pdf3-rail-track {
    gap: 22px;
    padding: 13px 28px 7px;
}

.phase1-home .pdf3-rail-item {
    flex-basis: 158px;
}

.phase1-home .pdf3-rail-image-wrap {
    width: 120px;
    height: 120px;
}

.phase1-home .pdf3-rail-item-title {
    min-height: 38px;
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.4;
}

.phase1-home .pdf3-spotlight-head {
    min-height: 63px;
    padding: 13px 19px;
}

/* ---------- Testimonials: smart, premium responsive cards ---------- */
.phase1-home .pdf4-testimonials {
    margin-top: 24px;
    padding: 30px 0 26px;
    background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
}

.phase1-home .pdf4-section-heading {
    margin-bottom: 22px;
}

.phase1-home .pdf4-section-heading h2 {
    padding-bottom: 11px;
    color: #17212b;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .025em;
}

.phase1-home .pdf4-section-heading h2::after {
    width: 62px;
    height: 4px;
    background: linear-gradient(90deg, #3185c5, #65b5e6);
}

.phase1-home .pdf4-section-heading p {
    max-width: 720px;
    margin: 10px auto 0;
    color: #65727e;
    font-size: 13px;
    line-height: 1.6;
}

.phase1-home .pdf4-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.phase1-home .pdf4-testimonial-card {
    position: relative;
    min-height: 240px;
    padding: 23px 22px 20px;
    overflow: hidden;
    border: 1px solid #dfe8ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(31, 55, 78, .08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.phase1-home .pdf4-testimonial-card::before {
    content: "“";
    position: absolute;
    top: 4px;
    right: 18px;
    color: rgba(49, 133, 197, .11);
    font-family: Georgia, serif;
    font-size: 92px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.phase1-home .pdf4-testimonial-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3185c5, #65b5e6);
}

.phase1-home .pdf4-testimonial-card:hover {
    border-color: #bdd7e8;
    box-shadow: 0 12px 30px rgba(31, 75, 105, .13);
    transform: translateY(-4px);
}

.phase1-home .pdf4-testimonial-stars {
    position: relative;
    z-index: 1;
    gap: 4px;
    margin-bottom: 13px;
    font-size: 13px;
}

.phase1-home .pdf4-testimonial-quote {
    position: relative;
    z-index: 1;
    min-height: 100px;
    margin-bottom: 17px;
    color: #40505d;
    font-size: 13.5px;
    line-height: 1.72;
    -webkit-line-clamp: 4;
}

.phase1-home .pdf4-testimonial-author {
    position: relative;
    z-index: 1;
    gap: 13px;
    padding-top: 14px;
}

.phase1-home .pdf4-testimonial-avatar {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    border-width: 3px;
    border-color: #e4f1f9;
}

.phase1-home .pdf4-testimonial-author-copy strong {
    font-size: 14px;
}

.phase1-home .pdf4-testimonial-author-copy span {
    margin-top: 2px;
    font-size: 11px;
}

/* ---------- Partner strip: avoid tiny logo cards ---------- */
.phase1-home .pdf4-partners {
    padding: 12px 0 30px;
}

.phase1-home .pdf4-partner-track {
    gap: 14px;
}

.phase1-home .pdf4-partner-card {
    min-height: 78px;
    padding: 11px 14px;
    border-radius: 10px;
}

.phase1-home .pdf4-partner-card img {
    height: 48px;
}

/* ---------- Footer: larger, readable and better proportioned ---------- */
.phase1-home footer.footer-two.footer-six-area.footer-eight-area {
    width: calc(100% - 24px);
    max-width: 1400px;
    margin-bottom: 16px;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(21, 38, 75, .18);
}

.phase1-home footer.footer-eight-area > .container {
    max-width: 1260px;
    padding-right: 26px;
    padding-left: 26px;
}

.phase1-home .footer-eight-top {
    margin-bottom: 34px !important;
    padding: 22px 0 20px !important;
}

.phase1-home .footer-eight-top-wrap h4 {
    font-size: 16px;
    font-weight: 750;
}

.phase1-home .subscribe-six-input {
    min-height: 43px;
    padding-left: 15px;
}

.phase1-home .subscribe-six-input input {
    height: 38px !important;
    font-size: 12px !important;
}

.phase1-home .subscribe-six-input button {
    min-height: 34px !important;
    padding: 7px 17px !important;
    font-size: 11px !important;
}

.phase1-home .footer-eight-top-info {
    gap: 11px;
}

.phase1-home .footer-eight-top-icon span {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.phase1-home .footer-eight-top-info-con p {
    margin-bottom: 3px !important;
    font-size: 10.5px !important;
}

.phase1-home .footer-eight-top-info-con a {
    font-size: 12px !important;
}

.phase1-home .footer-eight-top + .row {
    padding-bottom: 34px;
}

.phase1-home .footer-two__widget-logo img {
    max-width: 170px;
    height: 56px !important;
}

.phase1-home .footer-two__widget-content p {
    max-width: 310px;
    margin: 12px 0 16px !important;
    font-size: 12px !important;
    line-height: 1.72 !important;
}

.phase1-home .footer-two__widget-intro h5 {
    margin-bottom: 14px !important;
    font-size: 15px !important;
}

.phase1-home .footer-two__widget-content ul li {
    margin-bottom: 9px !important;
}

.phase1-home .footer-two__widget-content ul li a,
.phase1-home .footer-two__widget-content--contact ul li a {
    font-size: 12px !important;
    line-height: 1.55 !important;
}

.phase1-home .footer-two__widget .social {
    gap: 8px;
}

.phase1-home .footer-two__widget .social a {
    width: 32px;
    height: 32px;
    font-size: 11px;
}

.phase1-home .footer-six-copyright-border {
    min-height: 54px;
    padding: 11px 0 !important;
}

.phase1-home .footer-two__copyright-inner p,
.phase1-home .footer__bottom-list a {
    font-size: 10.5px !important;
    line-height: 1.45 !important;
}

/* ---------- Tablet ---------- */
@media (max-width: 1199.98px) {
    .phase1-home .pdf2-category-item {
        flex-basis: 120px;
    }

    .phase1-home .pdf2-product-card {
        flex-basis: 184px;
    }

    .phase1-home .pdf3-product-card {
        flex-basis: 218px;
    }

    .phase1-home .pdf4-testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .phase1-home .pdf2-section-heading h2,
    .phase1-home .pdf3-section-head h2,
    .phase1-home .pdf3-section-head-plain h2 {
        font-size: 20px;
    }

    .phase1-home .pdf2-category-shell {
        padding-right: 20px;
        padding-left: 20px;
    }

    .phase1-home .pdf3-product-card {
        flex-basis: 205px;
    }

    .phase1-home .pdf4-partner-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- Mobile: larger but still properly fitted ---------- */
@media (max-width: 767.98px) {
    .phase1-home .pdf2-category-section {
        padding-top: 16px;
        padding-bottom: 9px;
    }

    .phase1-home .pdf2-quick-deal-section,
    .phase1-home .pdf3-section,
    .phase1-home .pdf3-showcase-section {
        padding-top: 10px;
        padding-bottom: 16px;
    }

    .phase1-home .pdf2-category-panel,
    .phase1-home .pdf2-quick-deal-panel,
    .phase1-home .pdf3-section-card,
    .phase1-home .pdf3-category-rail,
    .phase1-home .pdf3-spotlight {
        border-radius: 10px;
    }

    .phase1-home .pdf2-section-heading {
        min-height: 54px;
        padding: 12px 14px 11px;
    }

    .phase1-home .pdf2-section-heading::before {
        width: 4px;
        height: 24px;
        margin-right: 9px;
    }

    .phase1-home .pdf2-section-heading h2 {
        font-size: 18px;
    }

    .phase1-home .pdf2-category-shell {
        padding: 13px 12px 15px;
    }

    .phase1-home .pdf2-category-track {
        gap: 11px;
    }

    .phase1-home .pdf2-category-item {
        flex-basis: 105px;
    }

    .phase1-home .pdf2-category-name {
        min-height: 34px;
        margin-top: 7px;
        font-size: 11.5px;
    }

    .phase1-home .pdf2-scroll-btn {
        width: 32px;
        height: 50px;
        border-radius: 8px;
    }

    .phase1-home .pdf2-quick-deal-titlebar {
        min-height: 46px;
        padding: 9px 13px;
    }

    .phase1-home .pdf2-quick-deal-titlebar h2 {
        font-size: 18px;
    }

    .phase1-home .pdf2-deal-tab {
        min-height: 40px;
        padding: 9px 13px;
        font-size: 11.5px;
    }

    .phase1-home .pdf2-product-shell {
        padding: 14px 12px 16px;
    }

    .phase1-home .pdf2-product-track {
        gap: 11px;
    }

    .phase1-home .pdf2-product-card {
        flex-basis: 46vw;
        min-width: 155px;
        max-width: 190px;
    }

    .phase1-home .pdf2-product-name {
        min-height: 37px;
        font-size: 12px;
    }

    .phase1-home .pdf2-price-row strong {
        font-size: 14px;
    }

    .phase1-home .pdf2-stock-text {
        font-size: 9.5px;
    }

    .phase1-home .pdf3-section-head {
        min-height: 57px;
        padding: 12px 13px;
        border-radius: 10px 10px 0 0;
    }

    .phase1-home .pdf3-section-head h2,
    .phase1-home .pdf3-section-head-plain h2 {
        font-size: 18px;
    }

    .phase1-home .pdf3-product-track {
        gap: 12px;
        padding: 14px 12px 17px;
    }

    .phase1-home .pdf3-product-card {
        flex-basis: 46vw;
        min-width: 158px;
        max-width: 200px;
    }

    .phase1-home .pdf3-product-name {
        min-height: 40px;
        font-size: 12.5px;
    }

    .phase1-home .pdf3-price-row strong {
        font-size: 15px;
    }

    .phase1-home .pdf3-explore-grid {
        gap: 11px;
    }

    .phase1-home .pdf3-explore-group h3 {
        font-size: 13px;
    }

    .phase1-home .pdf3-explore-item-title,
    .phase1-home .pdf3-see-more {
        font-size: 10.5px;
    }

    .phase1-home .pdf3-rail-title-wrap {
        min-height: 53px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .phase1-home .pdf3-rail-title,
    .phase1-home .pdf3-spotlight-title {
        min-width: 130px;
        min-height: 35px;
        font-size: 12.5px;
    }

    .phase1-home .pdf3-rail-item {
        flex-basis: 122px;
    }

    .phase1-home .pdf3-rail-image-wrap {
        width: 92px;
        height: 92px;
    }

    .phase1-home .pdf3-rail-item-title {
        font-size: 10.5px;
    }

    .phase1-home .pdf4-testimonials {
        margin-top: 16px;
        padding: 23px 0 20px;
    }

    .phase1-home .pdf4-section-heading {
        margin-bottom: 16px;
    }

    .phase1-home .pdf4-section-heading h2 {
        font-size: 21px;
    }

    .phase1-home .pdf4-section-heading p {
        padding: 0 8px;
        font-size: 12px;
    }

    .phase1-home .pdf4-testimonial-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .phase1-home .pdf4-testimonial-card {
        min-height: 0;
        padding: 20px 18px 17px;
        border-radius: 13px;
    }

    .phase1-home .pdf4-testimonial-quote {
        min-height: 0;
        font-size: 12.5px;
        line-height: 1.65;
    }

    .phase1-home .pdf4-testimonial-avatar {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }

    .phase1-home .pdf4-partner-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .phase1-home .pdf4-partner-card {
        min-height: 66px;
    }

    .phase1-home .pdf4-partner-card img {
        height: 40px;
    }

    .phase1-home footer.footer-two.footer-six-area.footer-eight-area {
        width: calc(100% - 12px);
        margin-bottom: 8px;
        border-radius: 11px;
    }

    .phase1-home footer.footer-eight-area > .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .phase1-home .footer-eight-top {
        margin-bottom: 24px !important;
        padding: 20px 0 18px !important;
    }

    .phase1-home .footer-eight-top-wrap h4 {
        font-size: 15px;
    }

    .phase1-home .footer-two__widget-logo img {
        max-width: 155px;
        height: 50px !important;
    }

    .phase1-home .footer-two__widget-content p {
        font-size: 12px !important;
    }

    .phase1-home .footer-two__widget-intro h5 {
        font-size: 14px !important;
    }

    .phase1-home .footer-two__widget-content ul li a,
    .phase1-home .footer-two__widget-content--contact ul li a {
        font-size: 12px !important;
    }

    .phase1-home .footer-two__copyright-inner p,
    .phase1-home .footer__bottom-list a {
        font-size: 10px !important;
    }
}

@media (max-width: 390px) {
    .phase1-home .pdf2-category-item {
        flex-basis: 100px;
    }

    .phase1-home .pdf2-product-card,
    .phase1-home .pdf3-product-card {
        flex-basis: 47vw;
        min-width: 145px;
    }

    .phase1-home .pdf4-testimonial-card {
        padding-right: 16px;
        padding-left: 16px;
    }
}
