/* Services Index Pages Styles */

/* Common Components */
.section-intro {
    background: #f8fafc;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid #004085;
}

/* States Grid */
.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
}
.state-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: #004085;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-size: 1.45rem;
}
.state-item:hover {
    border-color: #004085;
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: #004085;
}
.state-item.no-link {
    cursor: default;
    opacity: 0.7;
    background: #f1f5f9;
}
.state-item i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Page Header (States) */
.page-header-index {
    text-align: center;
    margin-bottom: 50px;
    padding: 50px 30px;
    background: #f8fafc;
    border-radius: 12px;
}
.page-header-index h1 {
    margin-bottom: 20px;
    font-weight: 800;
}
.page-header-index p {
    max-width: 800px;
    margin: 0 auto;
    color: #475569;
    line-height: 1.7;
    font-size: 1.6rem;
}

/* Country Table */
.country-table-container {
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow-x: auto; /* Ensure horizontal scroll on mobile */
    -webkit-overflow-scrolling: touch;
}
.custom-table {
    margin-bottom: 0;
    width: 100%;
    min-width: 600px; /* Prevent shrinking too much */
}
.custom-table thead th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #004085;
    font-weight: 700;
    padding: 15px 20px;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}
.custom-table tbody td {
    padding: 12px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1.45rem;
}
.country-link {
    color: #004085;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.country-link:hover {
    color: #0069d9;
    text-decoration: underline;
}
.country-link i {
    margin-right: 10px;
    font-size: 1.3rem;
    opacity: 0.7;
}

/* Document Categories */
.category-section {
    margin-bottom: 60px;
}
.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid #004085;
}
.category-header h2 {
    margin-bottom: 0;
    font-size: 2.2rem;
    color: #004085;
    font-weight: 700;
}
.category-header i {
    font-size: 2rem;
    margin-right: 15px;
    color: #004085;
}
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.doc-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 24px;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.doc-item:hover {
    border-color: #004085;
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.doc-name {
    color: #004085;
    font-weight: 600;
    font-size: 1.55rem;
}
.doc-item.no-page {
    cursor: default;
    opacity: 0.7;
    background: #f8fafc;
}
.doc-item.no-page:hover {
    transform: none;
    border-color: #e2e8f0;
    box-shadow: none;
}
.doc-item.no-page .doc-name {
    color: #94a3b8;
}

/* Badge Styles */
.badge-digital, .badge-notarized {
    font-size: 1.2rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}
.badge-digital {
    background-color: #dcfce7;
    color: #166534;
}
.badge-notarized {
    background-color: #fef3c7;
    color: #92400e;
    margin-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .section-intro { padding: 30px; }
    .page-header-index { padding: 40px 20px; }
}

@media (max-width: 767px) {
    .section-intro {
        padding: 20px;
        margin-bottom: 25px;
    }
    .page-header-index {
        margin-bottom: 35px;
        padding: 30px 15px;
    }
    .page-header-index h1 { font-size: 2.2rem; }
    .page-header-index p { font-size: 1.45rem; }
    
    .category-header h2 { font-size: 1.8rem; }
    .category-header i { font-size: 1.6rem; }
    
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .doc-item { padding: 15px 20px; }
    .doc-name { font-size: 1.4rem; }
    
    .states-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .state-item {
        padding: 12px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .states-grid {
        grid-template-columns: 1fr 1fr;
    }
}

