body {
    padding: 0;
    margin: 0;
    background-color: #f5f5f5;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
header{
    width: 100%;
    background-color: #001F5B;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #fff;
    box-sizing: border-box;
}

.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}
.logo h1{
    color: #FFFFFF;
    font-size: 26px;
    font-weight: bold;
    margin: 0;
}
.logo h1 a{
        color: #FFFFFF;
        text-decoration: none;
    }
.menu {
    list-style: none;
    display: flex;
    background-color: #001F5B;
    padding: 0;
    margin: 0;
}
.menu li a {
    display: block;
    padding: 10px 15px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, background 0.3s;
}
.menu li a:hover {
    color: #001F5B;
    background-color: #FFFFFF;
    border-radius: 4px;
}
.search{
    position: relative;
}
.search i{
    font-size: 20px;
    cursor: pointer;
    color: #FFFFFF;
}
.search input{
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    padding: 6px 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
    width: 200px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.search input:focus{
    outline: none;
    border: 2px solid #564be8;
}
.container {
    width: 90%;
    margin: 25px auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}
.latest-news {
    background: white;
    padding: 20px;
    border-radius: 5px;
    align-self: start;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    max-height: 450px;
    overflow-y: auto;
}
.latest-news h2 {
    border-left: 4px solid #001F5B;
    padding-left: 15px;
    margin-bottom: 10px;
    font-size: 20px;
}
.latest-item {
    margin-bottom: 13px;
}
.latest-item a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-weight: bold;
}

.latest-item a:hover {
    color: #001F5B;
}
footer {
    background-color: #001F5B;
    color: #FFFFFF;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer .footer-follow a {
    color: #FFFFFF;
    margin-right: 10px;
    text-decoration: none;
}

footer .footer-follow a:hover {
    color: #FFFFFF;
}
.main-news {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
   overflow: hidden;
    cursor: pointer;
    position: relative;
}
.main-news::after {
   content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.05);
    opacity: 0;
    transition: transform 0.4s ease;
}
.main-news img {
    width: 100%;
    border-radius: 5px;
    transition: transform 0.4s ease;
}
.main-news:hover img {
    transform: scale(1.04);
}
.main-news h1 {
    transition: color 0.3s;
}
.main-news:hover h1 {
    color: #001F5B;
}
.main-news p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}
.read-more {
    text-decoration: none;
    color: #001F5B;
    font-weight: bold;
}
.read-more:hover {
    text-decoration: underline;
}
.sub-news {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.sub-item {
    background: #FFFFFF;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}
.sub-item:hover {
    transform: translateY(-4px);
}
.sub-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.sub-item h3 {
    font-size: 15px;
    padding: 10px;
    margin: 0;
    color: #000;
}
.sub-item h3:hover {
    color: #001F5B;
}
.latest-sub-news {
    max-height: 260px;
    overflow-y: auto;
}

.latest-sub-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.latest-sub-item img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
}

.latest-sub-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    font-weight: bold;
    color: #000;
}

.latest-sub-item p:hover {
    color: #001F5B;
}
