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

/* NAVBAR */
header{
position:relative;
}

nav{
background:white;
box-shadow:0 2px 8px rgba(0,0,0,.1);
}

nav ul{
display:flex;
justify-content:center;
align-items:center;
gap:30px;
padding:20px;
list-style:none;
}

nav a{
text-decoration:none;
color:#555;
font-size:17px;
transition:.3s;
}

nav a:hover{
color:#1976d2;
}

.logo a{
font-size:22px;
font-weight:bold;
}

.logo span{
color:black;
}

/* MENU BUTTON */
.menu-btn{
display:none;
position:absolute;
top:15px;
left:15px;
font-size:28px;
background:white;
border:none;
cursor:pointer;
z-index:1001;
padding:6px 12px;
border-radius:6px;
box-shadow:0 2px 8px rgba(0,0,0,.2);
}

/* HERO */
/* HERO DESKTOP BACKGROUND */
.hero{
height:520px;
display:flex;
align-items:center;
justify-content:center;
text-align:center;

background-image:url("../images/main-pic-1295900106-612x612.jpg");
background-size:cover;
background-position:center;
background-repeat:no-repeat;
color:white;
position:relative;
}

/* overlay dark layer */
.hero::before{
content:"";
position:absolute;
inset:0;
background:rgba(0,0,0,0.45);
}

/* content above image */
.hero-content{
position:relative;
z-index:1;
max-width:600px;
}

.hero h1{
font-size:40px;
margin-bottom:15px;
}

.hero p{
margin-bottom:25px;
font-size:18px;
}

.btn{
display:inline-block;
padding:14px 28px;
background:#383636;
color:white;
text-decoration:none;
border-radius:6px;
}

.btn:hover{
background:#1976d2;
}

/* CARDS */
.cards{
padding:60px 20px;
text-align:center;
}

.cards h2{
margin-bottom:40px;
}

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

.card{
background:white;
padding:25px;
box-shadow:0 4px 15px rgba(0,0,0,.1);
border-radius:12px;
}

.card img{
width:120px;
margin-bottom:15px;
}

.card h3{
margin-bottom:10px;
}

.card p{
margin-bottom:15px;
color:#555;
}

.card a{
color:#1976d2;
text-decoration:none;
}

/* FOOTER */
footer{
text-align:center;
padding:30px;
border-top:1px solid #ccc;
margin-top:60px;
}
/* SEARCH BAR */
.search-box input{
padding:8px 12px;
border-radius:20px;
border:1px solid #ccc;
outline:none;
font-size:14px;
transition:.3s;
}

.search-box input:focus{
border-color:#1976d2;
box-shadow:0 0 5px rgba(25,118,210,.3);
}
/* MOBILE */
@media(max-width:768px){

@media(max-width:768px){
.search-box{
width:100%;
}

.search-box input{
width:100%;
font-size:18px;
}
.menu-btn{
display:block;
}

/* NAV CLOSED STATE */
nav{
position:fixed;
top:0;
left:-100%;
width:100%;
height:100vh;
background:white;
transition:left .35s ease;
z-index:999;
}

/* NAV OPEN */
nav.active{
left:0;
}

/* STACK LINKS */
nav ul{
flex-direction:column;
align-items:flex-start;
padding:100px 30px;
gap:25px;
}

/* BIG TOUCH LINKS */
nav a{
font-size:22px;
}

/* hero spacing fix */
.hero{
padding:100px 20px;
height:auto;
}

}

.hero img{
max-width:100%;
}

}
/* FEATURED SECTION */
.featured{
padding:70px 20px;
text-align:center;
background:#f3f3f3;
}

.featured h2{
margin-bottom:10px;
}

.subtitle{
margin-bottom:40px;
color:#666;
}

.featured-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:25px;
}

.featured-card{
background:white;
padding:25px;
border-radius:12px;
box-shadow:0 4px 15px rgba(0,0,0,.1);
transition:.3s;
}

.featured-card:hover{
transform:translateY(-5px);
}

.featured-card img{
width:100%;
height:170px;
object-fit:cover;
border-radius:8px;
margin-bottom:15px;
}

.featured-card h3{
margin-bottom:5px;
}

.featured-card span{
display:block;
font-size:13px;
color:#888;
margin-bottom:10px;
}

.featured-card p{
font-size:14px;
margin-bottom:15px;
color:#555;
}

.featured-card a{
display:inline-block;
padding:10px 20px;
background:#383636;
color:white;
text-decoration:none;
border-radius:6px;
font-size:14px;
}

.featured-card a:hover{
background:#1976d2;
}
