
/* ========================================
   Modern County & Document Selection UI
   ======================================== */

/* County Selection Page Styles */
.novia-modern-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.novia-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.novia-header-title {
    color: #c73232;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.novia-btn-back {
    background: #17a2b8;
    color: white;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
    font-weight: 500;
}

.novia-btn-back:hover {
    background: #138496;
    color: white;
    text-decoration: none;
}

/* Main Layout */
.novia-main-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 1rem;
}

.novia-main-content {
    width: 100%;
}

/* Breadcrumb */
.novia-breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.novia-breadcrumb a {
    color: #17a2b8;
    text-decoration: none;
}


/* Search Section */
.novia-search-section {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 0.75rem;
}

.novia-search-section h2 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: #212529;
    font-weight: 600;
}

.novia-search-box {
    position: relative;
}

.novia-search-input {
    width: 100%;
    padding: 0.65rem 0.85rem 0.65rem 2.75rem;
    font-size: 0.95rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.novia-search-input:focus {
    outline: none;
    border-color: #17a2b8;
}

.novia-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

/* Info Banner */
.novia-info-banner {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 0.7rem 1rem;
    border-radius: 5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: start;
    gap: 0.85rem;
}

.novia-info-icon {
    color: #17a2b8;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.novia-info-text {
    color: #0c5460;
    font-size: 0.9rem;
}

/* Counties Section */
.novia-counties-section {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 40px;
}

.novia-section-header {
    margin-bottom: 0.75rem;
}

.novia-section-header h2 {
    font-size: 1rem;
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.novia-counties-count {
    color: #6c757d;
    font-size: 0.9rem;
}

.novia-counties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.novia-counties-grid::-webkit-scrollbar {
    width: 8px;
}

.novia-counties-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.novia-counties-grid::-webkit-scrollbar-thumb {
    background: #17a2b8;
    border-radius: 4px;
}

.novia-county-link {
    padding: 0.55rem 0.75rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-decoration: none;
    color: #212529;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}

.novia-county-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.novia-turnaround-time {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.novia-turnaround-label {
    font-weight: 600;
    color: #495057;
}

.novia-turnaround-fast {
    color: #28a745;
    font-weight: 600;
}

.novia-turnaround-medium {
    color: #ffc107;
    font-weight: 600;
}

.novia-turnaround-slow {
    color: #dc3545;
    font-weight: 600;
}

.novia-county-link:hover {
    background: #f8f9fa;
    border-color: #17a2b8;
    color: #17a2b8;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.ast-single-post .entry-content a.novia-county-link {
    text-decoration: none !important;
}

.novia-county-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.novia-county-link.novia-ecert {
    background: #e7f6f8;
    border-color: #17a2b8;
}

.novia-county-link.novia-ecert:hover {
    background: #d1ecf1;
}

.novia-ecert-badge {
    background: #17a2b8;
    color: white;
    padding: 0.12rem 0.35rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
}

.novia-arrow {
    color: #17a2b8;
    font-size: 0.95rem;
}

.novia-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.novia-no-results-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Document Type Page Styles */
.novia-doc-header {
    background: white;
    border-bottom: 1px solid rgba(23, 162, 184, 0.1);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.novia-doc-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.novia-nav-buttons {
    display: flex;
    gap: 0.65rem;
}

.elementor-kit-8 .novia-nav-btn {
    background: transparent;
    border: 2px solid #17a2b8;
    color: #17a2b8;
    padding: 0.5rem 1.15rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.elementor-kit-8 .novia-nav-btn:hover {
    background: #17a2b8;
    color: white;
    transform: translateX(-2px);
    text-decoration: none;
}

/* Hero Section */
.novia-hero {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.novia-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #17a2b8 0%, #c73232 100%);
}

.novia-county-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.novia-hero-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.15rem;
}

.novia-stat {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #495057;
    font-size: 0.85rem;
}

.novia-stat-icon {
    font-size: 1.15rem;
}

/* Info Banner for Documents */
.novia-doc-info-banner {
    background: linear-gradient(135deg, #e7f6f8 0%, #d1ecf1 100%);
    border-left: 4px solid #17a2b8;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 2px 12px rgba(23, 162, 184, 0.1);
}

.novia-doc-info-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.novia-doc-info-content h3 {
    font-size: 0.95rem;
    color: #0c5460;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.novia-doc-info-content p {
    font-size: 0.85rem;
    color: #0c5460;
}

/* Documents Grid */
.novia-documents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.novia-doc-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    display: block;
}

.novia-doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #17a2b8 0%, #138496 100%);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.novia-doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(23, 162, 184, 0.15);
    border-color: #17a2b8;
    text-decoration: none;
    color: inherit;
}

.novia-doc-card:hover::before {
    transform: scaleY(1);
}

.novia-doc-card-header {
    display: grid;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
    grid-template-columns: auto 1fr;
}

.novia-doc-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.25);
}

.novia-doc-title-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.novia-doc-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    overflow-x: hidden;
}

.novia-doc-type {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
}

.novia-doc-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
    white-space: normal;
}

.novia-doc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid #f8f9fa;
}

.novia-doc-action {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #17a2b8;
    font-weight: 600;
    font-size: 0.85rem;
}

.novia-doc-arrow {
    background: #e7f6f8;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #17a2b8;
    font-size: 1.15rem;
    transition: all 0.3s;
}

.novia-doc-card:hover .novia-doc-arrow {
    background: #17a2b8;
    color: white;
    transform: translateX(4px);
}

/* Popular Badge */
.novia-popular-badge {
    position: absolute;
    top: 3em;
    right: 0.85rem;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 0.1rem 0.65rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Help Section */
.novia-help-section {
    background: white;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.novia-help-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.novia-help-icon-wrapper {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #c73232 0%, #a02828 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
}

.novia-help-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
}

.novia-help-text {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.6;
}

.novia-help-link {
    color: #17a2b8;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Override Astra theme link underline styling */
.ast-single-post .entry-content a.novia-doc-card {
    text-decoration: none !important;
}

.ast-single-post .entry-content a.novia-help-link {
    text-decoration: none !important;
}

.ast-single-post .entry-content a.novia-nav-btn {
    text-decoration: none !important;
}

/* No Documents Available State */
.novia-no-documents {
    background: white;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-top: 1.5rem;
}

.novia-no-documents-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.novia-no-documents-title {
    font-size: 1.35rem;
    color: #212529;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.novia-no-documents-text {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.novia-no-documents-subtext {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0;
}
