* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #071326;
    color: #e2e8f0;
    min-height: 100vh;
}

/* TOP HEADER */
.top-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 15px 5%;
    background: #0c1e38;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand i {
    color: #3b82f6;
    font-size: 34px;
}

.brand h2 {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.1;
}

.brand span {
    display: block;
    color: #94a3b8;
    font-size: 10px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-nav a {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}

.header-nav a:hover,
.header-nav a.active {
    color: #38bdf8;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: #2563eb;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease;
}

.back-btn:hover {
    background: #1d4ed8;
}

/* MAIN WRAPPER */
.practice-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 5% 70px;
}

/* HERO SECTION */
.practice-hero {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 45px;
}

.badge-label {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 25px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.practice-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.practice-hero h1 span {
    color: #38bdf8;
}

.practice-hero p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.75;
}

/* 3 CARDS GRID */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.practice-card {
    display: flex;
    flex-direction: column;
    background: #0c1e38;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.card-html {
    border-top: 3px solid #f97316;
}

.card-css {
    border-top: 3px solid #38bdf8;
}

.card-js {
    border-top: 3px solid #facc15;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.icon-html {
    background: rgba(249, 115, 22, 0.16);
    color: #fb923c;
}

.icon-css {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
}

.icon-js {
    background: rgba(250, 204, 21, 0.18);
    color: #facc15;
    font-size: 20px;
    font-weight: 800;
}

.card-step {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
}

.practice-card h2 {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 4px;
}

.practice-card h4 {
    font-size: 13px;
    font-weight: 500;
    color: #93c5fd;
    margin-bottom: 14px;
}

.practice-card > p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 18px;
}

.task-preview {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.task-preview li {
    font-size: 12px;
    color: #cbd5e1;
    padding-left: 18px;
    position: relative;
}

.task-preview li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #38bdf8;
    font-weight: 700;
}

.start-btn {
    margin-top: auto;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 12.5px;
    font-weight: 700;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.start-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn-html {
    background: #ea580c;
    color: #ffffff;
}

.btn-css {
    background: #2563eb;
    color: #ffffff;
}

.btn-js {
    background: #facc15;
    color: #0f172a;
}
