/* ========================================
   THE SCHOOL HOME PAGE STYLES
   ======================================== */

/* MARQUEE ANIMATION */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* PRELOADER STYLES */
:root {
    --size: 360px;
    --duration: 2.8s;
    --c1: #2bb6ff;
    --c2: #007bff;
    --c3: #6f2bff;
    --c4: #4a00ff;
}

#preloader {
    position: fixed;
    inset: 0;
    display: flex;
    background: #f5faff;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    overflow: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-container {
    width: var(--size);
    height: var(--size);
    border-radius: 30px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.neon-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 140, 255, 0.55), transparent);
    filter: blur(55px);
    z-index: 0;
}

.rings {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.ring {
    transform-origin: 50% 50%;
    filter: drop-shadow(0 0 16px rgba(0, 162, 255, 0.55));
}

.ring.r1 {
    animation: rotate-cw var(--duration) linear infinite;
}

.ring.r2 {
    animation: rotate-ccw calc(var(--duration) * 1.2) linear infinite;
}

@keyframes rotate-cw {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-ccw {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.logo-img {
    width: 55%;
    height: 55%;
    object-fit: contain;
    animation: float 2.2s ease-in-out infinite;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.18));
}

@keyframes float {
    0% {
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(8px);
    }

    100% {
        transform: translateY(-8px);
    }
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* FEATURE CARD HOVER */
.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* APP PREVIEW SECTION */
.app-preview-section {
    padding: 30px 20px;
}

.img-fluid {
    transition: transform 0.3s;
}

.img-fluid:hover {
    transform: scale(1.05);
}

.btn {
    padding: 12px 25px;
    font-size: 16px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .app-preview-section h2 {
        font-size: 28px;
    }

    .app-preview-section p {
        font-size: 16px;
    }
}

/* MAIN CTA BUTTON */
.cta {
    display: flex;
    padding: 11px 28px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    background: #6225e6;
    transition: 1s;
    box-shadow: 6px 6px 0 rgb(97, 185, 212);
    transform: skewX(-15deg);
    border: none;
    cursor: pointer;
    align-items: center;
}

.cta:hover {
    transition: 0.5s;
    box-shadow: 10px 10px 0 #fbc638;
}

.span {
    transform: skewX(15deg);
}

.second {
    width: 20px;
    margin-left: 25px;
    position: relative;
    top: 12%;
    transition: all 0.3s ease;
}

.one,
.two,
.three {
    transition: 0.5s;
}

.cta:hover .second {
    margin-right: 15px;
}

.cta:hover .three {
    animation: color_anim 1s infinite 0.2s;
}

.cta:hover .one {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.6s;
}

.cta:hover .two {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.4s;
}

@keyframes color_anim {
    0% {
        fill: white;
    }

    50% {
        fill: #fbc638;
    }

    100% {
        fill: white;
    }
}

@media (max-width: 768px) {
    .cta {
        font-size: 18px;
        padding: 10px 24px;
        box-shadow: 4px 4px 0 rgb(97, 185, 212);
    }

    .second {
        margin-left: 18px;
        top: 10%;
    }
}

@media (max-width: 576px) {
    .cta {
        width: 100%;
        justify-content: center;
        font-size: 16px;
        padding: 10px 18px;
        box-shadow: 3px 3px 0 rgb(97, 185, 212);
    }

    .second {
        margin-left: 15px;
        width: 18px;
        transition: all 0.3s ease;
    }

    .cta:hover .second {
        margin-right: 25px;
    }
}

@media (max-width: 400px) {
    .cta {
        font-size: 14px;
        padding: 9px 16px;
    }

    .second {
        width: 16px;
        margin-left: 12px;
    }
}

/* VIDEO CAROUSEL */
.viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.video-item {
    flex-shrink: 0;
    width: 350px;
}

.video-item iframe {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: 16px;
}

/* HOME HERO OVERRIDES */
.hero {
    display: block;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 80px 0 160px;
    color: var(--sm-text-dark);
    text-align: left;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.hero .left-col,
.hero .left-col h1,
.hero .left-col .badge,
.hero .left-col .subtitle,
.hero .left-col .desc,
.hero .left-col .cta-row,
.hero .left-col .stats-row,
.hero .left-col .trust {
    text-align: left;
    align-items: flex-start;
}

.hero .cta-row {
    justify-content: flex-start;
}

.hero,
.hero .left-col {
    text-align: left;
    justify-content: flex-start;
}

.left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(229, 226, 251, 0.9);
}

.collage {
    position: relative;
    border-radius: 32px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.hero-laptop-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    filter: drop-shadow(0 15px 35px rgba(15, 18, 34, 0.12));
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Floating Cards Around Laptop Image */
.hero-image-container .ai-pill {
    position: absolute;
    top: -10px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 11px;
    color: #7c3aed;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
    z-index: 10;
    border: 1px solid rgba(124, 58, 237, 0.2);
    animation: floatCard 4s ease-in-out infinite;
}

.hero-image-container .float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 6px 10px;
    box-shadow: 0 10px 22px -8px rgba(20, 10, 60, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.9);
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.3s ease;
}

.hero-image-container .float-card .fc-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.hero-image-container .float-card .fc-icon svg {
    width: 12px;
    height: 12px;
}

.hero-image-container .fc-dashboard {
    top: 8%;
    left: -10px;
    animation: floatCard 5s ease-in-out infinite;
}

.hero-image-container .fc-performance {
    top: 5%;
    right: -10px;
    width: 120px;
    padding: 6px 8px;
    flex-direction: column;
    align-items: flex-start;
    animation: floatCard 6s ease-in-out infinite 0.5s;
}

.hero-image-container .fc-performance .title {
    font-size: 9.5px;
    margin-bottom: 4px;
}

.hero-image-container .fc-performance .ring {
    width: 30px;
    height: 30px;
}

.hero-image-container .fc-performance .ring span {
    width: 22px;
    height: 22px;
    font-size: 8px;
}

.hero-image-container .fc-performance .bars {
    height: 18px;
    gap: 2px;
}

.hero-image-container .fc-performance .bars span {
    width: 3px;
}

.hero-image-container .fc-realtime {
    bottom: 12%;
    right: -8px;
    animation: floatCard 5.5s ease-in-out infinite 1s;
}

.hero-image-container .fc-realtime .realtime-title {
    font-size: 9.5px;
}

.hero-image-container .fc-realtime .growth {
    font-size: 12px;
}

.hero-image-container .fc-analytics {
    bottom: 10%;
    left: -8px;
    animation: floatCard 4.5s ease-in-out infinite 1.5s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 24px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 226, 251, 0.8);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 25px -5px rgba(15, 18, 34, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(15, 18, 34, 0.12);
    border-color: rgba(124, 58, 237, 0.3);
}

.hero-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f1222;
    margin: 0;
    line-height: 1.35;
}

.hero-card p {
    font-size: 0.82rem;
    color: #555b70;
    margin: 0;
    line-height: 1.5;
}


.img-block {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px -18px rgba(20, 10, 60, .28);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.img-teacher {
    top: 40px;
    left: 20px;
    width: 270px;
    height: 250px;
    background-image: url('../images/school_home1.jpg');
}

.img-library {
    top: 130px;
    right: 20px;
    width: 300px;
    height: 220px;
    background-image: url('../images/school_home2.jpg');
}

.img-students {
    bottom: 36px;
    left: 80px;
    width: 420px;
    height: 280px;
    background-image: url('../images/SCHOOL_HERO_1.jpg');
    z-index: 3;
}

.img-block .placeholder-photo {
    display: none;
}

/* Responsive hero layout */
@media (max-width: 1200px) {
    .hero-grid {
        gap: 32px;
    }

    .collage {
        min-height: auto;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero .left-col,
    .hero .left-col h1,
    .hero .left-col .badge,
    .hero .left-col .subtitle,
    .hero .left-col .desc,
    .hero .left-col .cta-row,
    .hero .left-col .stats-row,
    .hero .left-col .trust {
        text-align: center;
        align-items: center;
    }

    .hero .cta-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .stats-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        width: 100%;
        justify-items: center;
    }

    .stat {
        width: min(260px, 100%);
    }

    .collage {
        min-height: auto;
        padding: 0;
    }

    .img-block {
        display: none;
    }

    .collage .fc-dashboard,
    .collage .fc-performance,
    .collage .fc-realtime,
    .collage .fc-analytics {
        position: static;
        margin: 16px auto 0;
        width: fit-content;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 16px;
        border-radius: 24px;
    }

    .hero .left-col h1 {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .hero .subtitle,
    .hero .desc {
        font-size: 1rem;
    }

    .hero .cta-row {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .collage {
        min-height: auto;
    }

    .hero-feature-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .hero-image-container{
        padding:0 18px;
    }

    .hero-laptop-img{
        width:100%;
        border-radius:18px;
    }

    .collage{
        padding:0 10px;
    }

    .stats-row-glass{
        display:grid !important;
        grid-template-columns:repeat(3,1fr) !important;
        gap:10px !important;
        padding:15px !important;
    }

    .stats-row-glass .stat{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        text-align:center;
        padding:0 !important;
    }

    .stats-row-glass .icon-wrap{
        width:56px;
        height:56px;
        margin-bottom:8px;
    }

    .stats-row-glass .num{
        font-size:22px;
        font-weight:700;
    }

    .stats-row-glass .label{
        font-size:11px;
        line-height:1.3;
    }

}

@media (max-width: 576px) {
    .hero {
        border-radius: 20px;
    }

    .hero .left-col h1 {
        font-size: 2rem;
    }

    .hero .cta-row {
        gap: 10px;
    }

   

    .collage {
        min-height: auto;
        padding: 0;
    }

    .hero-feature-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-image-container .fc-dashboard,
    .hero-image-container .fc-performance,
    .hero-image-container .fc-realtime,
    .hero-image-container .fc-analytics {
        display: none;
    }

    .hero-image-container .ai-pill {
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        animation: none;
    }
}

/* ========================================
   FAQ SECTION (was completely unstyled)
   ======================================== */
.creative-faq--section {
    padding: 80px 20px;
}

.faq-inner {
    max-width: 900px;
    margin: 0 auto;
}

.faq-heading {
    text-align: center;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 14px;
    color: #1a1f36;
}

.faq-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #5a5f65;
    font-size: 1rem;
    line-height: 1.7;
}

.faq-wrap {
    width: 100%;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(148, 165, 189, 0.25);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item.active {
    border-color: rgba(98, 37, 230, 0.35);
    box-shadow: 0 12px 28px rgba(98, 37, 230, 0.12);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1f36;
    -webkit-tap-highlight-color: transparent;
}

.faq-question span {
    flex: 1;
    line-height: 1.5;
}

.faq-question i {
    flex-shrink: 0;
    color: #6225e6;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 22px 20px;
}

.faq-answer p {
    margin: 0;
    color: #5a5f65;
    font-size: 0.95rem;
    line-height: 1.75;
}

@media (max-width: 768px) {
    .creative-faq--section {
        padding: 56px 16px;
    }

    .faq-subtitle {
        margin-bottom: 28px;
        font-size: 0.95rem;
    }

    .faq-question {
        padding: 15px 16px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .faq-answer {
        padding: 0 16px;
    }

    .faq-item.active .faq-answer {
        padding: 0 16px 16px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 0.9rem;
    }

    .faq-answer p {
        font-size: 0.88rem;
    }
}

/* ========================================
   VIDEO CAROUSEL / SECTION PADDING TWEAKS
   ======================================== */
@media (max-width: 576px) {
    .video-item {
        width: 260px;
    }

    .video-item iframe {
        height: 160px;
    }
}

@media (max-width: 768px) {

    .pro-features,
    .features-modern {
        padding: 60px 16px;
    }
}

@media (max-width: 480px) {

    .pro-features,
    .features-modern {
        padding: 44px 14px;
    }
}

/* Glassmorphism Stats Row */
.stats-row-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    align-items: center;
}

@media (max-width: 768px) {
    .stats-row-glass {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* Transform Strip Section */
.transform-strip {
    background: linear-gradient(135deg, #3b4fe4, #7c3aed);
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(59, 79, 228, 0.4);
    color: #fff;
}

.transform-strip .strip-icon-wrap {
    background: rgba(255, 255, 255, 0.15);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transform-strip h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.transform-strip p {
    margin: 3px 0 0;
    font-size: 13.5px;
    opacity: .9;
    font-weight: 400;
}

.transform-strip .btn-demo {
    border: 1.5px solid #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.transform-strip .btn-demo:hover {
    background: #fff !important;
    color: #3b4fe4 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.transform-strip .btn-demo svg {
    transition: transform 0.3s ease;
}

.transform-strip .btn-demo:hover svg {
    transform: translateX(4px);
}