/* ===== PAN AMERICAN LINK EXPRESS — Home Page Sections ===== */

/* --- Company Intro --- */
.pan-intro-section {
    background: #fff;
    padding: 32px 0;
    border-top: 4px solid #dc291e;
}

.pan-intro-section .pan-logo-wrap {
    margin-bottom: 20px;
}

.pan-section-title {
    color: #dc291e;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pan-subtitle {
    color: #333;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.pan-body-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
}

/* --- Why Pan American --- */
.why-pan-section {
    background: transparent;
    padding: 36px 0;
}

.why-pan-section .pan-section-title {
    color: #dc291e;
    font-size: 2rem;
    margin-bottom: 16px;
}

/* --- Why Pan American tab switcher --- */
.why-pan-tabs {
    display: inline-flex;
    gap: 0;
    background: #f0f0f0;
    border-radius: 40px;
    padding: 4px;
    margin-top: 18px;
}

.why-pan-tab {
    background: transparent;
    border: none;
    color: #4d5563;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 26px;
    border-radius: 36px;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease;
    outline: none;
}

.why-pan-tab.active {
    background: #dc291e;
    color: #fff;
    box-shadow: 0 3px 12px rgba(220,41,30,0.4);
}

.why-pan-tab:not(.active):hover {
    color: #1a1a2e;
    background: rgba(220,41,30,0.08);
}

.why-pan-section {
    color: #333;
}

.why-pan-section p,
.why-pan-section li,
.why-pan-section span,
.why-pan-section h4,
.why-pan-section h3,
.why-pan-section h5,
.why-pan-section h6 {
    color: #2d3748;
}

.why-pan-card h3 {
    color: #1a1a2e;
}

.why-pan-card p {
    color: #707070;
}


.why-pan-panel {
    animation: panTabFade 0.25s ease;
}

@keyframes panTabFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Why Pan American card grid (btn-card style) --- */
.why-pan-section.cards-layout {
    background: #fff;
}

.why-pan-section.cards-layout .pan-section-title {
    color: #1a1a2e;
}

.why-pan-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0 8px;
}

.why-pan-card {
    box-shadow: 0 3px 6px rgba(200,200,200,.5);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
    padding: 28px 22px;
    flex: 1 1 240px;
    max-width: 290px;
    transition: all .3s ease;
    cursor: default;
    text-decoration: none !important;
}

.why-pan-card:hover {
    background-color: #dc291e;
    border-color: #dc291e;
    box-shadow: 0 8px 24px rgba(220,41,30,.3);
    transform: translateY(-4px);
}

.why-pan-card .wpan-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-pan-card .wpan-icon svg {
    width: 38px;
    height: 38px;
    stroke: #dc291e;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .3s ease;
}

.why-pan-card:hover .wpan-icon svg {
    stroke: #fff;
}

.why-pan-card h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.3;
    transition: color .3s ease;
}

.why-pan-card:hover h3 {
    color: #fff;
}

.why-pan-card p {
    font-size: 0.78rem;
    color: #999;
    margin: 0;
    line-height: 1.55;
    transition: color .3s ease;
}

.why-pan-card:hover p {
    color: rgba(255,255,255,.85);
}

@media (max-width: 768px) {
    .why-pan-card {
        flex: 1 1 200px;
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .pan-intro-section { padding: 20px 0 16px; }
    .why-pan-section { padding: 20px 0; }
    .why-pan-section .pan-section-title { margin-bottom: 16px; }
    .why-pan-section .col-12.text-center { margin-bottom: 16px !important; }
}

.pan-feature-card {
    background: #fff;
    border: 1px solid #ebedf2;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.pan-feature-card:hover {
    transform: translateY(-4px);
    border-color: #dc291e;
    box-shadow: 0 14px 32px rgba(220, 41, 30, 0.12);
}

.pan-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #dc291e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.pan-feature-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.pan-feature-card h6 {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.6;
}

.pan-feature-card:hover h6 {
    color: #dc291e;
}

/* --- Experts tagline --- */
.pan-experts-section {
    background: #fff;
    padding: 60px 0;
    border-left: 6px solid #dc291e;
}

.pan-experts-section .pan-quote {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.85;
    font-style: italic;
}

.pan-experts-section .pan-quote-title {
    color: #dc291e;
    font-weight: 700;
    font-size: 1.2rem;
    font-style: normal;
    margin-bottom: 12px;
}

/* --- Servicing Ports --- */
.pan-ports-section {
    background: #dc291e;
    padding: 55px 0;
}

.pan-ports-section p {
    color: rgba(255,255,255,0.92);
    font-size: 1.08rem;
    line-height: 1.85;
    margin: 0;
}

.pan-ports-section .pan-ports-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* --- Hero extras --- */
.pan-hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.35);
    margin-bottom: 18px;
}

.pan-hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.pan-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dc291e;
    color: #fff !important;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(220,41,30,0.45);
    border: 2px solid rgba(255,255,255,0.2);
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
}

.pan-btn-primary:hover {
    background: #b8221a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(220,41,30,0.55);
}

.pan-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    border: 2px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(4px);
    transition: background 0.25s, transform 0.2s;
}

.pan-btn-secondary:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-2px);
}

/* --- Stats grid --- */
.pan-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pan-stat-card {
    background: #fff;
    border: 1px solid rgba(220,41,30,0.15);
    border-radius: 14px;
    padding: 20px 14px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pan-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(220,41,30,0.12);
}

.pan-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #dc291e;
    line-height: 1;
    margin-bottom: 6px;
}

.pan-stat-label {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Ports section buttons --- */
.pan-ports-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.pan-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #dc291e !important;
    padding: 13px 34px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.97rem;
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pan-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0,0,0,0.25);
}

.pan-btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff !important;
    padding: 13px 34px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.97rem;
    text-decoration: none !important;
    border: 2px solid rgba(255,255,255,0.7);
    transition: background 0.2s, transform 0.2s;
}

.pan-btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* --- Footer --- */
.pan-footer {
    background: #111;
    padding: 36px 0;
}

.pan-footer-copy {
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
    margin: 10px 0 0;
}

.pan-footer-links {
    display: flex;
    gap: 24px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.pan-footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s;
}

.pan-footer-links a:hover {
    color: #dc291e;
    text-decoration: none;
}
