/*General Body styles*/
body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #fbf3ec;
    color: #2e2e2e;
    
}
.container{
    width: 80%;
    margin: auto;
    overflow: hidden;/*clear floats*/
    padding: 0 20px;

}
/*header style*/
header{
    background: #3a3a3a;
    color: #fff;
    padding-top: 20px;
    min-height: 70px;border-bottom: #77aaff 3px solid;
}
header h1{
    float: left;
    margin: 0;
    padding: 0;
 }
 header nav{
    float: right;
    margin-top: 10px;


 }
 header nav ul{
    
    text-align: center;
    margin: 0;
    padding: 0;
    list-style: none;
 }
 header li{
    display: inline;
    padding: 0 15px;
 }
 header a{
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    transition: color 0.3s ease;
 }
 header a:hover, header a.active{
    color: #77aaff;
    font-weight: bold;
    transition: 0.5s;
    

 }
 /*mian content style*/
 main{
    padding-bottom: 20px;
}
/*hero section (Homepage specific)*/
#hero{
    min-height: 400px;
    background: url(https://www.thetimes.com/imageserver/image/%2Fa2c3fc6d-93bc-4d64-9193-83bd7878eede.jpg?crop=5464%2C3640%2C0%2C0&resize=618)no-repeat center center/cover;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    
}

#hero::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    background-color: rgba(0, 0, 0, 0.5);/*Overlay for readability*/
   

}
#hero .container{
    position: relative;
    z-index: 1;
}
#hero h2{
    font-size: 3em;
    margin-bottom: 10px;
}
#hero p{
    font-size: 1.2em;
    margin-bottom: 20px;
}
.button {
    display: inline-block;
    color: #fff;
    background: #77aaff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: backg0.3s ease;
}
.button:hover{
    background: #5566cc;

}
/*About Section (homepage specific)*/
#about{
    padding: 40px 0;
    background: #fff;
    border-bottom: #ccc 1px solid;
    text-align: center;
    
}
#about h2{
    color: #333;
    margin-bottom: 20px;
}
/*General page content section*/
.page-content{
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    padding: 20px;
    
    margin: 30px auto;
   
    
    
    
}
.page-content h2{
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    border-bottom: 2px solid #77aaff;
    padding-bottom: 10px;
    display: inline-block;
}
.page-content h4{
    margin: 8px 0;
    font-size: 16px;
    color: #444;
}
.page-content p{
    margin-bottom: 15px;
    
    text-align: justify;

}
.page-content a{
    color: #0077cc;
    text-decoration: none;
}
.page-content a:hover{
    text-decoration: underline;
}
.video-wrapper{
    display: flex;
    justify-content: center;
    margin: 30px 0;
}
.image-wrapper{
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.iamge-gallery{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;/*Optional: Allow wrapping on smaller screens (responsive)*/
}
.image-gallery img{
    width: 300px;
    height: 150;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
}
figure {
    margin: 20px auto;
    text-align: center;
}
figcaption{
    font-style: italic;
    color: #555;
    font-size: 16px;
}
.fic-link{
    margin-top: 30px;
    text-align: center;
}
.fic-link a{
    color: #d4aa50;
    text-decoration: none;
    font-weight: bold;
}
.fic-link a:hover{
    text-decoration: underline;
}
/*footer style*/
footer{
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}
footer p{
    margin: 0;
}
/*Responsive Design */
@media (max-width: 768px){
    header h1,
    header nav,
    header ul{
        float: none;
        text-align: center;
    }
    
    header nav ul li{
        padding: 10px 10px;
        display: block;/*stack navigation items*/
    }
    .container{
        width: 95%;
    }
    #hero p{
        font-size: 1em;

    }
    .page-content h2{
        font-size: 1.8em;
    }
}
