﻿/* page-visa */
.visa-row {
    margin-top: 0px !important;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 7px;
}

.visa-card {
    border-radius: 10px;
    align-items: center;
    padding: 15px 20px 40px 20px;
    margin-top: 40px;
    border: 1px solid rgba(128, 137, 150, 0.2);
    background-color: #fff;
    box-shadow: 0 0 20px rgba(8, 21, 66, 0.05);
}

.visa-card h1 {
    font-weight: bold;
    font-size: 35px;
}

.sub-title {
    color: #5d646d;
    font-size: 15px;
}

.visa-card-item {
    margin-top: 15px;
    border: 1px solid rgba(128, 137, 150, 0.2);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(8, 21, 66, 0.05);
    font-size: 15px;
    font-weight: 500;
}

.visa-card-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.visa-card-item a:hover {
    transform: scale(1.05);
}

.visa-card-box {
    border-bottom: 1px solid rgba(128, 137, 150, 0.2);
    height: 180px;
    width: 100%;
    border-radius: 5px 5px 0px 0px;
    aspect-ratio: 2 / 1;
}

.visa-card-box-details {
    width: 250px;
    height: 150px;
    margin-right: 63px;
    border-radius: 7px;
}

.title-visa {
    border-radius: 8px;
    background-color: #f7f7f7;
    padding: 5px 0px 5px 7px;
    font-size: 16px;
    color: #333333;
}

/* sidebar */
.visa-detail-sidebar {
    height: 100%;
    width: 100%;
    position: fixed;
    justify-content: end;
    align-items: end;
    top: 0;
    right: 0;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999999999999999999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
}

.visa-detail-sidebar.open {
    transform: translateX(0);
}

.visa-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
    z-index: 999999999;
    pointer-events: none;
}

.visa-detail-sidebar.open + .visa-detail-overlay {
    opacity: 1;
    pointer-events: all;
}

#visaDetailContent {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.04);
}

#visaDetailHeader p {
    line-height: 20px;
    font-size: 15px;
}

#visaDetailContent::-webkit-scrollbar {
    width: 6px;
}

#visaDetailContent::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#visaDetailContent::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#visaDetailContent::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.table-container {
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
}

.table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.visa-card-clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
}

.visa-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.field-template {
    display: flex;
    align-items: center;
}

.flag-icon-visa-search {
    width: 24px;
    height: 16px;
    margin: 0px 8px;
    border-radius: 3px;
}

.country-item {
    display: flex;
    align-items: center;
}

/* skeleton */

:root {
    --loading-grey: #ededed;
}

.card-loading-visa-deteail {
    margin: 15px 0px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(8, 21, 66, 0.05);
    border: 1px solid rgba(127, 137, 150, 0.1);
}

.image img {
    display: block;
    width: 100%;
    height: inherit;
    object-fit: cover;
}

.content {
    padding: 1rem 0.8rem;
}

h4 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    line-height: 1.5rem;
}

.description-visa {
    font-size: 1rem;
    line-height: 1.4rem;
}

.loading .image,
.loading h4,
.loading .description-visa,
.loading .description-visa-detail-header {
    background-color: var(--loading-grey);
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
        )
        var(--loading-grey);
    background-size: 200% 100%;
    background-position-x: 180%;
    animation: 0.4s loading ease-in-out infinite;
}

@keyframes loading {
    to {
        background-position-x: -20%;
    }
}

.loading h4 {
    min-height: 3rem;
    border-radius: 4px;
    animation-delay: 0.06s;
}

.loading .description-visa {
    min-height: 22rem;
    border-radius: 4px;
    animation-delay: 0.06s;
}

.loading .description-visa-detail-header {
    min-height: 9rem;
    border-radius: 4px;
    animation-delay: 0.06s;
}

.visa-nav-container {
    width: 100%;
    position: sticky;
    top: 20px;
    z-index: 100;
    display: flex;
    justify-content: start;
    margin-bottom: 10px;
}

/* Button Styles */
.visa-nav-button {
    position: relative;
    padding: 8px 24px;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.visa-nav-button:hover {
    background-color: #f8f9fa;
}

/* Dropdown Styles */
.visa-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.visa-nav-button:hover .visa-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

/* Dropdown Item Styles */
.visa-nav-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.visa-nav-item:hover {
    background-color: #f8f9fa;
    color: var(--theme-primary);
}

#visaDetail1,
#visaDetail2,
#visaDetail3,
#visaDetail4 {
    scroll-margin-top: 100px;
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
    .visa-nav-container {
        margin: 20px 0px;
    }

    .visa-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .visa-card-box-details {
        width: 120px;
        height: 90px;
        margin-right: 7px;
    }

    .header-detail {
        align-items: center;
        padding-bottom: 0px;
    }

    .visa-card span {
        font-size: 12px;
    }

    .visa-card-box {
        height: 100px;
    }

    #visaDetailHeader p {
        font-size: 13px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .visa-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .visa-card-box {
        height: 130px;
    }
}
/* end-page-visa */
