.teacher-page {
    --green: #07863b;
    --dark: #052d1b;
    --soft: #f3faf3;
    --border: #dfeee2;
    --text: #1f2937;
    --muted: #5f6b7a;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: #fbfdfb;
    padding: 32px 0 48px
}

.teacher-page * {
    box-sizing: border-box
}

.teacher-page a {
    text-decoration: none
}

.teacher-hero,
.teacher-benefits,
.teacher-proof,
.teacher-cta {
    width: min(1450px, calc(100% - 64px));
    margin: 0 auto
}

.teacher-hero {
  padding: 0 0 80px;
  background-color: #f7fbf8;
  background-image: url(../images/teacher-hero-robot.png?v=3);
  background-repeat: no-repeat;
  background-position: bottom left;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    align-items: center;
    gap: 40px;
}
.hero-content {
  margin: -125px 0 0;
}
.hero-actions .btn {
  font-size: 15px;
}
.hero-content .badge {
    display:none;
}
.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: #16a34a;
}

.hero-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 25px;
}

/* 🔥 THIS IS THE IMPORTANT PART */
.hero-visual {
    height: 398px;
    border-radius: 16px;

    background: url('../images/teacher-dashboard.png?v=2') no-repeat center;
    background-size: cover;

    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.15), transparent);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e7f4e8;
    color: #087333;
    border-radius: 999px;
    padding: 10px 17px;
    font-weight: 800;
    margin-bottom: 18px
}

.mini-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff
}

.teacher-hero h1 {
    font-size: clamp(42px, 3vw, 66px);
    line-height: 1.06;
    margin: 0 0 22px;
    color: #071621;
    letter-spacing: -.04em
}

.teacher-hero h1 span {
    display: block;
    color: #07863b
}

.teacher-hero p {
    max-width: 500px;
    font-size: 17px;
    line-height: 1.55;
    color: #526071;
    margin: 0 0 30px
}

.hero-actions,
.cta-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    padding: 15px 26px;
    font-weight: 800;
    transition: .2s ease
}

.teacher-page .btn-primary {
    background: linear-gradient(135deg, #07963d, #006b2c);
    color: #fff;
    box-shadow: 0 10px 18px rgba(0, 112, 45, .18)
}

.teacher-page .btn-primary:hover {
    transform: translateY(-2px)
}

.teacher-page .btn-outline {
    border: 1px solid #07863b;
    color: #071621;
    background: #fff
}

.play-icon {
    color: #07863b
}

.teacher-hero__robot {
    position: absolute;
    left: -20px;
    bottom: -34px;
    width: min(570px, 100%);
    max-height: 260px;
    object-fit: contain;
    object-position: left bottom;
    opacity: .98
}

.teacher-dashboard-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 55, 24, .13);
    overflow: hidden;
    min-height: 540px
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(180deg, #005b2c, #003d24);
    padding: 32px 16px;
    color: #fff
}

.dashboard-sidebar a {
    color: #fff;
    font-weight: 700;
    padding: 13px 14px;
    border-radius: 8px;
    font-size: 14px
}

.dashboard-sidebar a.active {
    background: #089341
}

.dashboard-sidebar span {
    flex: 1
}

.dashboard-main {
    padding: 28px 26px
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    margin-bottom: 25px
}

.dashboard-topbar small {
    display: block;
    font-size: 15px;
    color: #111827
}

.dashboard-topbar strong {
    font-size: 24px;
    color: #071621
}

.dashboard-topbar select,
.performance-panel select {
    border: 1px solid #d6dee8;
    border-radius: 8px;
    padding: 11px 14px;
    background: #fff;
    color: #243042
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px
}

.stat {
    position: relative;
    border: 1px solid #e3e9ef;
    border-radius: 10px;
    padding: 18px;
    min-height: 90px;
    background: #fff
}

.stat strong {
    display: block;
    font-size: 30px;
    color: #07863b
}

.stat span {
    font-size: 13px;
    font-weight: 700
}

.stat i {
    position: absolute;
    right: 18px;
    top: 28px;
    font-style: normal;
    font-size: 28px
}

.stat-green {
    background: #f4fbf4
}

.stat-blue {
    background: #f3f8ff
}

.stat-purple {
    background: #fbf6ff
}

.stat-purple strong {
    color: #6a2ac7
}

.stat-gold {
    background: #fffaf0
}

.stat-gold strong {
    color: #a66a00
}

.dashboard-panels {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 18px
}

.assignment-panel,
.performance-panel {
    border: 1px solid #e4e9e6;
    border-radius: 12px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .04)
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px
}

.panel-title h3 {
    margin: 0;
    color: #111827;
    font-size: 18px
}

.panel-title a {
    color: #07863b;
    font-weight: 800;
    font-size: 13px
}

.assignment-row {
    display: grid;
    grid-template-columns: 1.4fr .85fr .8fr .35fr;
    gap: 10px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #edf0ee;
    font-size: 13px
}

.assignment-row:last-child {
    border-bottom: 0
}

.assignment-row small {
    display: block;
    color: #5f6b7a;
    margin-top: 3px
}

.assignment-row em {
    font-style: normal;
    text-align: center;
    border-radius: 999px;
    padding: 7px 9px;
    font-size: 12px
}

.assignment-row .done {
    background: #e8f8ec;
    color: #07863b
}

.assignment-row .progress {
    background: #eaf3ff;
    color: #1a66c9
}

.assignment-row .pending {
    background: #fff4de;
    color: #a66a00
}

.chart-lines {
    height: 190px;
    border-left: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: end;
    gap: 22px;
    padding: 0 15px;
    background: repeating-linear-gradient(to top, #fff 0, #fff 47px, #edf0ee 48px)
}

.chart-lines span {
    width: 16px;
    background: linear-gradient(180deg, #18a44b, #0b7d35);
    border-radius: 20px 20px 0 0;
    position: relative
}

.chart-lines span:before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #0b8c3a;
    border-radius: 50%;
    transform: translateX(-50%)
}

.chart-days {
    display: flex;
    justify-content: space-around;
    color: #5f6b7a;
    font-size: 12px;
    margin-top: 12px
}

.teacher-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 55, 24, .08);
    margin-top: 28px;
    padding: 24px
}

.teacher-benefits article {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 26px;
    border-right: 1px solid var(--border)
}

.teacher-benefits article:last-child {
    border-right: 0
}

.teacher-benefits i {
    flex: 0 0 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef7ef;
    font-style: normal;
    font-size: 30px
}

.teacher-benefits h3 {
    color: #07863b;
    margin: 0 0 7px;
    font-size: 19px
}

.teacher-benefits p {
    margin: 0;
    color: #374151;
    line-height: 1.45
}

.teacher-proof {
    display: grid;
    grid-template-columns: 1.9fr repeat(3, 1fr);
    gap: 22px;
    margin-top: 26px
}

.built-card,
.testimonial {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 55, 24, .07)
}

.built-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    overflow: hidden;
    background: #f2fbf0;
    background-image: url(../images/teacher-built-robot.png?v=2);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 65%;
    padding: 28px 28px 0
}

.built-card h2 {
    font-size: 27px;
    color: #075c2c;
    margin: 0 0 14px
}

.built-card p {
    line-height: 1.6;
    color: #374151;
    margin: 0
}

.built-card img {
    width: 100%;
    align-self: end
}

.testimonial {
    padding: 26px 26px 70px;
    position: relative;
}

.stars {
    color: #07863b;
    letter-spacing: 3px;
    font-size: 18px;
    margin-bottom: 16px
}

.testimonial p {
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 24px;
    color: #111827
}

.person {
  display: flex;
  align-items: center;
  gap: 13px;
  position: absolute;
  bottom: 20px;
}

.person span {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7f4e8;
    color: #07863b;
    font-weight: 900
}

.person strong {
    display: flex;
    flex-direction: column
}

.person small {
    font-weight: 500;
    color: #5f6b7a;
    margin-top: 3px
}

.teacher-cta {
    margin-top: 6px;
    background: linear-gradient(135deg, #07863b, #005b2c);
    border-radius: 8px;
    color: #fff;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.teacher-cta>div:first-child {
    display: flex;
    align-items: center;
    gap: 18px
}

.teacher-cta i {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    color: #07863b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 28px
}

.teacher-cta h2 {
    font-size: 23px;
    margin: 0 0 6px
}

.teacher-cta p {
    margin: 0;
    opacity: .9
}

.teacher-page .btn-light {
    background: #fff;
    color: #075c2c
}

.teacher-page .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, .65);
    color: #fff
}

.teacher-page .btn-outline-light:hover {
    background: rgba(255, 255, 255, .1)
}

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

    .hero-visual {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 36px;
    }
}

@media(max-width:1180px) {
    .teacher-hero {
        grid-template-columns: 1fr
    }

    .teacher-hero__copy {
        min-height: auto;
        padding-bottom: 260px
    }

    .teacher-dashboard-card {
        min-height: auto
    }

    .teacher-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px
    }

    .teacher-benefits article {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 18px
    }

    .teacher-proof {
        grid-template-columns: 1fr 1fr
    }

    .built-card {
        grid-column: 1/-1
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:760px) {

    .teacher-hero,
    .teacher-benefits,
    .teacher-proof,
    .teacher-cta {
        width: min(100% - 28px, 1450px)
    }

    .teacher-hero {
        padding: 28px 22px
    }

    .teacher-hero__copy {
        padding-bottom: 210px
    }

    .teacher-hero__robot {
        width: 120%;
        left: -55px
    }

    .teacher-dashboard-card {
        display: block
    }

    .dashboard-sidebar {
        display: none
    }

    .dashboard-main {
        padding: 18px
    }

    .dashboard-panels,
    .stats-grid,
    .teacher-benefits,
    .teacher-proof {
        grid-template-columns: 1fr
    }

    .assignment-row {
        grid-template-columns: 1fr;
        gap: 5px
    }

    .chart-lines {
        gap: 14px
    }

    .teacher-cta {
        align-items: flex-start;
        flex-direction: column
    }

    .built-card {
        grid-template-columns: 1fr
    }

    .built-card img {
        max-height: 230px;
        object-fit: contain
    }

    .hero-actions,
    .cta-actions {
        width: 100%
    }

    .btn {
        width: 100%
    }
}