*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f7fc;
    color:#10245c;
}

a{
    color:inherit;
}

.top{
    background:#ffffff;
    border-bottom:1px solid #dbe4ff;
    padding:24px 36px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.brand{
    display:flex;
    align-items:center;
    gap:18px;
    text-decoration:none;
}

.brand img{
    width:74px;
    height:74px;
    object-fit:contain;
}

.brand h1{
    margin:0;
    font-size:34px;
    letter-spacing:6px;
    color:#10245c;
}

.brand span{
    display:block;
    margin-top:4px;
    font-size:18px;
    letter-spacing:8px;
    color:#4e72b8;
}

.nav{
    display:flex;
    align-items:center;
    gap:14px;
}

.nav a,
.btn,
button{
    background:#566fe3;
    color:#ffffff;
    border:none;
    border-radius:12px;
    padding:14px 24px;
    font-size:16px;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
}

.btn.secondary,
.course-actions .secondary{
    background:#ffffff;
    color:#566fe3;
    border:1px solid #566fe3;
}

.btn.small{
    padding:12px 18px;
    font-size:15px;
}

.hero{
    padding:70px 38px;
    background:linear-gradient(135deg,#f7fbff,#eef5ff);
}

.hero-content{
    max-width:900px;
}

.eyebrow{
    color:#5274b8;
    font-weight:800;
    font-size:20px;
    margin:0 0 24px;
}

.hero h1{
    margin:0 0 22px;
    font-size:56px;
    line-height:1.12;
    color:#10245c;
}

.hero p{
    max-width:900px;
    font-size:22px;
    line-height:1.55;
}

.hero-actions{
    display:flex;
    gap:16px;
    margin-top:24px;
}

.panel{
    margin:34px auto;
    width:calc(100% - 72px);
    background:#ffffff;
    border:1px solid #dbe4ff;
    border-radius:20px;
    padding:32px;
    box-shadow:0 5px 18px rgba(0,0,0,.04);
}

.panel h2{
    margin-top:0;
    font-size:34px;
    color:#10245c;
}

.panel p{
    font-size:18px;
    line-height:1.5;
}

.steps{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin-top:24px;
}

.step{
    background:#f5f7fc;
    border:1px solid #dbe4ff;
    border-radius:14px;
    padding:20px;
    font-size:18px;
    font-weight:700;
}

.layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:32px;
    padding:36px;
}

.side{
    background:#ffffff;
    border:1px solid #dbe4ff;
    border-radius:20px;
    padding:24px;
    min-height:500px;
}

.side a{
    display:block;
    padding:14px 16px;
    margin-bottom:8px;
    text-decoration:none;
    font-weight:700;
    color:#10245c;
    border-radius:10px;
}

.side a:hover{
    background:#eef2ff;
}

.main{
    min-width:0;
}

.card,
.grid .card{
    background:#ffffff;
    border:1px solid #dbe4ff;
    border-radius:18px;
    padding:24px;
    box-shadow:0 5px 18px rgba(0,0,0,.04);
}

.grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    margin-bottom:30px;
}

input,
textarea,
select{
    width:100%;
    border:1px solid #dbe4ff;
    border-radius:12px;
    padding:14px 16px;
    font-size:16px;
    color:#10245c;
    background:#ffffff;
}

textarea{
    min-height:120px;
}

label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
}

.login-form{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:16px;
}

.msg{
    padding:18px 22px;
    border-radius:14px;
    margin-bottom:20px;
    background:#eef2ff;
}

.msg.err{
    background:#fff0f0;
    border:1px solid #f2b8b8;
    color:#8a1f1f;
}

.footer{
    text-align:center;
    color:#6d7898;
    padding:32px;
}

/* COURSE PUBLIC PAGE */

.courses-panel{
    padding-bottom:40px;
}

.courses-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    flex-wrap:wrap;
    margin-bottom:24px;
}

.course-search-box{
    width:100%;
    max-width:520px;
    display:flex;
    align-items:center;
    background:#ffffff;
    border:2px solid #d8d8ef;
    border-radius:14px;
    overflow:hidden;
}

.course-search-box input{
    flex:1;
    border:none;
    outline:none;
    padding:18px 20px;
    font-size:20px;
    color:#4c4c7d;
    background:#ffffff;
}

.search-icon{
    width:72px;
    height:72px;
    background:#f36a21;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#ffffff;
    font-size:32px;
}

.course-count{
    margin:20px 0 24px;
}

.course-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:24px;
    align-items:stretch;
}

.course-card{
    background:#ffffff;
    border:1px solid #dbe4ff;
    border-radius:18px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    height:470px;
    box-shadow:0 4px 14px rgba(0,0,0,.05);
}

.course-image{
    width:100%;
    height:150px;
    background:#eef2ff;
    overflow:hidden;
    flex-shrink:0;
}

.course-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.course-body{
    padding:18px 20px 20px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.course-body h3{
    font-size:22px;
    line-height:1.18;
    margin:0 0 12px;
    color:#10245c;
    min-height:54px;
}

.course-summary{
    font-size:15px;
    line-height:1.45;
    height:66px;
    overflow:hidden;
    margin:0 0 8px;
    color:#10245c;
}

.read-more{
    font-size:14px;
    font-weight:700;
    color:#4d67dc;
    text-decoration:none;
    margin-bottom:12px;
}

.read-more:hover{
    text-decoration:underline;
}

.course-bottom{
    margin-top:auto;
}

.price{
    font-size:20px;
    font-weight:800;
    margin:0 0 14px;
    color:#10245c;
}

.course-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.course-actions .btn,
.course-actions .small,
.course-actions .secondary{
    width:100%;
    min-height:46px;
    padding:12px 10px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    border-radius:12px;
    box-sizing:border-box;
}

@media(max-width:1200px){
    .course-grid{
        grid-template-columns:repeat(3, minmax(0, 1fr));
    }

    .grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:900px){
    .top{
        flex-direction:column;
        align-items:flex-start;
    }

    .brand h1{
        font-size:26px;
        letter-spacing:3px;
    }

    .brand span{
        font-size:14px;
        letter-spacing:4px;
    }

    .hero h1{
        font-size:38px;
    }

    .layout{
        grid-template-columns:1fr;
        padding:20px;
    }

    .steps{
        grid-template-columns:1fr 1fr;
    }

    .course-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .course-card{
        height:470px;
    }

    .course-search-box{
        max-width:100%;
    }

    .login-form{
        grid-template-columns:1fr;
    }
}

@media(max-width:600px){
    .panel{
        width:calc(100% - 24px);
        padding:22px;
    }

    .hero{
        padding:45px 22px;
    }

    .hero h1{
        font-size:32px;
    }

    .steps{
        grid-template-columns:1fr;
    }

    .course-grid{
        grid-template-columns:1fr;
    }

    .course-card{
        height:auto;
        min-height:450px;
    }

    .grid{
        grid-template-columns:1fr;
    }
}
/* Materials Table Fix */
table{
    width:100%;
    border-collapse:collapse;
}

table th,
table td{
    padding:12px;
    text-align:left;
    vertical-align:top;
    border-bottom:1px solid #e5e7eb;
}

table td:last-child{
    white-space:nowrap;
    width:140px;
}

.btn,
.btn-danger{
    display:inline-block;
    padding:8px 14px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    margin-right:5px;
}

.btn-danger{
    background:#5865f2;
    color:#fff;
}

.panel{
    overflow-x:auto;
}