/* ================= RESET ================= */

*{
    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;
    color:#ddd;
    font-size:15px;
}

.header-right{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:15px;
}

.top-links{
    display:flex;
    gap:20px;
}

.top-links a{
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.top-links a:hover{
    color:#ffb400;
}

/* ================= SEARCH ================= */

.search-box{
    display:flex;
}

.search-box input{
    width:260px;
    padding:12px;
    border:none;
    outline:none;
    border-radius:10px 0 0 10px;
}

.search-box button{
    border:none;
    padding:12px 25px;
    color:#fff;
    cursor:pointer;
    font-weight:600;
    border-radius:0 10px 10px 0;

    background:linear-gradient(135deg,#6d45ff,#ff4f7b,#ff8b3d);
}

.search-box button:hover{
    opacity:.9;
}

/* ================= NAVBAR ================= */

.navbar{
    background:#16215f;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
}

.navbar a{
    color:#fff;
    text-decoration:none;
    padding:16px 28px;
    font-weight:500;
    transition:.3s;
}

.navbar a:hover{
    color:#ffb400;
}

/* ================= TITLE ================= */

.page-title{
    text-align:center;
    padding:45px 20px;
}

.page-title h2{
    color:#1f2a7d;
    font-size:42px;
    margin-bottom:10px;
}

.page-title p{
    color:#666;
    font-size:18px;
}

/* ================= EVENTS ================= */

.events-container{
    width:92%;
    margin:auto;
    padding-bottom:50px;
}

/* ================= CARD ================= */

.event-card{

    background:#fff;
    border-radius:22px;
    margin-bottom:35px;
    overflow:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.3s;

}

.event-card:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 35px rgba(0,0,0,.15);

}

/* ================= CARD HEADER ================= */

.card-header{

    background:#1f2a7d;
    color:#fff;
    text-align:center;
    padding:14px;

}

.card-header h3{

    font-size:24px;

}

/* ================= CARD BODY ================= */

.card-body{

    display:flex;
    gap:35px;
    align-items:center;
    padding:30px;

}

/* ================= IMAGE ================= */

.event-image{

    width:420px;
    flex-shrink:0;

}

.event-image img{

    width:100%;
    height:280px;
    object-fit:cover;

    border-radius:18px;

}

/* ================= CONTENT ================= */

.event-content{

    flex:1;

}

.event-content h2{

    color:#16215f;
    font-size:32px;
    margin-bottom:18px;

}

.event-content p{

    font-size:18px;
    line-height:32px;
    margin-bottom:8px;

}

.event-content b{

    color:#000;

}

/* ================= ADDED BY ================= */

.added-by{

    display:flex;
    align-items:center;
    gap:15px;

    margin-top:20px;
    margin-bottom:20px;

}

.added-by img{

    width:60px;
    height:60px;
    border-radius:50%;
    object-fit:cover;

    border:3px solid #ffb400;

}

.added-by h4{

    color:#16215f;
    font-size:18px;

}

.added-by span{

    color:#666;
    font-size:15px;

}

/* ================= BUTTON ================= */

.view-btn{

    display:inline-block;
    text-decoration:none;
    color:#fff;
    font-weight:600;

    padding:12px 28px;

    border-radius:10px;

    background:linear-gradient(
        135deg,
        #6d45ff,
        #ff4f7b,
        #ff8b3d
    );

    transition:.3s;

}

.view-btn:hover{

    transform:scale(1.05);

}

/* ================= FOOTER ================= */

footer{

    background:#0b1033;
    color:#fff;
    text-align:center;
    padding:35px 20px;

}

footer h3{

    font-size:30px;
    margin-bottom:10px;

}

footer p{

    color:#ddd;
    margin:6px 0;

}

/* ================= RESPONSIVE ================= */

@media(max-width:992px){

    header{

        flex-direction:column;
        text-align:center;
        gap:20px;

    }

    .header-right{

        align-items:center;

    }

    .search-box{

        width:100%;

    }

    .search-box input{

        width:100%;

    }

    .navbar{

        flex-direction:column;

    }

    .navbar a{

        border-bottom:1px solid rgba(255,255,255,.1);
        text-align:center;

    }

    .card-body{

        flex-direction:column;
        text-align:center;

    }

    .event-image{

        width:100%;

    }

    .event-image img{

        height:260px;

    }

    .added-by{

        justify-content:center;

    }

}

@media(max-width:576px){

    header{
        padding: 18px 16px;
    }

    .logo h1{
        font-size:clamp(24px, 7vw, 32px);
    }

    .top-links{
        flex-wrap:wrap;
        justify-content:center;
        gap:12px;
    }

    .page-title{
        padding: 25px 15px;
    }

    .page-title h2{
        font-size:clamp(24px, 6vw, 32px);
    }

    .events-container{
        width: 95%;
        padding-bottom: 30px;
    }

    .card-body{
        padding: 18px 14px;
        gap: 18px;
    }

    .event-image img{
        height: 200px;
    }

    .event-content h2{
        font-size:22px;
    }

    .event-content p{
        font-size:15px;
        line-height:26px;
    }

    .view-btn{
        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;
}