/* =====================================================================
   SmartSchool Uniform BD — Phase 18 (2026-10-14): পার্টনার স্কুলের লোগো-সারি + "About us" পাতা
   frontend/partials/school-logos.blade.php আর frontend/about.blade.php নিজেরাই এই ফাইল যোগ করে (@pushOnce('styles'))
   — শুধু হোম ও About পাতায় নামে।

   মালিকের চাওয়া: "about us page টা লাগবে আর front page and about us পেইজের মধ্যে আমরা যে সমস্ত school এর সাথে কাজ করছি
   তাদের logo গুলো দেখাবে নিচের দিকে, logo গুলো slider animation হতে থাকবে সব সময়"।
   ভাগ: ১ লোগো-সারি · ২ About পাতা · ৩ ছোট পর্দা · ৪ কম নড়াচড়া / ছাপা
   ===================================================================== */

/* ---------- ১. লোগো-সারি — footer-এর ঠিক উপরে হালকা সবুজ পটি, তার ভেতর দিয়ে কার্ড বাঁয়ে সরে যায় (সবসময়) ---------- */
.sf-logos {
    position: relative;
    overflow: hidden;
    padding-top: clamp(30px, 4.5vw, 56px);
    padding-bottom: clamp(44px, 6vw, 76px);
    background:
        radial-gradient(700px 240px at 15% 45%, rgba(124, 197, 118, .16), transparent 70%),
        radial-gradient(640px 260px at 90% 100%, rgba(57, 195, 214, .12), transparent 70%),
        linear-gradient(180deg, rgba(233, 245, 234, 0) 0%, #eaf5eb 34%, #e2f0e4 100%);
}
.sf-logos__head { margin-bottom: clamp(18px, 3vw, 28px); }
/* FIX (2026-10-21, P28-H4): মালিকের চাওয়া — শিরোনামের নিচের "N টি পার্টনার স্কুল" আর "থামান" বোতাম বাদ, তাদের নিয়মও (.sf-logos__meta/
   __count/__pulse/__toggle) এখান থেকে সরানো। সারি এখনো মাউস রাখলে বা keyboard-এ কোনো লোগোতে এলে থামে (নিচে)। */

/* চলমান সারি: পুরো পর্দা জুড়ে, দুই কিনারায় মিলিয়ে যায় */
.sf-logos__viewport {
    position: relative;
    overflow: hidden;
    padding: 10px 0 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.sf-logos__track {
    display: flex;
    width: max-content;
    animation: sfLogosScroll var(--sf-logos-duration, 40s) linear infinite;
    will-change: transform;
}
/* থামে: মাউস রাখলে বা keyboard-এ কার্ডে এলে (P28-H4: "থামান" বোতাম আর নেই) */
.sf-logos__viewport:hover .sf-logos__track,
.sf-logos__viewport:focus-within .sf-logos__track { animation-play-state: paused; }
@keyframes sfLogosScroll { to { transform: translate3d(-50%, 0, 0); } }
.sf-logos__list { display: flex; gap: 18px; margin: 0; padding: 0 9px; list-style: none; }

/* কার্ড */
.sf-logo-card { flex: none; }
.sf-logo-card__link {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 248px;
    min-height: 86px;
    padding: 12px 16px 12px 12px;
    border-radius: 20px;
    border: 1px solid #e0ebe1;
    background: #fff;
    color: var(--sf-ink, #14231a);
    text-decoration: none;
    box-shadow: 0 12px 26px -20px rgba(16, 48, 15, .5);
    transition: transform .3s var(--sf-ease, cubic-bezier(.22, 1, .36, 1)), box-shadow .3s ease, border-color .3s ease;
}
.sf-logo-card__link:hover {
    transform: translateY(-4px);
    border-color: #b6dbb9;
    box-shadow: 0 22px 34px -20px rgba(16, 48, 15, .55);
}
.sf-logo-card__link:focus-visible { outline: 3px solid rgba(44, 131, 55, .5); outline-offset: 3px; }
.sf-logo-card__img {
    display: grid;
    flex: none;
    place-items: center;
    width: 58px;
    height: 58px;
    padding: 5px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #edf3ee;
    background: #fff;
}
.sf-logo-card__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sf-logo-card__text { display: grid; gap: 3px; min-width: 0; }
.sf-logo-card__text strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sf-logo-card__text small { overflow: hidden; color: var(--sf-muted, #696d74); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }

/* লোগো না থাকলে — নামের আদ্যক্ষরের ঢাল-আকৃতির রঙিন ব্যাজ (মাথায় ছোট তারা) */
.sf-crest {
    --c1: #3d9446;
    --c2: #1f6a2a;
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 17px 17px 50% 50% / 17px 17px 42% 42%;
    background: linear-gradient(155deg, var(--c1), var(--c2));
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .03em;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .28), 0 10px 18px -10px var(--c2);
}
.sf-crest::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 11px;
    height: 11px;
    margin-left: -5.5px;
    background: rgba(255, 255, 255, .9);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.sf-crest span { margin-top: 9px; line-height: 1; }
.sf-crest--1 { --c1: #e8504a; --c2: #b72f29; }
.sf-crest--2 { --c1: #1fae96; --c2: #0f766e; }
.sf-crest--3 { --c1: #3b82f6; --c2: #1d4ed8; }
.sf-crest--4 { --c1: #f2a127; --c2: #b86b06; }
.sf-crest--5 { --c1: #8b5cf6; --c2: #6d28d9; }
.sf-crest--6 { --c1: #3f5c9a; --c2: #1e2f5c; }
.sf-crest--7 { --c1: #ef4f79; --c2: #be1d4d; }

/* ---------- ২. About পাতা — লাইভ সংখ্যা hero-র ঢেউয়ের উপর (.sf-trust নিজেই উপরে ওঠে), তারপর গল্প, প্রতিশ্রুতি, কাদের জন্য, যোগাযোগ ---------- */
.sf-about { position: relative; }
/* লক্ষ্যের কার্ড (data-reveal="right") দেখা দেওয়ার আগে ২৬px ডানে সরে থাকে — সরু desktop-এ (৯৯২–১২১১px) পাতা পাশে ~১০px সরত;
   /for-schools-এর ফর্ম-কার্ডের মতোই (.sf-b2b-lead) আড়াআড়ি কেটে রাখা, উপর-নিচ খোলা (ছায়া কাটে না) */
.sf-about-story { overflow-x: clip; }

/* গল্প (বাঁয়ে) + লক্ষ্যের সবুজ কার্ড (ডানে) */
.sf-about-story__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(26px, 5vw, 64px); align-items: center; }
.sf-about-story__text .sf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e8f6ea, #e2f6f1);
    color: #23702c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(46, 128, 54, .12);
}
.sf-about-story__text .sf-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f5b829; box-shadow: 0 0 0 3px rgba(245, 184, 41, .25); }
.sf-about-story__text h2 { margin: 14px 0 14px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; }
.sf-about-story__text p { margin: 0 0 14px; color: var(--sf-muted, #696d74); font-size: 16.5px; line-height: 1.8; text-wrap: pretty; }
.sf-about-story__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 20px; }
.sf-about-story__links .sf-link-arrow { display: inline-flex; align-items: center; gap: 7px; color: var(--sf-navy, #2e8036); font-size: 14.5px; font-weight: 800; text-decoration: none; }
.sf-about-story__links .sf-link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

.sf-about-mission {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 3vw, 34px) clamp(22px, 3vw, 34px) clamp(36px, 4vw, 46px);
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(420px 260px at 100% 0%, rgba(214, 58, 51, .32), transparent 62%),
        radial-gradient(380px 260px at 0% 100%, rgba(57, 195, 214, .22), transparent 62%),
        linear-gradient(140deg, #215c27 0%, #2e8036 55%, #1d8f74 100%);
    box-shadow: 0 32px 60px -30px rgba(16, 48, 15, .6);
}
.sf-about-mission::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, .16);
    animation: sfMissionTurn 60s linear infinite;
}
@keyframes sfMissionTurn { to { transform: rotate(360deg); } }
.sf-about-mission__badge { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .14); color: #ffe08a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.sf-about-mission h3 { position: relative; margin: 16px 0 8px; color: #fff; font-size: 21px; }
.sf-about-mission__text { position: relative; margin: 0; color: #eef9ef; font-size: 18px; font-weight: 600; line-height: 1.6; }
.sf-about-mission__points { position: relative; display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.sf-about-mission__points li { display: flex; align-items: flex-start; gap: 10px; color: #e4f5e6; font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.sf-about-mission__points .su-icon { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(255, 224, 138, .18); color: #ffe08a; }
/* কার্ডের নিচের কিনারায় ছোট মাপের ফিতা (footer-এর ফিতার মতো, ধীরে চলে) */
.sf-about-mission__tape {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14px;
    background:
        repeating-linear-gradient(90deg, rgba(45, 42, 20, .85) 0 1.5px, transparent 1.5px 40px) 0 0 / 40px 8px repeat-x,
        repeating-linear-gradient(90deg, rgba(45, 42, 20, .5) 0 1px, transparent 1px 8px) 0 0 / 8px 4px repeat-x,
        repeating-linear-gradient(90deg, rgba(45, 42, 20, .85) 0 1.5px, transparent 1.5px 40px) 0 100% / 40px 8px repeat-x,
        repeating-linear-gradient(90deg, rgba(45, 42, 20, .5) 0 1px, transparent 1px 8px) 0 100% / 8px 4px repeat-x,
        linear-gradient(180deg, #f8cf55, #f1bd34);
    animation: sfTapeSlide 48s linear infinite;
}

/* চারটি প্রতিশ্রুতি */
.sf-about-values__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sf-value-card {
    --tone: #2e8036;
    --tint: #e4f5e6;
    position: relative;
    overflow: hidden;
    padding: 26px 22px 24px;
    border-radius: 22px;
    border: 1px solid #e3ece4;
    background: #fff;
    box-shadow: 0 10px 26px -20px rgba(16, 48, 15, .45);
    transition: transform .3s var(--sf-ease, cubic-bezier(.22, 1, .36, 1)), box-shadow .3s ease, border-color .3s ease;
}
.sf-value-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tone); opacity: .85; }
.sf-value-card:hover { transform: translateY(-5px); border-color: #cfe5d1; box-shadow: 0 24px 40px -24px rgba(16, 48, 15, .5); }
.sf-value-card--approved { --tone: #b86b06; --tint: #fff3d6; }
.sf-value-card--price { --tone: #d63a33; --tint: #fde8e7; }
.sf-value-card--care { --tone: #0f766e; --tint: #dff5f1; }
.sf-value-card__no { position: absolute; top: 14px; right: 18px; color: var(--tone); font-size: 34px; font-weight: 900; line-height: 1; opacity: .12; }
.sf-value-card__ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--tint); color: var(--tone); transition: transform .35s var(--sf-ease, cubic-bezier(.22, 1, .36, 1)); }
.sf-value-card:hover .sf-value-card__ico { transform: rotate(-6deg) scale(1.08); }
.sf-value-card h3 { margin: 16px 0 8px; font-size: 17px; line-height: 1.3; }
.sf-value-card p { margin: 0; color: var(--sf-muted, #696d74); font-size: 14.5px; line-height: 1.65; }

/* কাদের জন্য কাজ করি */
.sf-about-serve__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sf-serve-card {
    --tone: #2e8036;
    --tint: #e9f6ea;
    position: relative;
    padding: 28px 24px 26px;
    border-radius: 24px;
    border: 1px solid rgba(46, 128, 54, .12);
    background: linear-gradient(180deg, var(--tint) 0%, #fff 72%);
    transition: transform .3s var(--sf-ease, cubic-bezier(.22, 1, .36, 1)), box-shadow .3s ease;
}
.sf-serve-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(16, 48, 15, .5); }
.sf-serve-card--schools { --tone: #0f766e; --tint: #e3f6f2; }
.sf-serve-card--tailors { --tone: #d63a33; --tint: #fdeceb; }
.sf-serve-card__ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #fff; color: var(--tone); box-shadow: 0 14px 26px -16px var(--tone); }
.sf-serve-card h3 { margin: 18px 0 8px; font-size: 19px; }
.sf-serve-card p { margin: 0; color: var(--sf-muted, #696d74); font-size: 15px; line-height: 1.7; }

/* যোগাযোগ — হোমের .sf-cta-র মতো; তিনটা বোতাম ভাঁজ হয়ে বসে */
.sf-about-contact .sf-cta__actions { align-content: center; }

/* ---------- ৩. ছোট পর্দা ---------- */
@media (max-width: 991.98px) {
    .sf-about-story__grid { grid-template-columns: minmax(0, 1fr); }
    .sf-about-values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-about-serve__grid { grid-template-columns: minmax(0, 1fr); }
    .sf-serve-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: start; }
    .sf-serve-card__ico { grid-row: span 2; }
    .sf-serve-card h3 { margin-top: 2px; }
}
@media (max-width: 575.98px) {
    .sf-logos__list { gap: 12px; padding: 0 6px; }
    .sf-logo-card__link { gap: 11px; width: 218px; min-height: 78px; padding: 10px 12px 10px 10px; border-radius: 18px; }
    .sf-logo-card__img, .sf-crest { width: 50px; height: 50px; }
    .sf-crest { font-size: 16px; }
    .sf-crest::before { top: 6px; width: 10px; height: 10px; margin-left: -5px; }
    .sf-about-story__text p { font-size: 15.5px; line-height: 1.75; }
    .sf-about-mission__text { font-size: 16.5px; }
    .sf-about-values__grid { grid-template-columns: minmax(0, 1fr); }
    /* P19: CTA-র বোতাম ফোনে অর্ধেক চওড়া — frontend-effects.css §৯ (সব CTA-র এক নিয়ম) */
}

/* ---------- ৪. কম নড়াচড়া / ছাপা — লোগো-সারি চলে না, সব লোগো মাঝখানে সাজানো (নকলগুলো লুকানো) ---------- */
@media (prefers-reduced-motion: reduce) {
    .sf-logos__viewport { -webkit-mask-image: none; mask-image: none; }
    .sf-logos__track { width: auto; justify-content: center; animation: none; }
    .sf-logos__list { flex-wrap: wrap; justify-content: center; row-gap: 14px; }
    .sf-logos__list[data-logos-clone], .sf-logo-card.is-dup { display: none; }
    .sf-about-mission::before, .sf-about-mission__tape { animation: none; }
    .sf-logo-card__link:hover, .sf-value-card:hover, .sf-serve-card:hover { transform: none; }
}
@media print {
    .sf-logos__viewport { -webkit-mask-image: none; mask-image: none; }
    .sf-logos__track { width: auto; animation: none; }
    .sf-logos__list { flex-wrap: wrap; }
    .sf-logos__list[data-logos-clone], .sf-logo-card.is-dup, .sf-about-mission__tape { display: none !important; }
}
