@import "../fonts/UID-Deep_sea/fonts.css"; /* Using a string */


*{
    box-sizing: border-box;
}

.fs-16{
    font-size: var(--nav-button-body);
}
.fs-13{
    font-size: var(--card-caption);
}
.active-button{
    background-color: var(--primary-color);
    padding: 13px 24px;
    border-radius: var(--button-radius);
    &:hover{
        background-color: var(--btn-color-hover);
    }
}
.tag-button{
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background-color: var(--tag-btn-bg-color);
    color: var(--tag-btn-text-color);
    padding: 13px;
    border-radius: var(--button-radius);
    &:hover{
        border: none;
    }
    &:focus{
        border: none;
    }
}
.tag-button.show {
    opacity: 1;
    transform: scale(1);
}
.tag-button.hide {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}
.hero-section{
    background-color: var(--background-hero);
    height: 400px;
    border-radius: var(--card-radius);
}
.hero-text{
    position: relative;
    color: white;
    font-weight: 300;
    letter-spacing: 3%;
    top: 31%;
    left: 75px;
    font-size: var(--header-section);
    line-height: 70px;
    z-index: 3;
}
.background-slider-img-carousel{
    position: absolute;
    top: 0%;
    left: 0%;
    padding: 60px 0;
    white-space: nowrap;
    z-index: 1;
    opacity: 60%;
}
.background-slider-img{
    display: inline-block;
    animation: 10s slide infinite linear;
}
.background-slider-img img{
    transform: translateY(-20%);
    max-width: 300px;
    max-height: 600px;
    margin: 0px 80px;
}
.background-slider-overlay{
    position: absolute;
    top: 0%;
    left: 0%;
    z-index: 2;
    border-radius: var(--card-radius);
    background-image: linear-gradient(to right,black 40% , rgba(255,255,255 , 0) 55% );
}
@keyframes slide {
    from {
        transform: translateX(0);
    }
    to{
        transform: translateX(-100%);
    }
}
.dropdown-menu{
    text-align: center;
    border-radius: var(--card-radius);
    padding: 16px 24px;
    transform: translateY(12px);

}
.dropdown-filter{
    width: max-content;
}
.dropdown-divider{
    margin-top: 4px;
    margin-bottom: 12px;
    border: var(--border-width) solid var(--border-color);
}
/* custom checkmark */
.label-container {
    display: block;
    position: relative;
    padding: 0px;
    padding-left: 24px;
    font-size: 13px;
    color: var(--text-filter-body);
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .label-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  .checkmark {
    transform: translateY(2.75px);
    position: absolute;
    top: 0;
    left: 0 !important;
    height: 16px;
    width: 16px;
    padding: 0px;
    background-color: transparent;
    border-radius: 3px;
    border: var(--border-width) solid var(--border-color);
  }
  
  /* .container:hover input ~ .checkmark {
    background-color: #ccc;
  } */
  
  .label-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
  }
  
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  .label-container input:checked ~ .checkmark:after {
    display: block;
  }
  
  .label-container .checkmark:after {
    left: 4.5px !important;
    top: 1.5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

/* input */

input[type="checkbox"]{
    height: 16px;
    width: 16px;
    border-radius: 3px;
    border: var(--border-width) solid var(--border-color);
}
input[type="checkbox"]:checked{
    accent-color: var(--primary-color);
}
.filter-text-subhead{
    font-size: var(--card-caption);
    color: var( --text-header-card-color);
    font-weight: 500;
    margin-bottom: 12px;
}
.filter-text-body{
    font-size: var(--card-caption);
    color: var(--text-filter-body);
}
.filter-content-wrap{
    display: flex;
    flex-direction: column;
    column-gap: 8px;
    margin-bottom: 12px;
}
p{
    margin: 0;
}
.filter-box{
    margin-left: 16px;
}
.type-dropdown.dropdown-menu.show{
    display: flex;
}
.hidden{
    display: none;
}
#tagContainer{
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    height: 45px;
    transform: translateY(10px);
    border-left: var(--border-width) solid var(--border-color);
}
.default-overlay{
    mask-image: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 10%);
}
.overlay-effect{
    mask-image:  linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 0.2%, rgba(255,255,255,1) 15%, rgba(255,255,255,1) 90%, rgba(255,255,255,0) 100%);
}
/* .overlay-filter{
    position: absolute;
    right: 0;
    width: 100px;
    background-image: linear-gradient(to right,rgba(255, 255, 255, 0) 0% , rgb(255, 255, 255) 100% );
    z-index: 2;
} */
#year-filter-box .dropdown-menu {
    min-width: 1rem;
    width: 162.484px;
    a{
        padding: 10px;
        width: 100%;
        &:hover{
            transition: none;
            border-radius: var(--button-radius);
            border: var(--border-width) solid var(--border-color);
            background-color: transparent;
        }
    }
    li{
        width: 100%;
    }
  } 
  .material-symbols-outlined {
    color: var(--primary-color);
    margin-left: 6px;
    transform: translateY(1.4px);
    font-size: 16px !important;
    font-variation-settings:
    'FILL' 0,
    'wght' 500,
    'GRAD' 0,
    'opsz' 20
  }
  .material-symbols-outlined.filter-icon{
    color: #AEAEAE;
    transform: translateY(-1px);
  }
  .movedropdown{
    transform: translate3d(-40px, 12px, 0px);
  }
.card-port{
    & .img-port{
        width: 100%;
    }
}
.divider{
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    border: var(--border-width) solid var(--border-color);
}
.row{
    margin: 0;
  }

/* a img{
    border: 0.5px solid var(--border-color);
    border-radius: var(--card-radius);
} */

/* Why I'm not use label :< */
 .filter-content-wrap > div  > span{
    color: var(--text-filter-body);
 }
 #BBoverlay1{
    position: absolute;
    top: -25%;
    left: 27%;
    border-radius: 200px;
    width: 250px;
    height: 250px;
    z-index: 3;
 }
 #BBoverlay2{
    position: absolute;
    top: 45%;
    left: -10%;
    border-radius: 200px;
    width: 200px;
    height: 200px;
    z-index: 3;
 }
 #BBoverlay3{
    position: absolute;
    bottom: -20%;
    left: 45%;
    border-radius: 200px;
    width: 200px;
    height: 200px;
    z-index: 3;
 }
 #BBoverlay4{
    position: absolute;
    top: -15%;
    right: -5%;
    border-radius: 200px;
    width: 200px;
    height: 200px;
    z-index: 3;
 }
 .bubble-animation{
    /* animation: ; */
    animation: BBwiggle 5s ease-in-out infinite alternate ; 
    /* box-shadow: 0 20px 30px rgba(255, 255, 255, 0.2) , inset 0px 10px 30px 5px #4fc950; */
    opacity: 0.15;
    filter: blur(15px) ;
    background-color: var(--primary-color);
    box-shadow: 0px 0px 40px 20px #4fc94fd0;
 }
 
 :root{
    --random-x: 0px;
    --random-y: 0px;

 }

 .content-gap{
    margin-top: 40px;
 }
 @keyframes BBwiggle {
    0%{
        margin-left: 0px;
        margin-top: 0px;
    }
    100%{
        margin-left: var(--random-x);
        margin-top: var(--random-y);
    }
 }
 .onovo-filter{
    overflow: visible;
    scrollbar-width: none;
}

#FilterModal{
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--button-radius);
    background-color: transparent;
    padding-top: 10px;
    padding-bottom: 10px;
    color: black;
    font-size: 13px;
    font-weight: bold;  
    width: 92px;

}
#FilterModal:focus{
    box-shadow: 0 0 0 .1rem var(--primary-color);
}
@media screen and (max-width: 1499px) {
    .onovo-filter-container{
        margin-bottom: 0px;
    }
 }
 @media screen and (max-width: 991.98px) {
    .hero-section{
        height: 260px;
    }
    .background-slider-overlay {
       background-image: linear-gradient(to right,black 55% , rgba(255,255,255 , 0) 70% );
   }
   .hero-text{
       font-size: 36px;
       left: 50px;
       top: 27%;
       line-height: 60px;
   }
   .background-slider-img-carousel{
       top: -70%;
       /* scale: calc(0.8); */
   }
   .background-slider-img > img{
       scale: calc(0.6);
   }
}

 @media screen and (max-width: 767.99px){
    .filter-section{
        padding-left: 0;
    } 
    /* Main-category bar */
    .onovo-filter.filter--default{
        padding: 0;
    }
    .main-category > li > button {
        font-size: 13px !important;
        margin-right: 16px !important;
    }

    /* filter box in modal */
    .filter-box{
        margin-left: 0;
    }
    .filter-content-wrap{

    }
    .onovo-portfolio-items{
        --bs-gutter-x: 0;
    }

    .contact-logo{
        scale: calc(0.8);
    }
    .hero-text{
        /* letter-spacing: 1px; */
        left: 50px ;
        font-size: 24px ;
        top: 30% ;
        line-height: 40px ;
    }
    .background-slider-overlay , .hero-section{
        height: 200px ;
    }
    .onovo-filter{
        overflow: hidden;
    }
    #tagContainer{
        border-left: none;
    }
    .content-gap{
        margin-top: 32px;
     }

    /* card item */
    /* .card-port{
        &h6{
            font-size: var(--fs-16px) !important;
        }
        &p{
            font-size: var(--fs-13px) !important;
        }
    } */
 }
@media screen and (max-width: 576px) {
    .onovo-filter-container{
        margin-bottom: 0px;
    }
    .background-slider-img-carousel{
        top: -100%;
        /* scale: calc(0.8); */
    }
    .background-slider-img > img{
        scale: calc(0.4);
        opacity: 0.6;
    }
    .background-slider-img img{
        transform: translateY(-30%);
        margin: 0px -50px;
    }
 }



.modal-dialog-slideout {
    max-width: 100%;
    height: 100%;
    margin: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 1050;
}

.modal.show .modal-dialog-slideout {
    transform: translateX(0);
}

.modal-content {
    height: 100%;
    border-radius: 0;
    box-shadow: none;
}

.modal-body {
    overflow-y: auto;
}

.btn-close {
    margin-right: -1rem;
} 

/* custom modal + accordion */
.modal-header{
    padding: 32px 30px;
    border-bottom: 0;
}
.modal-body{
    padding: 0px 30px;
}
.modal-header .btn-close{
    padding: 0;
    margin: 0;
}
.btn-close{
    width: 0.9rem;
    height: 0.75rem;
    background-size: 0.75rem;
}
.accordion-body{
    padding: 16px 0px;
}
.accordion-flush .accordion-button{
    padding-left: 0;
    padding-right: 2px;
    border-top: 0 !important;
    border-bottom: var(--border-width) solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
}
.accordion-button:not(.collapsed),.accordion-button:focus{
    box-shadow: none;
    background-color: transparent;
    color: black;
}
.accordion-button::after{
    width: 0.75rem;
    height: 0.75rem;
    background-size: 0.75rem;
}
.accordion-button:not(.collapsed)::after{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
#year-accordion-filter{
    margin-top: 0px;
    /* border: var(--border-width) solid var(--border-color);
    border-radius: var(--button-radius); */
    /* width: 50%; */
    text-align: center;
}
#year-accordion-filter option{
    border-radius: 50px;
    font-size: 13px;
    text-align: center;
}

/* year filter mobile size custom */
.custom-select {
    position: relative;
    padding: 0;
    width: 100%;
    font-size: 13px;
    color: #000;
    margin-top: 0px;
    border: none;
  }
  
  .custom-select .select-button {
    width: 100%;
    font-size: 13px;
    background-color: #fff;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--button-radius);
    padding: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .custom-select .selected-value {
    text-align: left;
  }
  
  .custom-select .arrow {
/*     
    margin-left: 8px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #000;
    transition: transform ease-in-out 0.3s; */
    border: solid black;
    border-width: 0 1px 1px 0;
    display: inline-block;
    padding: 2.5px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transition: transform ease-in-out 0.2s;
    margin-left: 8px;
  }

  .select-dropdown {
    position: absolute;
    list-style: none;
    width: 100%;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 10px;
    margin-top: 10px;

  }
  
  .select-dropdown li {
    position: relative;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    align-items: center;
  }
  
  .select-dropdown li label {
    font-size: 13px;
    width: 100%;
    padding: 8px 10px;
    cursor: pointer;
  }
  
  .select-dropdown::-webkit-scrollbar {
    width: 7px;
  }
  
  .select-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 25px;
  }
  
  .select-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 25px;
  }

  .custom-select .select-dropdown li:hover,
  .custom-select .select-dropdown input:checked ~ label {
      color: rgba(163, 163, 163, 0.58) !important;
  }
.custom-select .select-dropdown label.selected {
    color: rgba(163, 163, 163, 0.58) !important; /* Set your desired color */
}
.select-dropdown input:focus ~ label {
    border-radius: var(--button-radius);
    border: var(--border-width) solid var(--border-color);
}
.select-dropdown input[type="radio"] {
    position: absolute;
    left: 0;
    opacity: 0;
}

.select-dropdown {
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
}
    
/* interactivity */
.custom-select.active .arrow {
    transform: rotate(225deg);
    -webkit-transform: rotate(225deg);
}
    
.custom-select.active .select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
}

.apply-button{
    border-radius: var(--button-radius);
    border: none;
    background-color: var(--primary-color);
    width: 100px;
    margin-right: 20px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    &:hover{
        background-color: var(--btn-color-hover);
    }
}
button:focus{
    outline: none;
}

.describe-card .created {
  display: flex;
  align-items: center;
  gap: 12px;
}

.describe-card .created .creator-group {
  display: flex;
  position: relative;
}

.describe-card .created .creator-item {
  position: relative;
  z-index: 1;
  margin-left: -10px; /* Overlap effect */
}

.describe-card .created .creator-item:first-child {
  margin-left: 0; /* No overlap for the first image */
}

.describe-card .created .creator-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff; /* White border for better visibility */
}

.describe-card .created p {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
  margin: 0;
  text-align: center;
}

.tag-department {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 90px;
    height: 32px;
    padding: 10px;
    gap: 10px;
    font-family: 'uid_deepsea_2021news' !important;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.63px;
    border-radius: 100px;
    box-shadow: 0px 0px 9px 0px rgba(27, 27, 27, 0.18);
    border: 3px solid #FFF;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-department.dynamic-text {
    font-size: clamp(14px, 2vw, 21px); 
    max-width: 100%; 
}


.tag-green {
    color: #FFF;
    background-color: #11AA59;
}

.tag-red {
    color: #FFF;
    background-color: #FF8577;
}

.tag-orange {
    color: #FFF;
    background-color: #ffae3e;
}

.tag-yellow {
    color: #FFF;
    background-color: #FFD966;
}

.tag-purple {
    color: #FFF;
    background-color: #9747FF;
}

.tag-blue {
    color: #FFF;
    background-color: #50b6ff;
}

.tag-pink {
    color: #FFF;
    background-color: #ff96ea;
}

/* .onovo-portfolio-items img{
    object-fit: cover;
    object-position: center;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--card-radius);
} */

.card-port{
    & .img-port {
        width: 100%;
        height: 286px; /* กำหนดความสูงที่ต้องการ */
        border-radius: 20px;
        margin-bottom: var(--mg-14px);
        object-fit: cover; /* ปรับให้ภาพไม่บิดเบี้ยว */
      }
      
  
    & h6{
      margin: 0 0;
      letter-spacing: 1px;
      color: var(--text-header-card-color);
      font-size: 20px;
      font-weight: 700;
    }
  
    & p{
      margin: 0 0;
      font-size:  var(--fs-16px);
      font-weight: var(--fw-400);
      color: var(--text-sub-status-color);
    }
  
    & .tag-name{
      align-items: center;
        & .img-profile{
          width: 25px;
          height: 25px;
          border-radius: 50px;
      }
        & p{
          margin-left: 8px;
          font-size: 13px;
          font-weight: 400;
          color: var(--text-profile-card);
        }
        a{
            display: block;
            align-items: center;
            text-decoration: none; 
            margin: 0;
            padding: 0;
            line-height: 1;
            white-space: nowrap;
            color: var(--text-profile-card);
        }
      }
    }

@media only screen and (min-width: 1920px) {
    /* .hero-container{
        max-width: none;
        padding-left: 60px;
        padding-right: 60px;
    } */
}
  
@media only screen and (max-width: 992px) {
    #BBoverlay1 {
        top:-50%;
    }
    #BBoverlay2{
        left: -20%;
    }
    #BBoverlay3 {
        bottom: -50%;
    }
    #BBoverlay4{
        right: -15%;
    }
    .onovo-filter-container{
        mask-image: linear-gradient(to left, transparent, rgb(255, 255, 255) 40%);
        overflow-x: auto; /* Enable horizontal scrolling */
        white-space: nowrap; /* Prevent the buttons from wrapping */
     }
     .onovo-filter-item {
        display: inline-block; /* Ensure buttons are in a single line */
        margin-right: 10px; /* Adjust the spacing between buttons */
    }
    .card-port{
      /* margin-bottom: 32px; */
      & h6{
        font-size: 16px ;
      }
      & p{
        font-size: 14px ;
      }
  
    }
}
  
  /* cardportofolio*/
  @media only screen and (max-width: 767.98px) {
    .hero-text{
        left: 25px;
    }
    #BBoverlay1 {
        top:-80%;
    }
    #BBoverlay2{
        left: -20%;
    }
    #BBoverlay3 {
        bottom: -66%;
    }
    #BBoverlay4{
        right: -25%;
    }
    .card-port{
        & .tag-name{
            & .img-profile{
                width: 22px;
                height: 22px;
            }
        }
    }
  }
  
    @media screen and (min-width: 576px) and (max-width: 768px) {
        .hero-container {
            max-width: none;
            padding-left: 30px;
            padding-right: 30px;
        }
    }

    @media screen and (min-width: 768px) {
        .hero-container {
            max-width: none;
            padding-left: 60px;
            padding-right: 60px;
        }
    }
        
  @media only screen and (max-width: 576px) {
    /* .hero-container{
        max-width: none;
        padding-left: 0px;
        padding-right: 0px;
    } */
    #BBoverlay1 {
        top:-80%;
    }
    #BBoverlay2{
        left: -40%;
    }
    #BBoverlay3 {
        bottom: -80%;
    }
    #BBoverlay4{
        right: -55%;
    }
    .card-port {
      /* margin-bottom: 32px; */
      & h6 {
          font-size: 16px;
          /* margin-bottom: 8px; */
      }
      & p{
        font-size: 13px;
      }
      & .tag-name{
        &p{
            font-size: 11px;
        }
      }
    }
  }
  .dropdown-toggle::after{
    display: none;
  }
  .dropdown-toggle .arrow {
        border: solid black;
        border-width: 0 2px 2px 0;
        display: inline-block;
        padding: 2.5px;
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        transition: transform ease-in-out 0.2s;
        margin-left: 8px;
      }
.btn-clear-filters{
    position: absolute;
    width: 100px;
    /* border-radius: var(--button-radius);
    border: var(--border-width) solid var(--border-color); */
    bottom: 2%;
    right: 2%;
    font-size: 13px;
    padding: 6px 0px;
    cursor: pointer;
}
.btn-clear-filters:focus{
   box-shadow: none;
}
.filter-count{
    position: absolute;
    top: -10%;
    right: -8%;
    width: 22px;
    height: 22px;
    border-radius: 100%;
    background-color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    color: white;
    transform: scale(0); /* Start small */
    opacity: 0; /* Start transparent */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.filter-count.show {
    transform: scale(1); /* Full size */
    opacity: 1; /* Fully opaque */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.clear-button{
    border: none;
    background-color: transparent;
    font-size: 13px;
    color: var(--text-filter-body);
    margin-right: 16px;
}
.clear-button:hover{
    cursor: pointer;
}
@media (min-width: 1025px) {
    .onovo-filter.filter--default ul li button.item--active {
        background: black;
        color: white;
    }
}
@media (max-width: 1024px) {
    .onovo-filter.filter--default ul li button.item--active, .comment .comment-item__reply a:hover, .comment .comment-item__reply a:focus, .comment .comment-item__reply a:hover::before, .comment .comment-item__reply a:focus::before {
        background: black;
        color: white;
    }
}

/* handle the weird initial card animation*/
.onovo-portfolio-col{
    height: 380px;
} 
@media screen and (max-width: 1400px) {
    .onovo-portfolio-col{
        height: 340px;
    }
}
@media screen and (max-width: 1200px) {
    .onovo-portfolio-col{
        height: 404px;
    }
}
@media screen and (max-width: 992px) {
    .onovo-portfolio-col{
        height: 325px;
    }
}
@media screen and (max-width: 768px) {
    .onovo-portfolio-col{
        height: fit-content;
    }
}
@media screen and (max-width: 578px) {
    .onovo-portfolio-col{
        height: fit-content;
    }
}