* {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

.header{
    min-height: 650px;
    width: 100%;
    background-image: linear-gradient(rgba(116, 125, 159, 0.4), rgba(86, 97, 139, 0.1)),url(/images/office.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    height: 15px;
    box-shadow: 0 5px 20px rgba(25, 110, 146, 0.3);
    background-color: #8fbbe8;
}
nav img{
    width: 60px;
    margin-left: -70px;
    margin-top: 3px;
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 13.5px;
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.60s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
nav .fa{
    display: none;
}

.resources{
    display: grid;
    padding: 100px 16.5% 1px;
    position: relative;
    height: 100%;
    margin-bottom: 0px;
}
.container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    margin-top: 50px;
    align-items: start;
    box-sizing: border-box;
    gap: 30px;
    position: relative;
    justify-content: center;
    margin-bottom: 75px;
}

.blog-card{
    background: #083763;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    height: auto;
}

.blog-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(2, 57, 91, 0.5);
}

.blog-card img{
    width: 100%;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.card-content{
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card h3{
    color: #ffffff;
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: left;
}

.blog-card p{
    color: #BDBDBD;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 15px;
    flex-grow: 0;
}

.read-more-btn{
    display: inline-block;
    background-color: #0077B3;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s;
    width: fit-content;
}

.read-more-btn:hover{
    background-color: #005a8a;
}

.resources h1{
    margin-top: 0px;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    color: #083763; 
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}
.resources h2{
    margin-top: 10px;
    text-align: center;
    font-size: 15px;
    color: #292626; 
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}


/* Footer Styles */
.footer-distributed{
    background: #282828;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    width: 100%;
    text-align: left;
    font: bold 16px sans-serif;
    padding: 20px 20px;
}

.footer-distributed .footer-left,
.footer-distributed .footer-center,
.footer-distributed .footer-right{
    display: inline-block;
    vertical-align: top;
}

.footer-distributed .footer-left{
    width: 40%;
}

.footer-distributed h3{
    color: #ffffff;
    font: normal 36px 'Open Sans';
    margin: 0;
}

.footer-distributed h3 span{
    color: lightseagreen;
}

.footer-distributed .footer-links{
    color: #ffffff;
    margin: 20px 0 12px;
    padding: 0;
}

.footer-distributed .footer-links a{
    display: inline-block;
    line-height: 1.8;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
}

.footer-distributed .footer-company-name{
    color: #92999f;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
}

.footer-distributed .footer-center{
    width: 35%;
}

.footer-distributed .footer-center i{
    background-color: #33383b;
    color: #ffffff;
    font-size: 25px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    line-height: 42px;
    margin: 10px 15px;
    vertical-align: middle;
}

.footer-distributed .footer-center i.fa-envelope{
    font-size: 17px;
    line-height: 38px;
}

.footer-distributed .footer-center p{
    display: inline-block;
    color: #ffffff;
    font-weight: 400;
    vertical-align: middle;
    margin: 0;
}

.footer-distributed .footer-center p span{
    display: block;
    font-weight: normal;
    font-size: 14px;
    line-height: 2;
}

.footer-distributed .footer-center p a{
    color: lightseagreen;
    text-decoration: none;
}

.footer-distributed .footer-links a:before {
    content: "|";
    font-weight: 300;
    font-size: 20px;
    left: 0;
    color: #fff;
    display: inline-block;
    padding-right: 5px;
}

.footer-distributed .footer-links .link-1:before {
    content: none;
}

.footer-distributed .footer-right{
    width: 20%;
}

.footer-distributed .footer-icons{
    margin-top: 25px;
}

.footer-distributed .footer-icons a{
    display: inline-block;
    width: 35px;
    height: 35px;
    cursor: pointer;
    background-color: #33383b;
    border-radius: 2px;
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    line-height: 35px;
    margin-right: 3px;
    margin-bottom: 5px;
}

/* Responsive Styles */
@media (max-width: 1400px){
    .resources{
        padding: 100px 10% 1px;
    }
}

@media (max-width: 1200px){
    nav{
        display: flex;
        padding: 2% 6%;
        justify-content: space-between;
        align-items: center;
        height: 40px;
        box-shadow: 0 5px 20px rgba(25, 110, 146, 0.3);
        background-color: #8fbbe8;
    }
    nav img {
        padding-left: 35px;
        width: 75px;
        margin-top: 1px;
    }
    .resources{
        padding: 80px 8% 1px;
    }
    .container{
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    .header{
        min-height: 500px;
    }
}

@media (max-width: 992px){
    .resources{
        padding: 70px 5% 1px;
    }
    .container{
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        margin-top: 40px;
    }
    .resources h1{
        font-size: 32px;
    }
    .blog-card h3{
        font-size: 22px;
    }
    .blog-card p{
        font-size: 15px;
        line-height: 22px;
    }
}

@media (max-width: 768px){
    .resources{
        padding: 60px 4% 1px;
    }
    .container{
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
    .resources h1{
        font-size: 30px;
    }
    .resources h2{
        font-size: 14px;
    }
    .blog-card{
        max-width: 100%;
        height: 380px;
    }
    .blog-card img{
        height: 150px;
    }
    .blog-card h3{
        font-size: 21px;
    }
    .blog-card p{
        font-size: 14px;
        line-height: 21px;
    }
    .card-content{
        padding: 18px;
    }
    .read-more-btn{
        width: fit-content;
        text-align: center;
        align-self: flex-start;
    }
    .header{
        min-height: 400px;
    }

    .footer-distributed .footer-left,
    .footer-distributed .footer-center,
    .footer-distributed .footer-right {
        width: 100%;
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
    .footer-distributed .footer-center i{
        margin: 10px;
    }
    .phone{
        padding-right: 60px;
    }
    .envelope{
        margin-right: 10px;
    }
}

@media (max-width: 700px){
    .nav-links ul li{
        display: block;
    }
    .nav-links{
        position: fixed;
        background: #f20000;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .fa{
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .nav-links ul{
        padding: 30px;
    }
}

@media (max-width: 600px){
    .resources{
        padding: 50px 3% 1px;
    }
    .container{
        gap: 20px;
        margin-bottom: 50px;
    }
    .resources h1{
        font-size: 26px;
    }
    .resources h2{
        font-size: 13px;
    }
    .blog-card{
        height: 340px;
    }
    .blog-card img{
        height: 130px;
    }
    .blog-card h3{
        font-size: 19px;
        margin-bottom: 10px;
    }
    .blog-card p{
        font-size: 13px;
        line-height: 19px;
        margin-bottom: 12px;
    }
    .read-more-btn{
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 430px){
    .resources{
        padding: 40px 2% 1px;
    }
    .container{
        margin-top: 20px;
        gap: 15px;
    }
    .resources h1{
        font-size: 24px;
    }
    .resources h2{
        font-size: 12px;
    }
    .blog-card{
        height: 300px;
    }
    .blog-card img{
        height: 110px;
    }
    .card-content{
        padding: 14px;
    }
    .blog-card h3{
        font-size: 17px;
        margin-bottom: 8px;
    }
    .blog-card p{
        font-size: 12px;
        line-height: 17px;
        margin-bottom: 10px;
    }
    .read-more-btn{
        padding: 8px 14px;
        font-size: 12px;
    }
    .header{
        min-height: 300px;
    }
    .footer-distributed{
        padding: 15px 10px;
    }
    .footer-distributed .footer-center i{
        font-size: 20px;
        width: 32px;
        height: 32px;
        line-height: 32px;
    }
    .footer-center p{
        font-size: 13px;
    }
    .footer-links{
        font-size: 14px;
    }
    .footer-company-name{
        font-size: 12px;
    }
}

@media (max-width: 360px){
    .resources h1{
        font-size: 22px;
    }
    .blog-card h3{
        font-size: 17px;
    }
    .blog-card p{
        font-size: 12px;
    }
}