/*
Theme Name: NazarDokht
Theme URI: https://nazardokht.ir/
Description: Custom child theme for NazarDokht, supporting Persian and English.
Author: NazarDokht
Version: 1.0.0
Template: ryancv
Text Domain: nazardokht
*/

/* Load the original RyanCV stylesheet and preserve its design. */
@import url("../ryancv/style.css");

/* Shared custom styles for both languages go below. */

/* Improve article title and list readability while preserving the yellow accent. */
body.body-style-dark .single-post-text h1,
body.body-style-dark .single-post-text h2,
body.body-style-dark .single-post-text h3,
body.body-style-dark .single-post-text h4,
body.body-style-dark .single-post-text h5,
body.body-style-dark .single-post-text h6 {
    color: #ededed !important;
}

body.body-style-dark .blog-content > ul > li,
body.body-style-dark .blog-content > ol > li {
    color: #ededed;
}

body.body-style-dark .blog-content .lwptoc a {
    color: #ededed !important;
}

body.body-style-dark .blog-content .lwptoc a:hover,
body.body-style-dark .blog-content .lwptoc a:focus {
    color: #ffb84d !important;
}

/* White blog article titles in dark mode */
body.body-style-dark .content.blog .box-item .desc .name,
body.body-style-dark .content.blog .box-item .desc .name a,
body.body-dark .blog .box-item .desc .name {
    color: #ffffff !important;
}

/* White table of contents title and items in dark mode */
body.body-style-dark .lwptoc .lwptoc_header,
body.body-style-dark .lwptoc .lwptoc_title,
body.body-style-dark .lwptoc .lwptoc_item,
body.body-style-dark .lwptoc .lwptoc_item_label,
body.body-style-dark .lwptoc .lwptoc_i a,
body.body-style-dark .lwptoc .lwptoc_i a:visited {
    color: #ffffff !important;
}

/* White main menu and submenus in dark mode */
body.body-style-dark .profile .main-menu ul li a,
body.body-style-dark .profile .main-menu ul li a .name,
body.body-style-dark .profile .main-menu ul li ul li a { color: #fff; }

/* Gold hover color for main menu and submenus in dark mode */
body.body-style-dark .profile .main-menu ul li a:hover,
body.body-style-dark .profile .main-menu ul li a:focus,
body.body-style-dark .profile .main-menu ul li ul li a:hover,
body.body-style-dark .profile .main-menu ul li ul li a:focus { color: #ffb84d !important; }

/* Fix gold hover for nested main menu text */
body.body-style-dark .profile .main-menu ul li a:hover .name,
body.body-style-dark .profile .main-menu ul li a:focus .name,
body.body-style-dark .profile .main-menu ul li ul li a:hover .name,
body.body-style-dark .profile .main-menu ul li ul li a:focus .name { color: #ffb84d !important; }

/* Gold hover color for blog article titles in dark mode */
body.body-style-dark .content.blog .box-item .desc .name:hover,
body.body-style-dark .content.blog .box-item .desc .name a:hover,
body.body-style-dark .content.blog .box-item .desc .name a:focus { color: #ffb84d !important; }

/* White menu label in dark mode; gold on hover */
body.body-style-dark .header .menu-btn .text { color: #fff !important; }
body.body-style-dark .header .menu-btn:hover .text,
body.body-style-dark .header .menu-btn:focus .text { color: #ffb84d !important; }

/* Correct menu toggle label colors in dark mode */
body.body-style-dark .profile .lnk.lnk-view-menu,
body.body-style-dark .profile .lnk.lnk-view-menu .text { color: #fff !important; }
body.body-style-dark .profile .lnk.lnk-view-menu:hover,
body.body-style-dark .profile .lnk.lnk-view-menu:hover .text,
body.body-style-dark .profile .lnk.lnk-view-menu:focus,
body.body-style-dark .profile .lnk.lnk-view-menu:focus .text { color: #ffb84d !important; }

/* Hide language icon while keeping the text link */
.card-started .profile .social a > span.fas.fa-language { display: none !important; }

/* Language-specific typography: Persian Vazir, English Poppins */

/* Local Vazir font files */
@font-face {
    font-family: "Vazir";
    src: url("../ryancv/assets/fonts/Vazir/Vazir.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Vazir";
    src: url("../ryancv/assets/fonts/Vazir/Vazir-Light-FD.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Vazir";
    src: url("../ryancv/assets/fonts/Vazir/Vazir-Bold-FD.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* Persian pages */
html[lang^="fa"] body,
html[lang^="fa"] body input,
html[lang^="fa"] body textarea,
html[lang^="fa"] body button,
html[lang^="fa"] body select,
html[lang^="fa"] body h1,
html[lang^="fa"] body h2,
html[lang^="fa"] body h3,
html[lang^="fa"] body h4,
html[lang^="fa"] body h5,
html[lang^="fa"] body h6,
html[lang^="fa"] body .elementor-heading-title,
html[lang^="fa"] body .elementor-widget-text-editor,
html[lang^="fa"] body .elementor-button,
html[lang^="fa"] body .elementor-icon-list-text {
    font-family: "Vazir", sans-serif !important;
}

html[lang^="fa"] body {
    font-weight: 400;
}

html[lang^="fa"] body h1,
html[lang^="fa"] body h2,
html[lang^="fa"] body h3,
html[lang^="fa"] body h4,
html[lang^="fa"] body h5,
html[lang^="fa"] body h6,
html[lang^="fa"] body .elementor-heading-title {
    font-weight: 700;
}

/* English pages */
html[lang^="en"] body,
html[lang^="en"] body input,
html[lang^="en"] body textarea,
html[lang^="en"] body button,
html[lang^="en"] body select,
html[lang^="en"] body h1,
html[lang^="en"] body h2,
html[lang^="en"] body h3,
html[lang^="en"] body h4,
html[lang^="en"] body h5,
html[lang^="en"] body h6,
html[lang^="en"] body .elementor-heading-title,
html[lang^="en"] body .elementor-widget-text-editor,
html[lang^="en"] body .elementor-button,
html[lang^="en"] body .elementor-icon-list-text {
    font-family: "Poppins", sans-serif !important;
}

html[lang^="en"] body {
    font-weight: 400;
}

html[lang^="en"] body h1,
html[lang^="en"] body h2,
html[lang^="en"] body h3,
html[lang^="en"] body h4,
html[lang^="en"] body h5,
html[lang^="en"] body h6,
html[lang^="en"] body .elementor-heading-title {
    font-weight: 600;
}


/* Language switch: use the destination language font */
html[lang^="fa"] .card-started .profile .social a.nazardokht-language-switch {
    font-family: "Poppins", sans-serif !important;
}

html[lang^="en"] .card-started .profile .social a.nazardokht-language-switch {
    font-family: "Vazir", sans-serif !important;
}

/* Pagination: inherit the page background visually */
.pager .nav-links {
    background-color: transparent !important;
}

/* Education titles: white text */
.elementor-element-ccd85e7 .resume-items .resume-item .name,
.elementor-element-7d69b238 .resume-items .resume-item .name {
    color: #ffffff !important;
}

/* Cartoon portfolio: Persian title font */
html[lang^="fa"] .elementor-element-91b90f8 .box-item .desc a.name {
    font-family: "Vazir", sans-serif !important;
}

/* Cartoon portfolio: use actual Vazir bold font */
html[lang^="fa"] .elementor-element-91b90f8 .box-item .desc a.name {
    font-family: "Vazir", sans-serif !important;
    font-weight: 700 !important;
}

/* Cartoon portfolio: match Persian body typography */
html[lang^="fa"] .elementor-element-91b90f8 .box-item .desc a.name {
    font-family: "Vazir", sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* Cartoon portfolio titles: white, gold on hover */
html[lang^="fa"] .elementor-element-91b90f8 .box-item .desc a.name {
    color: #ffffff !important;
}

html[lang^="fa"] .elementor-element-91b90f8 .box-item:hover .desc a.name {
    color: #ffb84d !important;
}

/* Contact form: align email field with Persian form */
html[lang^="fa"] .wpcf7 input[name="your-email"] {
    direction: rtl !important;
    text-align: right !important;
}

/* Replace RyanCV green text with white */
.preloader .spinner.recursive-circle,
.accent-color,
.button:hover .fa,
a:hover,
.header .top-menu ul li.current-menu-item a,
.header .top-menu ul li.current-menu-item a .link,
.header .profile .subtitle,
.card-started .profile .typed-cursor,
.card-started .profile .social a:hover .fa,
.profile .main-menu ul li.current-menu-item a,
.profile .main-menu ul li.current_page_ancestor > a,
.content .title .first-word,
.content .title .first-letter::first-letter,
.pricing-items .pricing-item .icon,
.fuct-items .fuct-item .icon,
.skill-title .icon,
.resume-items .resume-item.active .date,
.skills-list.list ul li .name:before,
.content.works .filter-menu .f_btn.active,
.box-item .date,
.box-item:hover .desc .name,
.single-post-text p a,
.comment-text p a,
.blog-content p a,
.post-text-bottom span.cat-links a,
.post-text-bottom .tags-links a,
.post-text-bottom .tags-links span,
.page-numbers.current,
.post-comments .post-comment .desc .name,
.post-comments .post-comment .desc span.comment-reply a:hover,
.content-sidebar .main-menu ul li.current_page_ancestor > a,
.content-sidebar .widget ul li a:hover,
.content-sidebar .tagcloud a,
.custom-header nav span:before,
.border-icons-style .skill-title .icon,
.minimal-icons-style .skill-title .icon,
.textured-icons-style .skill-title .icon,
.revs-two-item .star-rating i,
.blog.blog-style-5 .pager .nav-links a.current,
.blog.blog-style-5 .box-item:hover .desc .date,
.ar-words-wrapper .ar-word,
.ar-resume-item .date,
.ar-pricing-item .amount,
.ar-pricing-item ul li:before,
.ar-testimonial-item .star-rating,
.ar-testimonial-item .name,
.theme-style-grid .ar-serv-lnk:hover {
    color: #ffffff !important;
}


/* Keep original link color; replace green hover with white */
.card-started .profile .social a:hover .ion,
.card-started .profile .social a:hover .fab,
.card-started .profile .social a:hover .fas,
.card-started .profile .social a:hover .fa,
.single-post-text p a:hover,
.comment-text p a:hover,
.blog-content p a:hover,
.post-text-bottom span.cat-links a:hover,
.post-comments .post-comment .desc span.comment-reply a:hover,
.content-sidebar .widget ul li a:hover,
.theme-style-grid .ar-serv-lnk:hover {
    color: #ffffff !important;
}

/* Override all remaining green hover text */
.lnk:hover,
.button:hover,
.lnk:hover .ion,
.button:hover .ion,
.lnk:hover .fa,
.button:hover .fa,
.lnk:hover .fas,
.button:hover .fas,
.lnk:hover .fab,
.button:hover .fab,
.lnk:hover i,
.button:hover i,
.lnk:hover .arrow,
.button:hover .arrow,
.header .top-menu ul li:hover a,
.header .top-menu ul li.active a,
.header .top-menu ul li:hover a .icon,
.header .top-menu ul li:hover a .link,
.header .top-menu ul li.active a .icon,
.header .top-menu ul li.active a .link,
.theme-style-grid .button:hover,
.theme-style-grid .lnk:hover,
.theme-style-grid .ar-serv-lnk:hover {
    color: #ffffff !important;
}

/* GLOBAL CONTENT JUSTIFICATION - FA EN */
/* Justify readable body text in Persian and English without affecting headings, menus or buttons. */
.single-post-text p,
.single-post-text li,
.blog-content p,
.blog-content li,
.content p,
.content li,
.elementor-widget-text-editor .elementor-widget-container,
.elementor-widget-text-editor .elementor-widget-container p,
.elementor-widget-text-editor .elementor-widget-container li,
.ar-resume-item .text,
.ar-testimonial-item .text {
    text-align: justify !important;
    text-justify: inter-word;
}


/* FooGallery Persian captions: use the site's Vazir font */
html[lang^="fa"] .foogallery .fg-caption-title {
    font-family: "Vazir", sans-serif !important;
}
