.hero{
    padding:70px 0 50px;
    background:linear-gradient(135deg,#eef4ff,#f8faff);
    text-align:center;
}

.hero h1{
    margin:0 0 14px;
    font-size:34px;
    color:#1d3557;
    line-height:1.5;
}

.hero p{
    margin:0 auto 24px;
    max-width:700px;
    line-height:1.8;
    color:#556070;
}

.hero-actions{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
}

/* home hero enhanced */
.home-hero{
    background:linear-gradient(135deg,#eef4ff,#f8faff);
    padding:64px 0;
}

.home-hero-grid{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:24px;
    align-items:center;
}

.home-hero-content{
    text-align:right;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 14px;
    border-radius:999px;
    background:#dfe9f8;
    color:#1d3557;
    font-weight:700;
    margin-bottom:14px;
}

.home-hero-content h1{
    margin:0 0 16px;
    font-size:52px;
    line-height:1.35;
    color:#1d3557;
}

.home-hero-content p{
    margin:0 0 22px;
    font-size:22px;
    line-height:1.9;
    color:#5f6b7a;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:12px 22px;
    border-radius:16px;
    background:#1d3f6e;
    color:#fff;
    font-weight:700;
    transition:.2s ease;
}

.btn:hover{
    transform:translateY(-2px);
}

.btn-light{
    background:#fff;
    color:#1d3f6e;
    border:1px solid #dce4f2;
}

.home-hero-cards{
    display:grid;
    gap:14px;
}

.hero-mini-card{
    display:block;
    background:#fff;
    border:1px solid #e7edf7;
    border-radius:20px;
    padding:18px;
    box-shadow:0 8px 24px rgba(0,0,0,.04);
    text-align:right;
    transition:.2s ease;
}

.hero-mini-card:hover{
    transform:translateY(-4px);
}

.hero-mini-icon,
.home-category-icon{
    width:54px;
    height:54px;
    border-radius:16px;
    background:#eef3fb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    margin-bottom:14px;
}

.hero-mini-card h3,
.home-category-card h3,
.feature-card h3{
    margin:0 0 10px;
    color:#1d3557;
    font-size:22px;
}

.hero-mini-card p,
.home-category-card p,
.feature-card p{
    margin:0;
    color:#667085;
    line-height:1.8;
}

.section-head{
    margin-bottom:20px;
}

.cards-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.home-cards-grid,
.home-features-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.home-category-card,
.feature-card{
    background:#fff;
    border:1px solid #e7edf7;
    border-radius:22px;
    padding:22px;
    box-shadow:0 8px 24px rgba(0,0,0,.04);
    transition:.2s ease;
    text-align:right;
}

.home-category-card:hover,
.feature-card:hover{
    transform:translateY(-4px);
}

.home-card-link{
    display:inline-block;
    margin-top:14px;
    color:#1d3f6e;
    font-weight:700;
}

.home-cta-box{
    background:#1d3557;
    color:#fff;
    border-radius:24px;
    padding:32px 24px;
    text-align:center;
}

.home-cta-box h2{
    margin:0 0 12px;
    font-size:34px;
}

.home-cta-box p{
    margin:0 0 20px;
    color:rgba(255,255,255,.85);
    line-height:1.9;
}

.home-cta-box .btn{
    background:#fff;
    color:#1d3557;
}

.home-cta-box .btn-light{
    background:transparent;
    color:#fff;
    border:1px solid rgba(255,255,255,.25);
}

/* auth pages */
.login-page .form-container,
.register-page .form-container{
    margin:0 auto;
}

.login-page .form-container{
    max-width:520px;
}

.login-page .page-title,
.login-page .page-desc,
.register-page .page-title,
.register-page .page-desc{
    text-align:center;
}

/* tablet */
@media (max-width: 992px){
    .home-hero-grid,
    .cards-grid,
    .home-cards-grid,
    .home-features-grid{
        grid-template-columns:1fr;
    }

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

    .home-hero-content p{
        font-size:19px;
    }
}

/* mobile */
@media (max-width: 768px){
    .hero{
        padding:42px 0;
    }

    .hero h1{
        font-size:28px;
    }

    .hero p{
        font-size:16px;
    }

    .home-hero{
        padding:42px 0;
    }

    .home-hero-content{
        text-align:center;
    }

    .hero-badge{
        margin-inline:auto;
    }

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

    .home-hero-content p{
        font-size:17px;
    }

    .hero-actions{
        justify-content:center;
    }

    .hero-mini-card,
    .home-category-card,
    .feature-card{
        padding:18px;
    }

    .home-cta-box{
        padding:24px 18px;
    }

    .home-cta-box h2{
        font-size:28px;
    }
}