/**
 * Tech Nival JO - Custom Styles (Matching Live Site)
 */

/* ============================================
   Variables - Matching Live Site Colors
   ============================================ */
:root {
    --primary-color: #316397;
    --secondary-color: #d24e1a;
    --dark-color: #14141c;
    --text-color: #777;
    --light-color: #ffffff;
    --footer-bg: #081225;
    --border-color: #e5e5e5;
    --bg-light: #f5f5f5;
}

/* ============================================
   Base Overrides
   ============================================ */
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    color: var(--dark-color);
    font-weight: 400;
    line-height: 1.2;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   Header - Industify Style
   ============================================ */
.industify_fn_header {
    position: relative;
    width: 100%;
    z-index: 999;
    background: var(--light-color);
    transition: all 0.3s ease;
}

.industify_fn_header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header_wrap {
    border-bottom: 1px solid var(--border-color);
}

.header_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    max-height: 80px;
    width: auto;
}

/* Navigation */
.nav_wrap {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.industify_fn_nav .nav_menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.industify_fn_nav .nav_menu > li {
    position: relative;
    margin: 0;
}

.industify_fn_nav .nav_menu > li > a {
    display: block;
    padding: 20px 15px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.industify_fn_nav .nav_menu > li > a:hover,
.industify_fn_nav .nav_menu > li.current-menu-item > a {
    color: var(--secondary-color);
}

/* Language Switcher */
.lang_switcher {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.lang_switcher .lang_link {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: var(--primary-color);
    color: var(--light-color);
    font-size: 13px;
    font-weight: 500;
    border-radius: 3px;
    transition: background 0.3s;
}

.lang_switcher .lang_link:hover {
    background: var(--secondary-color);
    color: var(--light-color);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 15px;
}

.hamburger-box {
    width: 30px;
    height: 20px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    position: absolute;
    transition: transform 0.3s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    content: '';
    top: -8px;
}

.hamburger-inner::after {
    content: '';
    bottom: -8px;
}

/* ============================================
   Mobile Navigation
   ============================================ */
.industify_fn_mobile_nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light-color);
    z-index: 9999;
    overflow-y: auto;
}

.industify_fn_mobile_nav.active {
    display: block;
}

.mob_nav_inner {
    padding: 80px 30px 30px;
}

.mob_nav_inner .nav_menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mob_nav_inner .nav_menu li {
    border-bottom: 1px solid var(--border-color);
}

.mob_nav_inner .nav_menu a {
    display: block;
    padding: 15px 0;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    color: var(--dark-color);
    text-transform: uppercase;
}

.mob_lang_switcher {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.mob_lang_switcher a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 3px;
}

/* ============================================
   Hero Section - Slider Style
   ============================================ */
.hero_section {
    position: relative;
    background: var(--primary-color);
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(49, 99, 151, 0.85) 0%, rgba(8, 18, 37, 0.85) 100%);
    z-index: 1;
}

.hero_section .container {
    position: relative;
    z-index: 2;
}

.hero_content {
    max-width: 700px;
    padding: 60px 0;
}

.hero_content h1 {
    font-size: 48px;
    font-weight: 500;
    color: var(--light-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero_content p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero_btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--light-color);
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    transition: all 0.3s;
}

.hero_btn:hover {
    background: var(--light-color);
    color: var(--secondary-color);
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 80px 0;
}

.section_dark {
    background: var(--footer-bg);
    color: var(--light-color);
}

.section_gray {
    background: var(--bg-light);
}

.section_header {
    text-align: center;
    margin-bottom: 50px;
}

.section_header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section_header p {
    font-size: 16px;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Service Boxes - Industify Style
   ============================================ */
.fn_cs_services_classic {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.fn_cs_service_item {
    width: 33.333%;
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.fn_cs_service_box {
    background: var(--light-color);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.fn_cs_service_box:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.fn_cs_service_box .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fn_cs_service_box .icon svg,
.fn_cs_service_box .icon img {
    width: 40px;
    height: 40px;
    fill: var(--light-color);
    color: var(--light-color);
}

.fn_cs_service_box .icon i {
    font-size: 40px;
    color: var(--light-color);
}

.fn_cs_service_box h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.fn_cs_service_box h3 a {
    color: var(--dark-color);
}

.fn_cs_service_box h3 a:hover {
    color: var(--secondary-color);
}

.fn_cs_service_box p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.fn_cs_service_box .read_more {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
}

/* ============================================
   About/Content Sections
   ============================================ */
.fn_cs_about {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 -30px;
}

.fn_cs_about_img,
.fn_cs_about_content {
    width: 50%;
    padding: 0 30px;
    box-sizing: border-box;
}

.fn_cs_about_img img {
    width: 100%;
    height: auto;
    display: block;
}

.fn_cs_about_content h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.fn_cs_about_content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.fn_cs_about_content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.fn_cs_about_content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 15px;
}

.fn_cs_about_content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ============================================
   Gallery - 4 Column Grid (Centered)
   ============================================ */
.gallery_grid_section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.fn_cs_gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
}

.fn_cs_gallery .gallery_item {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.fn_cs_gallery .gallery_item a {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.fn_cs_gallery .gallery_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.fn_cs_gallery .gallery_item a:hover img {
    transform: scale(1.1);
}

.fn_cs_gallery .gallery_item a::after {
    content: none;
}

/* ============================================
   Page Header/Title
   ============================================ */
.fn_cs_page_title {
    background: var(--primary-color);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
}

.fn_cs_page_title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(49, 99, 151, 0.95) 0%, rgba(8, 18, 37, 0.9) 100%);
}

.fn_cs_page_title .container {
    position: relative;
    z-index: 1;
}

.fn_cs_page_title h1 {
    font-size: 42px;
    color: var(--light-color);
    margin-bottom: 15px;
}

.fn_cs_page_title .breadcrumbs {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.fn_cs_page_title .breadcrumbs a {
    color: rgba(255,255,255,0.9);
}

.fn_cs_page_title .breadcrumbs a:hover {
    color: var(--secondary-color);
}

/* ============================================
   Contact Section
   ============================================ */
.fn_cs_contact_wrap {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -30px;
}

.fn_cs_contact_info,
.fn_cs_contact_form {
    width: 50%;
    padding: 0 30px;
    box-sizing: border-box;
}

.fn_cs_contact_info h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.fn_cs_contact_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fn_cs_contact_list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.fn_cs_contact_list .icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.fn_cs_contact_list .icon svg {
    width: 20px;
    height: 20px;
    fill: var(--light-color);
    color: var(--light-color);
}

.fn_cs_contact_list .text {
    flex: 1;
}

.fn_cs_contact_list .text span {
    display: block;
}

.fn_cs_contact_list .text strong {
    display: block;
    font-size: 16px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.fn_cs_contact_list .text span,
.fn_cs_contact_list .text a {
    font-size: 14px;
    color: var(--text-color);
}

/* Contact Form */
.fn_cs_contact_form_inner {
    background: var(--bg-light);
    padding: 40px;
}

.fn_cs_contact_form_inner h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.form_group {
    margin-bottom: 20px;
}

.form_group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 14px;
}

.form_group input,
.form_group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background: var(--light-color);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form_group input:focus,
.form_group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form_group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit_btn {
    background: var(--secondary-color);
    color: var(--light-color);
    border: none;
    padding: 15px 40px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit_btn:hover {
    background: var(--primary-color);
}

/* ============================================
   Footer - Industify Style
   ============================================ */
.industify_fn_footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.7);
}

.footer_top {
    padding: 70px 0 40px;
}

.footer_widgets {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.footer_widget {
    width: 33.333%;
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.footer_widget .widget_title {
    font-size: 18px;
    color: var(--light-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.footer_widget p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer_logo {
    margin-bottom: 20px;
}

.footer_logo img {
    max-height: 60px;
}

.footer_menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_menu li {
    margin-bottom: 12px;
}

.footer_menu a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.3s;
}

.footer_menu a:hover {
    color: var(--secondary-color);
}

.footer_bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
}

.footer_bottom p {
    margin: 0;
    font-size: 14px;
}

.footer_bottom a {
    color: var(--secondary-color);
}

/* ============================================
   To Top Button
   ============================================ */
.industify_fn_totop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    cursor: pointer;
}

.industify_fn_totop.visible {
    opacity: 1;
    visibility: visible;
}

.industify_fn_totop:hover {
    background: var(--primary-color);
}

/* ============================================
   RTL Support
   ============================================ */
html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .header_inner {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav_wrap {
    justify-content: flex-start;
}

html[dir="rtl"] .industify_fn_nav .nav_menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang_switcher {
    margin-left: 0;
    margin-right: 20px;
}

html[dir="rtl"] .hero_content {
    text-align: right;
}

html[dir="rtl"] .fn_cs_about {
    flex-direction: row-reverse;
}

html[dir="rtl"] .fn_cs_about_content ul li {
    padding-left: 0;
    padding-right: 25px;
}

html[dir="rtl"] .fn_cs_about_content ul li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .fn_cs_contact_list .icon {
    margin-right: 0;
    margin-left: 20px;
}

html[dir="rtl"] .fn_cs_contact_wrap {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer_widgets {
    flex-direction: row-reverse;
}

html[dir="rtl"] .industify_fn_totop {
    right: auto;
    left: 30px;
}

html[dir="rtl"] .fn_cs_page_title .breadcrumbs {
    direction: rtl;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1040px) {
    .nav_wrap {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .fn_cs_service_item {
        width: 50%;
    }

    .fn_cs_gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .fn_cs_about_img,
    .fn_cs_about_content,
    .fn_cs_contact_info,
    .fn_cs_contact_form {
        width: 100%;
        margin-bottom: 30px;
    }

    .fn_cs_service_item {
        width: 100%;
    }

    .fn_cs_gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer_widget {
        width: 100%;
    }

    .hero_content h1 {
        font-size: 32px;
    }

    .fn_cs_page_title h1 {
        font-size: 32px;
    }

    html[dir="rtl"] .fn_cs_about {
        flex-direction: column;
    }

    html[dir="rtl"] .fn_cs_contact_wrap {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .fn_cs_gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero_content h1 {
        font-size: 26px;
    }
}

/* ============================================
   Reading Progress Bar
   ============================================ */
.industify_fn_reading_progress_bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--secondary-color);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ============================================
   Service Detail Page
   ============================================ */
.fn_cs_service_single {
    padding: 80px 0;
}

.fn_cs_service_single .service_content {
    max-width: 900px;
    margin: 0 auto;
}

.fn_cs_service_single .service_img {
    margin-bottom: 40px;
}

.fn_cs_service_single .service_img img {
    width: 100%;
    height: auto;
}

.fn_cs_service_single h2 {
    font-size: 28px;
    margin: 40px 0 20px;
}

.fn_cs_service_single p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.fn_cs_service_single ul {
    margin: 0 0 30px 20px;
}

.fn_cs_service_single ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* CTA Box */
.fn_cs_cta_box {
    background: var(--bg-light);
    padding: 40px;
    text-align: center;
    margin-top: 40px;
}

.fn_cs_cta_box h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.fn_cs_cta_box p {
    margin-bottom: 20px;
}

/* ============================================
   Hero Slider - Matching Live Site (Full Width)
   ============================================ */
.hero_slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

/* Ensure slider breaks out of any container */
.industify_fn_wrapper > .hero_slider {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.slider_container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(49, 99, 151, 0.85) 0%, rgba(8, 18, 37, 0.85) 100%);
}

.slide_content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-color);
    width: 90%;
    max-width: 800px;
    z-index: 2;
}

.slide_content h2 {
    font-size: 48px;
    font-weight: 600;
    color: var(--light-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.slide_content h3 {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.5;
}

.slide_btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--light-color);
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    transition: all 0.3s;
}

.slide_btn:hover {
    background: var(--light-color);
    color: var(--secondary-color);
}

.slider_arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.slider_arrows button {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    pointer-events: auto;
    color: var(--light-color);
}

.slider_arrows button:hover {
    background: var(--secondary-color);
}

.slider_arrows button svg {
    width: 24px;
    height: 24px;
}

.slider_dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider_dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.slider_dots .dot.active,
.slider_dots .dot:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* ============================================
   Flip Boxes - Matching Live Site HT Mega Style
   ============================================ */
.flip_boxes {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.flip_box {
    width: 33.333%;
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.flip_box_inner {
    position: relative;
    width: 100%;
    height: 350px;
    perspective: 1000px;
}

.flip_box_front,
.flip_box_back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.6s;
    border-radius: 5px;
}

.flip_box_front {
    background: var(--light-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.flip_box_front img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.flip_box_front h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.4;
}

.flip_box_back {
    background: var(--primary-color);
    transform: rotateY(180deg);
}

.flip_box_back h3 {
    font-size: 18px;
    color: var(--light-color);
    margin-bottom: 15px;
}

.flip_box_back p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.flip_box:hover .flip_box_front {
    transform: rotateY(-180deg);
}

.flip_box:hover .flip_box_back {
    transform: rotateY(0deg);
}

/* ============================================
   Accreditation Banner
   ============================================ */
.accreditation_banner {
    background: var(--primary-color);
    padding: 40px 0;
    text-align: center;
}

.accreditation_banner p {
    color: var(--light-color);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* ============================================
   Calibration Intro
   ============================================ */
.calibration_intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.calibration_intro p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-color);
}

/* ============================================
   Blockquote Grid - Why Calibration
   ============================================ */
.blockquote_grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.blockquote_grid_2 {
    justify-content: center;
}

.blockquote_item {
    width: 33.333%;
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.blockquote_grid_2 .blockquote_item {
    width: 40%;
}

.blockquote_item blockquote {
    background: var(--light-color);
    padding: 30px;
    margin: 0;
    position: relative;
    height: 100%;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border-left: 4px solid var(--secondary-color);
}

.blockquote_item blockquote p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark-color);
    margin: 0 0 15px 0;
    font-style: italic;
}

.blockquote_item .quote_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    color: var(--light-color);
}

.blockquote_item .quote_icon i {
    font-size: 16px;
}

/* ============================================
   Map Section
   ============================================ */
.map_section {
    width: 100%;
    line-height: 0;
}

.map_section iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ============================================
   Section Title - Matching Live Site
   ============================================ */
.section_title {
    font-size: 32px;
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.section_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* ============================================
   RTL Support for New Components
   ============================================ */
html[dir="rtl"] .slide_content {
    text-align: center;
}

html[dir="rtl"] .slider_arrows {
    flex-direction: row-reverse;
}

html[dir="rtl"] .slider_prev svg,
html[dir="rtl"] .slider_next svg {
    transform: rotate(180deg);
}

html[dir="rtl"] .blockquote_item blockquote {
    border-left: none;
    border-right: 4px solid var(--secondary-color);
}

html[dir="rtl"] .flip_boxes,
html[dir="rtl"] .blockquote_grid {
    flex-direction: row-reverse;
}

/* ============================================
   Responsive for New Components
   ============================================ */
@media (max-width: 1040px) {
    .hero_slider {
        height: 500px;
    }

    .slide_content h2 {
        font-size: 36px;
    }

    .flip_box {
        width: 50%;
    }

    .blockquote_item {
        width: 50%;
    }

    .blockquote_grid_2 .blockquote_item {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .hero_slider {
        height: 450px;
    }

    .slide_content h2 {
        font-size: 28px;
    }

    .slide_content h3 {
        font-size: 16px;
    }

    .flip_box {
        width: 100%;
    }

    .flip_box_inner {
        height: 300px;
    }

    .blockquote_item,
    .blockquote_grid_2 .blockquote_item {
        width: 100%;
    }

    .slider_arrows button {
        width: 40px;
        height: 40px;
    }

    .slider_arrows button svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .hero_slider {
        height: 400px;
    }

    .slide_content h2 {
        font-size: 24px;
    }

    .slide_btn {
        padding: 12px 25px;
        font-size: 13px;
    }
}
