/* Smart English — Notes | Floating Image + Rotating Frame */
.se-home-notes {
    --notes-blue-1: #03133d;
    --notes-blue-2: #082c68;
    --notes-cyan: #38d7ff;
    --notes-gold: #ffc64f;
    position: relative;
    overflow: hidden;
    padding: 104px 0 42px;
    direction: rtl;
    color: #fff;
    background:
        radial-gradient(circle at 23% 24%, rgba(18, 174, 239, .20), transparent 20%),
        radial-gradient(circle at 87% 77%, rgba(255, 196, 55, .08), transparent 18%),
        linear-gradient(135deg, #021238 0%, #062a62 51%, #03143b 100%);
    font-family: "Tajawal", "Noto Kufi Arabic", Arial, sans-serif;
}

.se-home-notes *,
.se-home-notes *::before,
.se-home-notes *::after {
    box-sizing: border-box;
}

.se-home-notes__container {
    position: relative;
    z-index: 2;
    width: min(1210px, calc(100% - 44px));
    margin: 0 auto;
}

.se-home-notes__ambient {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(16px);
}

.se-home-notes__ambient--one {
    top: -185px;
    left: -130px;
    width: 485px;
    height: 485px;
    background: rgba(22, 153, 232, .18);
}

.se-home-notes__ambient--two {
    right: -160px;
    bottom: -235px;
    width: 470px;
    height: 470px;
    background: rgba(255, 191, 42, .11);
}

.se-home-notes__dots {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 0;
    width: 24%;
    opacity: .17;
    pointer-events: none;
    background-image: radial-gradient(rgba(101, 218, 255, .90) 1px, transparent 1.5px);
    background-size: 10px 10px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 94%);
}

.se-home-notes__layout {
    display: grid;
    grid-template-columns: minmax(0, .98fr) minmax(460px, 1.02fr);
    gap: clamp(34px, 7vw, 96px);
    align-items: center;
}

/* Right content */
.se-home-notes__content {
    position: relative;
    z-index: 3;
    max-width: 565px;
}

.se-home-notes__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 37px;
    padding: 0 17px;
    border: 1px solid rgba(255, 207, 86, .74);
    border-radius: 999px;
    color: #ffe29b;
    background: rgba(2, 25, 66, .32);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    font-size: 14px;
    font-weight: 900;
}

.se-home-notes__badge span {
    color: var(--notes-gold);
    font-size: 18px;
}

.se-home-notes__content h2 {
    margin: 19px 0 0;
    line-height: 1.04;
}

.se-home-notes__content h2 span,
.se-home-notes__content h2 strong {
    display: block;
    font-weight: 900;
}

.se-home-notes__content h2 span {
    color: #fff;
    font-size: clamp(48px, 5vw, 76px);
    letter-spacing: -.06em;
}

.se-home-notes__content h2 strong {
    margin-top: 7px;
    direction: ltr;
    text-align: right;
    color: #ffd064;
    font-size: clamp(45px, 4.7vw, 70px);
    letter-spacing: -.065em;
    text-shadow: 0 3px 22px rgba(255, 192, 46, .18);
}

.se-home-notes__subtitle {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 21px;
    direction: ltr;
    color: #72ddff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .01em;
}

.se-home-notes__subtitle i {
    width: 68px;
    height: 1px;
    display: block;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 82, .98));
}

.se-home-notes__subtitle i:last-child {
    background: linear-gradient(90deg, rgba(255, 204, 82, .98), transparent);
}

.se-home-notes__lead {
    max-width: 555px;
    margin: 23px 0 0;
    color: rgba(250, 254, 255, .93);
    font-size: 18px;
    line-height: 2.02;
    font-weight: 500;
}

.se-home-notes__features {
    margin-top: 23px;
    border-top: 1px dashed rgba(119, 219, 253, .28);
}

.se-home-notes__feature {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 64px;
    border-bottom: 1px dashed rgba(119, 219, 253, .28);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    transition: transform .25s ease, color .25s ease;
}

.se-home-notes__feature:hover {
    color: #ffe29a;
    transform: translateX(-6px);
}

.se-home-notes__feature-icon {
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border: 1.5px solid rgba(255, 205, 82, .95);
    border-radius: 50%;
    color: #ffd15f;
    background: rgba(5, 39, 97, .58);
    box-shadow: inset 0 0 0 3px rgba(255, 210, 90, .05);
}

.se-home-notes__feature-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.se-home-notes__cta {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    margin-top: 29px;
    padding: 0 28px 0 18px;
    border: 1px solid rgba(255, 239, 183, .80);
    border-radius: 17px;
    color: #062962 !important;
    background: linear-gradient(135deg, #ffe59c 0%, #ffca4d 50%, #efac23 100%);
    box-shadow: 0 17px 32px rgba(0, 9, 34, .34), inset 0 1px 0 rgba(255,255,255,.76);
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 900;
    transition: transform .28s cubic-bezier(.2,.75,.25,1), filter .28s ease, box-shadow .28s ease;
}

.se-home-notes__cta:hover {
    color: #062962 !important;
    filter: brightness(1.06);
    box-shadow: 0 25px 42px rgba(0, 9, 34, .44), inset 0 1px 0 rgba(255,255,255,.86);
    transform: translateY(-5px);
}

.se-home-notes__cta b {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff4d0;
    background: #092f69;
    font-size: 21px;
    transition: transform .28s ease;
}

.se-home-notes__cta:hover b {
    transform: translateX(-5px);
}

/* Left visual + CSS orbit frame */
.se-home-notes__visual {
    position: relative;
    z-index: 2;
    width: min(555px, 100%);
    aspect-ratio: 1 / 1;
    justify-self: center;
}

.se-home-notes__image-shell {
    position: absolute;
    z-index: 3;
    inset: 13%;
    overflow: hidden;
    border: 1px solid rgba(175, 231, 255, .40);
    border-radius: 29px;
    background: #0c3d84;
    box-shadow:
        0 30px 60px rgba(0, 7, 31, .42),
        inset 0 1px 0 rgba(255,255,255,.20);
    animation: seNotesImageFloat 5.8s ease-in-out infinite;
    transition: transform .45s cubic-bezier(.2,.75,.25,1), box-shadow .45s ease;
}

.se-home-notes__image-shell:hover {
    box-shadow:
        0 42px 73px rgba(0, 7, 31, .52),
        inset 0 1px 0 rgba(255,255,255,.25);
    transform: translateY(-9px) scale(1.018);
}

.se-home-notes__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.se-home-notes__image::selection {
    background: transparent;
}

.se-home-notes__image-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.27) 47%, transparent 74%);
    transform: translateX(-160%);
    transition: transform .82s ease;
}

.se-home-notes__image-shell:hover .se-home-notes__image-shine {
    transform: translateX(160%);
}

.se-home-notes__orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.se-home-notes__orbit--outer {
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(51, 206, 255, .35);
    border-top-color: rgba(255, 205, 83, .95);
    border-right-color: rgba(46, 221, 255, .95);
    box-shadow:
        0 0 0 5px rgba(15, 132, 231, .10),
        0 0 31px rgba(47, 206, 255, .22);
    animation: seNotesOrbitClockwise 22s linear infinite;
}

.se-home-notes__orbit--middle {
    z-index: 4;
    width: 112%;
    height: 86%;
    border: 2px solid transparent;
    border-top-color: rgba(51, 221, 255, .88);
    border-left-color: rgba(255, 203, 77, .78);
    transform: translate(-50%, -50%) rotate(-20deg);
    animation: seNotesOrbitAntiClockwise 16s linear infinite;
}

.se-home-notes__orbit--inner {
    z-index: 0;
    width: 88%;
    height: 108%;
    border: 1px dashed rgba(176, 231, 255, .31);
    transform: translate(-50%, -50%) rotate(25deg);
    animation: seNotesOrbitClockwise 30s linear infinite reverse;
}

.se-home-notes__orbit-dot {
    position: absolute;
    z-index: 5;
    display: block;
    border-radius: 50%;
    pointer-events: none;
}

.se-home-notes__orbit-dot--one {
    top: 12%;
    left: 16%;
    width: 12px;
    height: 12px;
    background: #8de9ff;
    box-shadow: 0 0 18px #33d7ff;
    animation: seNotesDotFloat 4.3s ease-in-out infinite;
}

.se-home-notes__orbit-dot--two {
    right: 8%;
    bottom: 21%;
    width: 11px;
    height: 11px;
    background: #ffd15d;
    box-shadow: 0 0 18px #ffc84e;
    animation: seNotesDotFloat 4.7s ease-in-out infinite 1s;
}

.se-home-notes__orbit-dot--three {
    right: 22%;
    top: 7%;
    width: 8px;
    height: 8px;
    background: #fff;
    box-shadow: 0 0 18px #fff;
    animation: seNotesDotFloat 3.8s ease-in-out infinite 1.8s;
}

.se-home-notes__mini-card {
    position: absolute;
    z-index: 6;
    display: grid;
    place-items: center;
    border: 1px solid rgba(146, 226, 255, .45);
    background: linear-gradient(145deg, rgba(57, 185, 239, .42), rgba(6, 54, 128, .56));
    box-shadow: 0 15px 27px rgba(0, 7, 29, .28), inset 0 1px 0 rgba(255,255,255,.24);
    backdrop-filter: blur(8px);
    animation: seNotesMiniFloat 5s ease-in-out infinite;
}

.se-home-notes__mini-card--book {
    top: 16%;
    right: 1%;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 27px;
}

.se-home-notes__mini-card--star {
    left: 5%;
    bottom: 21%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #ffe18d;
    font-size: 22px;
    animation-delay: 1.1s;
}

.se-home-notes__mini-card--check {
    left: 11%;
    top: 30%;
    width: 52px;
    height: 52px;
    border-radius: 17px;
    color: #082e70;
    background: linear-gradient(145deg, #ffe79b, #ffc444);
    font-size: 29px;
    font-weight: 900;
    animation-delay: 2s;
}

/* Trust strip */
.se-home-notes__trust {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 52%;
    margin: -6px 0 0 auto;
    padding-top: 26px;
    border-top: 1px solid rgba(116, 220, 253, .19);
}

.se-home-notes__trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.se-home-notes__trust-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffd363;
}

.se-home-notes__trust-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.se-home-notes__trust-item strong,
.se-home-notes__trust-item small {
    display: block;
}

.se-home-notes__trust-item strong {
    color: #fbfdff;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.se-home-notes__trust-item small {
    margin-top: 2px;
    color: rgba(226, 246, 255, .77);
    font-size: 12px;
    font-weight: 600;
}

.se-home-notes__trust-line {
    width: 1px;
    height: 42px;
    flex: 0 0 1px;
    background: rgba(255, 204, 83, .50);
}

/* Entrance */
.se-notes-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .78s ease, transform .78s cubic-bezier(.2,.75,.25,1);
}

.se-notes-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes seNotesImageFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes seNotesOrbitClockwise {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes seNotesOrbitAntiClockwise {
    from { transform: translate(-50%, -50%) rotate(-20deg); }
    to { transform: translate(-50%, -50%) rotate(-380deg); }
}

@keyframes seNotesDotFloat {
    0%, 100% { transform: translateY(0); opacity: .80; }
    50% { transform: translateY(-10px); opacity: 1; }
}

@keyframes seNotesMiniFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@media (max-width: 1050px) {
    .se-home-notes {
        padding: 84px 0 40px;
    }

    .se-home-notes__layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .se-home-notes__content {
        max-width: 700px;
        margin: 0 auto;
        text-align: center;
    }

    .se-home-notes__content h2 strong {
        text-align: center;
    }

    .se-home-notes__subtitle {
        justify-content: center;
    }

    .se-home-notes__lead {
        margin-right: auto;
        margin-left: auto;
    }

    .se-home-notes__feature {
        text-align: right;
    }

    .se-home-notes__visual {
        order: -1;
        width: min(600px, 92vw);
    }

    .se-home-notes__trust {
        width: 100%;
        justify-content: center;
        margin-top: 18px;
    }
}

@media (max-width: 640px) {
    .se-home-notes {
        padding: 66px 0 32px;
    }

    .se-home-notes__container {
        width: min(100% - 28px, 1210px);
    }

    .se-home-notes__content h2 span {
        font-size: 50px;
    }

    .se-home-notes__content h2 strong {
        font-size: 45px;
    }

    .se-home-notes__subtitle {
        font-size: 16px;
    }

    .se-home-notes__subtitle i {
        width: 32px;
    }

    .se-home-notes__lead {
        font-size: 15px;
        line-height: 1.95;
    }

    .se-home-notes__feature {
        min-height: 57px;
        font-size: 15px;
    }

    .se-home-notes__cta {
        width: 100%;
        justify-content: center;
    }

    .se-home-notes__visual {
        width: min(375px, 96vw);
    }

    .se-home-notes__image-shell {
        inset: 12%;
        border-radius: 22px;
    }

    .se-home-notes__mini-card--book {
        width: 47px;
        height: 47px;
        border-radius: 15px;
        font-size: 21px;
    }

    .se-home-notes__mini-card--star {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .se-home-notes__mini-card--check {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 25px;
    }

    .se-home-notes__trust {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: start;
        gap: 13px;
    }

    .se-home-notes__trust-line {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .se-notes-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .se-home-notes *,
    .se-home-notes *::before,
    .se-home-notes *::after {
        animation: none !important;
        transition: none !important;
    }
}
