/*
Theme Name: Tutor.vn V2 · ACF Premium
Theme URI: https://tutor.vn/
Author: Tutor.vn
Description: WordPress Theme for the original 17-page Tutor.vn HTML V2. Exact CSS base, Plus Jakarta font, 9/12 listings, Typebox, native CPT and ACF Pro data via Tutor.vn Core.
Version: 1.1.3
Requires PHP: 7.4
Text Domain: tutor-vn
*/
/* Preserves the original V2 source stylesheet. Enhancements below are isolated. */
.tutor-loading{padding:50px;text-align:center;min-height:70vh;font:16px Arial,sans-serif}
.rating-stars{display:inline-flex;align-items:center;gap:4px;color:#c58b21;font-weight:600}
.rating-muted{color:#636b75;font-size:12px}
.review-summary{margin:8px 0;color:#465168;font-size:13px}
.review-section{margin-top:30px;border-top:1px solid #e5e8e9;padding-top:24px}
.review-section h2{margin-bottom:10px}
.review-entry{padding:16px 0;border-bottom:1px solid #e5e8e9}
.review-entry p{margin:8px 0 0}
.review-entry .review-date{font-size:12px;color:#606a75}
.review-form{margin-top:24px;padding:20px;border-radius:12px;background:#fffaf0;border:1px solid #efe7d4}
.review-form .review-rating{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.review-form .review-rating label{cursor:pointer;display:inline-flex;gap:3px;align-items:center}
.review-form .review-quick{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.review-form .review-quick button{border:1px solid #d9dccf;border-radius:18px;background:#fff;font-size:12px;padding:6px 10px;cursor:pointer}
.review-form textarea,.review-form input[type=text],.review-form input[type=email]{box-sizing:border-box;width:100%;border:1px solid #d3d9e3;border-radius:8px;min-height:42px;padding:10px;font:inherit}
.review-form textarea{min-height:100px;resize:vertical}
.review-form .review-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.demo-label{font-size:12px;color:#665b4b}
.person-facts,.result-facts{color:#38445b}
.review-mini{white-space:nowrap;font-size:12px}
.single-aside{position:sticky;top:95px;align-self:start}
.tutor-basic-page{max-width:1250px}
@media(max-width:850px){.single-aside{position:static}.review-form .review-fields{grid-template-columns:1fr}}

@media(min-width:1180px){.single-related .grid.grid-4{grid-template-columns:repeat(6,minmax(0,1fr))}}

.logo .logo-custom{max-width:198px;height:42px;width:auto;object-fit:contain}
.logo:has(.logo-custom)>.mark{display:none}

/* Tutor.vn 1.1: Typebox content must remain visible even when intersection animations fail. */
.tutor-wp-theme .reveal{opacity:1!important;visibility:visible!important;transform:none!important}
.tutor-wp-theme .empty{grid-column:1/-1;min-height:100px;padding:28px;border:1px dashed #cbd6e9;background:#f8faff;border-radius:14px;color:#53647c}
.tutor-wp-theme .source-note{border-left:3px solid #12b5a6;padding:13px 15px;background:#f5fbfa;color:#4c6173;font-size:12px;line-height:1.7;margin:20px 0}
.tutor-wp-theme .source-note a,.tutor-wp-theme .compare-source a{color:#245db8;text-decoration:underline;text-underline-offset:2px}
.tutor-wp-theme .compare-source{margin-top:8px;font-size:11px;line-height:1.45}
.tutor-wp-theme .compare-table th{min-width:175px}
.tutor-wp-theme .compare-table .compare-avatar{max-width:105px}
.tutor-wp-theme .person-foot b{font-size:13px;white-space:normal;line-height:1.4}
.tutor-wp-theme .result-price-wrap strong{font-size:15px;white-space:normal}

.tutor-fallback-nav{display:flex;flex-wrap:wrap;gap:16px;padding:12px 0 25px;border-bottom:1px solid #e5e9f3;margin-bottom:27px}
.tutor-fallback-nav a{color:#163d86;text-decoration:underline;text-underline-offset:2px}
.tutor-fallback-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0 36px}
.tutor-fallback-card{padding:22px;min-height:125px}.tutor-fallback-card h3{font-size:17px}.tutor-fallback-card a{color:#274d91}
.tutor-fallback-single{max-width:920px;margin:auto;font-size:15px}.tutor-fallback-single p{line-height:1.8}
@media(max-width:650px){.tutor-fallback-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tutor-fallback-card{padding:13px}}

/* 1.1.1: Respect native Gutenberg / Classic Editor markup in the Post body. */
.tutor-wp-theme .article-body .wp-content{min-width:0;overflow-wrap:anywhere;color:#283454;font-size:15px;line-height:1.85}
.tutor-wp-theme .article-body .wp-content p{margin:0 0 1.1em;color:#424f70}
.tutor-wp-theme .article-body .wp-content h2,.tutor-wp-theme .article-body .wp-content h3,.tutor-wp-theme .article-body .wp-content h4{margin:1.65em 0 .65em;color:#152451}
.tutor-wp-theme .article-body .wp-content ul,.tutor-wp-theme .article-body .wp-content ol{list-style:revert;padding-left:1.7em;margin:0 0 1.2em}
.tutor-wp-theme .article-body .wp-content li{margin:0 0 .35em}
.tutor-wp-theme .article-body .wp-content a{color:#245db8;text-decoration:underline;text-underline-offset:3px}
.tutor-wp-theme .article-body .wp-content img{height:auto;max-width:100%;border-radius:8px}
.tutor-wp-theme .article-body .wp-content figure{max-width:100%;margin:1.4em 0}
.tutor-wp-theme .article-body .wp-content .wp-block-image img{max-width:100%}
.tutor-wp-theme .article-body .wp-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin-bottom:20px}
.tutor-wp-theme .article-body .wp-content th,.tutor-wp-theme .article-body .wp-content td{border:1px solid #dde4ee;padding:10px 12px}
.tutor-wp-theme .article-body .wp-content blockquote{padding:12px 18px;border-left:3px solid #06b9b1;background:#f5fbfc}
.tutor-wp-theme .article-body .wp-content iframe{max-width:100%}
.tutor-wp-theme .article-body .wp-content .wp-block-columns{display:flex;flex-wrap:wrap;gap:18px}
.tutor-wp-theme .article-body .wp-content .wp-block-column{flex:1 1 240px;min-width:0}

/* Tutor.vn v1.1.2: mobile navigation QA and clean production content. */
.navrow{display:flex;align-items:center;min-width:0}
.nav-sub-toggle{display:none;align-items:center;justify-content:center;background:transparent;color:#25365f;border:0;border-radius:8px;font:600 24px/1 inherit;cursor:pointer}
.nav-sub-toggle:focus-visible,.mobilebtn:focus-visible{outline:2px solid #0ca99a;outline-offset:3px}
.navitem .navrow>.navlink{min-width:0}
@media(min-width:851px){
 .navitem .navrow>.navlink{padding-left:11px;padding-right:11px}
 .navitem:hover>.megamenu,.navitem:focus-within>.megamenu{display:grid;opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
}
@media(max-width:850px){
 .sitehead{z-index:300}
 .navinner{position:relative}
 .mobilebtn{display:grid;place-items:center;width:44px;height:44px;min-width:44px;flex-shrink:0;cursor:pointer;border-radius:9px}
 .mainnav{top:100%;left:0;right:0;width:100%;box-sizing:border-box;max-height:min(72dvh,650px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;z-index:302;padding:10px 16px 18px}
 .navitem{width:100%;border-bottom:1px solid #edf0f4}
 .navrow{width:100%;min-height:46px}
 .navrow>.navlink{display:flex;flex:1;min-height:44px;align-items:center;padding:10px 8px!important;box-sizing:border-box;font-size:15px;line-height:1.4}
 .nav-sub-toggle{display:flex;flex:0 0 44px;width:44px;height:44px;min-height:44px;font-family:inherit}
 .nav-sub-toggle span{transition:transform .2s ease}
 .navitem.open .nav-sub-toggle span{transform:rotate(45deg)}
 .mainnav .megamenu{display:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;position:static!important;width:100%!important;max-width:100%;box-sizing:border-box;transform:none!important;grid-template-columns:1fr!important;gap:14px;padding:12px 16px!important;margin:0 0 9px;border:1px solid #e4eaf2;border-radius:10px;box-shadow:none}
 .mainnav .navitem.open>.megamenu{display:grid!important}
 .mainnav .megagroup{min-width:0}
 .mainnav .megagroup>a{display:flex;align-items:center;min-height:40px;overflow-wrap:anywhere;padding:9px 6px}
 .mainnav .megagroup strong{display:block;margin-bottom:2px}
 .mainnav .navitem:not(.open):hover>.megamenu{display:none!important}
}
@media(max-width:420px){
 .navinner{gap:8px}
 .sitehead .logo{font-size:21px;min-width:0;max-width:calc(100vw - 105px)}
 .sitehead .logo .logo-custom{max-width:100%;height:auto;max-height:40px}
 .mainnav{padding-left:12px;padding-right:12px}
}

@media(min-width:851px) and (max-width:1100px){
 .navinner{gap:6px}
 .navitem .navrow>.navlink{padding-left:7px;padding-right:7px}
 .navright{gap:5px}
}

/* Tutor.vn v1.1.3: correct mobile header = Logo | Search | Menu. Desktop unchanged. */
.tutor-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;clip-path:inset(50%)!important}
.mobile-header-search{display:none}
@media(max-width:850px){
 .topbar{display:none}
 .sitehead .navinner{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;min-width:0;height:64px}
 .sitehead .logo{flex:0 1 auto;min-width:0;max-width:clamp(98px,26vw,160px);margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .sitehead .logo .mark{flex-shrink:0}
 .sitehead .logo .logo-custom{display:block;width:auto;height:auto;max-width:100%;max-height:38px;object-fit:contain}
 .mobile-header-search{display:flex;flex:1 1 auto;min-width:0;max-width:none;align-items:center;position:relative;height:40px;margin:0;overflow:hidden;background:#f5f7fc;border:1px solid #dce3ef;border-radius:11px;transition:border-color .15s,background .15s}
 .mobile-header-search:focus-within{border-color:#1fa9a7;background:#fff;box-shadow:0 0 0 2px #18bcaf17}
 .mobile-header-search input[type="search"]{display:block;flex:1 1 auto;min-width:0;width:100%;height:100%;padding:0 3px 0 12px;background:transparent;border:0!important;border-radius:0;outline:0!important;box-shadow:none!important;color:#172451;font-family:inherit;font-size:13px;font-weight:400;letter-spacing:0;-webkit-appearance:none;appearance:none}
 .mobile-header-search input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}
 .mobile-header-search input[type="search"]::placeholder{color:#7d8aa6;opacity:1}
 .mobile-header-search button{flex:0 0 37px;display:flex;align-items:center;justify-content:center;height:100%;padding:0;background:transparent;border:0;color:#213e78;cursor:pointer}
 .mobile-header-search button svg{width:19px;height:19px;display:block}
 .mobile-header-search button:focus-visible{outline:2px solid #0ca99a;outline-offset:-3px;border-radius:6px}
 .sitehead .mobilebtn{order:3;flex:0 0 42px;width:42px;height:42px;min-width:42px;margin:0;padding:0;font-size:23px;line-height:1;border:1px solid #e1e7f2;background:#fff;border-radius:11px;box-sizing:border-box}
 .sitehead .mainnav{z-index:302}
}
@media(max-width:420px){
 .sitehead .navinner{height:60px;gap:7px}
 .sitehead .logo{flex:0 1 auto;max-width:100px;font-size:19px;gap:5px;letter-spacing:-1.1px}
 .sitehead .logo .mark{width:26px;height:26px;border-radius:9px}
 .sitehead .logo .mark svg{width:17px;height:17px}
 .sitehead .logo .logo-custom{max-height:32px}
 .mobile-header-search{height:38px;border-radius:10px}
 .mobile-header-search input[type="search"]{font-size:12px;padding-left:9px}
 .mobile-header-search button{flex-basis:33px}
 .mobile-header-search button svg{width:17px;height:17px}
 .sitehead .mobilebtn{flex-basis:40px;width:40px;height:40px;min-width:40px}
}
/* Do not let the search form shrink the full Tutor.vn wordmark. */
@media(max-width:850px){
 .sitehead .logo{flex-shrink:0;overflow:visible;text-overflow:clip;font-size:clamp(17px,2.35vw,21px);gap:6px}
}
@media(max-width:420px){
 .sitehead .logo{flex:0 0 auto;max-width:104px;font-size:17px;gap:4px;letter-spacing:-.85px;overflow:visible}
}
