/**
 * ThaiLawOnline Visa Landing Page Styles
 * Matches the site's existing design: Roboto font, #1E73BE primary, #27323d headings
 */

/* ========== VARIABLES ========== */
:root {
    --tlo-primary: #1E73BE;
    --tlo-primary-dark: #155a96;
    --tlo-primary-light: #e8f1fa;
    --tlo-heading: #27323d;
    --tlo-text: #4a5568;
    --tlo-text-light: #848d95;
    --tlo-bg: #ffffff;
    --tlo-bg-light: #f7f9fc;
    --tlo-bg-warm: #fef9f3;
    --tlo-border: #e2e8f0;
    --tlo-success: #38a169;
    --tlo-warning: #e53e3e;
    --tlo-gold: #d4a843;
    --tlo-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --tlo-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
    --tlo-radius: 8px;
    --tlo-radius-lg: 12px;
}

/* ========== LANGUAGE SWITCHER ========== */
.tlo-lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 5px;
}

.tlo-lang-switcher a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--tlo-text);
    background: var(--tlo-bg-light);
    border: 1px solid var(--tlo-border);
    transition: all 0.2s;
}

.tlo-lang-switcher a:hover {
    background: var(--tlo-primary-light);
    border-color: var(--tlo-primary);
    color: var(--tlo-primary);
}

.tlo-lang-switcher a.tlo-lang-active {
    background: var(--tlo-primary);
    border-color: var(--tlo-primary);
    color: #fff;
    pointer-events: none;
}

/* ========== BASE ========== */
.tlo-visa-landing {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--tlo-text);
    line-height: 1.7;
    font-size: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tlo-visa-landing * {
    box-sizing: border-box;
}

.tlo-visa-landing h1,
.tlo-visa-landing h2,
.tlo-visa-landing h3,
.tlo-visa-landing h4 {
    color: var(--tlo-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
}

.tlo-visa-landing h2 {
    font-size: 1.85rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--tlo-primary);
    display: inline-block;
}

.tlo-visa-landing h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.tlo-visa-landing a {
    color: var(--tlo-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.tlo-visa-landing a:hover {
    color: var(--tlo-primary-dark);
    text-decoration: underline;
}

.tlo-visa-landing p {
    margin-bottom: 16px;
}

.tlo-section {
    margin-bottom: 50px;
    padding-top: 10px;
}

/* ========== BREADCRUMBS ========== */
.tlo-breadcrumbs {
    font-size: 0.875rem;
    color: var(--tlo-text-light);
    margin-bottom: 20px;
    padding: 12px 0;
}

.tlo-breadcrumbs a {
    color: var(--tlo-primary);
}

/* ========== HERO ========== */
.tlo-hero {
    background: linear-gradient(135deg, #1a365d 0%, #1E73BE 50%, #2d8fd5 100%);
    border-radius: var(--tlo-radius-lg);
    margin-bottom: 50px;
    overflow: hidden;
    position: relative;
}

.tlo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="30" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: cover;
}

.tlo-hero-overlay {
    position: relative;
    padding: 60px 40px;
    text-align: center;
    color: #fff;
}

.tlo-hero h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
}

.tlo-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 8px;
    font-weight: 300;
}

.tlo-hero-tagline {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.tlo-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.tlo-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.tlo-btn-primary {
    background: var(--tlo-primary);
    color: #fff !important;
    border-color: var(--tlo-primary);
}

.tlo-btn-primary:hover {
    background: var(--tlo-primary-dark);
    border-color: var(--tlo-primary-dark);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--tlo-shadow-lg);
}

.tlo-btn-secondary {
    background: #fff;
    color: var(--tlo-primary) !important;
    border-color: #fff;
}

.tlo-btn-secondary:hover {
    background: var(--tlo-primary-light);
    color: var(--tlo-primary-dark) !important;
}

.tlo-btn-outline {
    background: transparent;
    color: var(--tlo-primary) !important;
    border-color: var(--tlo-primary);
}

.tlo-btn-outline:hover {
    background: var(--tlo-primary);
    color: #fff !important;
}

.tlo-btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ========== TWO COLUMN LAYOUT ========== */
.tlo-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
}

.tlo-col-image img {
    width: 100%;
    height: auto;
    border-radius: var(--tlo-radius);
    box-shadow: var(--tlo-shadow);
}

.tlo-img-caption {
    font-size: 0.85rem;
    color: var(--tlo-text-light);
    text-align: center;
    margin-top: 8px;
}

/* ========== CREDENTIAL BOX (replaces image) ========== */
.tlo-credential-box {
    background: linear-gradient(135deg, var(--tlo-bg-light) 0%, #e8f1fa 100%);
    border: 2px solid var(--tlo-primary);
    border-radius: var(--tlo-radius-lg);
    padding: 32px 28px;
    text-align: center;
}

.tlo-credential-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.tlo-credential-box h3 {
    color: var(--tlo-primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.tlo-credential-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.tlo-stat {
    background: #fff;
    border-radius: var(--tlo-radius);
    padding: 14px 10px;
    box-shadow: var(--tlo-shadow);
}

.tlo-stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--tlo-primary);
    line-height: 1.2;
}

.tlo-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--tlo-text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

.tlo-credential-note {
    font-size: 0.9rem;
    color: var(--tlo-text);
    margin: 0;
    line-height: 1.5;
}

/* ========== CHECK LIST ========== */
.tlo-check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tlo-check-list li {
    padding: 8px 0 8px 32px;
    position: relative;
    font-size: 1rem;
}

.tlo-check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--tlo-success);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ========== TABLES ========== */
.tlo-table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--tlo-radius);
    box-shadow: var(--tlo-shadow);
}

.tlo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tlo-table thead {
    background: var(--tlo-primary);
    color: #fff;
}

.tlo-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.tlo-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--tlo-border);
    vertical-align: top;
}

.tlo-table tbody tr:hover {
    background: var(--tlo-primary-light);
}

.tlo-table tbody tr:nth-child(even) {
    background: var(--tlo-bg-light);
}

.tlo-table tbody tr:nth-child(even):hover {
    background: var(--tlo-primary-light);
}

.tlo-highlight-row {
    background: var(--tlo-bg-warm) !important;
    border-left: 4px solid var(--tlo-gold);
}

.tlo-table-warning thead {
    background: #c53030;
}

.tlo-table a {
    font-weight: 600;
}

.tlo-note {
    font-size: 0.9rem;
    color: var(--tlo-text-light);
    padding: 12px 16px;
    background: var(--tlo-bg-light);
    border-left: 4px solid var(--tlo-primary);
    border-radius: 0 var(--tlo-radius) var(--tlo-radius) 0;
    margin-top: 16px;
}

/* ========== SERVICE CARDS ========== */
.tlo-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.tlo-service-card {
    background: var(--tlo-bg);
    border: 1px solid var(--tlo-border);
    border-radius: var(--tlo-radius-lg);
    padding: 28px 24px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tlo-service-card:hover {
    box-shadow: var(--tlo-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--tlo-primary);
}

.tlo-card-featured {
    border-color: var(--tlo-primary);
    background: linear-gradient(180deg, var(--tlo-primary-light) 0%, var(--tlo-bg) 30%);
}

.tlo-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--tlo-gold);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tlo-service-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.tlo-service-card h3 {
    margin-bottom: 10px;
}

.tlo-service-card h3 a {
    color: var(--tlo-heading);
}

.tlo-service-card h3 a:hover {
    color: var(--tlo-primary);
}

.tlo-service-card p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.tlo-price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tlo-primary);
    margin: 12px 0;
}

.tlo-service-card .tlo-btn {
    align-self: flex-start;
}

/* ========== STEPS / PROCESS ========== */
.tlo-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.tlo-step {
    text-align: center;
    padding: 30px 20px;
    background: var(--tlo-bg-light);
    border-radius: var(--tlo-radius-lg);
    position: relative;
}

.tlo-step-number {
    width: 50px;
    height: 50px;
    background: var(--tlo-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.tlo-step h3 {
    color: var(--tlo-heading);
}

/* ========== ADDITIONAL SERVICES ========== */
.tlo-additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tlo-additional-item {
    padding: 20px 24px;
    background: var(--tlo-bg-light);
    border-radius: var(--tlo-radius);
    border-left: 4px solid var(--tlo-primary);
}

.tlo-additional-item h3 {
    margin-bottom: 6px;
}

.tlo-additional-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========== RELATED SERVICES ========== */
.tlo-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tlo-related-link {
    display: block;
    padding: 24px;
    background: var(--tlo-bg);
    border: 1px solid var(--tlo-border);
    border-radius: var(--tlo-radius-lg);
    text-decoration: none !important;
    transition: all 0.3s;
    color: var(--tlo-text) !important;
}

.tlo-related-link:hover {
    border-color: var(--tlo-primary);
    box-shadow: var(--tlo-shadow);
    transform: translateY(-2px);
}

.tlo-related-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.tlo-related-link strong {
    color: var(--tlo-heading);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 6px;
}

.tlo-related-link p {
    font-size: 0.9rem;
    margin: 0;
}

/* ========== UPDATE CARDS ========== */
.tlo-update-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tlo-update-card {
    padding: 20px 24px;
    background: var(--tlo-bg);
    border: 1px solid var(--tlo-border);
    border-radius: var(--tlo-radius);
    border-top: 3px solid var(--tlo-primary);
}

.tlo-update-date {
    display: inline-block;
    background: var(--tlo-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tlo-update-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.tlo-update-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ========== FAQ ========== */
.tlo-faq-list {
    margin-top: 20px;
}

.tlo-faq-item {
    border: 1px solid var(--tlo-border);
    border-radius: var(--tlo-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.tlo-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: var(--tlo-bg);
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tlo-heading);
    text-align: left;
    transition: background 0.2s;
    font-family: inherit;
}

.tlo-faq-question:hover {
    background: var(--tlo-bg-light);
}

.tlo-faq-toggle {
    font-size: 1.5rem;
    color: var(--tlo-primary);
    font-weight: 300;
    min-width: 24px;
    text-align: center;
    transition: transform 0.3s;
}

.tlo-faq-item.active .tlo-faq-toggle {
    transform: rotate(45deg);
}

.tlo-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}

.tlo-faq-item.active .tlo-faq-answer {
    max-height: 600px;
    padding: 0 24px 20px;
}

.tlo-faq-answer p {
    margin-top: 0;
}

/* ========== TOOL CTA BOX ========== */
.tlo-tool-box {
    background: linear-gradient(135deg, var(--tlo-primary-light) 0%, #e8f4fd 100%);
    border: 2px solid var(--tlo-primary);
    border-radius: var(--tlo-radius-lg);
    padding: 40px;
    text-align: center;
}

.tlo-tool-box h2 {
    border: none;
    display: block;
}

/* ========== FINAL CTA ========== */
.tlo-final-cta {
    margin-top: 20px;
}

.tlo-cta-box {
    background: linear-gradient(135deg, #1a365d 0%, #1E73BE 100%);
    border-radius: var(--tlo-radius-lg);
    padding: 50px 40px;
    text-align: center;
    color: #fff;
}

.tlo-cta-box h2 {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    display: block;
    font-size: 2rem;
}

.tlo-cta-box > p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 30px;
}

.tlo-cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    text-align: left;
}

.tlo-cta-feature {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: var(--tlo-radius);
}

.tlo-cta-feature strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.tlo-cta-feature p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.tlo-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0 20px;
}

.tlo-cta-box .tlo-btn-secondary {
    border-color: #fff;
}

.tlo-cta-box .tlo-btn-outline {
    color: #fff !important;
    border-color: rgba(255,255,255,0.5);
}

.tlo-cta-box .tlo-btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
}

.tlo-cta-note {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0;
}

/* ========== INTERNAL LINKS SECTION ========== */
.tlo-links-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.tlo-links-col h3 {
    color: var(--tlo-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tlo-border);
}

.tlo-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tlo-links-col li {
    padding: 6px 0;
    border-bottom: 1px solid var(--tlo-bg-light);
}

.tlo-links-col a {
    font-size: 0.9rem;
    color: var(--tlo-text);
    transition: color 0.2s, padding-left 0.2s;
    display: block;
}

.tlo-links-col a:hover {
    color: var(--tlo-primary);
    padding-left: 6px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .tlo-hero-overlay {
        padding: 40px 20px;
    }

    .tlo-hero h1 {
        font-size: 1.8rem;
    }

    .tlo-visa-landing h2 {
        font-size: 1.5rem;
    }

    .tlo-two-col {
        grid-template-columns: 1fr;
    }

    .tlo-services-grid {
        grid-template-columns: 1fr;
    }

    .tlo-steps {
        grid-template-columns: 1fr;
    }

    .tlo-cta-box {
        padding: 30px 20px;
    }

    .tlo-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tlo-btn-large {
        width: 100%;
        max-width: 320px;
    }

    .tlo-table {
        font-size: 0.85rem;
    }

    .tlo-table th,
    .tlo-table td {
        padding: 10px 12px;
    }

    .tlo-tool-box {
        padding: 30px 20px;
    }

    .tlo-links-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .tlo-visa-landing {
        padding: 0 12px;
    }

    .tlo-links-columns {
        grid-template-columns: 1fr;
    }

    .tlo-hero h1 {
        font-size: 1.5rem;
    }

    .tlo-additional-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== PRINT ========== */
@media print {
    .tlo-hero {
        background: #fff !important;
        color: #000 !important;
    }
    .tlo-btn {
        border: 1px solid #000;
    }
    .tlo-final-cta .tlo-cta-box {
        background: #fff !important;
        color: #000 !important;
    }
}
