/* -------------- Awal Section Head -------------- */

.head {
    background-image: url('/img/bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    padding: 10%;
}

.head h1 {
    font-size: 70px;
    font-weight: 700;
    margin-top: 150px;
    background: linear-gradient(-45deg, rgba(7, 2, 118, 1), rgba(4, 54, 220, 1), rgba(7, 2, 118, 1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.head img {
    width: 200px;
}

.head .img-head-1{
    margin-bottom: 250px;
}

.head .img-head-2{
    margin-top: 250px;
}

/* -------------- Akhir Section Head -------------- */

/* -------------- Awal Section Upcoming Product -------------- */

.upcoming-product .head-upcoming h1 {
    font-size: 60px;
    font-weight: 700;
    background: linear-gradient(-45deg, rgba(7, 2, 118, 1), rgba(4, 54, 220, 1), rgba(7, 2, 118, 1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 70px;
}

.body-upcoming {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card-upcoming-content {
    position: relative;
}

.image-container {
    width: 100%;
    height: 280px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05);
}

.image-container .no-image {
    width: 100%;
    height: 280px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: linear-gradient(-45deg, rgba(7, 2, 118, 0.95), rgba(4, 54, 220, 0.95), rgba(7, 2, 118, 0.95));
    color: #fff;

    box-shadow: inset 0 4px 25px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.image-container .no-image i {
    font-size: 55px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.image-container .no-image span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(-45deg, #ffffff, #d1d5db, #f3f4f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.image-container .no-image::before {
    content: "\f03e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 160px;
    color: rgba(255, 255, 255, 0.08);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.text-overlay {
    position: absolute;
    bottom: 10px;
    width: 100%;
    color: white;
    text-align: left;
    z-index: 10;
    padding: 25px;
}

.text-overlay h1 {
    margin: 5px 0;
}

.text-overlay p {
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.text-overlay .btn-more-upcoming {
    background: linear-gradient(to right, #070276, #8800FF, #0D04DC);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid #070276;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease-in-out, border 0.4s ease-in-out;
    cursor: pointer;
}

.text-overlay .btn-more-upcoming::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #070276, #8800FF, #0D04DC);
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
    z-index: -1;
    border-radius: 50px;
}

.text-overlay .btn-more-upcoming:hover::before {
    opacity: 0;
}

.text-overlay .btn-more-upcoming:hover {
    background: transparent;
    color: white;
    border-color: #070276;
}

/* -------------- Akhir Section Upcoming Product -------------- */

/* -------------- Awal Section News -------------- */

.body-news {
    display: block;
    justify-content: center;
}

.filter-search-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    padding: 10px 15px;
    border: 2px solid #070276;
    border-radius: 50px;
    width: 250px;
    font-size: 14px;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.search-input:focus {
    outline: none;
    border-color: #8800FF;
    box-shadow: 0px 0px 8px rgba(136, 0, 255, 0.5);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #e0e0e0;
    border: 1px solid #c0c0c0;
    border-radius: 50px;
    padding: 10px;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn,
.search-btn {
    background: white;
    color: #070276;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid #070276;
    position: relative;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    display: inline-flex;
    width: 120px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.filter-btn:not(.disabled):hover,
.search-btn:not(.disabled):hover {
    background: linear-gradient(to right, #070276, #8800FF, #0D04DC);
    color: white;
    border-color: #070276;
}

.filter-btn.active {
    background: linear-gradient(to right, #070276, #8800FF, #0D04DC);
    color: white;
    border-color: #070276;
}

.filter-btn.disabled,
.search-btn.disabled {
    background: #e0e0e0;
    color: #7f8c8d;
    border: 2px solid #b0c4de;
    cursor: not-allowed;
}

#detailModal1,
#detailModal2 {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content-news,
.modal-content-upcoming {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-height: 80%;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.news-details,
.upcoming-details {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.news-details img,
.upcoming-details img {
    width: 80%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.news-title,
.upcoming-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-content,
.upcoming-content {
    line-height: 1.6;
    color: #444;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    margin-top: 20px;
}

.pagination-btn {
    text-decoration: none;
    background: white;
    color: #070276;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid #070276;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease-in-out, border 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

.pagination-btn:hover {
    background: linear-gradient(to right, #070276, #8800FF, #0D04DC);
    color: white;
    border-color: #070276;
}

.pagination-btn:focus {
    outline: none;
}

.pagination-btn.disabled {
    background-color: white;
    color: #7f8c8d;
    cursor: not-allowed;
    border: 2px solid #b0c4de;
}

.pagination-btn.disabled:hover {
    background: white;
    color: #7f8c8d;
    border-color: #b0c4de;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: linear-gradient(to right, #070276, #8800FF, #0D04DC);
    color: white;
    border-color: #070276;
}

.pagination-btn.active:hover {
    background: linear-gradient(to right, #070276, #8800FF, #0D04DC);
    color: white;
    border-color: #070276;
}

.container-news {
    display: flex;
    border: 1px solid #c0c0c0;
    border-radius: 30px;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #e0e0e0;
}

.left-news img {
    width: 405px;
    border-radius: 30px;
    margin-right: 20px;
}

.right-news h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.right-news p {
    font-size: 14px;
    margin-top: -5px;
    margin-bottom: 20px;
}

.btn-more-news {
    background: transparent;
    color: #070276;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid #070276;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease-in-out, border 0.4s ease-in-out;
    cursor: pointer;
}

.btn-more-news::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #070276, #8800FF, #0D04DC);
    transition: opacity 0.4s ease-in-out;
    opacity: 0;
    z-index: -1;
    border-radius: 50px;
}

.btn-more-news:hover::before {
    opacity: 1;
}

.btn-more-news:hover {
    background: linear-gradient(to right, #070276, #8800FF, #0D04DC);
    color: white;
    border-color: #070276;
}

/* -------------- Akhir Section News -------------- */

@media (max-width:  480px) {
    section {
        padding: 20px;
    }
    /* -------------- Awal Section Head -------------- */

    .head {
        background-image: url('/img/bg.png');
        background-repeat: no-repeat;
        padding: 0;
    }

    .head h1 {
        font-size: 40px;
        font-weight: 700;
        margin: 0 0 0 0;
        padding: 50% 0 50% 0;
    }

    .head img {
        display: none;
    }

    /* -------------- Akhir Section Head -------------- */
    /* -------------- Awal Section Upcoming Product -------------- */

    .upcoming-product .head-upcoming h1 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .body-upcoming {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-container {
        height: 200px;
    }

    .text-overlay {
        padding: 15px;
    }

    .text-overlay h1 {
        font-size: 18px;
    }

    .text-overlay p {
        font-size: 12px;
    }

    .text-overlay .btn-more-upcoming {
        padding: 6px 12px;
        font-size: 12px;
    }

    .image-container .no-image {
        height: 200px;
    }

    .image-container .no-image i {
        font-size: 40px;
    }

    .image-container .no-image span {
        font-size: 12px;
    }

    .image-container .no-image::before {
        font-size: 100px;
    }

    /* -------------- Akhir Section Upcoming Product -------------- */
    /* -------------- Awal Section News -------------- */

    .filter-search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
      
    .search-input {
        flex: 1;
        width: 80%;
    }
      
    .filter-buttons {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;  
        -webkit-overflow-scrolling: touch; 
        padding: 10px;
        gap: 10px;
        width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none; 
        order: 1;
        font-size: 14px;
    }
      
    .filter-buttons::-webkit-scrollbar {
        display: none;
    }
      
    .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .news-title,
    .upcoming-title {
        font-size: 18px;
    }

    .news-content,
    .upcoming-content {
        font-size: 14px;
    }
      
    .container-news {
        flex-direction: column;
        border-radius: 20px;
    }

    .container-news h2 {
        font-size: 20px;
    }

    .container-news p,
    .btn-more-news,
    .search-btn {
        font-size: 14px;
    }
      
    .left-news img {
        width: 100%;
        border-radius: 15px;
    }
      
    .right-news {
        padding: 10px 5px;
    }

    /* -------------- Akhir Section News -------------- */
}

@media (min-width: 481px) and (max-width: 768px) {
    section {
        padding: 30px;
    }

    /* -------------- Awal Section Head -------------- */

    .head {
        padding: 20% 0 10% 0;
    }

    .head h1 {
        font-size: 50px;
        margin-top: 100px;
    }

    .head img {
        width: 150px;
    }

    .head .img-head-1 {
        margin-bottom: 150px;
    }

    .head .img-head-2 {
        margin-top: 150px;
    }

    /* -------------- Akhir Section Head -------------- */

    /* -------------- Awal Section Upcoming Product -------------- */

    .upcoming-product .head-upcoming h1 {
        font-size: 48px;
        margin-bottom: 50px;
    }

    .body-upcoming {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .image-container {
        height: 240px;
    }

    .text-overlay {
        padding: 20px;
    }

    .text-overlay h1 {
        font-size: 20px;
    }

    .text-overlay p {
        font-size: 13px;
    }

    .text-overlay .btn-more-upcoming {
        padding: 7px 14px;
        font-size: 13px;
    }

    .image-container .no-image {
        height: 240px;
    }

    .image-container .no-image i {
        font-size: 50px;
    }

    .image-container .no-image span {
        font-size: 13px;
    }

    .image-container .no-image::before {
        font-size: 140px;
    }

    /* -------------- Akhir Section Upcoming Product -------------- */

    /* -------------- Awal Section News -------------- */

    .filter-search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        width: 100%;
        justify-content: center;
    }

    .search-input {
        width: 70%;
    }

    .filter-buttons {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px;
        gap: 10px;
        width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        width: 120px;
        padding: 8px 16px;
    }

    .container-news {
        flex-direction: column;
    }

    .left-news img {
        width: 100%;
        border-radius: 20px;
    }

    .right-news {
        padding: 15px 10px;
    }

    .right-news h2 {
        font-size: 20px;
    }

    .modal-content-news,
    .modal-content-upcoming {
        width: 90%;
        margin: 10% auto;
    }

    .pagination-btn {
        padding: 8px 15px;
        font-size: 16px;
    }

    /* -------------- Akhir Section News -------------- */
}

@media (min-width: 769px) and (max-width: 1024px) {
    section {
        padding: 40px;
    }

    /* -------------- Awal Section Head -------------- */
    
    .head {
        padding: 15% 0 5% 0;
    }
    
    .head h1 {
        font-size: 55px;
        margin-top: 120px;
    }
    
    .head img {
        width: 150px;
    }
    
    .head .img-head-1 {
        margin-bottom: 200px;
    }
    
    .head .img-head-2 {
        margin-top: 200px;
    }
    
    /* -------------- Akhir Section Head -------------- */
    
    /* -------------- Awal Section Upcoming Product -------------- */
    
    .upcoming-product .head-upcoming h1 {
        font-size: 54px;
        margin-bottom: 60px;
    }

    .body-upcoming {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .image-container {
        height: 260px;
    }

    .text-overlay {
        padding: 22px;
    }

    .text-overlay h1 {
        font-size: 22px;
    }

    .text-overlay p {
        font-size: 14px;
    }

    .text-overlay .btn-more-upcoming {
        padding: 8px 15px;
        font-size: 14px;
    }

    .image-container .no-image {
        height: 260px;
    }

    .image-container .no-image i {
        font-size: 55px;
    }

    .image-container .no-image span {
        font-size: 14px;
    }

    .image-container .no-image::before {
        font-size: 150px;
    }
    
    /* -------------- Akhir Section Upcoming Product -------------- */
    
    /* -------------- Awal Section News -------------- */
    
    .filter-search-container {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .search-form {
        gap: 10px;
    }
    
    .search-input {
        width: 220px;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        padding: 8px;
        gap: 8px;
    }
    
    .filter-btn,
    .search-btn {
        padding: 7px 14px;
        width: 110px;
        font-size: 14px;
    }
    
    .container-news {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .left-news img {
        width: 320px;
    }
    
    .right-news {
        padding: 0 0 0 15px;
    }
    
    .right-news h2 {
        font-size: 18px;
    }
    
    .right-news p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .btn-more-news {
        padding: 7px 14px;
        font-size: 14px;
    }
    
    .modal-content-news,
    .modal-content-upcoming {
        width: 85%;
        margin: 8% auto;
    }
    
    .news-title,
    .upcoming-title {
        font-size: 20px;
    }
    
    .pagination {
        gap: 8px;
        padding: 15px;
    }
    
    .pagination-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* -------------- Akhir Section News -------------- */
}