/* =========================================
   CUSTOM CSS FOR KIT PAGE
   ========================================= */
:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Override any theme defaults if necessary for this specific page */
.kit-page-wrapper {
    /* Using clip to prevent scrollbars without creating a new scroll context */
    overflow-x: clip;
    width: 100%;
    position: relative;
}


/* --- NEURAL EFFECT CSS --- */
.home-hero__bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.4;
    background-image: radial-gradient(#86868b 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
    pointer-events: none;
}

.home-hero__neural {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 1200px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.neural-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 4s ease-out forwards;
}

.neural-node {
    opacity: 0;
    animation: fadeInNode 0.5s ease-out forwards;
    filter: drop-shadow(0 0 4px rgba(0, 123, 141, 0.4));
}

.neural-path--1 {
    animation-delay: 0.2s;
}

.neural-path--2 {
    animation-delay: 0.5s;
}

.neural-path--3 {
    animation-delay: 0.8s;
}

.neural-path--4 {
    animation-delay: 1.1s;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInNode {
    to {
        opacity: 0.8;
    }
}

.home-hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 123, 141, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* --- PAGE STYLES --- */
.hero-text-gradient {
    background: linear-gradient(135deg, #1d1d1f 0%, #555 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero 3D Product Mockup */
.hero-product-mockup {
    perspective: 1200px;
}

.hero-product-mockup img {
    transform: rotateY(-4deg) rotateX(2deg);
    transition: transform 0.8s var(--ease-out-expo);
    will-change: transform;
}

.hero-product-mockup:hover img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.hero-product-mockup::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.12) 0%, transparent 70%);
    filter: blur(8px);
    z-index: -1;
    transition: all 0.8s var(--ease-out-expo);
}

.hero-product-mockup:hover::after {
    bottom: -30px;
    left: 5%;
    right: 5%;
    opacity: 0.8;
}

/* Hero CTA Pulse Animation */
.hero-cta-btn {
    animation: ctaPulse 3s ease-in-out infinite;
}

.hero-cta-btn:hover {
    animation: none;
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(0, 123, 141, 0.3);
    }

    50% {
        box-shadow: 0 4px 28px rgba(0, 123, 141, 0.55);
    }
}

/* Hero Badge Shimmer */
.hero-badge {
    position: relative;
    overflow: hidden;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 123, 141, 0.15) 50%,
            transparent 100%);
    animation: badgeShimmer 4s ease-in-out infinite;
}

@keyframes badgeShimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 140%;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

.apple-card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.apple-card:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* --- PREMIUM SYLLABUS ACCORDION --- */
details.syllabus-accordion {
    position: relative;
    border-radius: 16px;
    background: transparent;
    transition: background 0.4s ease, padding 0.4s ease;
}

/* Active State Background Tint */
details.syllabus-accordion[open] {
    background: #f8fafc;
    /* Tailwind slate-50 */
    padding: 16px 20px;
    margin: -16px -20px;
    /* Offset padding to keep alignment */
}

/* Hide default marker */
details.syllabus-accordion summary::-webkit-details-marker {
    display: none;
}

details.syllabus-accordion summary {
    list-style: none;
    outline: none;
    border-radius: 12px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Custom Focus Ring for Accessibility */
details.syllabus-accordion summary:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 123, 141, 0.3);
}

/* Subtle scale click effect on header */
details.syllabus-accordion summary:active {
    transform: scale(0.99);
}

/* Magnetic Caret Arrow Hover */
details.syllabus-accordion summary:hover i.ph-caret-down {
    transform: translateY(3px);
    color: var(--brand-dark);
}

/* Springy Caret Rotation when Open */
details.syllabus-accordion[open] summary i.ph-caret-down {
    transform: rotate(180deg) translateY(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Spring effect */
    color: var(--brand-dark);
}

/* Smooth reveal bounding box */
details.syllabus-accordion[open] summary~* {
    animation: accordionReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes accordionReveal {
    0% {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.95);
        transform-origin: top;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
        transform-origin: top;
    }
}

/* --- STAGGERED CHAPTER REVEAL --- */
details.syllabus-accordion .syllabus-item {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    padding: 12px;
    margin: -12px;
    /* Invisible hit area expansion */
}

/* Simple chapter reveal for all items (no hardcoded limits) */
details.syllabus-accordion[open] .syllabus-item {
    animation: chapterSlideIn 0.4s forwards;
    /* Adding a slight base delay so it doesn't instantly snap */
    animation-delay: 0.1s;
}

@keyframes chapterSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- INTERACTIVE CHAPTER HOVER --- */
details.syllabus-accordion .syllabus-item:hover {
    background: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transform: translateX(-6px);
    /* RTL slide left */
}

/* Number Badge Glow on Hover */
details.syllabus-accordion .syllabus-item:hover .syllabus-num {
    background: var(--brand-dark);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 123, 141, 0.3);
}

.kit-inv-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.kit-inv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Color accent strip on top */
.kit-inv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kit-inv-card:hover::before {
    opacity: 1;
}

.kit-inv-card--teal::before {
    background: var(--brand-dark);
}

.kit-inv-card--blue::before {
    background: #3b82f6;
}

.kit-inv-card--purple::before {
    background: #8b5cf6;
}

.kit-inv-card--amber::before {
    background: #f59e0b;
}

.kit-inv-card--rose::before {
    background: #f43f5e;
}

.kit-inv-card--emerald::before {
    background: #10b981;
}

/* Icon container */
.kit-inv-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.kit-inv-card:hover .kit-inv-icon {
    transform: scale(1.1);
}

.kit-inv-icon--teal {
    background: rgba(0, 123, 141, 0.1);
    color: var(--brand-dark);
}

.kit-inv-icon--blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.kit-inv-icon--purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.kit-inv-icon--amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.kit-inv-icon--rose {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}

.kit-inv-icon--emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* File type badge */
.kit-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.04);
    color: #888;
}

/* ================================================
   TOOLKIT HEADER
   ================================================ */
.toolkit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.toolkit-header__main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.toolkit-header__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-light, #00a3b5));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 123, 141, 0.25);
}

.toolkit-header__text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.toolkit-header__text p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 4px 0 0;
    line-height: 1.5;
}

.toolkit-header__version {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(0, 123, 141, 0.08);
    color: var(--brand-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(0, 123, 141, 0.15);
    white-space: nowrap;
}

.toolkit-header__version i {
    font-size: 14px;
}

/* ================================================
   TOOLKIT SUB-SECTIONS
   ================================================ */
.toolkit-subsection {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.toolkit-subsection__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toolkit-subsection__icon--books {
    background: rgba(0, 123, 141, 0.1);
    color: var(--brand-dark);
}

.toolkit-subsection__icon--addons {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.toolkit-subsection__text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.toolkit-subsection__text p {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 2px 0 0;
    line-height: 1.4;
}

/* ================================================
   BOOKLET CAROUSEL
   ================================================ */
.booklet-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: white;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

/* --- Slides Container --- */
.booklet-slides {
    position: relative;
    min-height: 420px;
}

/* --- Individual Slide --- */
.booklet-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.5s;
}

.booklet-slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* --- Mockup Side --- */
.booklet-slide__mockup {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    overflow: hidden;
    min-height: 380px;
}

.booklet-slide__mockup-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    z-index: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.booklet-slide.is-active .booklet-slide__mockup-glow {
    opacity: 0.3;
    transform: scale(1.1);
}

/* Glow color variants */
.booklet-glow--1 {
    background: #007b8d;
}

.booklet-glow--2 {
    background: #3b82f6;
}

.booklet-glow--3 {
    background: #8b5cf6;
}

.booklet-glow--4 {
    background: #f59e0b;
}

.booklet-glow--5 {
    background: #10b981;
}

.booklet-slide__img {
    position: relative;
    z-index: 1;
    max-height: 340px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
}

.booklet-slide.is-active .booklet-slide__img {
    animation: mockupFloat 4s ease-in-out infinite;
}

@keyframes mockupFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.booklet-slide__icon-fallback {
    width: 120px;
    height: 150px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.booklet-slide__icon-fallback i {
    font-size: 56px;
    opacity: 0.85;
}

/* --- Content Side --- */
.booklet-slide__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 36px 40px 24px;
    text-align: right;
}

/* Badge */
.booklet-slide__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.booklet-slide__badge-num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
}

/* Badge color variants */
.booklet-badge--1 .booklet-slide__badge-num {
    background: linear-gradient(135deg, #007b8d, #005f6b);
}

.booklet-badge--2 .booklet-slide__badge-num {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.booklet-badge--3 .booklet-slide__badge-num {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.booklet-badge--4 .booklet-slide__badge-num {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.booklet-badge--5 .booklet-slide__badge-num {
    background: linear-gradient(135deg, #10b981, #059669);
}

.booklet-slide__badge-topic {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    padding: 2px 10px;
    background: #f3f4f6;
    border-radius: 6px;
}

/* Title */
.booklet-slide__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.5;
    margin: 0 0 8px;
}

/* Tagline */
.booklet-slide__tagline {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
    margin: 0 0 16px;
    font-style: italic;
}

/* Brief */
.booklet-slide__brief {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.8;
    margin: 0 0 20px;
}

/* Points checklist */
.booklet-slide__points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booklet-slide__points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.booklet-slide__points li i {
    color: var(--brand-dark);
    font-size: 16px;
    flex-shrink: 0;
}

/* ================================================
   CAROUSEL NAVIGATION
   ================================================ */
.booklet-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.booklet-nav__arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.booklet-nav__arrow:hover {
    background: var(--brand-dark);
    color: white;
    border-color: var(--brand-dark);
    box-shadow: 0 2px 8px rgba(0, 123, 141, 0.25);
}

.booklet-nav__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.booklet-nav__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.booklet-nav__dot.is-active {
    width: 24px;
    border-radius: 4px;
    background: var(--brand-dark);
}

/* ================================================
   THUMBNAIL STRIP
   ================================================ */
.booklet-thumbs {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.booklet-thumbs::-webkit-scrollbar {
    display: none;
}

.booklet-thumb {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.booklet-thumb:first-child {
    border-left: none;
}

.booklet-thumb img {
    width: 28px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.booklet-thumb i {
    font-size: 18px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.booklet-thumb span {
    display: none;
}

@media (min-width: 768px) {
    .booklet-thumb span {
        display: inline;
    }
}

.booklet-thumb:hover {
    color: var(--brand-dark);
    background: rgba(0, 123, 141, 0.03);
}

.booklet-thumb:hover img,
.booklet-thumb:hover i {
    opacity: 0.8;
}

.booklet-thumb.is-active {
    color: var(--brand-dark);
    background: rgba(0, 123, 141, 0.06);
}

.booklet-thumb.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--brand-dark);
    border-radius: 3px 3px 0 0;
}

.booklet-thumb.is-active img {
    opacity: 1;
}

.booklet-thumb.is-active i {
    opacity: 1;
}

/* ================================================
   VERSION UPDATE BANNER
   ================================================ */
.toolkit-version-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 16px;
    background: rgba(0, 123, 141, 0.06);
    border: 1px dashed rgba(0, 123, 141, 0.2);
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 48px;
}

.toolkit-version-banner i {
    font-size: 18px;
    animation: spinSlow 4s linear infinite;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Icon color variants (kept for fallback icons) */
.booklet-icon--1 {
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    color: #007b8d;
}

.booklet-icon--2 {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #3b82f6;
}

.booklet-icon--3 {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #8b5cf6;
}

.booklet-icon--4 {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #f59e0b;
}

.booklet-icon--5 {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #10b981;
}

/* ================================================
   MOBILE RESPONSIVE
   ================================================ */
@media (max-width: 767px) {
    .toolkit-header {
        gap: 12px;
    }

    .toolkit-header__text h3 {
        font-size: 1.3rem;
    }

    .booklet-slides {
        min-height: auto;
    }

    .booklet-slide {
        grid-template-columns: 1fr;
    }

    .booklet-slide__mockup {
        min-height: 240px;
        padding: 24px 20px;
    }

    .booklet-slide__img {
        max-height: 220px;
    }

    .booklet-slide__mockup-glow {
        width: 180px;
        height: 180px;
    }

    .booklet-slide__content {
        padding: 24px 20px;
        text-align: right;
    }

    .booklet-slide__title {
        font-size: 1.2rem;
    }

    .booklet-slide__brief {
        font-size: 0.85rem;
    }

    .booklet-nav__arrow {
        width: 32px;
        height: 32px;
    }

    .booklet-thumb {
        padding: 10px 12px;
    }

    .booklet-thumb img {
        width: 22px;
        height: 28px;
    }

    .toolkit-version-banner {
        font-size: 0.8rem;
        padding: 12px 16px;
    }
}


/* Value summary strip */
.kit-value-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 32px;
    background: white;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: max-content;
    margin: 0 auto;
}

.kit-value-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.kit-value-item i {
    color: var(--brand-dark);
}

.kit-value-divider {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
}

/* --- INVENTORY CONFIGURATOR (Split View) --- */
.kit-addon-item.active {
    background-color: rgba(0, 123, 141, 0.03);
    border-color: var(--brand-dark);
}

.kit-addon-item.active .kit-addon-icon {
    background-color: var(--brand-dark);
    color: white;
}

.kit-addon-preview img {
    /* Ensure image covers fully */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scrollbar for list if needed */
.kit-addon-list {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.sticky-cta {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 24px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.5s var(--ease-out-expo);
    width: 90%;
    max-width: 400px;
}

@media (min-width: 768px) {
    .sticky-cta {
        width: auto;
        min-width: 300px;
        max-width: none;
    }
}

.sticky-cta.visible {
    transform: translateX(-50%) translateY(0);
}

/* Pricing Cards Interactive */
.price-card {
    border: 2px solid transparent;
    border-radius: 24px;
    padding: 30px;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card.selected {
    border-color: var(--brand-dark);
    background: rgba(0, 123, 141, 0.02);
    box-shadow: 0 20px 40px rgba(0, 123, 141, 0.1);
}

.price-card.selected .check-icon {
    opacity: 1;
    transform: scale(1);
}

.check-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 24px;
    height: 24px;
    background: var(--brand-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s var(--ease-out-expo);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.scale-reveal {
    opacity: 0;
    transform: scale(0.9);
    transition: all 1s var(--ease-out-expo);
}

.scale-reveal.active {
    opacity: 1;
    transform: scale(1);
}

.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--brand-light);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.syllabus-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.syllabus-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-dark);
    background: rgba(0, 123, 141, 0.1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- METHODOLOGY SECTION ENHANCEMENTS --- */

/* Animated gradient background */
.methodology-bg-animated {
    background: linear-gradient(-45deg,
            var(--brand-dark),
            #005f6b,
            #007b8d,
            #004d57);
    background-size: 300% 300%;
    animation: methodGradient 12s ease infinite;
}

@keyframes methodGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating decorative shapes */
.methodology-float-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
    background: white;
}

.methodology-float-shape--1 {
    width: 200px;
    height: 200px;
    top: -60px;
    right: -40px;
    animation: floatShape 8s ease-in-out infinite;
}

.methodology-float-shape--2 {
    width: 120px;
    height: 120px;
    bottom: 40px;
    left: -30px;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.methodology-float-shape--3 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 15%;
    animation: floatShape 6s ease-in-out infinite 2s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Progress Timeline */
.syllabus-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
}

.syllabus-timeline::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 15px;
    right: 29px;
    /* RTL: align with num center */
    width: 2px;
    background: linear-gradient(to bottom, rgba(0, 123, 141, 0.1), rgba(0, 123, 141, 0.3), rgba(0, 123, 141, 0.1));
    z-index: 0;
}

/* Syllabus Item Enhancements */
.syllabus-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.syllabus-item:hover {
    background: rgba(0, 123, 141, 0.04);
    border-color: transparent;
    padding-right: 20px;
}

.syllabus-item:hover .syllabus-num {
    background: var(--brand-dark);
    color: white;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Accordion details inside syllabus */
.syllabus-item .syllabus-desc {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
}

.syllabus-item.open .syllabus-desc {
    max-height: 100px;
    opacity: 1;
    margin-top: 6px;
}

.syllabus-item .syllabus-toggle {
    margin-right: auto;
    transition: transform 0.3s ease;
    color: #bbb;
    flex-shrink: 0;
}

.syllabus-item.open .syllabus-toggle {
    transform: rotate(180deg);
    color: var(--brand-dark);
}

/* Stat Strip */
.method-stat-strip {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.method-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 123, 141, 0.06);
    border-radius: 9999px;
    font-size: 0.78rem;
    color: var(--brand-dark);
    font-weight: 600;
    white-space: nowrap;
}

/* Book Mockup in methodology */
.method-book-mockup {
    perspective: 800px;
    display: flex;
    justify-content: center;
}

.method-book-mockup img {
    max-width: 220px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: rotateY(-8deg);
    transition: transform 0.6s var(--ease-out-expo);
    animation: bookFloat 4s ease-in-out infinite;
}

.method-book-mockup:hover img {
    transform: rotateY(0deg) scale(1.05);
}

@keyframes bookFloat {

    0%,
    100% {
        transform: rotateY(-8deg) translateY(0);
    }

    50% {
        transform: rotateY(-8deg) translateY(-8px);
    }
}

/* --- NEW COLOR VARIANTS (EXTENDED) --- */

/* Rose */
.booklet-back--rose {
    background: linear-gradient(135deg, #e11d48, #be123c);
}

.booklet-icon--rose {
    background: linear-gradient(135deg, #ffe4e6, #fecdd3);
    color: #e11d48;
}

/* Slate */
.booklet-back--slate {
    background: linear-gradient(135deg, #475569, #334155);
}

.booklet-icon--slate {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
}

/* Cyan */
.booklet-back--cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.booklet-icon--cyan {
    background: linear-gradient(135deg, #cffafe, #a5f3fc);
    color: #0891b2;
}

/* Indigo */
.booklet-back--indigo {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.booklet-icon--indigo {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4f46e5;
}

/* Violet */
.booklet-back--violet {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.booklet-icon--violet {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

/* Fuchsia */
.booklet-back--fuchsia {
    background: linear-gradient(135deg, #c026d3, #a21caf);
}

.booklet-icon--fuchsia {
    background: linear-gradient(135deg, #fae8ff, #f0abfc);
    color: #c026d3;
}

/* Red */
.booklet-back--red {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.booklet-icon--red {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

/* Orange */
.booklet-back--orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.booklet-icon--orange {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #ea580c;
}

/* Lime */
.booklet-back--lime {
    background: linear-gradient(135deg, #84cc16, #65a30d);
}

.booklet-icon--lime {
    background: linear-gradient(135deg, #ecfccb, #d9f99d);
    color: #65a30d;
}

/* Sky */
.booklet-back--sky {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.booklet-icon--sky {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0284c7;
}


/* --- INVENTORY NEW COLORS --- */
.kit-inv-card--slate::before {
    background: #475569;
}

.kit-inv-icon--slate {
    background: rgba(71, 85, 105, 0.1);
    color: #475569;
}

.kit-inv-card--cyan::before {
    background: #06b6d4;
}

.kit-inv-icon--cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.kit-inv-card--indigo::before {
    background: #6366f1;
}

.kit-inv-icon--indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.kit-inv-card--violet::before {
    background: #7c3aed;
}

.kit-inv-icon--violet {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.kit-inv-card--fuchsia::before {
    background: #c026d3;
}

.kit-inv-icon--fuchsia {
    background: rgba(192, 38, 211, 0.1);
    color: #c026d3;
}

.kit-inv-card--red::before {
    background: #dc2626;
}

.kit-inv-icon--red {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.kit-inv-card--orange::before {
    background: #f97316;
}

.kit-inv-icon--orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.kit-inv-card--lime::before {
    background: #84cc16;
}

.kit-inv-icon--lime {
    background: rgba(132, 204, 22, 0.1);
    color: #84cc16;
}

.kit-inv-card--sky::before {
    background: #0ea5e9;
}

.kit-inv-icon--sky {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

/* =========================================
   CHECKOUT MODAL
   ========================================= */

/* Overlay */
.checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95) translateY(20px);
    width: 90%;
    max-width: 32rem;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out-expo),
        visibility 0.35s ease,
        transform 0.35s var(--ease-out-expo);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1) translateY(0);
}

/* Close Button */
.checkout-modal__close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.checkout-modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: scale(1.1);
}

/* Product Summary Header */
.checkout-modal__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 28px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.checkout-modal__product-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 123, 141, 0.1), rgba(0, 123, 141, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.checkout-modal__product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.checkout-modal__product-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-dark);
}

/* Form Body */
.checkout-modal__body {
    padding: 24px 28px 28px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.checkout-modal__no-form {
    text-align: center;
    padding: 32px 16px;
}

/* CF7 Form Overrides — Premium Aesthetic */
.checkout-modal .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    direction: rtl;
    text-align: right;
}

.checkout-modal .wpcf7-form p {
    margin: 0;
    text-align: right;
}

.checkout-modal .wpcf7-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 6px;
    text-align: right;
    direction: rtl;
}

.checkout-modal .wpcf7-form input[type="text"],
.checkout-modal .wpcf7-form input[type="email"],
.checkout-modal .wpcf7-form input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
}

.checkout-modal .wpcf7-form input[type="text"]:focus,
.checkout-modal .wpcf7-form input[type="email"]:focus,
.checkout-modal .wpcf7-form input[type="tel"]:focus {
    border-color: var(--brand-dark);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 141, 0.1);
}

.checkout-modal .wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 9999px;
    background: var(--brand-dark);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.checkout-modal .wpcf7-form input[type="submit"]:hover {
    background: #005f6b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 141, 0.25);
}

.checkout-modal .wpcf7-form .wpcf7-spinner {
    margin: 8px auto 0;
}

/* CF7 Validation Messages */
.checkout-modal .wpcf7-not-valid-tip {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 4px;
}

.checkout-modal .wpcf7-response-output {
    font-size: 0.8rem;
    padding: 10px 14px;
    border-radius: 12px;
    margin: 8px 0 0;
    border-width: 1px;
}

/* Success Section */
.checkout-modal__success {
    padding: 32px 28px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.checkout-modal__success.active {
    opacity: 1;
    transform: translateY(0);
}

.checkout-success__icon {
    margin-bottom: 16px;
}

.checkout-success__icon i {
    font-size: 3.5rem;
    color: #10b981;
    animation: successPop 0.5s var(--ease-out-expo);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.checkout-success__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
}

/* Payment Steps */
.checkout-success__steps {
    background: #f8fafb;
    border-radius: 18px;
    padding: 24px;
    text-align: right;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.checkout-success__steps-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
}

.checkout-success__steps-title i {
    color: var(--brand-dark);
}

.checkout-success__step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.checkout-success__step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.checkout-success__step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--brand-dark);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.checkout-success__step p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.checkout-success__step strong {
    color: var(--brand-dark);
    font-weight: 700;
}

.checkout-success__highlight {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 14px;
    background: white;
    border: 1.5px solid rgba(0, 123, 141, 0.2);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: 0.5px;
    user-select: all;
}

/* =========================================
   MOBILE: Full-Screen Modal
   ========================================= */
@media (max-width: 640px) {
    .checkout-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        max-width: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translateY(100%);
    }

    .checkout-modal.active {
        transform: translateY(0);
    }

    .checkout-modal__header {
        padding: 20px 20px 16px;
    }

    .checkout-modal__body {
        padding: 20px;
    }

    .checkout-modal__success {
        padding: 24px 20px;
    }

    .checkout-modal__close {
        top: 12px;
        left: 12px;
    }
}