/* General page settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f9ff;
    color: #101340;
}

/* Header */
header {
    width: 100%;
    padding: 22px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #101340;
}

.logo span {
    color: #5b5ff5;
}

nav a {
    text-decoration: none;
    color: #101340;
    margin: 0 18px;
    font-weight: 600;
}

nav a:hover {
    color: #5b5ff5;
}

.top-btn {
    background: linear-gradient(90deg, #6554f4, #16c7c7);
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin: 20px auto;
    width: 92%;
    min-height: 470px;
    background: linear-gradient(120deg, #eef0ff, #dffaff);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 8%;
    position: relative;
    overflow: hidden;
}

.hero-text {
    width: 50%;
}

.hero-text h1 {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text h1 span {
    color: #5b5ff5;
}

.hero-text p {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #33395f;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-bottom: 25px;
}

.primary-btn,
.secondary-btn {
    padding: 15px 30px;
    border-radius: 13px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.primary-btn {
    background: #6c4df6;
    color: white;
    border: none;
}

.secondary-btn {
    background: white;
    color: #101340;
    border: 2px solid #d5d9f2;
}

.small-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-weight: bold;
    color: #30345f;
}

/* Hero Robot Area */
.hero-image {
    width: 45%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot {
    width: 280px;
    height: 280px;
    background: white;
    border-radius: 50%;
    font-size: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(60, 60, 120, 0.18);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(70, 70, 120, 0.15);
    max-width: 220px;
}

.floating-card p {
    margin-top: 8px;
    font-size: 14px;
    color: #41466e;
}

.card-one {
    top: 20px;
    left: 0;
}

.card-two {
    bottom: 20px;
    right: 0;
}

/* Features */
.features {
    width: 82%;
    margin: 35px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.feature-card {
    background: white;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(60, 60, 120, 0.08);
}

.icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: #454b6e;
    line-height: 1.5;
}

/* Learning Areas */
.learning {
    width: 82%;
    margin: 55px auto;
    text-align: center;
}

.learning h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.learning-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 12px 30px rgba(60, 60, 120, 0.08);
}

.learning-card h3 {
    margin-bottom: 12px;
    color: #101340;
}

.learning-card p {
    color: #454b6e;
    margin-bottom: 20px;
    line-height: 1.5;
}

.learning-card a {
    text-decoration: none;
    color: #5b5ff5;
    font-weight: bold;
}

/* Testimonial */
.testimonial {
    width: 82%;
    margin: 50px auto;
    background: #f0edff;
    padding: 35px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Footer */
footer {
    background: #07123d;
    color: white;
    padding: 45px 8%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

footer h3,
footer h4 {
    margin-bottom: 12px;
}

footer p {
    color: #d7dbff;
}

/* Responsive design for smaller screens */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 18px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text,
    .hero-image {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-buttons,
    .small-tags {
        justify-content: center;
    }

    .features,
    .learning-grid,
    .testimonial,
    footer {
        grid-template-columns: 1fr;
    }
}

/* General page hero for extra pages */
.page-hero,
.dashboard-hero {
    width: 92%;
    margin: 25px auto;
    padding: 70px 8%;
    background: linear-gradient(120deg, #eef0ff, #dffaff);
    border-radius: 25px;
    text-align: center;
}

.page-hero h1,
.dashboard-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #101340;
}

.page-hero p,
.dashboard-hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 1.6;
    color: #33395f;
}

/* Page cards */
.page-grid {
    width: 82%;
    margin: 45px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.page-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(60, 60, 120, 0.08);
}

.page-card h3 {
    margin-bottom: 12px;
    color: #101340;
}

.page-card p {
    color: #454b6e;
    line-height: 1.6;
    margin-bottom: 20px;
}

.small-btn {
    padding: 11px 20px;
    font-size: 14px;
}

/* About page */
.about-section {
    width: 82%;
    margin: 45px auto;
    background: white;
    padding: 45px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(60, 60, 120, 0.08);
}

.about-text h2 {
    margin-top: 25px;
    margin-bottom: 12px;
    color: #101340;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p,
.about-text li {
    font-size: 17px;
    color: #454b6e;
    line-height: 1.7;
}

.about-text ul {
    margin-left: 25px;
    margin-top: 12px;
}

/* Dashboards */
.dashboard-layout {
    width: 82%;
    margin: 45px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dashboard-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(60, 60, 120, 0.08);
}

.dashboard-card h2 {
    margin-bottom: 15px;
    color: #101340;
}

.dashboard-card p,
.dashboard-card li {
    color: #454b6e;
    line-height: 1.7;
}

.dashboard-card ul {
    margin-left: 22px;
}

.large-card {
    grid-column: span 2;
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: #e2e5f5;
    border-radius: 20px;
    margin: 18px 0;
    overflow: hidden;
}

.progress-fill {
    width: 75%;
    height: 100%;
    background: linear-gradient(90deg, #6554f4, #16c7c7);
}

.dashboard-card input {
    width: 100%;
    padding: 14px;
    border: 2px solid #d5d9f2;
    border-radius: 12px;
    margin: 15px 0;
    font-size: 15px;
}

/* Responsive pages */
@media (max-width: 900px) {
    .page-grid,
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .large-card {
        grid-column: span 1;
    }

    .page-hero h1,
    .dashboard-hero h1 {
        font-size: 36px;
    }
}