/* Home page "Find your perfect course" box - Style H "Compact with icon" (approved by Junab, 1 Dec 2026).
   Only linked from templates/website/home.html. Wording and search form unchanged.
   Laptop: icon, heading and fields on one row. Tablet: heading on top, fields below. Phone: fields stacked. */
html body .v3-search-wrap .v3-search-card{flex-direction:row!important;align-items:center!important;text-align:start!important;gap:18px!important;
  border:1px solid #E7EAF3!important;border-top:4px solid #C5242E!important;border-radius:18px!important;padding:14px 20px!important;box-shadow:0 12px 30px rgba(13,17,58,.12)!important}
html body .v3-search-wrap .v3-search-card::before{content:"";flex:none;width:44px;height:44px;border-radius:12px;background:#FCE9EA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5242E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5z'/%3E%3Cpath d='M6 12v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E") center/22px no-repeat}
html body .v3-search-wrap .v3-search-card>div:first-child{flex:0 1 auto;max-width:min(420px,37%);min-width:0;gap:2px!important}
html body .v3-search-wrap .v3-search-title{font-size:16px!important;font-weight:600!important}
html body .v3-search-wrap .v3-search-card>div:first-child p{font-size:12.5px!important}
html body .v3-search-wrap .sr-form{flex:1 1 0;min-width:0;max-width:none!important;background:none!important;border:0!important;padding:0!important;gap:8px!important;flex-wrap:nowrap!important;box-shadow:none!important}
html body .v3-search-wrap .sr-field{height:42px!important;border-radius:12px!important;font-size:14.5px!important;background-color:#F5F6FA!important}
html body .v3-search-wrap .sr-q .sr-icon{top:11px!important}
html body .v3-search-wrap .sr-btn{height:42px!important;border-radius:12px!important;background:#151B54!important;padding:0 22px!important;font-size:14.5px!important;flex:none!important}
html body .v3-search-wrap .sr-q{flex:2 1 200px!important}
html body .v3-search-wrap select.sr-field[name="subject"]{flex:1.2 1 140px!important}
html body .v3-search-wrap select.sr-field[name="level"]{flex:1 1 110px!important}
@media (max-width:1180px){
  html body .v3-search-wrap .v3-search-card{flex-wrap:wrap!important}
  html body .v3-search-wrap .v3-search-card>div:first-child{flex:1 1 auto;max-width:none}
  html body .v3-search-wrap .sr-form{flex:1 1 100%;flex-wrap:wrap!important}
}
@media (max-width:640px){
  html body .v3-search-wrap .v3-search-card{padding:14px!important;gap:12px!important}
  html body .v3-search-wrap .v3-search-card>div:first-child{flex:1 1 0;min-width:0}
  html body .v3-search-wrap .v3-search-card>div:first-child p{white-space:normal}
  html body .v3-search-wrap .sr-q{flex:1 1 100%!important}
  html body .v3-search-wrap select.sr-field{flex:1 1 40%!important}
  html body .v3-search-wrap .sr-btn{flex:1 1 100%!important}
}

/* Home banner circle (3 Dec 2026): js/home_circle.js adds .hc-cut so the red top line runs only up to the circle's red ring. */
html body .v3-search-wrap .v3-search-card.hc-cut{border-top:1px solid #E7EAF3!important;padding-top:17px!important;position:relative}
html body .v3-search-wrap .v3-search-card.hc-cut::after{content:"";position:absolute;top:-1px;left:-1px;width:var(--hc-red,0px);height:20px;box-sizing:border-box;border-top:4px solid #C5242E;border-top-left-radius:18px;pointer-events:none}
html[dir="rtl"] body .v3-search-wrap .v3-search-card.hc-cut::after{left:auto;right:-1px;border-top-left-radius:0;border-top-right-radius:18px}
