/*
Theme Name: Drivon Child
Template: hello-elementor
Description: Child theme for Drivon tractor driving school
Version: 2.4
*/
/*
Theme Name: Drivon Child
Template: hello-elementor
Description: Child theme for Drivon tractor driving school
Version: 1.0
*/

/* Homepage refinements: tractor scale and RTL button arrows */
.why-choose-us {
    background-size: 35% !important;
}

html[dir="rtl"] .btn-default::before {
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
}

html[dir="rtl"] .btn-default:hover::before {
    transform: translateY(-50%) rotate(-135deg);
}


/* About page: expanded benefits and matching icons */
.about-benefits .why-choose-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.about-benefits .why-choose-item .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
}

.about-benefits .why-choose-item .icon-box i {
    color: var(--accent-color);
    font-size: 36px;
    line-height: 1;
}

.about-benefits .why-choose-item:last-child {
    margin-bottom: 0;
}


/* Homepage FAQ: compact spacing for extended list */
.home-faq-compact .faq-accordion .accordion-item {
    margin-bottom: 12px;
}

.home-faq-compact .faq-accordion .accordion-header .accordion-button,
.home-faq-compact .faq-accordion .accordion-header .accordion-button.collapsed {
    min-height: 0;
    padding: 14px 50px 14px 20px;
    font-size: 19px;
    line-height: 1.3;
}

.home-faq-compact .faq-accordion .accordion-item .accordion-button::after,
.home-faq-compact .faq-accordion .accordion-item .accordion-button.collapsed::after {
    right: auto;
    left: 20px;
    font-size: 18px;
}

.home-faq-compact .faq-accordion .accordion-item .accordion-body {
    padding: 12px 20px 16px;
}

.home-faq-compact .faq-accordion .accordion-item .accordion-body p {
    line-height: 1.65;
}


/* About page: stack mission and long vision content */
.page-template-page-about .about-mission-vision-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-template-page-about .about-mission-vision-stack .mission-vision-item {
    flex: 0 0 100%;
    width: 100%;
}

.page-template-page-about .about-page-vision p {
    margin-bottom: 14px;
}

.page-template-page-about .about-page-vision p:last-child {
    margin-bottom: 0;
}


/* Footer Hebrew text logo */
.footer-brand-text {
    display: inline-block;
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.footer-brand-text:hover,
.footer-brand-text:focus {
    color: #00a000;
}


/* About page values above the excellence section */
.page-template-page-about .about-values-intro {
    margin-bottom: 60px;
}

.page-template-page-about .about-values-intro .section-title {
    max-width: 900px;
    margin: 0 auto 30px;
}

.page-template-page-about .about-values-intro .section-title p {
    max-width: 820px;
    margin: 18px auto 0;
}

.page-template-page-about .about-values-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-template-page-about .about-values-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 16px 20px;
    background: #ffffff;
    color: #111111;
    font-size: 18px;
    font-weight: 700;
}

.page-template-page-about .about-values-list li i {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5a800;
    color: #ffffff;
    font-size: 13px;
}

@media (max-width: 991px) {
    .page-template-page-about .about-values-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .page-template-page-about .about-values-intro {
        margin-bottom: 40px;
    }

    .page-template-page-about .about-values-list {
        grid-template-columns: 1fr;
    }

    .page-template-page-about .about-values-list li {
        min-height: 58px;
        padding: 13px 16px;
        font-size: 16px;
    }
}


/* Inner-page header video and readable dark overlay */
body:not(.home) .page-header-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

body:not(.home) .page-header-section .inner-header-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

body:not(.home) .page-header-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.62);
    pointer-events: none;
}

body:not(.home) .page-header-section > .container {
    position: relative;
    z-index: 2;
}

/* Stable RTL breadcrumbs */
body:not(.home) .page-header-box nav {
    display: flex;
    justify-content: center;
}

body:not(.home) .page-header-box .breadcrumb {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    direction: rtl;
    margin: 0;
    padding: 0;
    list-style: none;
}

body:not(.home) .page-header-box .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    padding: 0 !important;
    color: #ffffff;
}

body:not(.home) .page-header-box .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    float: none !important;
    padding: 0 10px !important;
    color: rgba(255, 255, 255, 0.8);
}

body:not(.home) .page-header-box .breadcrumb-item a,
body:not(.home) .page-header-box h1 {
    color: #ffffff;
}


/* Single course pages: RTL sidebar arrows and Hebrew brand */
.single-service .page-single-category-list ul li a {
    padding-left: 46px;
    padding-right: 0;
}

.single-service .page-single-category-list ul li a::before {
    left: 0 !important;
    right: auto !important;
    transform: translateY(-50%) rotate(-135deg) !important;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.single-service .page-single-category-list ul li a:hover::before {
    transform: translateY(-50%) rotate(-180deg) !important;
}

.single-service .sidebar-cta-logo .course-sidebar-brand {
    display: inline-block;
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.single-service .sidebar-cta-logo .course-sidebar-brand:hover,
.single-service .sidebar-cta-logo .course-sidebar-brand:focus {
    color: #00a000;
}


/* Privacy consent fields in all site forms */
.privacy-consent-field label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #222222;
    font-size: 15px;
    line-height: 1.6;
    cursor: pointer;
}

.privacy-consent-field input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: #009b00;
    cursor: pointer;
}

.privacy-consent-field a {
    color: #008f00;
    font-weight: 700;
    text-decoration: underline;
}

.footer-privacy-consent {
    margin-top: 14px;
}

.footer-privacy-consent label {
    color: #ffffff;
    font-size: 14px;
}

.footer-privacy-consent a,
.footer-copyright-text a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-privacy-consent a:hover,
.footer-copyright-text a:hover {
    color: #00a000;
}

.footer-policy-separator {
    padding: 0 8px;
    opacity: 0.65;
}

/* Privacy policy page */
.privacy-policy-content {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 0;
    color: #333333;
    font-size: 18px;
    line-height: 1.85;
}

.privacy-policy-content h2 {
    margin: 38px 0 12px;
    color: #111111;
    font-size: 30px;
}

.privacy-policy-content ul {
    margin: 0 0 22px;
    padding-right: 24px;
}

.privacy-policy-content a {
    color: #008f00;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .privacy-policy-content {
        width: min(100% - 30px, 1100px);
        padding: 50px 0;
        font-size: 16px;
    }

    .privacy-policy-content h2 {
        font-size: 25px;
    }
}


/* About page opening checklist */
.home .about-intro-checklist {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}
.home .about-intro-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #111;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
}
.home .about-intro-checklist .about-checkmark {
    color: #009b00;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.25;
}
.home .about-us-footer.about-footer-no-experience {
    display: block;
}
.home .about-us-footer.about-footer-no-experience .about-us-footer-content {
    width: 100%;
    max-width: none;
}
@media (max-width: 767px) {
    .home .about-intro-checklist li {
        font-size: 18px;
    }
}



/* Codex: refine homepage CTA checklist spacing */
.home .hero-cta-contetnt .hero-cta-item:first-child {
    display: none !important;
}
.hero-check-item {
	display: flex;
}
.hero-check-item .about-checkmark {
	color: #009b00;
	font-size: 25px;
	font-weight: 800;
	line-height: 1.25;
	margin-left: 10px;
}
.home .hero-cta-contetnt .hero-cta-item:nth-child(2) .hero-check-item {
    margin-bottom: 20px !important;
}
.home .hero-cta-contetnt .hero-cta-item:nth-child(2) .hero-check-item:last-child {
    margin-bottom: 0 !important;
}
.home .hero-cta-contetnt .hero-cta-item:nth-child(2) .about-check-content strong {
    margin-bottom: 2px !important;
}
.home .hero-cta-contetnt .hero-cta-item:nth-child(2) .about-check-content small {
    margin-top: 0 !important;
    line-height: 1.35 !important;
}


/* RTL service entry checklist alignment */
body.single-service .service-entry ul,
body.single-services .service-entry ul {
    list-style: none;
    padding-right: 0;
    padding-left: 0;
}

body.single-service .service-entry ul li,
body.single-services .service-entry ul li {
    background-position: right top 2px !important;
    padding-right: 34px !important;
    padding-left: 0 !important;
}


/* Codex: footer contact block cleanup */
.main-footer .footer-contact-list {
    background: transparent !important;
    padding: 0 !important;
    width: 100% !important;
    direction: rtl !important;
}
.main-footer .footer-contact-list ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.main-footer .footer-contact-list li {
    width: 100% !important;
    margin: 0 !important;
}
.main-footer .footer-contact-list li a {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: row !important;
    direction: rtl !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    text-align: right !important;
}
.main-footer .footer-contact-list li a img {
    width: 48px !important;
    height: 48px !important;
    padding: 13px !important;
    margin: 0 !important;
    border: 1px solid rgba(0, 144, 0, .65) !important;
    border-radius: 12px !important;
    background: transparent !important;
    object-fit: contain !important;
    flex: 0 0 48px !important;
}


/* home-parallax-sections-20260805
 * Reuse the About-page road background and fixed-scroll effect
 * on the homepage Vision and Why Choose Us sections.
 */
body.home .about-us,
body.home .why-choose-us.home-benefits {
    background-color: #f5f6f7 !important;
    background-image: url("https://haklaisheli.co.il/wp-content/uploads/tractor-theme-assets/images/driving-excellence-bg.png") !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
}

@media (max-width: 991px) {
    body.home .about-us,
    body.home .why-choose-us.home-benefits {
        background-attachment: scroll !important;
        background-size: auto 115% !important;
        background-position: center center !important;
    }
}


/* home-hero-richtext-editor-format-fix-20260806 */
body.home .hero .hero-content .drivon-rich-text > p:first-child {
    font-size: 34px !important;
    line-height: 1.45 !important;
}
body.home .hero .hero-content .drivon-rich-text > p:first-child span {
    color: red !important;
}
@media (max-width: 767px) {
    body.home .hero .hero-content .drivon-rich-text > p:first-child {
        font-size: 26px !important;
    }
}


/* hero-acf-red-final-20260806 */
html body.home div.hero div.hero-section div.hero-content div.section-title.dark-section div.drivon-rich-text > p:first-child {
 font-size:34px !important;
 line-height:1.45 !important;
}
html body.home div.hero div.hero-section div.hero-content div.section-title.dark-section div.drivon-rich-text > p:first-child > span {
 color:#ffb52e !important;
font-size:32px!important;
}
