* {
    transition: all .5s ease-in-out;
}
.main-container {
    max-width: 1120px;
    width: 100%;
    padding-top: 100px;
    display: flex;
    gap: 20px;
    margin: 0 auto;
    position: relative;
}

.search-part {
    padding: 20px;
    background-color: #191A22;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: fit-content;
    position: sticky;
    top: 200px;
}



.search {
    display: flex;
    gap: 10px;
    width: 100%
}

.search input {
    height: 40px;
    font-size: 16px;
    width: auto;
    padding-inline: 10px;
}

.search-btn {
    background-color: #081324;
    height: 40px;
    width: max-content;
    border: none;
    cursor: pointer;
    display: flex;
    padding-inline: 10px;
    font-size: 16px;
    gap: 10px;
    color: #ffffff;
    justify-content: space-between;
    align-items: center;
}

.search-btn img {
    width: 20px;
}

.item-count {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-item {
    font-size: 20px;
    color: #ffffff;
    font-family: "Noto sans", sans-serif;
    position: relative;
    width: fit-content;
}

.category-item p {
    width: fit-content;
}

.item-count-num {
    width: 20px;
    height: 20px;
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    border-radius: 50%;
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    right: -20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blue {
    background-color: #21B4E8;
}

.yellow {
    background-color: #E3B500;
}

.pink {
    background-color: #BD61FA;
}

.red {
    background-color: #FA6164;
}

.article-image img,
.tag,
.article-image {
    border-radius: unset;
}


.article-title,
.article-date,
.article-description {
    color: #ffffff;
}

.article-date {
    font-family: "ThinMan";
    font-size: 12px;
}
.category-badge {
    display: inline-block;
    color: #fff;
    width: fit-content;
    font-size: 12px;
    padding: 4px 8px;
    margin-bottom: 8px;
}

.article-description {
    font-weight: 300;
    font-size: 16px;
}

.news-articles {
    padding: 0;
}

.news-article {
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.news-article:hover {
    background-color: #0e1a2c;
    cursor: pointer;
}

.recruit-contact-section {
    padding: 0;
}

#modal-article-content h2 {
    color: #333333 !important;
}
.modal-body p {
    color: #333333 !important;
}
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        padding-inline: 50px;
    }

    .search input {
        width: inherit;
    }

    .search-btn {
        width: 100px;
    }

    .item-count {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .search-part.fixed {
        position: fixed;
        width: calc(100% - 100px);
        top: 70px;
        z-index: 100;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        /* optional shadow */
    }
    .opacity {
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .main-container {
        padding-inline: 20px;
    }
    .search-part.fixed {
        position: fixed;
        width: calc(100% - 40px);
        top: 70px;
        z-index: 100;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        /* optional shadow */
    }

    .search-btn {
        width: 120px;
    }
    .category-item {
        font-size: 14px;
    }
}

@media (max-width: 440px) {
    .main-container {
        padding-inline: 10px;
        padding-top: 50px;
    }

    .search-btn {
        width: 120px;
    }
    .search-part.fixed {
        position: fixed;
        width: calc(100% - 20px);
        z-index: 100;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        /* optional shadow */
    }

    .search-part {
        padding-inline: 10px;
    }
}

.news-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .modal-overlay {
    position: absolute;
    inset: 0;
  }
  
  .modal-content {
    position: relative;
    background: #fff;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 2rem;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
  }
  
  .modal-date {
    color: #555;
    margin: 8px 0 12px;
  }

  .modal-category {
    margin-bottom: 12px;
  }

  .modal-image img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
  }

  .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  