/* Ensure navbar contents align properly */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Style for the site title */
@media screen and (min-width: 381px) {
    .site-title {
        font-weight: 500;
        font-size: 37.3333px;
        color: #00274c;
        display: block;
        text-decoration: none;
    }
}

@media screen and (max-width: 380px) {
    .site-title {
        font-weight: 500;
        font-size: 37.3333px;
        color: #00274c;
        display: block;
        text-decoration: none;
        max-width: 160px;
    }
}

@media screen and (min-width: 381px) {
    .site-description {
        font-size: 18px;
        font-weight: 350;
        display: block;
    }
}

@media screen and (max-width: 380px) {
    .site-description {
        max-width: 160px;
        font-size: 18px;
        font-weight: 350;
        display: block;
    }
}

@media screen and (min-width: 1260px) {
    .site-tit-des {
        margin-left: 150px;
    }
    .site-nav-ele {
        margin-right: 150px;
    }
}

/* Header */
.header-styling {
    border-bottom: 1.6px solid rgb(0, 39, 76);
    display: flex;
    flex-direction: row;
    width: 100%;
}

/* News */
@media screen and (min-width: 621px) {
    .news-list-ele {
        color: #0d57aa;
        margin-right: 20px;
        min-width: 120px;
    }
}

@media screen and (max-width: 620px) {
    .news-list-ele {
        color: #0d57aa;
    }
}

@media screen and (min-width: 621px ) {
    .news-content{
        display: flex;
        flex-direction: row;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 620px ) {
    .news-content{
        display: flex;
        flex-direction: column;
        margin-bottom: 30px;
    }
}

/* Dropdown */
.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    transition: all 0.3s ease-in-out;
    display: none;
}

/* Layout */
@media screen and (min-width: 761px) {
    .site-content {
        display: flex;
        flex-direction: row;
        padding: 10px;
        background-color: #f8f6f6
    }
}

@media screen and (max-width: 760px) {
    .site-content {
        display: flex;
        flex-direction: column;
        padding: 10px;
        background-color: #f8f6f6
    }
}

/* Primary Content */
@media screen  and (min-width: 1251px) {
    .primary-home-content {
        display: flex;
        flex-direction: column;
        background-color: #fff;
        margin: 60px 10px 60px 120px;
        padding: 80px;
    }
}

@media screen  and (min-width: 761px) and (max-width: 1250px) {
    .primary-home-content {
        display: flex;
        flex-direction: column;
        background-color: #fff;
        margin: 60px 10px 60px 20px;
        padding: 40px;
    }
}

@media screen  and (min-width: 541px) and (max-width: 760px) {
    .primary-home-content {
        display: flex;
        flex-direction: column;
        background-color: #fff;
        margin: 14px;
        padding: 20px;
    }
}

@media screen  and (max-width: 540px) {
    .primary-home-content {
        display: flex;
        flex-direction: column;
        background-color: #fff;
        margin: 6px 2px;
        padding: 10px;
    }
}

/* Secondary Content */
@media screen  and (min-width: 1251px) {
    .secondary-content {
        display: flex;
        flex-direction: column;
        margin: 60px 120px 60px 14px;
        min-width: 320px;
        max-width: 330px;
    }
}

@media screen  and (min-width: 761px) and (max-width: 1250px) {
    .secondary-content {
        display: flex;
        flex-direction: column;
        margin: 60px 20px 60px 14px;
        min-width: 240px;
        max-width: 280px;
    }
}

@media screen  and (max-width: 760px) {
    .secondary-content {
        display: flex;
        flex-direction: column;
        margin: 60px 14px;
    }
}

/* Non-home */
.primary-non-home-content {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    margin: 60px 10px 60px 120px;
    padding: 80px;
    border-right: 2px solid #ddd;
}

/* Heading */
.welcome-heading{
    font-size: 30px;
    margin-bottom: 15px;
}

/* ✅ FIXED IMAGE + TEXT WRAP */
.entry-post-para {
    display: block;
}

.prof-image {
    float: left;
    object-fit: cover;
    margin-right: 20px;
    margin-bottom: 10px;
}

.entry-para {
    display: block;
}

/* Clear float */
.entry-post-para::after {
    content: "";
    display: block;
    clear: both;
}

/* Mobile fix */
@media screen and (max-width: 760px) {
    .prof-image {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        width: 100%;
        max-width: 300px;
    }
}

/* Sidebar */
@media screen and (min-width: 541px) {
    .sidebar-recent-news,
    .sidebar-contact-me {
        padding: 30px;
        margin-bottom: 24px;
        background-color: #fff;
    }
}

@media screen and (max-width: 540px) {
    .sidebar-recent-news,
    .sidebar-contact-me {
        padding: 24px 16px;
        margin-bottom: 24px;
        background-color: #fff;
    }
}

/* Sidebar headings */
.side-bar-headings{
    padding: 4px 0;
    border-top: 2px solid black;
    border-bottom: 1px solid #e1d4d4;
}

/* Footer */
.site-footer{
    background: linear-gradient(to bottom, #001c36, #00274c);
    height: 80px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foot-logos{
    height: 130px;
    background-color: rgb(0, 39, 76);
}