/* =====================================================
   Visa Detail Page Styles (e.g., China, Korea, Vietnam)
   ===================================================== */

/* Layout Adjustments for Detail Pages */
:root {
    --icon-shield-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z'/%3E%3C/svg%3E");
    --icon-refund-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2.65 1.87 1.96 0 2.4-.98 2.4-1.59 0-.83-.44-1.61-2.67-2.14-2.48-.6-4.18-1.62-4.18-3.97 0-1.82 1.28-3.26 3.11-3.66V3h2.67v1.9c1.44.3 2.56 1.2 2.76 2.87h-1.89c-.19-.85-.81-1.42-2.31-1.42-1.77 0-2.38.84-2.38 1.43 0 .73.57 1.34 3 1.9 2.97.7 3.82 2.1 3.82 3.61.01 2.22-1.5 3.4-3.41 3.8z'/%3E%3C/svg%3E");
    --icon-alert-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
    --icon-calendar-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'/%3E%3C/svg%3E");
    --icon-clock-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
    --icon-fast-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 3l-2 5h3l-2 5h3L10 21l2-5h-3l2-5h-3L13 3z'/%3E%3C/svg%3E");
    --icon-file-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z'/%3E%3C/svg%3E");
    --icon-info-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

.visa-hero-minimal {
    padding-bottom: 60px !important;
    /* Reduce from 100px */
    background-image: linear-gradient(135deg, rgba(25, 98, 235, 0.8) 0%, rgba(15, 41, 77, 0.9) 100%) !important;
}

.visa-main-wrap {
    padding-top: 30px !important;
    /* Reduce from 60px to bring breadcrumb closer */
}

/* Breadcrumb Navigation */
.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.breadcrumb-left {
    display: flex;
    align-items: center;
}

.breadcrumb-flag {
    border-radius: 4px;
    position: absolute;
    right: 0;
    top: -5px;
    /* Adjusted for better alignment */
    /* Restore height for consistency */
    width: auto;
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 8px;
    opacity: 1;
    color: #111;
}

/* Table Specific Overrides for Detail Pages */
.visa-full-table th:first-child {
    width: 30%;
    /* Balanced width for "Visa Type" column */
}

/* Submit Button & CTA Section */
.visa-cta-section {
    text-align: center;
    background: #f8fbff;
    padding: 60px 24px;
    border-radius: 20px;
    margin-top: 60px;
}

.visa-cta-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.visa-cta-section p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.submit-btn {
    display: inline-block;
    background: var(--secondary-color);
    color: #222;
    padding: 18px 60px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(255, 193, 28, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 193, 28, 0.3);
}

/* Notice/Alert Box Styles */
.visa-notice-flat {
    margin-top: 30px;
    margin-bottom: 0;
}

.visa-notice-flat .nc-text {
    padding: 24px;
    padding-left: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
}

/* notice-card-flat List Specific Styles */
.notice-card-flat ul.nc-text {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 20px;
    /* Essential to keep dots inside */
    margin: 0;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

.notice-card-flat ul.nc-text li {
    margin-bottom: 15px;
    padding-left: 5px;
}

.notice-card-flat ul.nc-text li:last-child {
    margin-bottom: 0;
}

/* Application Items List Grid */
.application-items-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    color: var(--text-dark);
    padding-left: 20px;
    margin: 0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {

    /* Stack grid items on mobile for Application Items list */
    .notice-grid-flat ul,
    .application-items-list {
        grid-template-columns: 1fr !important;
    }

    .breadcrumb-flag {}

    .breadcrumb {
        flex-direction: column;
        align-items: flex-start;
    }

    .visa-full-table th:first-child {
        width: auto;
    }
}

/* Sticky Nav Active State Highlight Override */
.tab-item.active {
    color: var(--primary-color);
    position: relative;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* Utility for right-aligned links */
.text-right-link {
    margin-top: 20px;
    text-align: right;
}

.text-right-link a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
}

/* Pricing Jurisdiction sections (e.g. Korea Tokyo/Yokohama) */
.pricing-jurisdiction {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
}

.jurisdiction-title {
    font-size: 16px;
    margin: 12px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.jurisdiction-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--primary-color);
    margin-right: 10px;
    border-radius: 2px;
}

.pricing-intro-bold {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.visa-notice-red {
    color: #d9534f;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Common Details/Hints */
.note-hint {
    font-size: 12px;
    color: #888;
    display: block;
}

/* Application items dashed box */
.app-items-box {
    background: #f8fbff !important;
    border: 1px dashed var(--primary-color) !important;
}

.full-width {
    width: 100% !important;
}

.mb-15 {
    margin-bottom: 15px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.tab-item-highlight {
    color: var(--secondary-color) !important;
}

.visa-alert-box {
    margin-bottom: 40px !important;
}

/* Global Icon Alignment Fix for Detail Pages */
.visa-main-wrap .n-icon {
    margin-top: 0 !important;
    vertical-align: middle;
}

/* Ensure section spacing */
.visa-region-block {
    margin-bottom: 60px;
}

.visa-region-block p {
    margin-bottom: 20px;
}

.visa-region-block p:last-child {
    margin-bottom: 0;
}

/* Specialized Notice Card Styles */
.notice-card-warning {
    background: #fffcf2 !important;
    border-color: #ffeeba !important;
}

.nc-warning-header {
    color: #856404 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.nc-warning-text {
    color: #856404 !important;
}

.nc-padding-24 {
    padding: 24px !important;
}

/* Premium Overview Components */
.overview-status-banner {
    display: flex;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(25, 98, 235, 0.05);
    align-items: center;
    gap: 30px;
}

.status-badge-lg {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 16px rgba(25, 98, 235, 0.2);
}

.lang-en .status-badge-lg {
    padding: 0px 10px;
    text-align: center;
}

.status-badge-lg .label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.lang-en .status-badge-lg .value {
    font-size: 13px;
}

.status-badge-lg .value {
    font-size: 16px;
    font-weight: 800;
}

.status-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.status-content p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 15px;
    margin: 0;
}

.summary-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.spec-item-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f0f3f8;
    transition: all 0.3s ease;
}

.spec-item-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.spec-item-card h4 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.spec-item-card h4 i.n-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0;
    /* Reset global icon margin */
    mask: none;
    /* Reset mask for the container */
    -webkit-mask: none;
}

/* Redefining icon behaviors inside h4 to use inner sizing */
.spec-item-card h4 .n-icon::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

/* Specific mask assignments for the new pseudo-element icon system */
.spec-item-card h4 .icon-shield::before {
    mask-image: var(--icon-shield-svg);
    -webkit-mask-image: var(--icon-shield-svg);
}

.spec-item-card h4 .icon-refund::before {
    mask-image: var(--icon-refund-svg);
    -webkit-mask-image: var(--icon-refund-svg);
}

.spec-item-card h4 .icon-alert::before {
    mask-image: var(--icon-alert-svg);
    -webkit-mask-image: var(--icon-alert-svg);
}

.spec-item-card h4 .icon-calendar::before {
    mask-image: var(--icon-calendar-svg);
    -webkit-mask-image: var(--icon-calendar-svg);
}

.spec-item-card h4 .icon-clock::before {
    mask-image: var(--icon-clock-svg);
    -webkit-mask-image: var(--icon-clock-svg);
}

.spec-item-card h4 .icon-fast::before {
    mask-image: var(--icon-fast-svg);
    -webkit-mask-image: var(--icon-fast-svg);
}

.spec-item-card h4 .icon-file::before {
    mask-image: var(--icon-file-svg);
    -webkit-mask-image: var(--icon-file-svg);
}

.spec-item-card h4 .icon-info::before {
    mask-image: var(--icon-info-svg);
    -webkit-mask-image: var(--icon-info-svg);
}

.spec-item-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-item-card li {
    font-size: 14px;
    color: var(--text-gray);
    padding: 6px 0;
    border-bottom: 1px solid #f8fafc;
}

.spec-item-card li:last-child {
    border: none;
}

.warning-minimal {
    background: #fff9e6;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.warning-minimal h5 {
    color: #856404;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.warning-minimal p {
    font-size: 14px;
    color: #856404;
    line-height: 1.6;
}

.warning-minimal i.n-icon {
    width: 32px;
    height: 32px;
    background-color: #ffc107;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    mask: none;
    -webkit-mask: none;
    margin-top: 0;
}

.warning-minimal i.n-icon::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #fff;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.warning-minimal .icon-alert::before {
    mask-image: var(--icon-alert-svg);
    -webkit-mask-image: var(--icon-alert-svg);
}

.warning-minimal .icon-info::before {
    mask-image: var(--icon-info-svg);
    -webkit-mask-image: var(--icon-info-svg);
}

/* Helper Utilities */
.mb-20 {
    margin-bottom: 20px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-40 {
    margin-top: 40px !important;
}

/* Light Variant for Spec Cards - Redesigned to be less "blocky" */
.spec-light {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
    border: none !important;
    border-left: 5px solid var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px !important;
    border-radius: 4px;
}

.spec-light h4 i.n-icon {
    background-color: var(--primary-color);
}

/* Fix for nested lists in warning boxes */
.warning-minimal .clean-notes-list {
    margin-top: 5px !important;
}

.warning-minimal .clean-notes-list li {
    color: inherit !important;
    font-size: 14px;
}

.warning-minimal .clean-notes-list li::before {
    background: #856404 !important;
}

/* Notes Grid Optimizations */
.notes-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.notes-container.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.notes-container.full-width,
.lang-note-card.full-width {
    grid-column: 1 / -1;
    display: block;
    /* Fallback */
}

.notes-container.full-width {
    grid-template-columns: 1fr;
}

.region-header h2 {
    width: 80%;
}

@media (max-width: 768px) {
    .region-header h2 {
        width: 100%;
    }

    .overview-status-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .summary-spec-grid {
        grid-template-columns: 1fr;
    }

    .notes-container {
        grid-template-columns: 1fr !important;
    }
}

/* Premium Legal/Notes Section */
.premium-notes-box {
    background: #fcfdfe !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 16px;
    margin-top: 20px;
    padding: 32px !important;
}

.notes-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-header i {
    width: 20px;
    height: 20px;
}

.clean-notes-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.clean-notes-list li {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    display: block;
}

.clean-notes-list li:last-child {
    margin-bottom: 0;
}

.clean-notes-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
}

.clean-notes-list li.list-item-alert {
    color: #d9534f !important;
    font-weight: 500;
}

.clean-notes-list li.list-item-alert::before {
    background: #d9534f !important;
}

.requirement-note {
    color: var(--text-gray) !important;
    margin-bottom: 20px !important;
}