/*
 * =========================================================
 *              WEBSITE DEVELOPMENT CREDITS
 * =========================================================
 *
 * Co-Developer
 * AFM_1337_ — Md Arafat Hossen Mugdho
 * GitHub  : https://github.com/AFM-1337
 * Website : https://afm1337.shop
 * WhatsApp: https://wa.me/+8801310329198
 * Telegram: https://t.me/afm1337
 *
 * Co-Developer
 * DARK LMNx9 — Limon Hossain
 * GitHub  : https://github.com/LMNx9-JOHNY
 * Website : https://dark.lmnx9.workers.dev
 * WhatsApp: https://wa.me/+8801882168975
 * Telegram: https://t.me/x_LMNx9
 *
 * ---------------------------------------------------------
 *          Designed & Developed Together
 * =========================================================
 */

/* ============================================================
   BeBrainer SSC - Homepage
   ============================================================ */

/* ---------- Notice ticker ---------- */
.bb-ticker {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bb-gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    position: relative;
    z-index: 5;
}
.bb-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
    text-transform: uppercase;
    font-size: 12.5px;
    letter-spacing: 0.6px;
}
.bb-ticker-label img { width: 16px; height: 16px; }
.bb-ticker-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 20px;
}
.bb-ticker-text {
    display: inline-block;
    animation: bb-ticker-scroll 22s linear infinite;
}
@keyframes bb-ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ---------- Hero ---------- */
.bb-hero {
    position: relative;
    padding: clamp(56px, 9vw, 110px) 0 clamp(70px, 10vw, 130px);
    background: linear-gradient(155deg, #EAF1FF 0%, #F4EEFF 45%, #E9F7FE 100%);
    overflow: hidden;
    text-align: center;
}
.bb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(86,128,233,0.12) 0, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(136,96,208,0.12) 0, transparent 40%);
    pointer-events: none;
}
.bb-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--bb-radius-pill);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(86, 128, 233, 0.25);
    color: var(--bb-primary-dark);
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 22px;
    box-shadow: var(--bb-shadow-sm);
}
.bb-hero__badge .pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bb-success);
    position: relative;
}
.bb-hero__badge .pulse-dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--bb-success);
    animation: bb-pulse-ring 1.8s ease-out infinite;
}
@keyframes bb-pulse-ring {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
.bb-hero h1 {
    font-size: clamp(32px, 6vw, 58px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}
.bb-hero__lead {
    max-width: 620px;
    margin: 0 auto 30px;
    color: var(--bb-text-2);
    font-size: clamp(15px, 2vw, 17.5px);
    line-height: 1.7;
}

/* Hero search */
.bb-hero__search {
    max-width: 620px;
    margin: 0 auto 34px;
    position: relative;
}
.bb-hero__search .bb-search__trigger {
    padding: 16px 20px;
    font-size: 15px;
    border-color: rgba(86, 128, 233, 0.3);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--bb-shadow-lg);
    border-radius: var(--bb-radius-lg);
}
.bb-hero__search .bb-search__panel {
    text-align: left;
    top: calc(100% + 14px);
}
.bb-hero__search .bb-search__trigger .bb-search__key {
    background: var(--bb-gradient);
    color: #fff;
    border: none;
}
.bb-hero__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}
.bb-hero__quick a {
    font-size: 12.5px;
    padding: 5px 14px;
    border-radius: var(--bb-radius-pill);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--bb-border);
    color: var(--bb-text-2);
    transition: all var(--bb-transition);
    font-weight: 600;
}
.bb-hero__quick a:hover {
    background: var(--bb-primary);
    color: #fff;
    border-color: transparent;
}

/* Hero CTAs */
.bb-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 44px;
}

/* Hero stats */
.bb-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
    max-width: 880px;
    margin: 0 auto;
}
.bb-hero__stat {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--bb-radius-lg);
    padding: 20px 16px;
    box-shadow: var(--bb-shadow-sm);
    transition: all var(--bb-transition);
}
.bb-hero__stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--bb-shadow-lg);
}
.bb-hero__stat-value {
    font-family: var(--bb-font-display);
    font-size: 30px;
    font-weight: 800;
    background: var(--bb-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bb-hero__stat-label {
    color: var(--bb-text-2);
    font-size: 13px;
    margin-top: 4px;
}

/* ---------- Categories ---------- */
.bb-categories { position: relative; }
.bb-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.category-card__link {
    display: block;
    color: inherit;
}

/* ---------- Courses / grids ---------- */
.bb-latest-courses { background: var(--bb-surface); }

/* ---------- Notes section ---------- */
.bb-notes {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #EAF1FF 0%, #F6F1FF 100%);
}
.bb-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.bb-note-card {
    background: var(--bb-surface);
    border-radius: var(--bb-radius-lg);
    border: 1px solid var(--bb-border);
    padding: 24px;
    transition: all var(--bb-transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.bb-note-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bb-shadow-lg);
    border-color: var(--bb-primary);
}
.bb-note-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--bb-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bb-shadow-primary);
}
.bb-note-card__icon img { width: 26px; height: 26px; }
.bb-note-card__title { font-weight: 800; font-size: 16px; }
.bb-note-card__meta { color: var(--bb-text-3); font-size: 12.5px; display: flex; gap: 12px; }
.bb-note-card__meta img { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; }

/* ---------- Featured resources ---------- */
.bb-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.bb-resource-card {
    background: var(--bb-surface);
    border-radius: var(--bb-radius-lg);
    border: 1px solid var(--bb-border);
    box-shadow: var(--bb-shadow-sm);
    overflow: hidden;
    transition: all var(--bb-transition);
    display: flex;
    flex-direction: column;
}
.bb-resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bb-shadow-lg);
}
.bb-resource-card__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bb-light), #E9EDF8);
}
.bb-resource-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.bb-resource-card:hover .bb-resource-card__img img { transform: scale(1.07); }
.bb-resource-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bb-resource-card__title { font-weight: 700; font-size: 15.5px; }
.bb-resource-card__meta { color: var(--bb-text-3); font-size: 13px; display: flex; gap: 12px; }
.bb-resource-card__price { margin-top: auto; padding-top: 6px; }

/* ---------- Notice board ---------- */
.bb-notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* ---------- Success section ---------- */
.bb-success-band {
    position: relative;
    background: linear-gradient(160deg, #131B3B 0%, #1D2B5E 55%, #3A2C6D 100%);
    padding: clamp(56px, 8vw, 96px) 0;
    overflow: hidden;
}
.bb-success-band::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(132,206,235,0.15), transparent 70%);
    top: -120px;
    right: -80px;
}
.bb-success-band .bb-section-header h2,
.bb-success-band .bb-section-header p { color: #fff; }
.bb-success-band .bb-section-header p { color: #C1CBE8; }
.bb-success-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 4px 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(132,206,235,0.4) transparent;
}
.bb-success-scroll::-webkit-scrollbar { height: 8px; }
.bb-success-scroll::-webkit-scrollbar-thumb { background: rgba(132,206,235,0.4); border-radius: 8px; }
.bb-success-scroll::-webkit-scrollbar-track { background: transparent; }
.bb-success-scroll .bb-student-card {
    min-width: 260px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.96);
}

/* ---------- About ---------- */
.bb-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
}
@media (max-width: 900px) {
    .bb-about-grid { grid-template-columns: 1fr; }
}
.bb-about-img {
    border-radius: var(--bb-radius-xl);
    overflow: hidden;
    box-shadow: var(--bb-shadow-lg);
    position: relative;
}
.bb-about-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.bb-about-img:hover img { transform: scale(1.04); }
.bb-about-img::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 3px solid rgba(86, 128, 233, 0.25);
    border-radius: calc(var(--bb-radius-xl) + 20px);
    z-index: -1;
}
.bb-about-content h2 {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 800;
    margin-bottom: 16px;
}
.bb-about-content .brand-name {
    background: var(--bb-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bb-about-content p {
    color: var(--bb-text-2);
    font-size: 15.5px;
    line-height: 1.8;
}
.bb-about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}
.bb-about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--bb-radius);
    background: var(--bb-surface);
    border: 1px solid var(--bb-border);
    font-size: 13.5px;
    font-weight: 600;
}
.bb-about-features img { width: 16px; height: 16px; color: var(--bb-primary); }

/* ---------- Video ---------- */
.bb-video-band {
    background: var(--bb-surface);
    text-align: center;
}
.bb-video-frame {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    border-radius: var(--bb-radius-xl);
    overflow: hidden;
    box-shadow: var(--bb-shadow-lg);
    background-size: cover;
    background-position: center;
    aspect-ratio: 16 / 9;
}
.bb-video-frame .bb-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(30, 42, 74, 0.2);
    transition: background var(--bb-transition);
}
.bb-video-frame .bb-video-play:hover { background: rgba(30, 42, 74, 0.1); }
.bb-video-btn {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--bb-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 0 0 rgba(86, 128, 233, 0.6);
    animation: bb-play-pulse 2s infinite;
    transition: all var(--bb-transition);
}
.bb-video-btn:hover { transform: scale(1.1); }
.bb-video-btn i { font-size: 32px; margin-left: 5px; }
@keyframes bb-play-pulse {
    0% { box-shadow: 0 0 0 0 rgba(86, 128, 233, 0.5); }
    70% { box-shadow: 0 0 0 24px rgba(86, 128, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(86, 128, 233, 0); }
}

/* ---------- Gallery ---------- */
.bb-gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--bb-border-strong) transparent;
}
.bb-gallery-track::-webkit-scrollbar { height: 8px; }
.bb-gallery-track::-webkit-scrollbar-thumb { background: var(--bb-border-strong); border-radius: 8px; }
.bb-gallery-slide {
    border-radius: var(--bb-radius-lg);
    overflow: hidden;
    scroll-snap-align: start;
    aspect-ratio: 4 / 3;
    position: relative;
    transition: all var(--bb-transition);
}
.bb-gallery-slide:hover { transform: translateY(-5px); box-shadow: var(--bb-shadow-lg); }
.bb-gallery-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.bb-gallery-slide:hover img { transform: scale(1.06); }

/* ---------- CTA ---------- */
.bb-cta {
    position: relative;
    border-radius: var(--bb-radius-xl);
    background: var(--bb-gradient);
    padding: clamp(40px, 7vw, 72px) clamp(24px, 6vw, 64px);
    text-align: center;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(86, 128, 233, 0.35);
}
.bb-cta::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, 0.08);
    top: -120px;
    left: -80px;
}
.bb-cta::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    bottom: -100px;
    right: -60px;
}
.bb-cta h2 {
    color: #fff;
    font-size: clamp(26px, 4.5vw, 40px);
    font-weight: 800;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.bb-cta p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 15.5px;
    position: relative;
    z-index: 1;
}
.bb-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    position: relative;
    z-index: 1;
}
