/* ==========================================================================
   DPFIT – content & polish overrides (loaded after style.css / responsive.css)
   Uses the template's existing classes; only fixes sizing for real photos,
   RTL details and the new sections (products on home, CTA, legal pages).
   ========================================================================== */

/* ---------- Hero photos ---------- */
.banner_section .banner_images > img {
    width: 100%;
    aspect-ratio: 890 / 550;
    object-fit: cover;
}
.banner_section .banner_images .sub_images img {
    object-fit: cover;
    border: 4px solid #fff;
}
.banner_section .banner_images .sub_images img:nth-child(1) { width: 151px; height: 158px; }
.banner_section .banner_images .sub_images img:nth-child(2) { width: 190px; height: 211px; }
.banner_section .banner_images .sub_images img:nth-child(3) { width: 350px; height: 188px; }
.banner_section .btn_group .dpfit_btn_outline {
    background: transparent;
    color: var(--main_purple, #6a49f2);
    border: 2px solid var(--main_purple, #6a49f2);
}
.banner_section .btn_group .dpfit_btn_outline:hover { color: #fff; background: var(--main_purple, #6a49f2); }

/* ---------- Services cards (round photo instead of icon) ---------- */
.service_list_section .service_list_inner .icons {
    width: 120px;
    height: 120px;
}
.service_list_section .service_list_inner .icons img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(106, 73, 242, .18);
    border: 4px solid #fff;
}
.service_list_section .service_list_inner .icons .dot_anim {
    background-color: var(--service-color, #6a49f2) !important;
}
.service_list_section .service_list_inner { gap: 24px; }
.service_list_section .service_list_inner .s_list_card {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    max-width: 365px;
    box-shadow: 0 6px 24px rgba(31, 42, 68, .06);
}
.service_list_section .service_list_inner .s_list_card .inner_text {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.service_list_section .service_list_inner .s_list_card .inner_text h3 { margin-top: 22px; }
.service_list_section .service_list_inner .s_list_card .inner_text .text_btn { margin-top: auto; }
.dpfit_more { margin-top: 40px; }

/* ---------- About images ---------- */
.about_us_section .about_block .abt_img_block img,
.about_us_page_section .about_block .abt_img_block img {
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(31, 42, 68, .12);
}
.about_us_section .about_block .abt_img_block .top_img img:first-child,
.about_us_page_section .about_block .abt_img_block .top_img img:first-child { height: 200px; }
.about_us_section .about_block .abt_img_block .top_img img:last-child,
.about_us_page_section .about_block .abt_img_block .top_img img:last-child { height: 270px; }
.about_us_section .about_block .abt_img_block .bottom_img img,
.about_us_page_section .about_block .abt_img_block .bottom_img img {
    width: 100%;
    max-width: 470px;
    aspect-ratio: 470 / 210;
}
.about_us_section .about_block .abt_img_block .bottom_img,
.about_us_page_section .about_block .abt_img_block .bottom_img { text-align: left; }
.about_us_section .section_title .btn_main { margin-top: 10px; }

/* ---------- Solution / why choose photos ---------- */
.solution_page_section .solution_image img,
.why_choose_section .solution_image img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 16px 40px rgba(31, 42, 68, .14);
}
.why_choose_section .why_choose_text ul { padding-right: 0; }

/* ---------- Products ---------- */
.latest_story .story_box { height: calc(100% - 30px); margin-bottom: 30px; display: flex; flex-direction: column; }
.latest_story .story_box .story_img img { aspect-ratio: 760 / 460; object-fit: cover; }
.latest_story .story_box .story_text { display: flex; flex-direction: column; flex: 1; }
.latest_story .story_box .story_text .text_btn { margin-top: auto; align-self: flex-start; }
.dpfit_products_home { padding-top: 40px; }

/* ---------- Technologies / clients logos ---------- */
.client_div { gap: 18px; }
.client_div img {
    width: calc((100% - 5 * 18px) / 6);
    height: auto;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(31, 42, 68, .07);
    transition: transform .2s;
}
.client_div img:hover { transform: translateY(-4px); }

/* ---------- CTA (about page) ---------- */
.dpfit_cta .free_inner {
    padding: 50px 60px;
    gap: 40px;
    flex-direction: row;
}
.dpfit_cta .free_inner .text { width: 55%; padding: 0; }
.dpfit_cta .free_inner .text .section_title { text-align: right; }
.dpfit_cta .free_inner .text ul li p i { margin-right: 0; margin-left: 6px; }
.dpfit_cta .free_inner .text .start_and_watch { gap: 14px; flex-wrap: wrap; }
.dpfit_cta .free_inner .side_img {
    position: static;
    width: 45%;
}
.dpfit_cta .free_inner .side_img img { width: 100%; aspect-ratio: 890 / 550; object-fit: cover; }
.dpfit_btn_light {
    background: #fff;
    color: var(--main_purple, #6a49f2);
    border-radius: 25px;
    padding: 9px 30px;
    font-weight: 600;
}
.dpfit_btn_light:hover { color: var(--main_purple, #6a49f2); opacity: .9; }

/* ---------- Legal pages ---------- */
.dpfit_legal_box {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 6px 24px rgba(31, 42, 68, .06);
    line-height: 2;
}
.dpfit_legal_box h3 { margin-top: 28px; font-size: 22px; color: var(--dark-purple, #32236f); }
.dpfit_legal_box ul { list-style: disc; padding-right: 24px; }
.dpfit_legal_box ul li { margin-bottom: 6px; }

/* ---------- Contact ---------- */
.contact_list_section .c_list_card .inner_text .text_btn { display: inline-block; }

/* ---------- WhatsApp floating button ---------- */
.dpfit_whatsapp {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .4);
}
.dpfit_whatsapp:hover { color: #fff; transform: scale(1.05); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .banner_section .banner_images .sub_images img:nth-child(3) { width: 260px; height: 140px; }
}
@media (max-width: 991px) {
    .client_div img { width: calc((100% - 3 * 18px) / 4); }
    .dpfit_cta .free_inner { flex-direction: column; padding: 40px 25px; }
    .dpfit_cta .free_inner .text,
    .dpfit_cta .free_inner .side_img { width: 100%; }
    .service_list_section .service_list_inner .s_list_card { max-width: none; }
}
@media (max-width: 767px) {
    .banner_section .banner_images .sub_images img:nth-child(1) { width: 90px; height: 94px; }
    .banner_section .banner_images .sub_images img:nth-child(2) { width: 100px; height: 111px; }
    .banner_section .banner_images .sub_images img:nth-child(3) { width: 150px; height: 81px; }
    .client_div { gap: 12px; }
    .client_div img { width: calc((100% - 12px) / 2); }
    .dpfit_legal_box { padding: 25px 18px; }
    .service_list_section .service_list_inner { flex-direction: column; align-items: center; }
    .service_list_section .service_list_inner .s_list_card { width: 100%; }
    .about_us_section .about_block .abt_img_block .top_img img:first-child,
    .about_us_page_section .about_block .abt_img_block .top_img img:first-child { width: 42%; height: auto; aspect-ratio: 1; }
    .about_us_section .about_block .abt_img_block .top_img img:last-child,
    .about_us_page_section .about_block .abt_img_block .top_img img:last-child { width: 52%; height: auto; aspect-ratio: 1; margin-left: 0; margin-right: 6%; }
}

/* contact map */
.dpfit_map_section{padding-top:20px}
.dpfit_map{border-radius:20px;overflow:hidden;box-shadow:0 10px 40px rgba(106,73,242,.12);line-height:0}
.dpfit_map iframe{width:100%;height:420px;border:0}
@media (max-width:767px){.dpfit_map iframe{height:300px}}

/* keep CTA labels on one line */
.latest_story .btn.text_btn, .need_section .need_action .btn { white-space: nowrap; }
@media (max-width:767px){ footer .top_footer { padding-top: 250px; } }
