/* ===========================================
   E2-VISA-INVESTOR.PHP - Page Specific Styles
   Extracted for PageSpeed optimization
   =========================================== */

/* Image Flex */
.image-flex {
    width: 750px;
}

@media only screen and (max-width: 767px) {
    div#carouselExampleSlidesOnly {
        margin-top: 50vh;
    }

    .mobile-card-wrapper .card {
        width: 100%;
    }

    .image-flex {
        width: 300px;
    }
}

/* L1 Table Styles */
.l1-table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.l1-table th,
.l1-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.l1-table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

.l1-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* General Typography */
p,
li {
    line-height: 1.7;
    color: #333;
}

/* Disclaimer Box */
.disclaimer-box {
    border: 1px solid #ffcc00;
    padding: 15px;
    margin: 20px 0;
    background-color: #fff9e6;
    border-radius: 5px;
}

.disclaimer-box h4 {
    color: #cc9900;
    margin-top: 0;
    border-bottom: 1px solid #ffcc00;
    padding-bottom: 5px;
}

/* Comparison Table Styles */
.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.comparison-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* Pitfall Item */
.pitfall-item {
    color: #cc0000;
    font-weight: bold;
    list-style-type: '❌ ';
    margin-bottom: 10px;
}

/* Citation */
.citation {
    font-size: 0.9em;
    color: #666;
    display: block;
    margin-top: 5px;
}

/* Details/Summary (FAQ Item) Styling */
details {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9fbfb;
    transition: background-color 0.3s ease;
}

details[open] {
    background-color: #e6f7ff;
    border-color: #17a2b8;
}

/* Summary (Question) Styling */
summary {
    font-weight: 700;
    font-size: 1.1em;
    color: #2c3e50;
    cursor: pointer;
    outline: none;
    list-style: none;
    position: relative;
    padding: 10px 10px 10px 25px;
}

/* Custom marker for the summary (Question) */
summary::before {
    content: "▶";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #17a2b8;
    font-size: 0.8em;
    transition: transform 0.3s;
}

details[open] summary::before {
    content: "▼";
    transform: translateY(-50%) rotate(0deg);
}

/* Content inside Details (Answer) Styling */
details p,
details ul {
    padding-left: 25px;
    margin-top: 10px;
}

details ul {
    margin-bottom: 10px;
}

details p:last-child,
details ul:last-child {
    margin-bottom: 0;
}

/* Headings */
h3 {
    color: #17a2b8;
}

h2 {
    border-bottom: 3px solid #1c173b;
}

/* Table of Contents */
#table-of-contents {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 25px;
    background-color: #f9f9f9;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    color: #1c173b !important;
    font-size: 16px !important;
}

#table-of-contents h3 {
    color: #1c173b !important;
    font-size: 0.5em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1px;
    margin-top: 0;
    margin-bottom: 10px;
}

#table-of-contents ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    font-size: 1.2em;
}

#table-of-contents a {
    color: #1a75ff !important;
    text-decoration: none;
    display: block;
    padding: 2px 0;
    font-size: 0.9em;
}

#table-of-contents a:hover {
    color: #004d99;
    text-decoration: underline;
}

#table-of-contents ul ul {
    padding-left: 15px;
}

#table-of-contents ul ul a {
    font-size: 0.8em;
    padding: 1px 0;
    color: #555555 !important;
}

#table-of-contents ul ul a:hover {
    color: #004d99 !important;
    text-decoration: underline;
}

/* Author Block */
.author-block {
    border: 1px solid #ddd;
    border-top: 5px solid #1c173b;
    padding: 15px;
    margin: 25px 0;
    background-color: #fcfcfc;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

.author-block h2.author-name {
    color: #1c173b;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 5px;
    border-bottom: none;
}

.author-block .author-credentials h3,
.author-block .author-track-record h3,
.author-block .author-recognition h3,
.author-block .author-engagements h3,
.author-block .author-media h3 {
    color: #17a2b8;
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: 5px;
    padding-bottom: 2px;
    border-bottom: 1px dashed #eee;
}

.author-block p,
.author-block ul,
.author-block li {
    font-size: 0.9em;
    line-height: 1.5;
    margin-top: 5px;
    margin-bottom: 5px;
}

.author-block ul {
    padding-left: 20px;
}

.author-block a {
    font-size: 0.85em;
    text-decoration: underline;
    color: #1a75ff;
}

/* E2 Advice Callout */
.e2-advice-callout {
    border: 2px solid #0056b3;
    padding: 20px;
    margin: 30px 0;
    background-color: #f7faff;
    border-left: 5px solid #0056b3;
    border-radius: 4px;
}

.e2-advice-callout p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.5;
}

.e2-advice-callout .callout-link-area {
    margin-top: 10px;
    font-weight: bold;
}

.e2-advice-callout a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s;
}

.e2-advice-callout a:hover {
    color: #003d7a;
    text-decoration: underline;
}

/* E2 Comparison Table */
.e2-comparison-wrapper {
    width: 100%;
    margin: 20px 0;
    font-family: sans-serif;
}

.e2-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ddd;
    border: 1px solid #ccc;
}

.e2-comparison-table thead {
    background-color: #1c173b;
    color: #ffffff;
}

.e2-comparison-table th,
.e2-comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #bbb;
    vertical-align: top;
    line-height: 1.4;
}

.e2-comparison-table th {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* E2 Comparison Table - Mobile Responsive */
@media screen and (max-width: 768px) {
    .e2-comparison-table,
    .e2-comparison-table thead,
    .e2-comparison-table tbody,
    .e2-comparison-table th,
    .e2-comparison-table td,
    .e2-comparison-table tr {
        display: block;
    }

    .e2-comparison-table thead tr {
        display: none;
    }

    .e2-comparison-table tr {
        margin-bottom: 15px;
        border: 2px solid #1c173b;
    }

    .e2-comparison-table td {
        padding-left: 45%;
        position: relative;
        border: none;
        border-bottom: 1px solid #ccc;
        background-color: #fff;
    }

    .e2-comparison-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 40%;
        font-weight: bold;
        color: #1c173b;
        font-size: 0.8rem;
    }
}

/* Lite YouTube Facade */
lite-youtube {
    background-color: #000;
    position: relative;
    display: block;
    contain: content;
    background-position: center center;
    background-size: cover;
    cursor: pointer;
    max-width: 720px;
    width: 100%;
    aspect-ratio: 16 / 9;
}

lite-youtube::before {
    content: attr(data-title);
    display: block;
    position: absolute;
    top: 0;
    background-image: linear-gradient(180deg, rgb(0 0 0 / 67%) 0%, rgb(0 0 0 / 54%) 14%, rgb(0 0 0 / 15%) 54%, rgb(0 0 0 / 5%) 72%, rgb(0 0 0 / 0%) 94%);
    height: 99px;
    width: 100%;
    font-family: "YouTube Noto", Roboto, Arial, Helvetica, sans-serif;
    color: hsl(0deg 0% 93.33%);
    text-shadow: 0 0 2px rgba(0, 0, 0, .5);
    font-size: 18px;
    padding: 25px 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

lite-youtube:hover::before {
    color: white;
}

lite-youtube::after {
    content: "";
    display: block;
    padding-bottom: calc(100% / (16 / 9));
}

lite-youtube > iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
}

/* Play button */
lite-youtube > .lty-playbtn {
    display: block;
    width: 68px;
    height: 48px;
    position: absolute;
    cursor: pointer;
    transform: translate3d(-50%, -50%, 0);
    top: 50%;
    left: 50%;
    z-index: 1;
    background-color: transparent;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
    filter: grayscale(100%);
    transition: filter .1s cubic-bezier(0, 0, 0.2, 1);
    border: none;
}

lite-youtube:hover > .lty-playbtn,
lite-youtube .lty-playbtn:focus {
    filter: none;
}

/* Post-click styles */
lite-youtube.lyt-activated {
    cursor: unset;
}

lite-youtube.lyt-activated::before,
lite-youtube.lyt-activated > .lty-playbtn {
    opacity: 0;
    pointer-events: none;
}
