*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:Segoe UI,sans-serif;
background:#f5f7fa;
color:#333;
}

.container{
    width:1400px;
    max-width:98%;
    margin:auto;
}

header{
background:#003566;
padding:15px 0;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
    flex:1;
}

nav{
    display:flex;
    justify-content:flex-end;
    flex:1;
}

.logo h2{
    color:#ffffff;
    margin:0;
}

.logo span{
    color:#ffffff;
    opacity:0.9;
}

.logo img{
height:80px;
width:auto;
}

nav a{
    color:white;
    text-decoration:none;
    font-size:14px;
    font-weight:500;
}

nav a:hover{
    color:#ffd60a;
}

nav{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:35px;
}

.hero{
    background-image:
    linear-gradient(
        rgba(0,0,0,.55),
        rgba(0,0,0,.55)
    ),
    url('../img/banner.jpg');

    background-size:cover;
    background-position:center;

    height:420px;

    display:flex;
    flex-direction:column;

    justify-content:center;
    align-items:center;

    text-align:center;

    color:#fff;
}

.hero h1{
    font-size:42px;
    font-weight:700;
    margin-bottom:10px;
}

.hero p{
    font-size:18px;
    margin-bottom:20px;
}

.hero form{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-top:25px;
}

.hero input{
    width:600px;
    height:55px;
    padding:0 20px;
    font-size:18px;
    border:none;
    border-radius:5px 0 0 5px;
}

.hero button{
    width:70px;
    height:55px;
    border:none;
    background:#003566;
    color:#fff;
    font-size:18px;
    font-weight:bold;
    border-radius:0 5px 5px 0;
    cursor:pointer;
}

nav{
display:flex;
justify-content:flex-end;
align-items:center;
gap:25px;
}

nav a{
margin-left:0;
}

footer{
background:#003566;
color:white;
padding:60px 20px 20px;
margin-top:40px;
text-align:center;
}

.copyright{
margin-top:30px;
padding-top:20px;
border-top:1px solid rgba(255,255,255,.2);
text-align:center;
color:#fff;
font-size:14px;
}

.stats{
display:flex;
justify-content:center;
gap:25px;
padding:50px 20px;
flex-wrap:wrap;
}

.card{
background:white;
padding:25px;
width:220px;
text-align:center;
border-radius:10px;
box-shadow:0 3px 15px rgba(0,0,0,.1);
}

.card h2{
color:#003566;
margin-bottom:10px;
}

.tabs{
display:flex;
justify-content:center;
gap:15px;
padding:20px;
background:white;
flex-wrap:wrap;
}

.tabs a{
background:#003566;
color:white;
padding:10px 20px;
text-decoration:none;
border-radius:5px;
}

#featured{
padding:60px 20px;
}

#featured h2{
text-align:center;
margin-bottom:40px;
}

.journal-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:25px;
}

.journal-card{
background:white;
border-radius:10px;
overflow:hidden;
box-shadow:0 3px 15px rgba(0,0,0,.1);
}

.journal-card img{
width:100%;
height:300px;
object-fit:cover;
}

.journal-card h4{
padding:15px;
}

.journal-card p{
padding:0 15px 15px;
}

.journal-card a{
display:block;
background:#003566;
color:white;
text-align:center;
padding:12px;
text-decoration:none;
}

.subjects{
padding:60px 20px;
background:white;
}

.subjects h2{
text-align:center;
margin-bottom:30px;
}

.subject-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

.subject-grid a{
background:#003566;
color:white;
padding:15px;
text-align:center;
text-decoration:none;
border-radius:6px;
}

footer{
background:#003566;
color:white;
padding:50px 20px;
margin-top:40px;
}

.footer-grid{
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:50px;
max-width:1400px;
margin:auto;
}

.footer-grid a{
display:block;
color:white;
text-decoration:none;
margin-bottom:10px;
}

@media(max-width:768px){

.topbar{
flex-direction:column;
gap:20px;
}

nav{
text-align:center;
}

.subject-grid{
grid-template-columns:repeat(2,1fr);
}

.hero h1{
font-size:30px;
}

}

.copyright{
    text-align:center;
    margin-top:40px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,.2);
    font-size:14px;
}

.footer-title{
    color:#fff;
    font-size:20px;
    font-weight:700;
    text-transform:uppercase;
    display:inline-block;
    position:relative;
    margin-bottom:15px;
}

.footer-grid p{
    font-size:14px;
    line-height:1.7;
}

.footer-grid a{
    font-size:14px;
    line-height:1.8;
    color:#fff;
    text-decoration:none;
}

.copyright{
    font-size:13px;
    line-height:1.8;
}



.footer-title::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;

    width:100%;
    height:3px;

    background:#ffffff;
}


.journal-filter{
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    margin:20px 0;
}

.journal-filter a{
    background:#0b3b75;
    color:#fff;
    text-decoration:none;
    padding:8px 15px;
    border-radius:4px;
    font-size:14px;
}

.journal-filter a.active{
    background:#fff;
    color:#e53935;
    border:1px solid #e53935;
}

.journal-filter span{
    background:#fff;
    color:#0b3b75;
    padding:2px 8px;
    border-radius:20px;
    margin-left:5px;
    font-weight:bold;
}

.featured-journals{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
    gap:25px;
}

.journal-card{
    text-align:center;
}

.journal-card img{
    width:100%;
    height:250px;
    object-fit:cover;
    border:1px solid #ddd;
    transition:.3s;
}

.journal-card img:hover{
    transform:translateY(-5px);
}

.journal-card h6{
    margin-top:10px;
    font-size:13px;
    line-height:1.5;
    font-weight:600;
}
