*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f6f8ff;
    color:#333;
}

/* ================= HEADER ================= */

header{
    background:#0b1033;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 60px;
    flex-wrap:wrap;
}

.logo h1{
    font-size:42px;
    font-weight:700;
}
.logo span{
    color:#ffb400;
}

.logo p{
    margin-top:5px;
    font-size:15px;
    color:#ddd;
}

.header-right{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:15px;
}

.top-links{
    display:flex;
    gap:20px;
}

.top-links a{
    color:rgb(252, 244, 244);
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}


.top-links a:hover{
    color:#ffb400;
}

.search-box{
    display:flex;
}

.search-box input{
    width:260px;
    padding:12px;
    border:none;
    outline:none;
    border-radius:10px 0 0 10px;
}

.search-box button{
    padding:12px 25px;
    border:none;
    cursor:pointer;
    color:white;
    font-weight:600;
    border-radius:0 10px 10px 0;
    background:linear-gradient(135deg,#6d45ff,#ff4f7b,#ff8b3d);
}

/* ================= NAVBAR ================= */

/* ================= NAVBAR ================= */

.navbar{
    background:#16215f;
    display:flex;
    align-items:center;
    padding:0 30px;
}

.navbar a{
    color:#fff;
    text-decoration:none;
    padding:16px 22px;
    font-weight:500;
    transition:.3s;
}

.navbar a:hover{
    color:#ffb400;
}

.add-btn{
    margin-left:auto;
    margin-right:12px;
    background:linear-gradient(135deg,#6d45ff,#ff4f7b,#ff8b3d);
    color:#fff !important;
    padding:10px 18px !important;
    border-radius:10px;
    font-weight:600;
}

.add-btn:hover{
    transform:translateY(-2px);
}

/* ================= TITLE ================= */

.page-title{
    text-align:center;
    padding:45px 20px;
}

.page-title h2{
    font-size:42px;
    margin-bottom:10px;
    font-weight:700;
    background:linear-gradient(#1f2a7d);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.page-title p{
    color:#666;
    font-size:18px;
}

/* ================= CONTAINER ================= */

.problem-container{
    width:92%;
    margin:auto;
    padding-bottom:50px;
}

/* ================= CARD ================= */

.problem-card{
    display:flex;
    gap:35px;
    align-items:center;
    background:white;
    margin-bottom:35px;
    border-radius:22px;
    padding:25px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.problem-card:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 35px rgba(0,0,0,.15);
}

/* ================= IMAGE ================= */

.card-image{
    width:340px;
    flex-shrink:0;
}

.card-image img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:18px;
}

/* ================= CONTENT ================= */

.card-content{
    flex:1;
}

.card-content h2{
    color:#1f2a7d;
    margin-bottom:18px;
    font-size:30px;
}

.card-content p{
    margin:12px 0;
    font-size:17px;
    line-height:1.7;
}

.card-content b{
    color:#03010a;
}

.card-content a{
    display:inline-block;
    margin-top:18px;
    text-decoration:none;
    color:white;
    font-weight:600;
    padding:12px 24px;
    border-radius:10px;
    background:linear-gradient(135deg,#6d45ff,#ff4f7b,#ff8b3d);
    transition:.3s;
}

.card-content a:hover{
    transform:scale(1.05);
}

/* ================= FOOTER ================= */

footer{
    background:#0b1033;
    color:white;
    text-align:center;
    padding:35px 20px;
}

footer h3{
    font-size:28px;
    margin-bottom:10px;
}

footer p{
    margin:6px 0;
    color:#ddd;
}

/* ================= RESPONSIVE ================= */

@media(max-width:900px){

    header{
        flex-direction:column;
        gap:20px;
        text-align:center;
    }

    .header-right{
        align-items:center;
    }

    .problem-card{
        flex-direction:column;
        text-align:center;
    }

    .card-image{
        width:100%;
    }

    .card-image img{
        height:260px;
    }

    .search-box{
        width:100%;
    }

    .search-box input{
        width:100%;
    }

    nav, .navbar{
        flex-direction:column;
    }

    nav a, .navbar a{
        text-align:center;
        border-bottom:1px solid rgba(255,255,255,.1);
    }
}

@media(max-width:600px){
    header{
        padding:18px 16px;
    }

    .logo h1{
        font-size:clamp(24px, 7vw, 32px);
    }

    .logo p{
        font-size:13px;
    }

    .top-links{
        flex-wrap:wrap;
        justify-content:center;
        gap:12px;
    }

    .page-title{
        padding:25px 15px;
    }

    .page-title h2{
        font-size:clamp(24px, 6vw, 32px);
    }

    .problem-container{
        width:95%;
        padding-bottom:30px;
    }

    .problem-card{
        padding:18px 14px;
        gap:18px;
    }

    .card-image img{
        height:200px;
    }

    .card-content h2{
        font-size:22px;
    }

    .card-content p{
        font-size:15px;
    }

    .card-content a{
        width:100%;
        text-align:center;
    }
}


/* Profile section */
.nav-auth-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* User icon + Abhijeet */
.nav-profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
}

/* User icon */
.nav-profile-icon i {
    color: #ffb400;
    font-size: 20px;
}

/* Profile + Logout buttons */
.nav-auth-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Links */
.profile-btn,
.logout-btn {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* Hover */
.profile-btn:hover,
.logout-btn:hover {
    color: #ffb400 !important;
}