/* ============================================================
   Cheetah Tool — Homepage (custom, no Semantic UI in sections)
   ============================================================ */
.ct-index {
    --ct-navy: #05122d;
    --ct-navy-light: #0c2347;
    --ct-gold: #fed200;
    --ct-gold-dark: #e5bc00;
    --ct-green: #16a34a;
    --ct-text: #1e293b;
    --ct-muted: #64748b;
    --ct-bg: #f8fafc;
    --ct-white: #ffffff;
    --ct-radius: 14px;
    --ct-shadow: 0 10px 40px rgba(5, 18, 45, 0.08);
    font-family: 'Cheetah Graphik', 'Montserrat', system-ui, sans-serif;
    color: var(--ct-text);
    background: var(--ct-bg);
}

.ct-index *,
.ct-index *::before,
.ct-index *::after {
    box-sizing: border-box;
}

.ct-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.ct-section {
    padding: 72px 0;
}

.ct-section--white {
    background: var(--ct-white);
}

.ct-section--soft {
    background: var(--ct-bg);
}

.ct-section--dark {
    background: linear-gradient(160deg, var(--ct-navy) 0%, #0a2a52 100%);
    color: #fff;
}

.ct-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.ct-head h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--ct-navy);
    line-height: 1.25;
}

.ct-section--dark .ct-head h2 {
    color: #fff;
}

.ct-head p {
    margin: 0;
    color: var(--ct-muted);
    line-height: 1.75;
    font-size: 1.05rem;
}

.ct-section--dark .ct-head p {
    color: rgba(255, 255, 255, 0.78);
}

.ct-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(254, 210, 0, 0.15);
    color: #92680a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ct-section--dark .ct-tag {
    background: rgba(254, 210, 0, 0.2);
    color: var(--ct-gold);
}

/* ---- Slider (hero — dedicated owl init, not global .owl-carousel) ---- */
.ct-index .ct-slider-wrap {
    position: relative;
    overflow: hidden;
    background: var(--ct-navy);
}

.ct-index .ct-hero-slider {
    margin: 0;
}

.ct-index .ct-hero-slider .owl-wrapper-outer,
.ct-index .ct-hero-slider .owl-wrapper,
.ct-index .ct-hero-slider .owl-item {
    touch-action: pan-y;
}

.ct-index .ct-hero-slider .item {
    position: relative;
    min-height: 480px;
    overflow: hidden;
}

.ct-index .ct-hero-slider .item > .item {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ct-index .ct-hero-slider .item > .item img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.ct-index .owl-box-overlay {
    position: absolute;
    z-index: 3;
    left: 0 !important;
    right: 0 !important;
    top: 50%;
    transform: translateY(-50%);
    margin-left: auto;
    margin-right: auto;
    width: min(92%, 640px);
    text-align: center;
    color: #fff;
    padding: 16px 20px;
    background: rgba(5, 18, 45, 0.38);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.ct-index .owl-box-overlay .column {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.ct-index .owl-box-overlay h1,
.ct-index .owl-box-overlay h2 {
    font-size: clamp(1.35rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 14px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.ct-index .owl-box-overlay p {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    line-height: 1.65;
    opacity: 0.92;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ct-index .owl-box-overlay .ct-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--ct-gold);
    color: var(--ct-navy);
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(254, 210, 0, 0.35);
    transition: transform 0.2s;
    font-size: 0.95rem;
}

.ct-index .owl-box-overlay .ct-btn:hover {
    transform: translateY(-2px);
    color: var(--ct-navy);
}

.ct-index .carousel-item-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 18, 45, 0.92) 0%, rgba(5, 18, 45, 0.55) 50%, rgba(5, 18, 45, 0.25) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Owl v1 nav & dots — hero only */
.ct-index .ct-hero-slider .owl-controls {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    z-index: 4;
    margin: 0;
    pointer-events: none;
}

.ct-index .ct-hero-slider .owl-controls .owl-buttons {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin: 0;
    pointer-events: none;
}

.ct-index .ct-hero-slider .owl-controls .owl-buttons div,
.ct-index .ct-hero-slider .owl-prev,
.ct-index .ct-hero-slider .owl-next {
    pointer-events: auto;
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 1.25rem !important;
    margin: 0 12px !important;
    backdrop-filter: blur(4px);
    opacity: 1 !important;
    filter: none !important;
    padding: 0 !important;
    top: 50% !important;
    transform: translateY(-50%);
}

.ct-index .ct-hero-slider .owl-controls .owl-buttons div:hover,
.ct-index .ct-hero-slider .owl-prev:hover,
.ct-index .ct-hero-slider .owl-next:hover {
    background: rgba(254, 210, 0, 0.85) !important;
    color: var(--ct-navy) !important;
}

.ct-index .ct-hero-slider .owl-controls .owl-pagination {
    pointer-events: auto;
}

.ct-index .ct-hero-slider .owl-controls .owl-page span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.45) !important;
    opacity: 1 !important;
    filter: none !important;
}

.ct-index .ct-hero-slider .owl-controls .owl-page.active span,
.ct-index .ct-hero-slider .owl-controls .owl-page:hover span {
    background: var(--ct-gold) !important;
    width: 28px;
    border-radius: 999px;
    opacity: 1 !important;
}

body.page-index .pusher > br {
    display: none !important;
}

body.page-index .ct-slider-wrap {
    /*margin-top: 50.5px;*/
}

@media (min-width: 769px) {
    .ct-index .ct-hero-slider .owl-prev,
    .ct-index .ct-hero-slider .owl-next {
        display: block !important;
    }
}

/* ---- News strip ---- */
.ct-news {
    background: var(--ct-white);
    border-bottom: 1px solid #e2e8f0;
    padding: 28px 0;
}

.ct-news-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.ct-news-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ct-navy);
    margin: 0 0 6px;
}

.ct-news-title span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ct-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.ct-news-list {
    display: grid;
    gap: 0;
}

.ct-news-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.ct-news-item:last-child {
    border-bottom: none;
}

.ct-news-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ct-gold-dark);
    text-transform: uppercase;
}

.ct-news-item a {
    color: var(--ct-navy);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.45;
}

.ct-news-item a:hover {
    color: #2563eb;
}

.ct-news-more {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    color: var(--ct-navy);
    text-decoration: none;
    font-size: 0.9rem;
}

.ct-news-more:hover {
    color: #2563eb;
}

/* ---- Download / phone mockup ---- */
.ct-download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.ct-download-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--ct-navy);
    margin: 0 0 16px;
    line-height: 1.25;
}

.ct-download-text p {
    color: var(--ct-muted);
    line-height: 1.75;
    margin: 0 0 24px;
}

.ct-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ct-btn--gold {
    background: var(--ct-gold);
    color: var(--ct-navy);
    box-shadow: 0 6px 20px rgba(254, 210, 0, 0.35);
}

.ct-btn--navy {
    background: var(--ct-navy);
    color: #fff;
}

.ct-btn--outline {
    background: transparent;
    color: var(--ct-navy);
    border: 2px solid #cbd5e1;
}

.ct-btn:hover {
    transform: translateY(-2px);
}

.ct-phone-wrap {
    display: flex;
    justify-content: center;
}

.ct-phone {
    width: 280px;
    padding: 14px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 36px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), inset 0 0 0 2px #444;
    position: relative;
}

.ct-phone::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 22px;
    background: #111;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.ct-phone-screen {
    background: linear-gradient(180deg, #05122d 0%, #0a2848 100%);
    border-radius: 26px;
    padding: 48px 20px 28px;
    text-align: center;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ct-phone-screen img {
    width: 64px;
    margin-bottom: 12px;
}

.ct-phone-screen h3 {
    color: var(--ct-gold);
    font-size: 1.1rem;
    margin: 0 0 6px;
}

.ct-phone-screen p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0 0 24px;
    line-height: 1.5;
}

.ct-phone-screen .ct-btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
}

/* ---- Intro ---- */
.ct-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.ct-intro-grid h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--ct-navy);
    margin: 0 0 16px;
}

.ct-intro-grid p {
    color: var(--ct-muted);
    line-height: 1.8;
    margin: 0 0 14px;
}

.ct-steps {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    counter-reset: st;
}

.ct-steps li {
    position: relative;
    padding: 10px 0 10px 42px;
    counter-increment: st;
    color: var(--ct-text);
    font-weight: 500;
}

.ct-steps li::before {
    content: counter(st);
    position: absolute;
    left: 0;
    top: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ct-gold);
    color: var(--ct-navy);
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-intro-img {
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow);
    width: 100%;
    height: auto;
}

/* ---- Modules / programs ---- */
.ct-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.ct-module {
    background: var(--ct-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--ct-radius);
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ct-module:hover {
    border-color: var(--ct-gold);
    box-shadow: var(--ct-shadow);
    transform: translateY(-4px);
}

.ct-module img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 14px;
}

.ct-module h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--ct-navy);
}

.ct-module span {
    font-size: 0.82rem;
    color: var(--ct-muted);
}

/* ---- Brands (CSS only) ---- */
.ct-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.ct-brand {
    padding: 20px 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: #fff;
    transition: transform 0.2s;
}

.ct-brand:hover {
    transform: scale(1.04);
}

.ct-brand--samsung { background: linear-gradient(135deg, #1428a0, #0b1d6e); }
.ct-brand--xiaomi { background: linear-gradient(135deg, #ff6900, #e85d00); }
.ct-brand--huawei { background: linear-gradient(135deg, #cf0a2c, #9e0822); }
.ct-brand--oppo { background: linear-gradient(135deg, #1a8a4a, #0f6b38); }
.ct-brand--vivo { background: linear-gradient(135deg, #415fff, #2b3fc7); }
.ct-brand--motorola { background: linear-gradient(135deg, #5c92fa, #3a6fd4); }
.ct-brand--lg { background: linear-gradient(135deg, #a50034, #7a0027); }
.ct-brand--nokia { background: linear-gradient(135deg, #124191, #0c2d66); }
.ct-brand--zte { background: linear-gradient(135deg, #0082ca, #006299); }
.ct-brand--lenovo { background: linear-gradient(135deg, #e2231a, #b81c14); }
.ct-brand--realme { background: linear-gradient(135deg, #ffc915, #e6b400); color: #1a1a1a; }
.ct-brand--oneplus { background: linear-gradient(135deg, #eb0028, #b8001f); }
.ct-brand--tecno { background: linear-gradient(135deg, #0066b3, #004d87); }

/* ---- Pricing ---- */
.ct-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.ct-price-card {
    background: var(--ct-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--ct-radius);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
}

.ct-price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ct-shadow);
}

.ct-price-card--featured {
    border: 2px solid var(--ct-gold);
    box-shadow: 0 12px 40px rgba(254, 210, 0, 0.2);
}

.ct-price-card--featured::before {
    content: "Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ct-gold);
    color: var(--ct-navy);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 999px;
    text-transform: uppercase;
}

.ct-price-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--ct-navy);
}

.ct-price-card .ct-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ct-navy);
    margin: 16px 0;
}

.ct-price-card .ct-price small {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ct-muted);
}

.ct-price-card .ct-btn {
    width: 100%;
    margin-top: 20px;
}

.ct-price-card--credit {
    background: linear-gradient(160deg, var(--ct-navy), #0a2a52);
    color: #fff;
    border: none;
}

.ct-price-card--credit h3,
.ct-price-card--credit .ct-price {
    color: #fff;
}

.ct-price-card--credit p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Features ---- */
.ct-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.ct-feature {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 22px 18px;
    transition: background 0.2s, border-color 0.2s;
}

.ct-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(254, 210, 0, 0.4);
}

.ct-feature-icon {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.ct-feature h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: #fff;
}

.ct-feature p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

/* RTL */
html[dir="rtl"] .ct-index .owl-box-overlay {
    left: 0 !important;
    right: 0 !important;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(-50%) !important;
}

@media (max-width: 768px) {
    html[dir="rtl"] .ct-index .owl-box-overlay {
        transform: none !important;
    }
}

html[dir="rtl"] .ct-steps li {
    padding: 10px 42px 10px 0;
}

html[dir="rtl"] .ct-steps li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .ct-news-item {
    grid-template-columns: 1fr 100px;
}

html[dir="rtl"] .ct-news-date {
    text-align: left;
}

@media (max-width: 900px) {
    .ct-news-grid,
    .ct-download-grid,
    .ct-intro-grid {
        grid-template-columns: 1fr;
    }

    .ct-phone-wrap {
        order: -1;
    }

    .ct-section {
        padding: 48px 0;
    }
}

@media (max-width: 768px) {
    .ct-index .pusher > br,
    .ct-index .desktop + br {
        display: none;
    }

    .ct-index .ct-hero-slider .item {
        min-height: 0;
        height: auto;
        display: block;
        background: var(--ct-navy);
        overflow: hidden;
    }

    .ct-index .ct-hero-slider .item > .item {
        position: relative;
        inset: auto;
        order: unset;
        height: auto;
        min-height: 0;
        max-height: none;
        display: block;
        line-height: 0;
    }

    .ct-index .ct-hero-slider .item > .item img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        object-fit: contain;
        object-position: center center;
        display: block;
    }

    .ct-index .carousel-item-background {
        display: block;
        background: linear-gradient(
            180deg,
            rgba(5, 18, 45, 0) 0%,
            rgba(5, 18, 45, 0.2) 65%,
            rgba(5, 18, 45, 0.5) 100%
        );
    }

    .ct-index .owl-box-overlay {
        position: absolute;
        order: unset;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 24px;
        transform: none !important;
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 20px);
        max-width: none;
        max-height: 46px;
        overflow: hidden;
        padding: 5px 8px !important;
        background: rgba(5, 18, 45, 0.55);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }

    .ct-index .owl-box-overlay .column {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .ct-index .owl-box-overlay h1,
    .ct-index .owl-box-overlay h2 {
        font-size: 0.72rem;
        margin: 0;
        line-height: 1.2;
        text-shadow: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1 1 auto;
        min-width: 0;
    }

    .ct-index .owl-box-overlay p {
        display: none !important;
    }

    .ct-index .owl-box-overlay .ct-btn {
        padding: 4px 9px;
        font-size: 0.62rem;
        width: auto;
        max-width: none;
        min-height: 0;
        flex-shrink: 0;
        white-space: nowrap;
        box-shadow: none;
        line-height: 1.2;
    }

    .ct-index .ct-hero-slider .owl-controls .owl-buttons,
    .ct-index .ct-hero-slider .owl-prev,
    .ct-index .ct-hero-slider .owl-next {
        display: none !important;
    }

    .ct-index .ct-hero-slider .owl-controls {
        position: absolute;
        bottom: 8px;
        left: 0;
        right: 0;
        padding: 0;
        background: transparent;
    }

    .ct-index .ct-hero-slider .owl-wrapper-outer {
        height: auto !important;
    }
}

@media (max-width: 576px) {
    .ct-index .owl-box-overlay {
        bottom: 22px;
        max-height: 42px;
        padding: 4px 7px !important;
    }

    .ct-index .owl-box-overlay h1,
    .ct-index .owl-box-overlay h2 {
        font-size: 0.68rem;
    }

    .ct-index .owl-box-overlay .ct-btn {
        padding: 3px 8px;
        font-size: 0.58rem;
    }
}
