/*==========================
PAGE HEADER
==========================*/

.page-header{
    padding:70px 0 40px;
    background:linear-gradient(135deg,#1e3a8a,#2563eb);
    color:#fff;
    text-align:center;
}

.page-header h1{
    font-size:42px;
    font-weight:700;
    margin-bottom:15px;
}

.page-header p{
    max-width:700px;
    margin:auto;
    font-size:18px;
    opacity:.9;
}

/*==========================
STUDY RESOURCES
==========================*/

.study-resources-section{
    padding:60px 0;
    background:#f5f7fb;
}

.resource-category{
    margin-bottom:60px;
}

.resource-category h2{
    font-size:30px;
    font-weight:700;
    color:#1e3a8a;
    margin-bottom:30px;
    position:relative;
    padding-left:18px;
}

.resource-category h2::before{
    content:"";
    position:absolute;
    left:0;
    top:5px;
    width:6px;
    height:35px;
    background:#2563eb;
    border-radius:20px;
}

.resource-grid{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:30px;
}

.resource-card{
    width:340px;
    max-width:100%;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.35s;
    display:flex;
    flex-direction:column;
}

.resource-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.15);
}

.resource-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.35s;
    display:flex;
    flex-direction:column;
}

.resource-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.15);
}

.resource-image{
    height:320px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#fff;
    padding:25px;
    border-bottom:1px solid #eee;
}

.resource-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    transition:.35s;
}

.resource-card:hover .resource-image img{
    transform:scale(1.05);
}

.resource-content{
    padding:22px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.brand{
    display:inline-block;
    color:#2563eb;
    font-size:14px;
    font-weight:600;
    margin-bottom:10px;
}

.resource-content h3{
    font-size:22px;
    font-weight:700;
    line-height:1.4;
    margin-bottom:15px;
    color:#222;
    min-height:62px;
}

.price{
    font-size:34px;
    font-weight:700;
    color:#16a34a;
    margin-bottom:10px;
}

.rating{
    color:#f59e0b;
    font-size:16px;
    margin-bottom:20px;
}

.resource-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:auto;
}

.resource-buttons a{
    text-decoration:none;
    text-align:center;
    padding:12px;
    border-radius:10px;
    font-weight:600;
    transition:.3s;
}

.btn-amazon{
    background:#ff9900;
    color:#fff;
}

.btn-amazon:hover{
    background:#e88700;
    color:#fff;
}

.btn-flipkart{
    background:#2874f0;
    color:#fff;
}

.btn-flipkart:hover{
    background:#165dd1;
    color:#fff;
}

.btn-details{
    grid-column:1 / -1;
    background:#1e3a8a;
    color:#fff;
}

.btn-details:hover{
    background:#142c74;
    color:#fff;
}

.alert-info{
    background:#fff;
    padding:20px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

/*==========================
RESPONSIVE
==========================*/

@media(max-width:768px){

    .page-header h1{
        font-size:32px;
    }

    .resource-grid{
        grid-template-columns:1fr;
    }

    .resource-image{
        height:240px;
    }

}

@media(max-width:768px){

    .resource-grid{
        justify-content:center;
    }

    .resource-card{
        width:100%;
    }

}