/* ================================================
   HOME.CSS — Homepage-specific styles
   ================================================ */

/* ------------------------------------------------
   1. JSSOR SLIDER
   ------------------------------------------------ */
#jssor_1 .slider_head { font-size: 34px; font-family: 'Open Sans', sans-serif; }
#jssor_1 .slider-sub-head { font-size: 25px; font-family: 'Open Sans', sans-serif; }
/* Override site.css global img reset — Jssor needs full control */
#jssor_1 img { max-width: none !important; display: inline !important; }
#jssor_1 [data-u="slides"] img { width: 100%; height: 100%; }
.jssorb05{position:absolute}.jssorb05 div,.jssorb05 div:hover,.jssorb05 .av{position:absolute;width:16px;height:16px;background:url('../images/b05.png') no-repeat;overflow:hidden;cursor:pointer}.jssorb05 div{background-position:-7px -7px}.jssorb05 div:hover,.jssorb05 .av:hover{background-position:-37px -7px}.jssorb05 .av{background-position:-67px -7px}.jssorb05 .dn,.jssorb05 .dn:hover{background-position:-97px -7px}.jssora22l,.jssora22r{display:block;position:absolute;width:40px;height:58px;cursor:pointer;background:url('../images/a22.png') center center no-repeat;overflow:hidden}.jssora22l{background-position:-10px -31px}.jssora22r{background-position:-70px -31px}.jssora22l:hover{background-position:-130px -31px}.jssora22r:hover{background-position:-190px -31px}
@media (max-width: 768px) {
    #jssor_1 .slider_head { font-size: 60px; }
    #jssor_1 .slider-sub-head { display: none; }
}

/* ------------------------------------------------
   2. WHY CLIENTS LOVE US
   ------------------------------------------------ */
.why_client { margin-top: 70px; margin-bottom: 70px; max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 15px; }
.why_client h2 { margin-left: 0; color: #d1472b; font-family: 'Open Sans', sans-serif; }
.why_client h3 { color: #d1472b; padding-left: 15px; }
.why_client p { font-family: 'Open Sans', sans-serif; font-size: 1.3em; color: #484747; }
.why_client .all_client { font-size: 21px; text-decoration: underline; }
.why_client .all_client a { color: #925cd8; text-decoration: none; }
.clients { display: flex; align-items: center; flex-wrap: wrap; }
.clients > div:first-child { flex: 1 1 60%; }
#line { flex: 0 0 auto; padding: 0 15px; }
#contact { flex: 0 0 auto; }
#contact h3 { font-family: 'Open Sans', sans-serif; color: #3d3635; margin-top: 27px; }
#contact h2 { margin-left: 0; }
#slideshow_para { position: relative; min-height: 80px; overflow: hidden; }
#slideshow_para > p { position: absolute; width: 100%; opacity: 0; transition: opacity 1.5s ease; }
#slideshow_para > p.active { opacity: 1; }
@media (max-width: 768px) {
    .why_client { margin-top: 35px; margin-bottom: 35px; }
    .why_client h2 { font-size: 20px; }
    .why_client p { font-size: 14px; }
    #contact, #line { display: none; }
}

/* ------------------------------------------------
   3. CLIENT LOGO CAROUSEL
   ------------------------------------------------ */
.client { max-width: 1600px; margin: 0 auto; padding: 0 20px; }
.logo-carousel { position: relative; overflow: hidden; padding: 15px 0; }
.logo-track { display: flex; width: calc(200%); }
.logo-item { flex: 0 0 clamp(80px, 6%, 120px); margin: 0 3px; display: flex; align-items: center; justify-content: center; padding: 8px; transition: all 0.3s ease; cursor: pointer; }
.logo-item:hover { transform: translateY(-2px); }
.logo-item img { max-width: 100%; max-height: 40px; object-fit: contain; opacity: 0.9; transition: all 0.3s ease; }
.logo-item:hover img { opacity: 1; transform: scale(1.05); }
@media (max-width: 768px) { .logo-item { flex: 0 0 clamp(80px, 4%, 120px); } }
@media (max-width: 480px) { .logo-item { flex: 0 0 clamp(60px, 2%, 100px); } .logo-item img { max-height: 30px; } }

/* ------------------------------------------------
   4. POPULAR PRODUCTS — Carousel with Arrows
   PC: 3 visible | Tablet: 2 visible | Mobile: 1 visible
   ------------------------------------------------ */

.pp-container {
    max-width: 1100px; margin: 0 auto; position: relative; padding: 0 50px;
}

.popular-products {
    background: #333; background-image: url('../homepage_images/GRY.png');
    background-size: cover; background-repeat: no-repeat;
    padding: 10px 0 80px; margin-top: 70px; margin-bottom: 30px;
    position: relative;
}
.popular-products h2 {
    padding: 40px 0; font-family: 'Open Sans', sans-serif;
    font-size: clamp(20px, 3.2vw, 30px); color: #fda547; text-align: center; margin: 0;
}
.products-viewport {
    overflow: hidden;
}
.products-track {
    display: flex; gap: 20px; transition: transform 0.4s ease;
}
.product-card {
    flex: 0 0 calc((100% - 40px) / 3); min-width: 0;
}
.product-card h3 {
    color: white; font-family: 'Open Sans', sans-serif; font-size: 20px;
    background: #253654; opacity: 0.7; padding: 10px 0 15px;
    margin: 0; text-align: center;
}
.product-card-photo {
    text-align: center; height: 150px; background: rgba(10, 65, 158, 0.31);
    display: flex; align-items: center; justify-content: center;
}
.product-card-photo img { height: 100%; max-width: 100%; object-fit: contain; }
.product-card-info {
    background: #253654; opacity: 0.7; padding: 15px; min-height: 120px;
}
.product-card-info p {
    font-size: 15px; font-family: 'Open Sans', sans-serif;
    text-align: justify; color: white; margin: 0;
}

/* Arrows */
.products-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; background: rgba(255,255,255,0.15);
    border: 2px solid #fda547; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fda547; z-index: 2; transition: all 0.3s;
}
.products-arrow:hover { background: #fda547; color: #333; }
.products-arrow--left { left: 5px; }
.products-arrow--right { right: 5px; }

/* Dots */
.products-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.products-dots button {
    width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fda547;
    background: transparent; cursor: pointer; padding: 0; transition: background 0.3s;
}
.products-dots button.active { background: #fda547; }

/* Responsive */
@media (max-width: 1024px) {
    .product-card { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
    .product-card { flex: 0 0 100%; }
    .products-viewport { padding: 0; }
    .pp-container { padding: 0 40px; }
    .product-card-info { min-height: auto; }
}

/* ------------------------------------------------
   5. CHOOSE YOUR TELEPROMPTER — grouped (desktop) / scroller (tablet+mobile)
   ------------------------------------------------ */
.model h3 {
    color: #f89f3f; text-align: center; font-size: clamp(20px, 3.2vw, 30px);
    font-family: 'Open Sans', sans-serif; margin-bottom: 20px; margin-top: 55px;
}

/* Shared card look (mostly used on mobile scroller; kept minimal on desktop) */
.prompter-card { text-align: center; }
.prompter-card a { display: flex; flex-direction: column; align-items: center; height: 100%; text-decoration: none; }
.prompter-card img { width: 100%; height: 110px; object-fit: contain; margin: 0 auto 12px; display: block; }
.prompter-card p {
    color: var(--group-color, #0070c0); font-family: 'Open Sans', sans-serif;
    font-size: 14px; font-weight: 400; margin: 0;
    min-height: 36px; display: flex; align-items: center; justify-content: center;
}

/* ---------- DESKTOP ≥992px: grouped rows with colored line + label ---------- */
@media (min-width: 992px) {
    .prompter-groups {
        display: flex; justify-content: center; align-items: flex-start;
        flex-wrap: nowrap;
        gap: 34px;
        max-width: 1300px; margin: 0 auto; padding: 20px 30px 50px;
    }
    .prompter-group {
        display: flex; flex-wrap: wrap; justify-content: center;
        gap: 18px;
        padding-bottom: 14px;
        border-bottom: 3px solid var(--group-color);
    }
    .prompter-group .prompter-card { flex: 0 0 118px; background: none; box-shadow: none; padding: 0; }
    .prompter-group .prompter-card img { height: 96px; }
    .prompter-group .group-label {
        flex: 0 0 100%; order: 99;           /* label drops below the line */
        text-align: center; margin-top: 12px;
        font-family: 'Open Sans', sans-serif; font-size: 18px; font-weight: 400;
        color: var(--group-color);
    }
}
@media (min-width: 992px) and (max-width: 1150px) {
    .prompter-groups { gap: 22px; }
    .prompter-group { gap: 12px; }
    .prompter-group .prompter-card { flex: 0 0 104px; }
    .prompter-group .prompter-card img { height: 84px; }
    .prompter-group .group-label { font-size: 16px; }
}

/* ---------- TABLET + MOBILE <992px: one horizontal name-only scroller ---------- */
@media (max-width: 991px) {
    .prompter-groups {
        display: flex; flex-wrap: nowrap;
        overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
        gap: 20px; padding: 20px 30px 40px; max-width: 1400px; margin: 0 auto;
    }
    .prompter-groups::-webkit-scrollbar { display: none; }
    /* each group becomes a plain inline segment of cards — its own borders/labels off.
       Groups no longer size themselves, so the cards inside set the scroll width. */
    .prompter-group {
        display: flex; flex: 0 0 auto; flex-wrap: nowrap;
        gap: 20px; padding: 0; border: none;
    }
    .group-label { display: none; }          /* line + label hidden on small screens */
    .prompter-card {
        flex: 0 0 170px; scroll-snap-align: start;
        background: #fff; border-radius: 12px; padding: 20px 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s;
        display: flex; flex-direction: column; min-height: 230px;
    }
    .prompter-card:hover { transform: translateY(-8px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
}
@media (max-width: 600px) {
    .prompter-card { flex: 0 0 150px; }
}

/* ------------------------------------------------
   6. TELEPROMPTER HIGHLIGHTS
   ------------------------------------------------ */
.highlights {
    background-image: url('../homepage_images/tele2.png'); background-repeat: no-repeat;
    background-attachment: fixed; background-position: center; background-size: cover;
    padding: 60px 0;
}
.highlights h3 {
    color: #ffb461; text-align: center; font-size: clamp(20px, 3.2vw, 30px);
    font-family: 'Open Sans', sans-serif; margin-bottom: 40px;
}
.highlights-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
/* Flow to a single column only when two columns can't fit comfortably —
   smooth transition instead of a hard snap at one fixed breakpoint. */
@media (max-width: 640px) {
    .highlights-grid { grid-template-columns: 1fr; }
}
.highlight-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 15px;
    cursor: pointer; transition: background 0.3s; border-radius: 8px;
}
.highlight-item:hover { background: rgba(255,255,255,0.08); }
.highlight-item img,
.highlight-item .fa { width: 36px; height: 36px; flex-shrink: 0; margin-top: 2px; text-align: center; line-height: 36px; }
.highlight-item .hl-text { color: #dff0d8; font-family: 'Open Sans', sans-serif; font-size: 17px; font-weight: 600; }
.highlight-item .hl-desc { color: #bbb; font-size: 13px; margin-top: 4px; font-family: 'Open Sans', sans-serif; line-height: 1.5; }

.video-modal {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); z-index: 9999;
    justify-content: center; align-items: center;
}
.video-modal.active { display: flex; }
.video-modal-content {
    background: #222; border-radius: 12px; width: 90%; max-width: 800px;
    overflow: hidden; position: relative;
}
.video-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; border-bottom: 1px solid #444;
}
.video-modal-header h3 { color: #aaa; font-size: 18px; margin: 0; flex: 1; text-align: center; }
.video-modal-close { background: none; border: none; color: white; font-size: 28px; cursor: pointer; }
.video-modal-body { padding: 20px; }
.video-modal-body video { width: 100%; border-radius: 8px; }

@media (max-width: 768px) {
    .highlights { background-attachment: scroll; }  /* 'fixed' misbehaves on small/mobile — jumpy resize */
}

/* ------------------------------------------------
   7. CONTACT FORM
   ------------------------------------------------ */
.contact-section {
    font-family: 'Open Sans', sans-serif; line-height: 1.6; color: #2d3748;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%); padding: 60px 20px;
}
.contact-section .container {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
    align-items: start; background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px); border-radius: 20px; padding: 40px;
}
.contact-section .form-title { font-size: 1.8rem; font-weight: 700; color: #2d3748; margin-bottom: 15px; }
.contact-section .form-subtitle { color: #718096; font-size: 0.95rem; margin-bottom: 20px; }
.contact-section .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.contact-section .form-input {
    width: 100%; padding: 10px 15px; border: 2px solid #e2e8f0; border-radius: 10px;
    font-size: 15px; background: #f7fafc; color: #2d3748; font-family: inherit; transition: all 0.3s;
    box-sizing: border-box;
}
.contact-section .form-input:focus { outline: none; border-color: #4299e1; background: white; }
.contact-section .message-input { min-height: 100px; resize: vertical; }
.contact-section .submit-btn {
    width: 100%; padding: 14px; background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white; border: none; border-radius: 10px; font-size: 15px; font-weight: 600;
    cursor: pointer; text-transform: uppercase; transition: all 0.3s;
}
.contact-section .submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.contact-section .alert { padding: 12px; margin-bottom: 15px; border-radius: 8px; }
.contact-section .alert-success { background: #c6f6d5; border: 1px solid #9ae6b4; color: #22543d; }
.contact-section .alert-error { background: #fed7d7; border: 1px solid #feb2b2; color: #c53030; }

/* Right column */
.contact-section .main-heading { font-size: 2rem; font-weight: 800; color: #2d3748; margin-bottom: 15px; }
.contact-section .description { font-size: 0.95rem; color: #718096; margin-bottom: 20px; line-height: 1.6; }
.contact-section .contact-item {
    display: flex; align-items: center; margin-bottom: 12px; padding: 15px;
    background: rgba(255,255,255,0.7); border-radius: 12px; border: 1px solid rgba(0,0,0,0.05);
}
.contact-section .contact-icon {
    width: 50px; height: 50px; min-width: 50px; background: linear-gradient(135deg, #4299e1, #3182ce);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-right: 15px;
}
.contact-section .contact-icon svg { width: 22px; height: 22px; fill: white; }
.contact-section .contact-details { overflow: hidden; }
.contact-section .contact-details h3 { font-size: 11px; color: #718096; margin: 0 0 3px; text-transform: uppercase; letter-spacing: 1px; }
.contact-section .contact-details p {
    font-size: 1rem; font-weight: 600; color: #2d3748; margin: 0;
    overflow-wrap: break-word; word-break: break-all;
}
.contact-section .stats-container { margin-top: 15px; padding: 15px; background: rgba(255,255,255,0.5); border-radius: 12px; }
.contact-section .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-section .stat-number { font-size: 1.8rem; font-weight: 800; color: #4299e1; display: block; }
.contact-section .stat-label { font-size: 0.75rem; color: #718096; text-transform: uppercase; letter-spacing: 1px; }

/* Tablet */
@media (max-width: 1024px) {
    .contact-section .container { grid-template-columns: 1fr; gap: 30px; padding: 30px; }
}
/* Mobile */
@media (max-width: 768px) {
    .contact-section { padding: 30px 10px; }
    .contact-section .container { padding: 25px 15px; border-radius: 12px; }
    .contact-section .form-row { grid-template-columns: 1fr; }
    .contact-section .form-title { font-size: 1.4rem; text-align: center; }
    .contact-section .main-heading { font-size: 1.5rem; text-align: center; }
    .contact-section .description { text-align: center; font-size: 0.9rem; }
    .contact-section .contact-item { flex-direction: column; text-align: center; }
    .contact-section .contact-icon { margin-right: 0; margin-bottom: 8px; }
    .contact-section .contact-details p { word-break: break-all; }
    .contact-section .stat-number { font-size: 1.5rem; }
}

/* ------------------------------------------------
   8. WHATSAPP + GLOBAL
   ------------------------------------------------ */
#Button {
    position: fixed; bottom: 95px; right: 28px; background-color: #25D366;
    border: none; border-radius: 50%; width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3); cursor: pointer; z-index: 1000;
}
body { margin: 0 !important; }
html { overflow-x: hidden; }
.container-fluid.footer { margin-top: 0 !important; }
.footer { margin-bottom: 0; padding-bottom: 20px; }