* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Montserrat, sans-serif;
    background-color: #f8f9fa;
}
.bg-primary {
    background-color: #182359 !important;
}
a {
    /* color: white; */
    text-decoration: none;
}
main{
    padding-top: 70px;
}
.navbar{
    max-width: 1249px;
}
.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: transform 0.3s, color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    transform: scale(1.1);
}

.container {
    max-width: 1276px; 
    margin: 0 auto;
    padding: 0 20px; 
}

.main__banner {
    justify-content: center;
    margin-top: 72px;
    display: block;
    max-width: 100%;
    height: auto; 
}

.main__news {
    font-size: 24px;
    margin-top: 66px;
    margin-bottom: 28px;
}

.main__news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.main__news-item {
    background-color: rgba(24, 35, 89, 0.6);
    position: relative;
    text-align: center;
    padding: 20px;
}

.main__news-item img {
    width: 100%; 
    height: auto; 
    margin-bottom: 20px;
}

.main__news-title {
    color: white;
    position: relative; 
    text-align: center; 
}
.competition-image {
    width: 100%; 
    height: auto;
    float: left; 
    margin-top: 5px;
    margin-right: 15px;
}
h2{
    font-size: 24px;
}
footer a img {
    transition: transform 0.3s ease;
}
footer a{
    color:white;
}
footer a img:hover {
    transform: scale(1.1);
}

footer hr {
    opacity: 0.3;
}

.dropdown-toggle::after {
    display: none; 
}

.dropdown-menu {
    background-color: rgba(24, 35, 89, 0.8);
}

.dropdown-item {
    color: white; 
}
.dropdown-item:hover{
    color: white;
}
.dropdown-item:hover {
    background-color: rgba(24, 35, 89, 0.8); 
}

.main__text__container{
    margin-top: 77px;
    margin-bottom: 30px;
}
.text__container{
    margin-top: 45px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main__filter-button {
    background-color: #182359; 
    color: white; 
    border: none; 
    border-radius: 5px; 
    padding: 10px 20px;
    cursor: pointer; 
    font-size: 16px;
    font-family: Montserrat;
}

.main__filter-button:hover {
    background-color: #101841;
}
.main__heading{
    font-size: 24px;
    font-weight: 700;
}
.main__text{
    font-size: 20px;
    padding-bottom: 21px;
}
.main__list{
    font-size: 20px;
}
.main__staff{
    display:flex;
    justify-content: space-between;
    margin-bottom: 40px;
    
}
.main__staff__card{
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    /* width: 3305x; */
    height:580px;
    text-align: center;
    overflow: hidden;
}
.main__staff__card img{
    /* width: 100%; */
    height: 440px;
}
.main__staff__card__content{
    padding:15px;
}
.main__staff__card__content__name{
    font-size: 18px;
    margin: 10px 0;
    font-weight: 700;
}
.main__staff__card__content__position{
    font-size: 18px;
    margin: 10px 0;
    color: black;
}
.main__department-list {
    list-style-type: none;
    padding: 0;
    
}

.main__department-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}
.main__department-item p{
    margin-top:17px;
}

.main__department-item:last-child {
    border-bottom: none;
    margin-bottom: -20px;
}
.main__department-item img{
    margin-right: 10px;
}
.feedback-form {
    display: flex;
    flex-direction: column;
}

.feedback-form label {
    margin-bottom: 10px;
}

.feedback-form input,
.feedback-form textarea {
    margin-bottom: 25px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 12px;
    font-family: Montserrat;
}

.feedback-form button {
    padding: 10px;
    background-color: #182359;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: Montserrat;
    width: 196px;
    align-self: flex-end; 
}

.feedback-form button:hover {
    background-color: #101841;
}

.img-ratio-3-4 {
    aspect-ratio: 0.75; /* 9/12 = 0.75 */
    width: 100%;
    height: auto;
}

@media (min-width: 440px) and (max-width: 900px){
    .competition-image{
        width:100%;
        height:auto;
    }
}
@media (min-width: 600px) and (max-width: 900px) {
    .row > div.col-12 {
        flex: 0 0 50%;
        max-width: 50%; 
    }
    .competition-image{
        width:100%;
        height:auto;
    }
}

@media (max-width: 768px) {
    .main__news-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    .row{
        flex-wrap: wrap;
    }
    .competition-image{
        width:100%;
        height:auto;
    }
}
@media (max-width: 400px) {
    header{
        display: flex;
        justify-content: space-between;
    }
    .navbar a{
        font-size: 14px;
    }
    .navbar-brand {
        display: flex;
    }
    .main__heading{
        font-size: 20px;
    }
    .main__filter-button{
        font-size: 14px;
    }
    .main__news-grid {
        grid-template-columns: 1fr; 
    }

    .main__news {
        font-size: 20px; 
        margin-top: 30px;
        margin-bottom: 15px;
    }
    footer{
        width: 100%;
    }
}
