/* ============================================
   Travel Policies Page Styles
   Austin Spanish Academy
   VERSION: 1.0.0.2
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Open+Sans:wght@400;500;600;700&display=swap');

/* Hide WordPress-injected empty paragraphs BEFORE the landing page content */
.theme-content > p:first-child,
.theme-content > p:empty,
.theme-content > p:first-child br {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

/* Force body to hide horizontal overflow on travel policies page */
body:has(.tp-landing) {
    overflow-x: hidden !important;
}

/* ============================================
   Base Layout
   ============================================ */
.tp-landing {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: #1F2937;
    line-height: 1.7;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

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

.tp-landing section {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.tp-landing h1,
.tp-landing h2,
.tp-landing h3,
.tp-landing h4 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.tp-landing a {
    color: #00A0B0 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.tp-landing a:hover {
    color: #008B9A !important;
    text-decoration: underline !important;
}

/* ============================================
   Back Navigation
   ============================================ */
.tp-back-nav {
    background: #F8FAFC !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid #E5E7EB;
}

.tp-back-nav-container {
    max-width: 900px !important;
    margin: 0 auto !important;
}

.tp-back-link {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #1A365D !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.tp-back-link:hover {
    color: #00A0B0 !important;
}

/* ============================================
   Hero Section with Background Image
   ============================================ */
.tp-hero {
    background-image: url('/wp-content/uploads/2025/01/travel-policies-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 45vh;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    overflow: hidden;
    padding: 100px 20px 80px !important;
    width: 100% !important;
    text-align: center;
}

.tp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.7) 0%, rgba(45, 74, 111, 0.6) 100%);
    pointer-events: none;
}

.tp-hero-container {
    max-width: 900px !important;
    margin: 0 auto !important;
    position: relative;
    z-index: 1;
    width: 100% !important;
}

.tp-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    color: #ffffff !important;
    margin-bottom: 14px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tp-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400 !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Content Container
   ============================================ */
.tp-content {
    background: #ffffff !important;
    padding: 50px 20px 60px !important;
}

.tp-content-container {
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* ============================================
   Typography
   ============================================ */
.tp-intro {
    font-size: 1.1rem !important;
    color: #4B5563 !important;
    line-height: 1.8 !important;
    margin-bottom: 40px !important;
    padding-bottom: 30px !important;
    border-bottom: 1px solid #E5E7EB;
}

.tp-content-container h2 {
    font-size: clamp(1.4rem, 3vw, 1.75rem) !important;
    color: #1A365D !important;
    margin: 40px 0 16px !important;
    padding-top: 10px !important;
}

.tp-content-container h3 {
    font-size: 1.15rem !important;
    color: #1A365D !important;
    margin: 24px 0 10px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 700 !important;
}

.tp-content-container p {
    font-size: 1rem !important;
    color: #374151 !important;
    line-height: 1.7 !important;
    margin-bottom: 14px !important;
}

/* ============================================
   Section Dividers
   ============================================ */
.tp-divider {
    border: none !important;
    border-top: 1px solid #E5E7EB !important;
    margin: 36px 0 !important;
}

/* ============================================
   Callout Box (for important notices)
   ============================================ */
.tp-callout {
    background: #FEF3C7 !important;
    border-left: 4px solid #F59E0B !important;
    padding: 16px 20px !important;
    border-radius: 0 8px 8px 0 !important;
    margin: 20px 0 !important;
    font-size: 0.95rem !important;
    color: #92400E !important;
}

/* ============================================
   Document Cards
   ============================================ */
.tp-doc-card {
    background: #F8FAFC !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 20px 24px !important;
    margin-bottom: 16px !important;
}

.tp-doc-card h3 {
    font-size: 1.05rem !important;
    color: #1A365D !important;
    margin: 0 0 8px !important;
}

.tp-doc-card p {
    font-size: 0.95rem !important;
    color: #4B5563 !important;
    margin: 0 !important;
    line-height: 1.65 !important;
}

/* ============================================
   Document Card Sub-Bullet List (DocA sections)
   ============================================ */
.tp-doc-card-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 12px 0 0 !important;
}

.tp-doc-card-list li {
    padding: 10px 0 10px 24px !important;
    position: relative;
    font-size: 0.93rem !important;
    color: #4B5563 !important;
    line-height: 1.65 !important;
    border-top: 1px solid #E5E7EB;
}

.tp-doc-card-list li:last-child {
    padding-bottom: 0 !important;
}

.tp-doc-card-list li::before {
    content: '\25B8';
    position: absolute;
    left: 4px;
    color: #1A365D;
    font-size: 0.95rem;
}

.tp-doc-card-list li strong {
    color: #1A365D !important;
}

/* ============================================
   Tables
   ============================================ */
.tp-table-wrapper {
    overflow-x: auto !important;
    margin: 20px 0 !important;
    -webkit-overflow-scrolling: touch;
}

.tp-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.95rem !important;
    min-width: 400px !important;
}

.tp-table thead th {
    background: #1A365D !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.tp-table tbody td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #E5E7EB !important;
    color: #374151 !important;
    vertical-align: top !important;
}

.tp-table tbody tr:nth-child(even) {
    background: #F9FAFB !important;
}

.tp-table tbody tr:hover {
    background: #F0F9FA !important;
}

/* ============================================
   Lists
   ============================================ */
.tp-list-included {
    list-style: none !important;
    padding: 0 !important;
    margin: 16px 0 !important;
}

.tp-list-included li {
    padding: 8px 0 8px 32px !important;
    position: relative;
    font-size: 0.95rem !important;
    color: #374151 !important;
    line-height: 1.6 !important;
}

.tp-list-included li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #00A0B0;
    font-weight: bold;
    font-size: 1.1rem;
}

.tp-list-not-included {
    list-style: none !important;
    padding: 0 !important;
    margin: 16px 0 !important;
}

.tp-list-not-included li {
    padding: 8px 0 8px 32px !important;
    position: relative;
    font-size: 0.95rem !important;
    color: #374151 !important;
    line-height: 1.6 !important;
}

.tp-list-not-included li::before {
    content: '\2022';
    position: absolute;
    left: 8px;
    color: #9CA3AF;
    font-size: 1.3rem;
    line-height: 1.4;
}

.tp-list-requirements {
    list-style: none !important;
    padding: 0 !important;
    margin: 16px 0 !important;
}

.tp-list-requirements li {
    padding: 10px 0 10px 32px !important;
    position: relative;
    font-size: 0.95rem !important;
    color: #374151 !important;
    line-height: 1.6 !important;
    border-bottom: 1px solid #F3F4F6;
}

.tp-list-requirements li:last-child {
    border-bottom: none;
}

.tp-list-requirements li::before {
    content: '\25B8';
    position: absolute;
    left: 4px;
    color: #1A365D;
    font-size: 1rem;
}

/* ============================================
   Health Advisory Box
   ============================================ */
.tp-advisory {
    background: #EFF6FF !important;
    border: 1px solid #BFDBFE !important;
    border-radius: 10px !important;
    padding: 24px !important;
    margin: 20px 0 !important;
}

.tp-advisory p {
    color: #1E40AF !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

/* ============================================
   Footer / Contact Section
   ============================================ */
.tp-footer {
    background: #1A365D !important;
    padding: 30px 20px !important;
    text-align: center;
}

.tp-footer-container {
    max-width: 700px !important;
    margin: 0 auto !important;
}

.tp-footer h2 {
    font-size: 1.5rem !important;
    color: #ffffff !important;
    margin-bottom: 12px !important;
}

.tp-footer p {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 4px !important;
}

.tp-footer a {
    color: #00A0B0 !important;
    text-decoration: none !important;
}

.tp-footer a:hover {
    text-decoration: underline !important;
}

/* ============================================
   Legal Footnote
   ============================================ */
.tp-legal {
    background: #F9FAFB !important;
    padding: 24px 20px !important;
    text-align: center;
}

.tp-legal-container {
    max-width: 800px !important;
    margin: 0 auto !important;
}

.tp-legal p {
    font-size: 0.8rem !important;
    color: #9CA3AF !important;
    font-style: italic !important;
    line-height: 1.6 !important;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 768px) {
    .tp-hero {
        min-height: 35vh;
        padding: 80px 20px 60px !important;
    }

    .tp-content {
        padding: 30px 16px 40px !important;
    }

    .tp-content-container h2 {
        margin: 30px 0 14px !important;
    }

    .tp-doc-card {
        padding: 16px 18px !important;
    }

    .tp-table {
        font-size: 0.85rem !important;
    }

    .tp-table thead th,
    .tp-table tbody td {
        padding: 10px 12px !important;
    }
}

@media (max-width: 480px) {
    .tp-hero h1 {
        font-size: 1.5rem !important;
    }

    .tp-hero-subtitle {
        font-size: 0.95rem !important;
    }

    .tp-table {
        min-width: 340px !important;
    }
}
