/* ==========================================
   GOOGLE FONT
========================================== */

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

/* ==========================================
   RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f4f7fc;
    color:#333;
}

/* ==========================================
   HEADER
========================================== */

header{
    width:100%;
    padding:18px 8%;
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:999;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img{
    width:60px;
    height:60px;
    object-fit:contain;
}

.logo h2{
    color:#4f46e5;
    font-size:24px;
}

.logo p{
    color:#666;
    font-size:14px;
}

.admin-btn{
    text-decoration:none;
    background:#4f46e5;
    color:#fff;
    padding:12px 22px;
    border-radius:8px;
    transition:.3s;
    font-weight:500;
}

.admin-btn:hover{
    background:#312e81;
}

/* ==========================================
   HERO
========================================== */

.hero{
    padding:70px 20px;
    text-align:center;
}

.hero h1{
    font-size:42px;
    color:#222;
    margin-bottom:15px;
}

.hero p{
    color:#666;
    margin-bottom:35px;
    font-size:17px;
}

.search-box{
    width:100%;
    max-width:800px;
    margin:auto;
    display:flex;
    gap:15px;
}

.search-box input{
    flex:1;
    height:60px;
    border:none;
    outline:none;
    background:#fff;
    border-radius:10px;
    padding:0 20px;
    font-size:16px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.search-box button{
    width:180px;
    border:none;
    background:#4f46e5;
    color:#fff;
    border-radius:10px;
    cursor:pointer;
    font-size:16px;
    transition:.3s;
}

.search-box button:hover{
    background:#312e81;
}

/* ==========================================
   RESULT
========================================== */

.result-section{
    width:100%;
    padding:20px;
    display:none;
}

.result-card{
    width:100%;
    max-width:1100px;
    margin:auto;
    background:#fff;
    border-radius:15px;
    padding:35px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.card-header{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:30px;
}

.card-header i{
    font-size:28px;
    color:#16a34a;
}

.card-header h2{
    color:#222;
}

.details{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.detail-item{
    background:#f8f9ff;
    padding:18px;
    border-radius:10px;
    border-left:5px solid #4f46e5;
}

.detail-item span{
    display:block;
    color:#777;
    font-size:14px;
    margin-bottom:6px;
}

.detail-item p{
    color:#222;
    font-weight:600;
    word-break:break-word;
}

/* ==========================================
   BUTTONS
========================================== */

.buttons{
    margin-top:35px;
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.buttons button{
    border:none;
    cursor:pointer;
    padding:14px 25px;
    border-radius:10px;
    font-size:16px;
    color:#fff;
    transition:.3s;
}

#viewBtn{
    background:#2563eb;
}

#viewBtn:hover{
    background:#1d4ed8;
}

#downloadBtn{
    background:#16a34a;
}

#downloadBtn:hover{
    background:#15803d;
}

/* ==========================================
   FOOTER
========================================== */

footer{
    margin-top:70px;
    background:#1e293b;
    color:#fff;
    text-align:center;
    padding:20px;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:768px){

header{
    flex-direction:column;
    gap:20px;
    text-align:center;
}

.logo{
    flex-direction:column;
}

.hero h1{
    font-size:30px;
}

.search-box{
    flex-direction:column;
}

.search-box button{
    width:100%;
    height:55px;
}

.result-card{
    padding:20px;
}

.buttons{
    flex-direction:column;
}

.buttons button{
    width:100%;
}

}

@media(max-width:500px){

.logo h2{
    font-size:20px;
}

.hero h1{
    font-size:26px;
}

.hero p{
    font-size:15px;
}

.search-box input{
    height:55px;
}

}