@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:'Inter', sans-serif;
    background:#f4f6fc;
    color:#0f205c;
    line-height:1.6;
}

a{
    color:inherit;
    transition:color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

/* TOP HEADER */
.cnta-header{
    background:#ffffff;
    border-bottom:3px solid #0a1931;
    padding:18px 40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    box-shadow:0 4px 20px rgba(0,0,0,0.05);
    position:sticky;
    top:0;
    z-index:999;
}

.cnta-brand{
    display:flex;
    align-items:center;
    gap:16px;
    text-decoration:none;
}

.cnta-brand img{
    width:70px;
    height:70px;
    object-fit:contain;
    filter:drop-shadow(0 2px 8px rgba(10,25,49,0.1));
}

.cnta-brand h1{
    margin:0;
    font-family:'Outfit', sans-serif;
    font-size:28px;
    font-weight:800;
    letter-spacing:4px;
    color:#0a1931;
}

.cnta-brand span{
    display:block;
    margin-top:2px;
    font-size:14px;
    font-weight:600;
    letter-spacing:6px;
    color:#c99a2e;
}

.cnta-nav{
    display:flex;
    align-items:center;
    gap:28px;
}

.cnta-nav a{
    text-decoration:none;
    color:#0a1931;
    font-weight:600;
    font-size:15px;
    font-family:'Outfit', sans-serif;
    transition:color 0.2s ease;
}

.cnta-nav a:hover{
    color:#c99a2e;
}

.cnta-nav a.cnta-nav-btn{
    color:#ffffff;
}

.cnta-nav a.cnta-nav-btn:hover{
    color:#ffffff;
}

.cnta-nav-btn,
.btn,
button{
    background:linear-gradient(135deg,#0a1931,#153e90);
    color:#ffffff;
    border:none;
    border-radius:12px;
    padding:12px 24px;
    font-size:15px;
    font-family:'Outfit', sans-serif;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    transition:all 0.2s ease;
    box-shadow:0 4px 12px rgba(10,25,49,0.15);
}

.cnta-nav-btn:hover,
.btn:hover,
button:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 18px rgba(10,25,49,0.25);
    background:linear-gradient(135deg,#153e90,#00a8cc);
}

.btn.secondary,
.course-actions .secondary{
    background:#ffffff;
    color:#0a1931;
    border:2px solid #0a1931;
    box-shadow:none;
}

.btn.secondary:hover,
.course-actions .secondary:hover{
    background:#0a1931;
    color:#ffffff;
    border-color:#0a1931;
}

.btn.small{
    padding:8px 16px;
    font-size:13px;
    border-radius:8px;
}

.btn.danger,
.action-btn.danger{
    background:linear-gradient(135deg,#b91c1c,#ef4444);
    color:#ffffff;
    box-shadow:0 4px 10px rgba(185,28,28,0.15);
}

.btn.danger:hover,
.action-btn.danger:hover{
    background:linear-gradient(135deg,#ef4444,#f87171);
    box-shadow:0 6px 16px rgba(185,28,28,0.25);
}

/* HERO SECTION */
.hero{
    padding:80px 40px;
    background:radial-gradient(circle at top right, #eef5ff 0%, #d9e8fc 100%);
    position:relative;
    overflow:hidden;
}

.hero::after{
    content:'';
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    height:8px;
    background:linear-gradient(90deg,#0a1931,#c99a2e,#153e90);
}

.hero-content{
    max-width:850px;
    position:relative;
    z-index:2;
}

.eyebrow{
    color:#c99a2e;
    font-family:'Outfit', sans-serif;
    font-weight:800;
    font-size:16px;
    text-transform:uppercase;
    letter-spacing:3px;
    margin:0 0 16px;
}

.hero h1{
    margin:0 0 20px;
    font-family:'Outfit', sans-serif;
    font-size:48px;
    font-weight:800;
    line-height:1.2;
    color:#0a1931;
}

.hero p{
    font-size:18px;
    line-height:1.6;
    color:#334155;
    margin-bottom:28px;
}

/* PANELS AND CARDS */
.panel{
    margin:30px auto;
    width:calc(100% - 80px);
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:24px;
    padding:36px;
    box-shadow:0 10px 30px rgba(15,32,92,0.03);
    overflow:hidden;
}

.panel h2{
    margin-top:0;
    font-family:'Outfit', sans-serif;
    font-size:32px;
    color:#0a1931;
    border-bottom:2px solid #f1f5f9;
    padding-bottom:12px;
    margin-bottom:24px;
}

.panel h3{
    margin-top:0;
    font-family:'Outfit', sans-serif;
    font-size:22px;
    color:#0a1931;
    margin-bottom:18px;
}

.panel p{
    font-size:16px;
    color:#475569;
}

.card,
.grid .card{
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:20px;
    padding:28px;
    box-shadow:0 8px 24px rgba(15,32,92,0.02);
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.card b{
    font-family:'Outfit', sans-serif;
    font-size:36px;
    color:#c99a2e;
    line-height:1;
}

/* SIDEBAR LAYOUT */
.cnta-layout{
    display:grid;
    grid-template-columns:290px 1fr;
    gap:40px;
    padding:40px;
}

.cnta-sidebar{
    background:#0a1931;
    border-radius:24px;
    padding:24px 16px;
    min-height:500px;
    box-shadow:0 10px 30px rgba(10,25,49,0.08);
}

.cnta-sidebar a{
    display:flex;
    align-items:center;
    padding:14px 20px;
    margin-bottom:6px;
    text-decoration:none;
    font-weight:600;
    font-family:'Outfit', sans-serif;
    color:#e2e8f0;
    border-radius:14px;
}

.cnta-sidebar a:hover{
    background:rgba(255,255,255,0.08);
    color:#ffffff;
    transform:translateX(5px);
}

.cnta-sidebar a.active,
.cnta-sidebar a[href=""]{
    background:linear-gradient(135deg,#c99a2e,#f3b137);
    color:#0a1931;
    font-weight:700;
}

.cnta-main{
    min-width:0;
}

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

/* FORMS AND INPUTS */
input,
textarea,
select{
    width:100%;
    border:1px solid #cbd5e1;
    border-radius:12px;
    padding:14px 18px;
    font-size:15px;
    font-family:'Inter', sans-serif;
    color:#0f205c;
    background:#f8fafc;
    transition:all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus{
    outline:none;
    border-color:#153e90;
    background:#ffffff;
    box-shadow:0 0 0 4px rgba(21,62,144,0.1);
}

textarea{
    min-height:130px;
    resize:vertical;
}

label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#0a1931;
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.login-form{
    display:grid;
    grid-template-columns:1fr 1fr 150px;
    gap:16px;
    align-items:end;
}

.login-form button{
    height:50px;
}

/* MESSAGES */
.msg, .notice{
    padding:16px 20px;
    border-radius:14px;
    margin-bottom:24px;
    font-weight:500;
    font-size:15px;
    display:flex;
    align-items:center;
    gap:10px;
}

.msg.ok, .notice.ok{
    background:#ecfdf5;
    border:1.5px solid #a7f3d0;
    color:#065f46;
}

.msg.err, .notice.bad{
    background:#fef2f2;
    border:1.5px solid #fca5a5;
    color:#991b1b;
}

/* COURSE CARDS GRID */
.courses-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.course-search-box{
    width:100%;
    max-width:480px;
    display:flex;
    align-items:center;
    background:#ffffff;
    border:2px solid #cbd5e1;
    border-radius:16px;
    overflow:hidden;
    transition:all 0.2s ease;
}

.course-search-box:focus-within{
    border-color:#153e90;
    box-shadow:0 0 0 4px rgba(21,62,144,0.1);
}

.course-search-box input{
    flex:1;
    border:none;
    outline:none;
    padding:14px 20px;
    font-size:16px;
    background:transparent;
}

.search-icon{
    width:56px;
    height:56px;
    background:#0a1931;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#ffffff;
    font-size:20px;
}

.course-count{
    font-family:'Outfit', sans-serif;
    font-size:24px;
    color:#0a1931;
    margin-bottom:20px;
}

.course-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
    gap:30px;
}

.course-card{
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:20px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    height:480px;
    box-shadow:0 6px 18px rgba(15,32,92,0.03);
    transition:all 0.3s ease;
}

.course-card:hover{
    transform:translateY(-8px);
    box-shadow:0 16px 36px rgba(15,32,92,0.08);
}

.course-image{
    width:100%;
    height:160px;
    background:#f1f5f9;
    overflow:hidden;
    position:relative;
}

.course-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.course-body{
    padding:24px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.course-body h3{
    font-family:'Outfit', sans-serif;
    font-size:20px;
    line-height:1.3;
    margin:0 0 10px;
    color:#0a1931;
    min-height:52px;
}

.course-summary{
    font-size:14px;
    color:#475569;
    line-height:1.5;
    height:63px;
    overflow:hidden;
    margin:0 0 12px;
}

.read-more{
    font-size:13px;
    font-weight:700;
    color:#153e90;
    text-decoration:none;
    margin-bottom:16px;
    display:inline-block;
}

.read-more:hover{
    color:#00a8cc;
}

.course-bottom{
    margin-top:auto;
}

.price{
    font-family:'Outfit', sans-serif;
    font-size:22px;
    font-weight:800;
    margin:0 0 14px;
    color:#c99a2e;
}

.course-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

/* TABLES */
table{
    width:100%;
    border-collapse:collapse;
    margin-top:16px;
}

table th,
table td{
    padding:16px 20px;
    text-align:left;
    vertical-align:middle;
    border-bottom:1px solid #f1f5f9;
}

table th{
    background:#f8fafc;
    color:#0a1931;
    font-family:'Outfit', sans-serif;
    font-weight:700;
    font-size:15px;
    text-transform:uppercase;
    letter-spacing:1px;
}

table tr:hover td{
    background-color:#f8fafc;
}

table td:last-child{
    width:160px;
    text-align:right;
}

/* CERTIFICATE SPECIFICS */
.cert-btn {
    text-align:center;
    padding:10px 14px;
    border-radius:8px;
    color:#fff;
    text-decoration:none;
    font-weight:bold;
    font-size:13px;
}

/* FOOTER */
.footer{
    text-align:center;
    color:#64748b;
    padding:40px;
    font-size:14px;
    border-top:1px solid #e2e8f0;
    margin-top:50px;
}

/* RESPONSIVE DESIGN */
@media(max-width:1200px){
    .grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:992px){
    .cnta-layout{
        grid-template-columns:1fr;
        gap:30px;
        padding:20px;
    }
    .cnta-sidebar{
        min-height:auto;
    }
}

@media(max-width:768px){
    .cnta-header{
        flex-direction:column;
        align-items:flex-start;
        padding:15px 20px;
    }
    .hero{
        padding:50px 20px;
    }
    .hero h1{
        font-size:36px;
    }
    .panel{
        width:calc(100% - 30px);
        padding:20px;
    }
    .login-form{
        grid-template-columns:1fr;
    }
    .grid{
        grid-template-columns:1fr;
    }
}

/* NEW UX REDESIGN UTILITIES */
.cnta-row{
    display:flex;
    gap:20px;
    margin-bottom:20px;
}
.cnta-row > div{
    flex:1;
}
@media(max-width:768px){
    .cnta-row{
        flex-direction:column;
        gap:15px;
    }
}

/* TIMELINE STYLES */
.cnta-timeline{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    margin:45px 0 20px;
    position:relative;
}
.cnta-timeline::before{
    content:'';
    position:absolute;
    top:35px;
    left:50px;
    right:50px;
    height:3px;
    background:#e2e8f0;
    z-index:1;
}
.cnta-step{
    text-align:center;
    position:relative;
    z-index:2;
}
.cnta-step-num{
    width:70px;
    height:70px;
    background:#ffffff;
    border:3px solid #0a1931;
    border-radius:50%;
    color:#0a1931;
    font-size:24px;
    font-family:'Outfit', sans-serif;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 20px;
    box-shadow:0 6px 16px rgba(10,25,49,0.05);
    transition:all 0.3s ease;
}
.cnta-step:hover .cnta-step-num{
    background:linear-gradient(135deg,#c99a2e,#f3b137);
    border-color:#c99a2e;
    color:#0a1931;
    transform:scale(1.1);
}
.cnta-step h4{
    margin:0 0 10px;
    font-family:'Outfit', sans-serif;
    font-size:18px;
    color:#0a1931;
}
.cnta-step p{
    font-size:14px;
    color:#64748b;
    margin:0;
    padding:0 10px;
    line-height:1.5;
}
@media(max-width:992px){
    .cnta-timeline{
        grid-template-columns:1fr;
        gap:40px;
    }
    .cnta-timeline::before{
        display:none;
    }
    .cnta-step-num{
        margin-bottom:12px;
    }
}

/* STANDALONE LOGIN SCREEN */
.cnta-login-body{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:100vh;
    background:radial-gradient(circle at top right, #0a1931 0%, #030a16 100%);
    padding:20px;
    font-family:'Inter', sans-serif;
    color:#ffffff;
}
.cnta-login-card{
    background:#ffffff;
    border-radius:24px;
    padding:40px;
    width:100%;
    max-width:480px;
    box-shadow:0 20px 50px rgba(0,0,0,0.3);
    color:#0f205c;
    position:relative;
}
.cnta-login-card h2{
    margin-top:0;
    font-family:'Outfit', sans-serif;
    font-size:28px;
    color:#0a1931;
    text-align:center;
}
.cnta-login-card p{
    color:#64748b;
    text-align:center;
    font-size:15px;
    margin-top:0;
    margin-bottom:30px;
}
.cnta-login-card label{
    color:#0a1931;
}
.cnta-login-card button{
    width:100%;
    height:50px;
    margin-top:10px;
}
.cnta-login-back{
    display:block;
    text-align:center;
    margin-top:20px;
    font-weight:600;
    color:#153e90;
    text-decoration:none;
}
.cnta-login-back:hover{
    color:#00a8cc;
}

/* HERO IMPROVEMENTS */
.cnta-hero-buttons{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
}
.cnta-badge{
    display:inline-block;
    padding:6px 12px;
    border-radius:8px;
    font-size:12px;
    font-weight:700;
    font-family:'Outfit', sans-serif;
    background:#eef5ff;
    color:#153e90;
    margin-bottom:12px;
    text-transform:uppercase;
    letter-spacing:1px;
}
.cnta-badge.gold{
    background:#fef3c7;
    color:#92400e;
}