/* Premium A+ Content - Frontend Styles */
:root {
    --pap-heading-font: inherit;
    --pap-subheading-font: inherit;
    --pap-body-font: inherit;
    --pap-max-width: 1200px;
    --pap-gap: 0;
}

/* Reset & Base */
.pap-aplus-content {
    max-width: var(--pap-max-width);
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    color: #232f3e;
}
.pap-aplus-content *,
.pap-aplus-content *::before,
.pap-aplus-content *::after { box-sizing: border-box; }

.pap-module {
    margin-bottom: 0;
    overflow: hidden;
}

/* Typography */
.pap-heading {
    font-family: var(--pap-heading-font);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.pap-subheading {
    font-family: var(--pap-subheading-font);
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #555;
    display: block;
    margin-bottom: 6px;
}
.pap-body {
    font-family: var(--pap-body-font);
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
    color: #444;
}
.pap-center { text-align: center; }

/* ========== FULL IMAGE ========== */
.pap-full-image { position: relative; }
.pap-full-image img { width: 100%; height: auto; display: block; }
.pap-full-image__text {
    text-align: center;
    padding: 24px 30px;
    background: #fafafa;
}
.pap-full-image__text .pap-heading { font-size: 1.6em; }

/* ========== TEXT BLOCK ========== */
.pap-text-block {
    padding: 40px 50px;
    text-align: center;
}
.pap-text-block .pap-heading { font-size: 1.5em; }
.pap-text-block .pap-body { max-width: 800px; margin: 0 auto; font-size: 0.95em; }

/* ========== BACKGROUND IMAGE WITH TEXT ========== */
.pap-bg-image-text {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.pap-bg-image-text__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.pap-bg-image-text__overlay {
    position: relative;
    z-index: 1;
    width: 45%;
    min-height: 100%;
    display: flex;
    align-items: center;
    padding: 40px;
}
.pap-bg-image-text--left .pap-bg-image-text__overlay { margin-right: auto; }
.pap-bg-image-text--right .pap-bg-image-text__overlay { margin-left: auto; }
.pap-bg-image-text__content { }
.pap-bg-image-text__content .pap-heading { font-size: 1.5em; margin-bottom: 14px; }
.pap-bg-image-text__content .pap-subheading { opacity: 0.85; }
.pap-bg-image-text__content .pap-body { font-size: 0.9em; line-height: 1.65; }

/* ========== FOUR IMAGES & TEXT ========== */
.pap-four-images { padding: 30px 20px; background: #fff; }
.pap-four-images > .pap-heading { font-size: 1.3em; margin-bottom: 25px; }
.pap-four-images__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.pap-four-images__item { text-align: center; }
.pap-four-images__item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}
.pap-four-images__item .pap-heading { font-size: 0.95em; margin-bottom: 6px; }
.pap-four-images__item .pap-subheading { font-size: 0.7em; color: #2271b1; }
.pap-four-images__item .pap-body { font-size: 0.85em; }

/* ========== DUAL IMAGES WITH TEXT ========== */
.pap-dual-images { padding: 30px 20px; }
.pap-dual-images > .pap-heading { font-size: 1.3em; text-align: center; margin-bottom: 25px; }
.pap-dual-images__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.pap-dual-images__item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 14px;
}
.pap-dual-images__item .pap-heading { font-size: 1.05em; }
.pap-dual-images__item .pap-subheading { font-size: 0.75em; color: #2271b1; }

/* ========== SINGLE IMAGE WITH TEXT ========== */
.pap-single-image-text {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 350px;
}
.pap-single-image-text--image_right { flex-direction: row-reverse; }
.pap-single-image-text__image {
    flex: 1;
    min-width: 0;
}
.pap-single-image-text__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 350px;
}
.pap-single-image-text__text {
    flex: 1;
    padding: 40px 45px;
}
.pap-single-image-text__text .pap-heading { font-size: 1.5em; }
.pap-single-image-text__text .pap-subheading { margin-bottom: 8px; }

/* ========== FULL VIDEO ========== */
.pap-full-video { }
.pap-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.pap-video-wrapper iframe,
.pap-video-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}
.pap-full-video__text {
    text-align: center;
    padding: 24px 30px;
    background: #fafafa;
}

/* ========== VIDEO WITH TEXT ========== */
.pap-video-text {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-height: 350px;
}
.pap-video-text--video_right { flex-direction: row-reverse; }
.pap-video-text__video {
    flex: 1;
    min-width: 0;
}
.pap-video-text__video .pap-video-wrapper { padding-bottom: 75%; }
.pap-video-title { font-size: 0.9em; padding: 8px 12px 0; margin: 0; }
.pap-video-desc { font-size: 0.8em; padding: 4px 12px 12px; }
.pap-video-text__text {
    flex: 1;
    padding: 40px 45px;
}
.pap-video-text__text .pap-heading { font-size: 1.4em; }

/* ========== COMPARISON TABLE 1 ========== */
.pap-ct1 { padding: 30px 20px; }
.pap-ct1 > .pap-heading { font-size: 1.3em; margin-bottom: 20px; }
.pap-ct1__table-wrap { overflow-x: auto; }
.pap-ct1__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}
.pap-ct1__table th,
.pap-ct1__table td {
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}
.pap-ct1__table th {
    padding-top: 15px;
    padding-bottom: 15px;
    vertical-align: bottom;
}
.pap-ct1__table th img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 8px;
}
.pap-ct1__table th span { display: block; font-size: 0.85em; color: #2271b1; font-weight: 600; }
.pap-ct1__feature { text-align: left !important; white-space: nowrap; }
.pap-ct1__table tbody tr:nth-child(even) { background: #f9f9f9; }
.pap-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2271b1;
    color: #fff;
    font-size: 10px;
    margin-left: 5px;
    cursor: help;
    position: relative;
    vertical-align: middle;
}
.pap-tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #232f3e;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: normal;
    width: max-content;
    max-width: 200px;
    z-index: 10;
    font-weight: normal;
    margin-bottom: 5px;
}

/* ========== COMPARISON TABLE 2 ========== */
.pap-ct2 { padding: 30px 20px; }
.pap-ct2 > .pap-heading { font-size: 1.3em; margin-bottom: 20px; }
.pap-ct2__grid { display: grid; gap: 20px; }
.pap-ct2__product { text-align: center; }
.pap-ct2__product img {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 4/3;
    object-fit: contain;
    margin-bottom: 10px;
}
.pap-ct2__product .pap-heading { font-size: 1em; color: #2271b1; margin-bottom: 12px; }
.pap-ct2__features { border-top: 2px solid #e8e8e8; }
.pap-ct2__feat {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}
.pap-ct2__feat strong { display: block; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.5px; }
.pap-ct2__feat span { font-size: 0.85em; color: #666; }

/* ========== COMPARISON TABLE 3 ========== */
.pap-ct3 { padding: 30px 20px; }
.pap-ct3 > .pap-heading { font-size: 1.3em; margin-bottom: 25px; }
.pap-ct3__compare {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.pap-ct3__product {
    flex: 1;
    text-align: center;
    padding: 15px;
}
.pap-ct3__product img {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3/4;
    object-fit: contain;
    margin-bottom: 10px;
}
.pap-ct3__product .pap-heading { font-size: 1em; }
.pap-ct3__middle {
    flex: 1.2;
    padding-top: 30px;
}
.pap-ct3__row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.pap-ct3__fname {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 0.85em;
}
.pap-ct3__val {
    flex: 1;
    font-size: 0.85em;
    color: #666;
}
.pap-ct3__val--left { text-align: right; padding-right: 15px; }
.pap-ct3__val--right { text-align: left; padding-left: 15px; }
.pap-ct3__nav { text-align: center; margin-top: 15px; }
.pap-ct3__dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid #232f3e;
    background: transparent;
    margin: 0 4px;
    cursor: pointer;
    padding: 0;
}
.pap-ct3__dot.active { background: #232f3e; }

/* ========== NAVIGATION CAROUSEL ========== */
.pap-nav-carousel { position: relative; }
.pap-nav-carousel__tabs {
    display: flex;
    justify-content: center;
    background: #232f3e;
    padding: 0;
    overflow-x: auto;
}
.pap-nav-carousel__tab {
    background: none;
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pap-nav-carousel__tab:hover,
.pap-nav-carousel__tab.active {
    border-bottom-color: #ff9900;
    background: rgba(255,255,255,0.1);
}
.pap-nav-carousel__slides { position: relative; overflow: hidden; }
.pap-nav-carousel__slide {
    display: none;
    position: relative;
    min-height: 400px;
}
.pap-nav-carousel__slide.active { display: flex; align-items: center; }
.pap-nav-carousel__slide img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.pap-nav-carousel__content {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.92);
    padding: 30px 35px;
    max-width: 380px;
    margin: 30px 40px;
    border-radius: 4px;
}
.pap-nav-carousel__content .pap-heading { font-size: 1.3em; }

/* ========== REGIMEN CAROUSEL ========== */
.pap-regimen-carousel { position: relative; }
.pap-regimen-carousel__header {
    background: #232f3e;
    padding: 14px 30px;
    text-align: center;
}
.pap-regimen-carousel__header .pap-heading { color: #fff; font-size: 1em; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.pap-regimen-carousel__wrap { position: relative; }
.pap-regimen-carousel__slides { position: relative; overflow: hidden; }
.pap-regimen-carousel__slide {
    display: none;
    position: relative;
    min-height: 400px;
}
.pap-regimen-carousel__slide.active { display: flex; align-items: center; }
.pap-regimen-carousel__slide img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.pap-regimen-carousel__inset {
    position: relative;
    z-index: 1;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 25px 30px;
    max-width: 320px;
    margin: 30px 40px;
    border-radius: 4px;
}
.pap-regimen-carousel__inset .pap-heading,
.pap-regimen-carousel__inset .pap-body { color: #fff; }
.pap-step-label {
    display: block;
    font-size: 1.3em;
    font-weight: 300;
    margin-bottom: 6px;
    opacity: 0.8;
}
.pap-regimen-carousel__steps {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pap-regimen-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.2s;
    text-align: left;
}
.pap-regimen-step.active { border-color: #232f3e; background: #232f3e; color: #fff; }
.pap-step-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #232f3e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.pap-regimen-step.active .pap-step-num { background: #fff; color: #232f3e; }

/* ========== SIMPLE IMAGE CAROUSEL ========== */
.pap-simple-carousel { position: relative; overflow: hidden; }
.pap-simple-carousel__slides { position: relative; }
.pap-simple-carousel__slide {
    display: none;
    position: relative;
    min-height: 400px;
}
.pap-simple-carousel__slide.active { display: block; }
.pap-simple-carousel__slide img {
    width: 100%; height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
}
.pap-simple-carousel__content {
    position: absolute;
    top: 0; left: 0;
    max-width: 380px;
    padding: 40px;
    z-index: 1;
}
.pap-simple-carousel__content .pap-heading { font-size: 1.5em; color: #232f3e; }
.pap-simple-carousel__content .pap-body { font-size: 0.9em; }

/* ========== VIDEO IMAGE CAROUSEL ========== */
.pap-vic { position: relative; }
.pap-vic > .pap-heading { padding: 20px; font-size: 1.3em; margin-bottom: 0; }
.pap-vic__slides { position: relative; overflow: hidden; }
.pap-vic__slide {
    display: none;
    align-items: flex-start;
}
.pap-vic__slide.active { display: flex; }
.pap-vic__media { flex: 1; min-width: 0; }
.pap-vic__media .pap-video-wrapper { padding-bottom: 75%; }
.pap-vic__text { flex: 1; padding: 30px 40px; }
.pap-vic__text .pap-heading { font-size: 1.3em; }

/* ========== CAROUSEL CONTROLS ========== */
.pap-carousel-prev,
.pap-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s;
    color: #232f3e;
    line-height: 1;
}
.pap-carousel-prev:hover,
.pap-carousel-next:hover { background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,0.2); }
.pap-carousel-prev { left: 12px; }
.pap-carousel-next { right: 12px; }

.pap-carousel-dots {
    text-align: center;
    padding: 15px 0;
}
.pap-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    margin: 0 4px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.pap-dot.active { background: #232f3e; }

/* ========== Q&A ========== */
.pap-qna { position: relative; overflow: hidden; }
.pap-qna--has-image { min-height: 400px; display: flex; align-items: center; }
.pap-qna__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.pap-qna__list {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}
.pap-qna--has-image .pap-qna__list {
    background: rgba(255,255,255,0.95);
    border-radius: 6px;
    padding: 25px 30px;
    margin: 30px auto;
}
.pap-qna__item {
    border-bottom: 1px solid #e8e8e8;
}
.pap-qna__item:last-child { border-bottom: 0; }
.pap-qna__question {
    width: 100%;
    background: none;
    border: none;
    padding: 14px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    font-size: 0.95em;
    font-weight: 600;
    color: #232f3e;
    transition: color 0.2s;
}
.pap-qna__question:hover { color: #2271b1; }
.pap-qna__question span:nth-child(2) { flex: 1; }
.pap-qna__arrow {
    font-size: 0.7em;
    transition: transform 0.2s;
    color: #ff9900;
}
.pap-qna__question[aria-expanded="true"] .pap-qna__arrow { transform: rotate(180deg); }
.pap-qna__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #232f3e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.pap-qna__badge--a { background: #ff9900; }
.pap-qna__answer {
    padding: 0 10px 14px 50px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.pap-qna__answer .pap-body { font-size: 0.9em; }

/* ========== TECHNICAL SPECIFICATIONS ========== */
.pap-tech-specs { padding: 30px 20px; }
.pap-tech-specs > .pap-heading { font-size: 1.3em; margin-bottom: 20px; }
.pap-tech-specs__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
.pap-tech-specs__row {
    display: flex;
    padding: 10px 15px;
    border-bottom: 1px solid #e8e8e8;
}
.pap-tech-specs__row:nth-child(odd) { background: #f9f9f9; }
.pap-tech-specs__row dt {
    font-weight: 700;
    font-size: 0.85em;
    min-width: 140px;
    color: #232f3e;
}
.pap-tech-specs__row dd {
    margin: 0;
    font-size: 0.85em;
    color: #555;
    flex: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .pap-four-images__grid { grid-template-columns: repeat(2, 1fr); }
    .pap-dual-images__grid { grid-template-columns: 1fr; }
    .pap-single-image-text,
    .pap-single-image-text--image_right { flex-direction: column; }
    .pap-single-image-text__text { padding: 25px 20px; }
    .pap-video-text,
    .pap-video-text--video_right { flex-direction: column; }
    .pap-video-text__text { padding: 25px 20px; }
    .pap-bg-image-text__overlay { width: 100%; }
    .pap-ct3__compare { flex-direction: column; }
    .pap-ct3__middle { padding: 0 15px; }
    .pap-ct3__row { font-size: 0.9em; }
    .pap-tech-specs__grid { grid-template-columns: 1fr; }
    .pap-nav-carousel__content { max-width: 90%; margin: 20px; padding: 20px; }
    .pap-regimen-carousel__steps {
        position: relative;
        right: auto; top: auto; transform: none;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 15px;
        gap: 8px;
    }
    .pap-regimen-carousel__inset { max-width: 90%; margin: 20px; }
    .pap-vic__slide.active { flex-direction: column; }
    .pap-vic__text { padding: 20px; }
    .pap-simple-carousel__content { max-width: 80%; padding: 25px; }
}

@media (max-width: 480px) {
    .pap-four-images__grid { grid-template-columns: 1fr; }
    .pap-text-block { padding: 25px 20px; }
    .pap-carousel-prev,
    .pap-carousel-next { width: 36px; height: 36px; font-size: 20px; }
}
