/* Modern CSS for Jorge Calvete Website */
/* Bexon-inspired design with original green #06b041 */

:root {
    --primary-green: #06b041;
    --primary-green-dark: #059835;
    --primary-green-light: rgba(6, 176, 65, 0.1);
    --text-dark: #1a1a2e;
    --text-medium: #555555;
    --text-light: #888888;
    --border-color: #e5e5e5;
    --bg-light: #f0f7f4;
    --bg-hero: #e8f5ec;
    --bg-white: #ffffff;
    --bg-dark: #1a1a2e;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================================
   HEADER STYLES - Bexon Style
   ======================================== */
.site-header {
    background: var(--bg-white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-medium);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Header Right - Two Line Navigation */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Process Navigation (First Line) */
.process-nav {
    display: flex;
    align-items: center;
}

.process-nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.process-nav-list > li {
    position: relative;
}

.process-link {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    padding: 8px 0;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

.process-link:hover {
    border-bottom-color: var(--primary-green);
}

.process-nav-list .submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1002;
}

.process-nav-list > li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.process-nav-list .submenu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.process-nav-list .submenu li a:hover {
    background: var(--primary-green-light);
    color: var(--primary-green);
}

/* Main Navigation (Second Line) */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-list > li {
    position: relative;
}

.nav-list > li:not(:last-child)::after {
    content: '|';
    color: var(--text-light);
    padding: 0 12px;
    font-size: 12px;
}

.nav-list > li > a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 400;
    font-size: 13px;
    transition: var(--transition);
    display: inline-block;
}

.nav-list > li > a:hover {
    color: var(--primary-green);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.has-submenu:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-left: 20px;
}

.header-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.header-logo-link {
    display: flex;
    align-items: center;
}

.header-partner-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-login .btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-greeting {
    font-size: 14px;
    color: var(--text-medium);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Submenu */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 8px 0;
    list-style: none;
    z-index: 1001;
    border: 1px solid var(--border-color);
}

.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    position: relative;
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.submenu li a:hover {
    background: var(--primary-green-light);
    color: var(--primary-green);
}

/* Level 2 Submenu */
.has-submenu-level2 {
    position: relative;
}

.submenu-level2 {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
    padding: 8px 0;
    list-style: none;
    z-index: 1002;
    border: 1px solid var(--border-color);
}

.has-submenu-level2:hover > .submenu-level2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu-level2 li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
}

.submenu-level2 li a:hover {
    background: var(--primary-green-light);
    color: var(--primary-green);
}

/* Mobile Menu Toggle - Active States */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Auth Section Styles */
.auth-section {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
}

.login-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.login-link:hover {
    background: #059835;
    transform: translateY(-1px);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.logout-link {
    display: inline-block;
    padding: 6px 15px;
    background: transparent;
    color: var(--text-medium);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    transition: var(--transition);
}

.logout-link:hover {
    background: #f5f5f5;
    color: var(--text-dark);
    border-color: var(--text-medium);
}

/* Footer Styles */
.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 13px;
    color: var(--text-medium);
}

.footer-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.footer-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--primary-green);
    border-radius: 50%;
}

.footer-credit {
    font-size: 13px;
    color: var(--text-medium);
}

.footer-credit a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* Page Container Adjustment */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    padding-top: 130px; /* Account for fixed header */
    background: var(--bg-white);
    width: 100%;
    flex: 1;
    min-height: calc(100vh - 70px);
}

/* Content Wrapper with Sidebar */
.content-wrapper {
    display: flex;
    gap: 40px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Responsive Header/Footer - consolidated in bottom responsive section */

.main-content {
    background: var(--bg-white);
    min-width: 0;
}

.main-content.full-width {
    grid-column: 1 / -1;
}

/* Page Headers */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-green);
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.page-header .page-subtitle,
.page-header .subtitle {
    font-size: 16px;
    color: var(--text-medium);
    font-weight: 400;
    margin-top: 8px;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.document-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 22px;
    transition: var(--transition);
    height: 100%;
}

.document-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-green);
}

.document-link {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    height: 100%;
}

.document-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--primary-green);
    transition: var(--transition);
}

.document-card:hover .document-icon {
    background: var(--primary-green);
    color: white;
}

.document-title {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.document-link:hover .document-title {
    color: var(--primary-green);
}

/* Sidebar */
.sidebar {
    background: var(--bg-white);
}

/* Sidebar info section (for non-homepage pages) */
.sidebar .info-section {
    position: sticky;
    top: 20px;
}

.section-header {
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: 8px 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.info-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.info-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.info-image {
    margin: 12px 0;
    overflow: hidden;
    border-radius: 4px;
}

.info-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.info-image:hover img {
    transform: scale(1.05);
}

.info-text {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Tab Navigation (for insolvencia.php) */
.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--text-medium);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.tab-button:hover {
    color: var(--primary-green);
}

.tab-button.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
    background: var(--bg-light);
}

.content-section {
    padding: 20px 0;
}

/* Form Styles */
.login-form {
    padding: 30px 0;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Center form pages */
.main-content:has(.login-form) {
    max-width: 600px;
    margin: 0 auto;
}

.main-content:has(.login-form) .page-header {
    text-align: center;
}

.main-content:has(.login-form) .content-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content:has(.login-form) .alert {
    width: 100%;
    max-width: 500px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px var(--primary-green-light);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-medium);
    font-size: 13px;
}

.required {
    color: #dc3545;
}

.form-actions {
    margin-top: 32px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 176, 65, 0.3);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.form-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.form-footer p {
    margin: 12px 0;
    color: var(--text-medium);
    font-size: 14px;
}

.form-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.text-content {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
    margin-bottom: 30px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.image-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */

/* Large Desktop (1400px+) - Default styles */

/* Desktop (1200px - 1400px) */
@media (max-width: 1400px) {
    .page-container {
        padding: 25px 20px;
    }
    
    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* Small Desktop / Large Tablet (1024px - 1200px) */
@media (max-width: 1200px) {
    .page-container {
        padding: 20px 15px;
    }
    
    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .processes-table th,
    .processes-table td {
        padding: 12px 15px;
    }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .page-container {
        padding: 20px 15px;
    }
    
    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 18px;
    }
    
    .sidebar {
        max-width: 100%;
    }
    
    .info-section {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .section-header {
        grid-column: 1 / -1;
    }
    
    .processes-table {
        font-size: 13px;
    }
    
    .processes-table th,
    .processes-table td {
        padding: 11px 14px;
    }
    
    .modal-content {
        max-width: 90%;
    }
}

/* Mobile Landscape / Small Tablet (600px - 768px) */
@media (max-width: 768px) {
    .page-container {
        padding: 15px 12px;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .main-content.full-width {
        grid-column: 1;
    }
    
    .page-header {
        margin-bottom: 18px;
    }
    
    .page-header h1 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .search-bar {
        max-width: 100%;
        margin-top: 12px;
    }
    
    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .document-card {
        padding: 16px;
    }
    
    .info-section {
        position: static;
        display: block;
    }
    
    .info-card {
        margin-bottom: 15px;
    }
    
    .tab-navigation {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .tab-button {
        flex-shrink: 0;
        min-width: 120px;
        padding: 12px 18px;
    }
    
    /* Table improvements */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    
    .processes-table {
        min-width: 650px;
        font-size: 13px;
    }
    
    .processes-table th,
    .processes-table td {
        padding: 10px 12px;
    }
    
    /* Modal improvements */
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .details-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .details-table td.label {
        width: 110px;
    }
    
    .documents-grid-modal {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .pagination-info {
        width: 100%;
        text-align: center;
        padding: 8px 0;
        order: -1;
        font-size: 12px;
    }
}

/* Mobile Portrait (480px - 600px) */
@media (max-width: 480px) {
    .page-container {
        padding: 10px;
    }
    
    .page-header h1 {
        font-size: 18px;
    }
    
    .page-header .subtitle {
        font-size: 13px;
    }
    
    /* Search Bar */
    .search-bar {
        flex-direction: column;
    }
    
    .search-input,
    .search-button {
        width: 100%;
        font-size: 14px;
        padding: 10px 12px;
    }
    
    /* Documents Grid */
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .document-card {
        padding: 12px;
    }
    
    .document-card h3 {
        font-size: 15px;
    }
    
    .document-card .meta {
        font-size: 12px;
    }

    .document-icon {
        width: 35px;
        height: 35px;
    }
    
    .document-title {
        font-size: 12px;
    }
    
    /* Info Card */
    .info-card {
        padding: 12px;
    }
    
    .info-card h3 {
        font-size: 13px;
    }
    
    /* Tabs */
    .tab-button {
        min-width: 100px;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    /* Images Grid */
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .text-content {
        font-size: 12px;
    }
    
    /* Table */
    .processes-table {
        min-width: 550px;
        font-size: 11px;
    }
    
    .processes-table th,
    .processes-table td {
        padding: 8px 10px;
    }
    
    /* Buttons */
    .btn-primary, .btn-secondary {
        padding: 8px 14px;
        font-size: 13px;
    }

    .pagination-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    /* Modal */
    .modal-header h2 {
        font-size: 16px;
    }

    .modal-close {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
    
    .details-table td {
        font-size: 11px;
        padding: 8px 10px;
    }
    
    .details-table td.label {
        width: 100px;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    .page-container {
        padding: 8px 6px;
    }
    
    .page-header h1 {
        font-size: 16px;
    }
    
    .page-header .subtitle {
        font-size: 12px;
    }
    
    .tab-button {
        min-width: 90px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .document-card {
        padding: 10px;
    }
    
    .document-card h3 {
        font-size: 14px;
    }
    
    .processes-table {
        min-width: 500px;
        font-size: 10px;
    }
    
    .processes-table th,
    .processes-table td {
        padding: 6px 8px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 7px 12px;
        font-size: 12px;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h2 {
        font-size: 15px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .close-button {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(6, 176, 65, 0.1);
}

.search-button {
    padding: 10px 15px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-button:hover {
    background: #058c37;
    transform: translateY(-1px);
}

/* Processes Table */
.processes-section {
    margin-top: 25px;
}

.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.processes-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.processes-table thead {
    background: linear-gradient(to bottom, #f8f8f8, var(--bg-light));
    border-bottom: 2px solid var(--primary-green);
}

.processes-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    white-space: nowrap;
}

.processes-table th:nth-child(2),
.processes-table th:nth-child(3) {
    text-align: center;
}

.sort-link {
    color: var(--text-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    font-weight: 600;
}

.sort-link:hover {
    color: var(--primary-green);
}

.processes-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.processes-table tbody tr.clickable-row {
    cursor: pointer;
    transition: var(--transition);
}

.processes-table tbody tr.clickable-row:hover {
    background: #f8fdf9;
    box-shadow: inset 3px 0 0 var(--primary-green);
}

.processes-table tbody tr:last-child {
    border-bottom: none;
}

.processes-table td {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-dark);
}

.name-cell {
    font-weight: 500;
    max-width: 400px;
}

.process-cell,
.date-cell {
    text-align: center;
    color: var(--text-medium);
    white-space: nowrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.pagination-btn:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.pagination-info {
    font-size: 13px;
    color: var(--text-medium);
    padding: 0 10px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 25px;
}

.process-details {
    margin-bottom: 25px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
}

.details-table tr {
    border-bottom: 1px solid var(--border-color);
}

.details-table tr:last-child {
    border-bottom: none;
}

.details-table td {
    padding: 12px 15px;
    font-size: 13px;
}

.details-table td.label {
    font-weight: 600;
    color: var(--text-dark);
    width: 150px;
}

.details-table td.value {
    color: var(--text-medium);
}

.documents-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.documents-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.documents-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.document-item {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    transition: var(--transition);
}

.document-item:hover {
    border-color: var(--primary-green);
    background: #f9f9f9;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 12px;
}

.doc-link svg {
    flex-shrink: 0;
    color: var(--primary-green);
}

.doc-link:hover {
    color: var(--primary-green);
}

/* Print Styles */
@media print {
    .page-container {
        max-width: 100%;
        padding: 0;
    }
    
    .sidebar {
        display: none;
    }
    
    .document-card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .modal-overlay {
        display: none;
    }
    
    .search-bar {
        display: none;
    }
    
    .pagination {
        display: none;
    }
}

/* ========================================
   HERO SECTION - Bexon Style
   ======================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(70vh);
    margin-top: 70px;
}

.hero-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px;
    background: var(--bg-hero);
}

.hero-title {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 35px;
    letter-spacing: -1px;
}

.btn-get-started {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    width: fit-content;
    margin-bottom: 40px;
}

.btn-get-started:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-get-started .btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: var(--transition);
}

.btn-get-started:hover .btn-arrow {
    background: rgba(255,255,255,0.3);
}

.hero-since {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.since-line {
    width: 40px;
    height: 3px;
    background: var(--primary-green);
}

.since-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
    max-width: 450px;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: 100px 40px;
    background: var(--bg-white);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    padding: 40px 30px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--bg-hero);
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    color: var(--primary-green);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-medium);
}

/* ========================================
   INFO SECTION
   ======================================== */
.info-section {
    padding: 100px 40px;
    background: var(--bg-light);
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.info-content h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.info-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--primary-green);
    text-decoration: none;
    border: 2px solid var(--primary-green);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 15px;
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: white;
}

.info-highlight {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.highlight-box {
    padding: 35px 40px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 10px;
}

.highlight-text {
    font-size: 16px;
    color: var(--text-medium);
    font-weight: 500;
}

/* ========================================
   TEXT SECTION (Plain text content)
   ======================================== */
.text-section {
    background: #f5f7f6;
    padding: 60px;
}

.text-section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.text-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: justify;
}

.text-section .text-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.text-section .text-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

.text-section .text-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-size: 20px;
    font-weight: bold;
}

/* ========================================
   PROCESS SECTION (Steps Layout)
   ======================================== */
.process-section {
    background: #f5f7f6;
    padding: 80px 60px;
}

.process-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.process-steps {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.process-step {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 40px;
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 70px;
    bottom: 0;
    width: 2px;
    border-left: 2px dashed var(--primary-green);
    opacity: 0.4;
}

.step-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.process-step:nth-child(2) .step-number,
.process-step:nth-child(3) .step-number {
    background: var(--primary-green-light);
    color: var(--primary-green);
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-medium);
}

.process-info {
    padding: 20px;
}

.process-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-green-light);
    color: var(--primary-green);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.process-badge svg {
    stroke: var(--primary-green);
}

.process-info h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.process-info > p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.btn-process {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-dark);
    color: white;
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-process:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

.btn-process svg {
    transition: transform 0.3s ease;
}

.btn-process:hover svg {
    transform: translate(3px, -3px);
}

/* Process Section Alternate (Reversed) */
.process-section-alt {
    background: var(--bg-white);
}

.process-container-reverse {
    direction: rtl;
}

.process-container-reverse > * {
    direction: ltr;
}

.process-section-alt .process-steps {
    background: #f5f7f6;
}

/* ========================================
   PARTNERS SECTION (Text + Image)
   ======================================== */
.partners-section {
    background: var(--bg-white);
    padding: 80px 60px;
}

.partners-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.partners-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.partners-locations {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.partners-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: justify;
}

.partners-content .btn-process {
    margin-top: 20px;
}

.partners-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.partners-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Partners responsive rules consolidated in bottom responsive section */

/* ========================================
   HOMEPAGE BODY ADJUSTMENTS
   ======================================== */
body.homepage {
    background: var(--bg-white);
}

body.homepage .site-footer {
    margin-top: 0;
}

/* ========================================
   CONTACTS PAGE STYLES
   ======================================== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-block h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-green-light);
    padding-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.contact-email-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 15px;
    align-items: baseline;
}

.contact-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
    padding: 4px 0;
}

.contact-email a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    display: inline-block;
    transition: var(--transition);
    word-break: break-all;
}

.contact-email a:hover {
    color: var(--primary-green);
}

.contact-address {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

.contact-detail {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

.map-image-link {
    display: block;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.map-image-link:hover {
    box-shadow: var(--shadow-md);
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.map-text-link {
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    min-height: 44px;
}

.map-text-link:hover {
    text-decoration: underline;
}

/* Hide partner logo on mobile, show in menu instead */
@media (max-width: 1024px) {
    .partner-link-desktop {
        display: none;
    }
}

/* ========================================
   RESPONSIVE - COMPREHENSIVE MOBILE/TABLET
   ======================================== */

/* === Global mobile-first improvements === */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

/* Ensure touch targets are at least 44px */
a, button, input, select, textarea {
    touch-action: manipulation;
}

/* Contact block styling */
.contact-block {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.contact-block h3 {
    font-size: 18px;
}

/* ========================================
   TABLET LANDSCAPE (1200px)
   ======================================== */
@media (max-width: 1200px) {
    .process-link {
        font-size: 14px;
    }
    
    .nav-list > li > a {
        font-size: 12px;
    }
    
    .nav-list > li:not(:last-child)::after {
        padding: 0 8px;
    }
    
    .process-nav-list {
        gap: 20px;
    }
    
    .header-container {
        padding: 12px 25px;
    }
    
    .header-logo {
        height: 55px;
    }
    
    .header-partner-logo {
        height: 60px;
    }
}

/* ========================================
   TABLET PORTRAIT (1024px)
   ======================================== */
@media (max-width: 1024px) {
    /* -- Mobile Menu Overlay -- */
    .header-right {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-white);
        padding: 90px 25px 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 999;
        -webkit-overflow-scrolling: touch;
    }
    
    .header-right.active {
        transform: translateX(0);
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    .process-nav {
        width: 100%;
        border-bottom: 2px solid var(--primary-green-light);
        padding-bottom: 20px;
    }
    
    .process-nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .process-nav-list > li {
        width: 100%;
    }
    
    .process-link {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: none;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .process-nav-list .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 10px 20px;
        display: none;
    }
    
    .process-nav-list > li.open > .submenu {
        display: block;
    }
    
    .main-nav {
        width: 100%;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-list > li {
        width: 100%;
    }
    
    .nav-list > li:not(:last-child)::after {
        display: none;
    }
    
    .nav-list > li > a {
        display: flex;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
        color: var(--text-dark);
        min-height: 52px;
    }
    
    .nav-list > li > a:hover,
    .nav-list > li > a:active {
        color: var(--primary-green);
        background: var(--primary-green-light);
        padding-left: 12px;
        border-radius: var(--radius-sm);
    }
    
    .submenu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 20px;
        background: var(--bg-light);
        border: none;
        border-radius: 0;
    }
    
    .has-submenu.open > .submenu {
        display: block;
    }
    
    .submenu-level2 {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 20px;
        background: #e8e8e8;
        border: none;
        border-radius: 0;
    }
    
    .has-submenu-level2.open > .submenu-level2 {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* -- Auth in mobile menu -- */
    .auth-section {
        width: 100%;
        margin: 0;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }
    
    .user-menu {
        width: 100%;
    }
    
    .login-link {
        display: block;
        text-align: center;
        padding: 14px 20px;
    }
    
    /* -- Header layout adjustments -- */
    .header-container {
        padding: 10px 20px;
    }
    
    .header-logo {
        height: 50px;
    }
    
    .header-partner-logo {
        height: 50px;
    }
    
    .header-actions {
        gap: 12px;
        margin-left: auto;
    }
    
    /* -- Page Container -- */
    .page-container {
        padding-top: 100px;
    }
    
    /* -- Hero Section -- */
    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-image {
        height: 400px;
        order: -1;
    }
    
    .hero-content {
        padding: 50px 40px;
    }
    
    /* -- Features -- */
    .features-container {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .features-section {
        padding: 70px 30px;
    }
    
    .feature-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* -- Info Section -- */
    .info-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .info-section {
        padding: 70px 30px;
    }
    
    .info-highlight {
        flex-direction: row;
    }
    
    .highlight-box {
        flex: 1;
    }
    
    /* -- Process Sections -- */
    .process-container {
        gap: 50px;
    }
    
    .process-section {
        padding: 60px 30px;
    }
    
    .process-info h2 {
        font-size: 36px;
    }
    
    /* -- Partners -- */
    .partners-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .partners-section {
        padding: 60px 30px;
    }
    
    /* -- Sidebar -- */
    .sidebar {
        max-width: 100%;
    }
    
    .modal-content {
        max-width: 90%;
    }
    
    /* -- Content wrapper -- */
    .content-wrapper {
        gap: 30px;
    }
}

/* ========================================
   TABLET PORTRAIT / SMALL TABLET (768px)
   ======================================== */
@media (max-width: 768px) {
    /* -- Header -- */
    .header-container {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
    }
    
    .header-actions {
        order: 2;
        margin-left: auto;
        gap: 10px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .header-logo {
        height: 42px;
    }
    
    .header-partner-logo {
        height: 42px;
    }
    
    .header-actions .btn-login {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .logo-subtitle {
        font-size: 10px;
    }
    
    /* -- Page Container -- */
    .page-container {
        padding: 15px 15px;
        padding-top: 90px;
    }
    
    /* -- Content sections stack -- */
    .content-wrapper {
        flex-direction: column;
        gap: 25px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .main-content.full-width {
        grid-column: 1;
    }
    
    /* -- Page headers -- */
    .page-header {
        margin-bottom: 18px;
    }
    
    .page-header h1 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .page-header .subtitle,
    .page-header .page-subtitle {
        font-size: 14px;
    }
    
    /* -- Search Bar -- */
    .search-bar {
        max-width: 100%;
        margin-top: 12px;
    }
    
    /* -- Document Grid -- */
    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .document-card {
        padding: 16px;
    }
    
    .document-link {
        min-height: 48px;
    }
    
    /* -- Sidebar info -- */
    .sidebar .info-section {
        position: static;
        display: block;
    }
    
    .info-card {
        margin-bottom: 15px;
    }
    
    /* -- Tabs -- */
    .tab-navigation {
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 8px;
    }
    
    .tab-button {
        flex-shrink: 0;
        min-width: 120px;
        padding: 12px 18px;
        min-height: 44px;
    }
    
    /* -- Tables -- */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        margin: 0 -2px;
    }
    
    .processes-table {
        min-width: 560px;
        font-size: 13px;
    }
    
    .processes-table th,
    .processes-table td {
        padding: 12px 14px;
    }
    
    .processes-table tbody tr.clickable-row {
        min-height: 48px;
    }
    
    /* -- Modal -- */
    .modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-header {
        padding: 16px 20px;
        position: sticky;
        top: 0;
        background: var(--bg-white);
        z-index: 1;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px 20px;
    }
    
    .details-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .details-table td.label {
        width: 110px;
    }
    
    .documents-grid-modal {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .document-item {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* -- Pagination -- */
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .pagination-info {
        width: 100%;
        text-align: center;
        padding: 8px 0;
        order: -1;
        font-size: 13px;
    }
    
    .pagination-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* -- Hero -- */
    .hero-section {
        margin-top: 70px;
    }
    
    .hero-image {
        height: 320px;
    }
    
    .hero-content {
        padding: 40px 25px;
    }
    
    .hero-title {
        font-size: 30px;
        margin-bottom: 25px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    /* -- Features -- */
    .features-section {
        padding: 50px 20px;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 25px;
    }
    
    .feature-card:last-child {
        grid-column: auto;
        max-width: none;
    }
    
    /* -- Info section -- */
    .info-section:not(.sidebar .info-section) {
        padding: 50px 20px;
    }
    
    .info-content h2 {
        font-size: 28px;
    }
    
    .info-highlight {
        flex-direction: column;
    }
    
    /* -- Process section -- */
    .process-section {
        padding: 50px 20px;
    }
    
    .process-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-steps {
        padding: 30px 20px;
    }
    
    .process-info h2 {
        font-size: 28px;
    }
    
    .process-container-reverse {
        direction: ltr;
    }
    
    /* -- Text section -- */
    .text-section {
        padding: 40px 20px;
    }
    
    .text-section p {
        font-size: 15px;
    }
    
    /* -- Partners section -- */
    .partners-section {
        padding: 50px 20px;
    }
    
    .partners-title {
        font-size: 26px;
    }
    
    .partners-image {
        order: -1;
    }
    
    .partners-content p {
        font-size: 15px;
    }
    
    /* -- Contact page -- */
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* -- Footer -- */
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    /* -- Login form -- */
    .login-form {
        padding: 20px 0;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .btn {
        padding: 14px 24px;
        width: 100%;
    }
    
    .form-actions {
        margin-top: 24px;
    }
}

/* ========================================
   MOBILE PORTRAIT (480px)
   ======================================== */
@media (max-width: 480px) {
    /* -- Header -- */
    .header-container {
        padding: 8px 12px;
    }
    
    .header-logo {
        height: 36px;
    }
    
    .header-partner-logo {
        height: 36px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .btn-login {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* -- Page Container -- */
    .page-container {
        padding: 10px 12px;
        padding-top: 80px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .page-header .subtitle,
    .page-header .page-subtitle {
        font-size: 13px;
    }
    
    /* -- Search Bar -- */
    .search-bar {
        flex-direction: column;
    }
    
    .search-input,
    .search-button {
        width: 100%;
        font-size: 16px; /* Prevents iOS zoom */
        padding: 12px;
        min-height: 48px;
    }
    
    /* -- Documents Grid -- */
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .document-card {
        padding: 14px;
    }
    
    .document-icon {
        width: 36px;
        height: 36px;
    }
    
    .document-title {
        font-size: 13px;
    }
    
    /* -- Info Card -- */
    .info-card {
        padding: 14px;
    }
    
    .info-card h3 {
        font-size: 14px;
    }
    
    /* -- Tabs -- */
    .tab-button {
        min-width: 100px;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    /* -- Images Grid -- */
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .text-content {
        font-size: 13px;
    }
    
    /* -- Table -- */
    .processes-table {
        min-width: 480px;
        font-size: 12px;
    }
    
    .processes-table th,
    .processes-table td {
        padding: 10px;
    }
    
    .processes-table th {
        font-size: 12px;
    }
    
    /* -- Buttons -- */
    .btn-primary, .btn-secondary {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* -- Modal -- */
    .modal-content {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .modal-close {
        font-size: 28px;
        width: 36px;
        height: 36px;
    }
    
    .details-table td {
        font-size: 12px;
        padding: 10px;
    }
    
    .details-table td.label {
        width: 100px;
        font-size: 11px;
    }
    
    /* -- Hero -- */
    .hero-section {
        margin-top: 65px;
    }
    
    .hero-image {
        height: 260px;
    }
    
    .hero-content {
        padding: 30px 18px;
    }
    
    .hero-title {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .btn-get-started {
        padding: 12px 22px;
        font-size: 14px;
    }
    
    .hero-since {
        margin-bottom: 14px;
    }
    
    .since-text {
        font-size: 14px;
    }
    
    /* -- Features -- */
    .features-section {
        padding: 40px 15px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 18px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    /* -- Info section -- */
    .info-section:not(.sidebar .info-section) {
        padding: 40px 15px;
    }
    
    .info-content h2 {
        font-size: 24px;
    }
    
    .info-content p {
        font-size: 15px;
    }
    
    .highlight-box {
        padding: 25px 20px;
    }
    
    .highlight-number {
        font-size: 36px;
    }
    
    .highlight-text {
        font-size: 14px;
    }
    
    /* -- Process sections -- */
    .process-section {
        padding: 40px 15px;
    }
    
    .process-steps {
        padding: 25px 18px;
    }
    
    .step-number {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 16px;
    }
    
    .step-content h3 {
        font-size: 17px;
    }
    
    .step-content p {
        font-size: 14px;
    }
    
    .process-step:not(:last-child)::before {
        left: 24px;
        top: 58px;
    }
    
    .process-info h2 {
        font-size: 26px;
    }
    
    .process-info > p {
        font-size: 15px;
    }
    
    .process-badge {
        font-size: 12px;
    }
    
    .btn-process {
        padding: 14px 22px;
        font-size: 14px;
    }
    
    /* -- Partners section -- */
    .partners-section {
        padding: 40px 15px;
    }
    
    .partners-title {
        font-size: 22px;
    }
    
    .partners-locations {
        font-size: 12px;
    }
    
    .partners-content p {
        font-size: 14px;
    }
    
    /* -- Text section -- */
    .text-section {
        padding: 30px 15px;
    }
    
    .text-section p {
        font-size: 14px;
    }
    
    .text-section .text-list li {
        font-size: 14px;
    }
    
    /* -- Contact page -- */
    .contact-block {
        padding: 15px;
    }
    
    .contact-block h3 {
        font-size: 16px;
    }
    
    /* Stack email grid to single column on small phones */
    .contact-email-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .contact-email {
        margin-bottom: 10px;
    }
    
    /* -- Login -- */
    .form-group label {
        font-size: 13px;
    }
    
    .form-footer p {
        font-size: 13px;
    }
}

/* ========================================
   SMALL MOBILE (360px)
   ======================================== */
@media (max-width: 360px) {
    .page-container {
        padding: 8px 8px;
        padding-top: 75px;
    }
    
    .page-header h1 {
        font-size: 18px;
    }
    
    .header-logo {
        height: 32px;
    }
    
    .header-partner-logo {
        height: 32px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .tab-button {
        min-width: 90px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .document-card {
        padding: 10px;
    }
    
    .processes-table {
        min-width: 420px;
        font-size: 11px;
    }
    
    .processes-table th,
    .processes-table td {
        padding: 8px;
    }
    
    .hero-image {
        height: 220px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-content {
        padding: 25px 14px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .process-steps {
        padding: 20px 14px;
    }
    
    .modal-header {
        padding: 12px 14px;
    }
    
    .modal-header h2 {
        font-size: 15px;
    }
    
    .modal-body {
        padding: 14px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ========================================
   ORIENTATION-SPECIFIC FIXES
   ======================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        grid-template-columns: 1fr 1fr;
        min-height: auto;
    }
    
    .hero-image {
        height: auto;
        min-height: 280px;
    }
    
    .hero-content {
        padding: 30px 25px;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .btn-get-started {
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    .modal-content {
        max-height: 85vh;
        border-radius: var(--radius-md);
    }
    
    .modal-overlay {
        align-items: center;
    }
}

/* ========================================
   SAFE AREA (NOTCH) SUPPORT
   ======================================== */
@supports (padding: env(safe-area-inset-top)) {
    .site-header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .site-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .header-right {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* ========================================
   REDUCED MOTION PREFERENCES
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   HOVER MEDIA QUERY (touch vs pointer)
   ======================================== */
@media (hover: none) {
    /* Remove hover-only effects on touch devices */
    .document-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .btn-login:hover,
    .btn-get-started:hover,
    .btn-process:hover {
        transform: none;
    }
    
    .processes-table tbody tr.clickable-row:hover {
        box-shadow: none;
        background: transparent;
    }
    
    /* Active states for touch */
    .document-card:active {
        background: var(--primary-green-light);
    }
    
    .processes-table tbody tr.clickable-row:active {
        background: var(--primary-green-light);
    }
    
    .nav-list > li > a:active,
    .process-link:active {
        background: var(--primary-green-light);
    }
}

/* ========================================
   FOCUS VISIBLE (accessibility)
   ======================================== */
:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

