/**
 * Premium Homepage Styles
 * Million-dollar design enhancements
 */

/* ===== Premium Hero Section ===== */
.hero-premium {
    position: relative;
    background: linear-gradient(135deg, #0F1F3D 0%, #2B4C7E 50%, #4169B5 100%);
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-premium::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 1200 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:0.05" /><stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:0" /></linearGradient></defs><circle cx="200" cy="100" r="300" fill="url(%23grad)"/><circle cx="800" cy="400" r="400" fill="url(%23grad)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(255, 140, 66, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF8C42 0%, #E67C35 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    margin-bottom: 32px;
}

.hero-subtitle strong {
    color: #FF8C42;
    font-weight: 700;
}

.hero-stats-inline {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.hero-stats-inline .stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stats-inline .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF8C42;
    line-height: 1;
}

.hero-stats-inline .stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-top: 8px;
}

.hero-cta-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-xl {
    padding: 18px 36px;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-xxl {
    padding: 22px 44px;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Hero Images */
.hero-images {
    position: relative;
}

.hero-image-primary {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    color: #2B4C7E;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-advisor-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.advisor-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.advisor-card:hover {
    transform: translateY(-4px);
}

.advisor-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.advisor-info h4 {
    font-size: 1rem;
    margin: 0;
    color: #2B4C7E;
}

.advisor-info p {
    font-size: 0.85rem;
    margin: 0;
    color: #666;
}

/* ===== Trust Bar ===== */
.trust-bar {
    background: white;
    padding: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 12px;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.trust-item strong {
    display: block;
    color: #2B4C7E;
    margin-bottom: 4px;
}

.trust-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* ===== Explainer Section ===== */
.explainer-section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header .lead {
    font-size: 1.25rem;
    color: #666;
}

.explainer-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.explainer-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.explainer-card.reverse {
    direction: rtl;
}

.explainer-card.reverse > * {
    direction: ltr;
}

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

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

.explainer-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.explainer-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 12px 0;
    font-size: 1.0625rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.stat-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.stat-comp-item {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.stat-comp-item.bad {
    background: #FEE;
    border: 2px solid #DC3545;
}

.stat-comp-item.good {
    background: #E8F5E9;
    border: 2px solid #28A745;
}

.comp-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #666;
}

.comp-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
}

.stat-comp-item.bad .comp-value {
    color: #DC3545;
}

.stat-comp-item.good .comp-value {
    color: #28A745;
}

.tax-comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.tax-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    text-align: center;
}

.tax-item.highlight {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-color: #28A745;
}

.tax-item h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #2B4C7E;
}

.big-red {
    font-size: 2rem;
    font-weight: 800;
    color: #DC3545;
    margin: 12px 0;
}

.big-green {
    font-size: 2rem;
    font-weight: 800;
    color: #28A745;
    margin: 12px 0;
}

.small {
    font-size: 0.9rem;
    color: #666;
}

/* ===== Dark Section ===== */
.section-dark {
    background: linear-gradient(135deg, #0F1F3D 0%, #2B4C7E 100%);
    color: white;
    padding: 100px 0;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: white;
}

.section-dark .lead {
    color: rgba(255,255,255,0.9);
}

.two-col-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-col-visual.reverse {
    direction: rtl;
}

.two-col-visual.reverse > * {
    direction: ltr;
}

.visual-content img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.img-shadow {
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.choice-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0;
}

.choice-card {
    background: rgba(255,255,255,0.1);
    padding: 24px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.2);
}

.choice-card.highlight-card {
    background: rgba(255, 255, 255, 0.15);
    border-color: #FF8C42;
}

.choice-card h4 {
    margin-bottom: 12px;
}

.danger {
    color: #FF6B6B;
    font-weight: 700;
    margin-top: 12px;
}

.success {
    color: #51CF66;
    font-weight: 700;
    margin-top: 12px;
}

/* ===== Examples Section ===== */
.example-showcase {
    margin-top: 60px;
}

.example-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.example-card.featured {
    border: 3px solid #FF8C42;
}

.example-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.example-content {
    padding: 40px;
}

.example-badge {
    display: inline-block;
    background: #FF8C42;
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.example-content h3 {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.example-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 32px 0;
    padding: 24px;
    background: #F5F7FA;
    border-radius: 12px;
}

.example-stat {
    text-align: center;
}

.example-stat.highlight {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    padding: 12px;
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #2B4C7E;
}

.example-stat.highlight .stat-value {
    color: #28A745;
}

/* ===== How It Works Steps ===== */
.how-it-works-steps {
    margin: 32px 0;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #FF8C42;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.step-content h4 {
    margin-bottom: 8px;
    color: white;
}

.step-content p {
    color: rgba(255,255,255,0.85);
}

/* ===== Comparison CTA Section ===== */
.comparison-cta-box {
    background: linear-gradient(135deg, #F5F7FA 0%, #E8EFF5 100%);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
}

.comparison-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.comparison-link-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comparison-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF8C42 0%, #E67C35 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.comparison-link-card:hover::before {
    transform: scaleX(1);
}

.comparison-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.comparison-link-card h4 {
    color: #2B4C7E;
    margin-bottom: 12px;
}

.comparison-link-card p {
    color: #666;
    margin-bottom: 16px;
}

.link-arrow {
    color: #FF8C42;
    font-size: 1.5rem;
    font-weight: 800;
}

/* ===== Final CTA Section ===== */
.final-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2B4C7E 0%, #4169B5 100%);
}

.final-cta-box {
    text-align: center;
    color: white;
}

.final-cta-box h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 24px;
}

.final-cta-box .lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 48px;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: 12px;
}

.cta-feature span {
    color: white;
    font-size: 0.95rem;
}

.cta-buttons-final {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.cta-disclaimer {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-grid,
    .explainer-card,
    .two-col-visual,
    .example-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-stats-inline {
        flex-wrap: wrap;
    }

    .trust-items,
    .comparison-links,
    .cta-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .example-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta-buttons {
        flex-direction: column;
    }

    .trust-items,
    .comparison-links,
    .cta-features,
    .example-stats {
        grid-template-columns: 1fr;
    }

    .btn-xl,
    .btn-xxl {
        width: 100%;
        justify-content: center;
    }

    .final-cta-box h2 {
        font-size: 2rem;
    }

    .cta-buttons-final {
        flex-direction: column;
    }
    
    /* Video container mobile override */
    .enhanced-video-container {
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.explainer-card,
.example-card,
.comparison-link-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Utility Classes ===== */
.btn-outline {
    background: transparent;
    border: 2px solid #2B4C7E;
    color: #2B4C7E;
}

.btn-outline:hover {
    background: #2B4C7E;
    color: white;
}

.section-alt {
    background: #F5F7FA;
}


/* ==========================================
   ENHANCED VIDEO PLAYER STYLES
   Professional video controls with thumbnail
   ========================================== */

.enhanced-video-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: #000;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

/* Video Thumbnail */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.video-thumbnail.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Large Play Button Overlay */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF8C42 0%, #ff7620 100%);
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.5);
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(255, 140, 66, 0.7);
}

.video-play-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Vimeo iframe */
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper iframe.playing {
    opacity: 1;
}

/* HTML5 Video */
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #000;
}

.video-wrapper video.playing {
    opacity: 1;
}

/* Video Controls Bar */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    display: none;
    z-index: 4;
    transition: opacity 0.3s ease;
}

.video-controls-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 500px;
}

/* Control Buttons */
.video-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: white;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.video-control-btn:active {
    transform: scale(0.95);
}

/* Volume Slider */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FF8C42;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.8);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FF8C42;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.8);
}

/* Badge */
.video-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* Show controls on hover when video is playing */
.video-wrapper:hover .video-controls {
    opacity: 1 !important;
    display: flex !important;
}

/* Make video clickable for pause/play */
.video-wrapper iframe {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .video-play-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
        border-width: 3px;
    }
    
    .video-controls {
        padding: 15px;
    }
    
    .video-control-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .video-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .video-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
        top: 8px;
        left: 8px;
    }
}


/* ==========================================
   MOBILE OVERFLOW FIXES - 375px VIEWPORT
   Fix horizontal scroll issues on mobile
   ========================================== */

@media (max-width: 375px) {
    /* Fix overall container overflow */
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .site-main,
    .container,
    .section {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Fix example card overflow */
    .example-card.featured,
    .example-card {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    .example-content {
        padding: 20px;
    }
    
    .example-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix comparison highlight overflow */
    .comparison-highlight {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 16px;
        overflow-x: hidden;
    }
    
    /* Fix tax reality box overflow */
    .tax-reality-box {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 16px;
    }
    
    /* Fix stats grid overflow */
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        gap: 12px;
    }
    
    .stat-item {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 16px;
        overflow-x: hidden;
    }
    
    /* Fix debt widget overflow */
    #debt-widget {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
        overflow-x: hidden;
    }
    
    #debt-value {
        max-width: 100%;
        width: 100%;
        font-size: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    #comparison-boxes {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure all grid containers fit mobile */
    .hero-stats-inline,
    .trust-items,
    .comparison-links,
    .cta-features,
    .tax-comparison-box,
    .choice-cards {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        gap: 12px;
    }
    
    /* Fix padding/margins on mobile */
    .section,
    .explainer-section,
    .section-dark,
    .final-cta-section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Fix text overflow */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix button overflow */
    .btn-xl,
    .btn-xxl,
    .hero-cta-buttons,
    .cta-buttons-final {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-xl,
    .btn-xxl {
        padding: 16px 24px;
        font-size: 1rem;
    }
}

/* Additional mobile fixes for tablets and larger phones */
@media (max-width: 768px) and (min-width: 376px) {
    /* Ensure containers don't overflow */
    .example-card,
    .comparison-highlight,
    .tax-reality-box,
    .stats-grid,
    .stat-item {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix stats grid for medium mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Fix example stats for medium mobile */
    .example-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== Responsive Comparison Table/Cards ===== */

/* Default: Show table on desktop, hide cards */
.comparison-table-desktop {
    display: block;
    overflow-x: visible;
}

.comparison-cards-mobile {
    display: none;
}

/* Mobile Card Styles */
.comparison-feature-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.comparison-feature-card .feature-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2B4C7E;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
}

.comparison-feature-card .feature-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.comparison-feature-card .standard-option,
.comparison-feature-card .maxfunded-option {
    padding: 16px;
    border-radius: 8px;
    background: white;
    transition: transform 0.2s ease;
}

.comparison-feature-card .standard-option:active,
.comparison-feature-card .maxfunded-option:active {
    transform: scale(0.98);
}

.comparison-feature-card .standard-option {
    border-left: 4px solid #4169B5;
}

.comparison-feature-card .maxfunded-option {
    border-left: 4px solid #ff8c42;
    background: #fff5f0;
    box-shadow: 0 2px 10px rgba(255, 140, 66, 0.15);
}

.comparison-feature-card .option-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.comparison-feature-card .standard-option .option-label {
    color: #4169B5;
}

.comparison-feature-card .maxfunded-option .option-label {
    color: #ff8c42;
}

.comparison-feature-card .option-value {
    display: block;
    font-size: 1.05rem;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

.comparison-feature-card .maxfunded-option .option-value {
    color: #ff8c42;
    font-weight: 700;
}

/* Mobile: Hide table, show cards */
@media (max-width: 768px) {
    /* Force hide table on mobile with high specificity */
    .comparison-highlight .comparison-table-desktop,
    .comparison-table-desktop {
        display: none !important;
    }
    
    /* Force show cards on mobile */
    .comparison-highlight .comparison-cards-mobile,
    .comparison-cards-mobile {
        display: block !important;
    }
    
    .comparison-highlight {
        padding: 24px 16px !important;
        margin: 40px 16px 0 !important;
        max-width: calc(100% - 32px) !important;
    }
    
    .comparison-highlight h3 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }
    
    /* Improve mobile card spacing */
    .comparison-feature-card {
        margin-bottom: 14px;
        padding: 18px;
    }
    
    .comparison-feature-card .feature-name {
        font-size: 1.1rem;
    }
    
    .comparison-feature-card .standard-option,
    .comparison-feature-card .maxfunded-option {
        padding: 14px;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .comparison-highlight {
        padding: 20px 12px !important;
        margin: 30px 12px 0 !important;
    }
    
    .comparison-highlight h3 {
        font-size: 1.25rem !important;
    }
    
    .comparison-feature-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .comparison-feature-card .feature-name {
        font-size: 1rem;
    }
    
    .comparison-feature-card .option-value {
        font-size: 0.95rem;
    }
}

/* ===================================================================
   COMPARISON TABLE MOBILE RESPONSIVENESS
   Applies to all company comparison tables across the site
   =================================================================== */

/* Mobile-first: Make all comparison/detail tables responsive */
@media (max-width: 768px) {
    
    /* Enable horizontal scrolling for comparison tables */
    .table-responsive,
    div[class*="table"],
    div:has(> table) {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
    }
    
    /* Comparison tables styling */
    table.table,
    table[class*="comparison"],
    .comparison-table table,
    section[class*="comparison"] table {
        min-width: 500px !important;
        font-size: 0.85rem !important;
        width: 100% !important;
    }
    
    /* Table cells - make them more compact */
    table.table th,
    table.table td,
    table[class*="comparison"] th,
    table[class*="comparison"] td {
        padding: 12px 8px !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    /* First column (Feature names) - allow wrapping */
    table.table th:first-child,
    table.table td:first-child,
    table[class*="comparison"] th:first-child,
    table[class*="comparison"] td:first-child {
        min-width: 120px !important;
        max-width: 150px !important;
        white-space: normal !important;
        font-size: 0.8rem !important;
    }
    
    /* Header cells */
    table.table thead th,
    table[class*="comparison"] thead th {
        font-size: 0.9rem !important;
        padding: 14px 10px !important;
        white-space: normal !important;
    }
    
    /* Company name headers - make them wrap */
    table thead th:not(:first-child) {
        min-width: 140px !important;
        max-width: 180px !important;
    }
    
    /* Badges and buttons in tables */
    table .badge {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }
    
    table .btn {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
        white-space: nowrap !important;
    }
    
    /* Detail tables (like Allianz detail page) */
    .company-detail-table,
    section[id*="company"] table {
        display: block !important;
        overflow-x: auto !important;
    }
}

/* Very small screens - even more compact */
@media (max-width: 480px) {
    table.table,
    table[class*="comparison"] {
        min-width: 450px !important;
        font-size: 0.75rem !important;
    }
    
    table.table th,
    table.table td {
        padding: 10px 6px !important;
        font-size: 0.75rem !important;
    }
    
    table.table th:first-child,
    table.table td:first-child {
        min-width: 100px !important;
        font-size: 0.7rem !important;
    }
}

/* ===================================================================
   SIMILAR COMPANIES SECTION - MOBILE RESPONSIVENESS
   =================================================================== */

@media (max-width: 768px) {
    
    /* Stack similar companies vertically on mobile */
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr"],
    .similar-companies-grid,
    section[class*="similar"] div[style*="grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* Similar company cards - full width on mobile */
    .similar-companies-grid > div,
    section[class*="similar"] > div > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* Company comparison cards */
    .company-card,
    div[style*="border-radius"][style*="padding"] {
        padding: 20px 15px !important;
        margin-bottom: 15px !important;
    }
    
    /* Company names in similar section */
    .company-card h3,
    .company-card h4 {
        font-size: 1.3rem !important;
        margin-bottom: 12px !important;
    }
    
    /* Compare buttons */
    .company-card .btn,
    .company-card a[class*="btn"] {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 12px 20px !important;
        margin-top: 15px !important;
    }
    
    /* AUM and other stats */
    .company-card p,
    .company-card div[style*="font-size"] {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .company-card {
        padding: 15px 12px !important;
    }
    
    .company-card h3,
    .company-card h4 {
        font-size: 1.2rem !important;
    }
}

/* ===================================================================
   CENTERED SHORTCODE FORMS
   =================================================================== */

/* Center all common form shortcodes */
.wpcf7,
.wpforms-container,
.gform_wrapper,
.frm_forms,
.nf-form-cont,
.forminator-ui,
div[class*="contact-form"],
div[class*="form-wrapper"] {
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px !important;
}

/* Ensure form inputs are full width within the centered container */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select,
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container textarea,
.wpforms-container select,
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea,
.gform_wrapper select {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Center submit buttons */
.wpcf7 input[type="submit"],
.wpforms-container button[type="submit"],
.wpforms-submit-container,
.gform_wrapper input[type="submit"],
.gform_footer {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Mobile responsive - full width on small screens */
@media (max-width: 768px) {
    .wpcf7,
    .wpforms-container,
    .gform_wrapper,
    .frm_forms,
    .nf-form-cont,
    .forminator-ui,
    div[class*="contact-form"],
    div[class*="form-wrapper"] {
        max-width: 100% !important;
        padding: 15px !important;
    }
}

/* ===================================================================
   MOBILE HAMBURGER MENU
   =================================================================== */

/* Hide hamburger on desktop */
.mobile-menu-toggle {
    display: none;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    
    /* Show hamburger button on mobile */
    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
        margin-left: auto;
    }
    
    /* Hamburger icon styling */
    .hamburger-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 21px;
    }
    
    .hamburger-icon span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #2B4C7E;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }
    
    /* Hamburger animation when open */
    .mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Hide desktop navigation on mobile */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 80px;
    }
    
    /* Show navigation when active */
    .main-navigation.active {
        right: 0;
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile menu list styling */
    .primary-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    
    .primary-menu li {
        border-bottom: 1px solid #eee;
    }
    
    .primary-menu li a {
        display: block;
        padding: 16px 24px;
        color: #333;
        text-decoration: none;
        font-size: 1rem;
        transition: background 0.2s;
    }
    
    .primary-menu li a:hover {
        background: #f5f5f5;
        color: #2B4C7E;
    }
    
    /* CTA button in mobile menu */
    .primary-menu li a.btn-primary {
        margin: 20px 24px;
        padding: 12px 24px;
        text-align: center;
        background: #2B4C7E;
        color: white;
        border-radius: 6px;
    }
    
    .primary-menu li a.btn-primary:hover {
        background: #1e3a5f;
    }
    
    /* Dropdown/submenu support */
    .primary-menu .sub-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        display: none;
        background: #f8f9fa;
    }
    
    .primary-menu .sub-menu li {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .primary-menu .sub-menu li:last-child {
        border-bottom: none;
    }
    
    .primary-menu .sub-menu li a {
        padding: 14px 24px 14px 40px;
        font-size: 0.95rem;
        color: #555;
    }
    
    .primary-menu .sub-menu li a:hover {
        background: #e9ecef;
        color: #2B4C7E;
    }
    
    /* Parent menu items with children */
    .primary-menu li.menu-item-has-children > a {
        position: relative;
        padding-right: 50px;
    }
    
    .primary-menu li.menu-item-has-children > a::after {
        content: "▼";
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.7em;
        transition: transform 0.3s ease;
    }
    
    /* Rotate arrow when submenu is open */
    .primary-menu li.menu-item-has-children.submenu-open > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* Highlight parent when submenu is open */
    .primary-menu li.menu-item-has-children.submenu-open > a {
        background: #f0f0f0;
        color: #2B4C7E;
    }
    
    /* Prevent body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }
    
    /* Header adjustments for mobile */
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Tablet and smaller desktop - keep mobile menu up to 768px */
@media (min-width: 769px) {
    .main-navigation {
        position: static;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        padding-top: 0;
    }
    
    .primary-menu {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    
    /* ===================================================================
       DESKTOP MEGA-MENU DROPDOWN
       =================================================================== */
    
    /* Parent items need relative positioning for dropdown */
    .primary-menu > li {
        position: relative;
    }
    
    /* Hide submenu by default on desktop */
    .primary-menu > li > .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 520px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
        padding: 20px 24px;
        z-index: 9999;
        list-style: none;
        margin: 0;
    }
    
    /* Show on hover with grid layout */
    .primary-menu > li.menu-item-has-children:hover > .sub-menu,
    .primary-menu > li.menu-item-has-children.submenu-open > .sub-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        animation: megaMenuFadeIn 0.2s ease-out;
    }
    
    @keyframes megaMenuFadeIn {
        from { opacity: 0; transform: translateX(-50%) translateY(8px); }
        to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
    
    /* Top arrow/caret on the dropdown */
    .primary-menu > li.menu-item-has-children:hover > .sub-menu::before,
    .primary-menu > li.menu-item-has-children.submenu-open > .sub-menu::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 16px;
        height: 16px;
        background: #ffffff;
        border-left: 1px solid #e2e8f0;
        border-top: 1px solid #e2e8f0;
        transform: translateX(-50%) rotate(45deg);
        z-index: -1;
    }
    
    /* Invisible hover bridge so mouse can travel from parent to dropdown */
    .primary-menu > li.menu-item-has-children::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 12px;
        background: transparent;
    }
    
    /* Sub-menu items */
    .primary-menu > li > .sub-menu > li {
        border-bottom: none;
        border-radius: 8px;
        transition: background-color 0.15s ease;
    }
    
    .primary-menu > li > .sub-menu > li:hover {
        background-color: #f1f5f9;
    }
    
    .primary-menu > li > .sub-menu > li a {
        display: block;
        padding: 12px 16px;
        font-size: 0.88rem;
        font-weight: 500;
        color: #334155;
        text-decoration: none;
        line-height: 1.4;
        border-radius: 8px;
        transition: all 0.15s ease;
        white-space: normal;
    }
    
    .primary-menu > li > .sub-menu > li a:hover {
        color: #2B4C7E;
        background-color: #f1f5f9;
    }
    
    /* Parent item arrow indicator */
    .primary-menu > li.menu-item-has-children > a {
        position: relative;
        padding-right: 20px;
    }
    
    .primary-menu > li.menu-item-has-children > a::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 6px;
        vertical-align: middle;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid currentColor;
        transition: transform 0.2s ease;
    }
    
    .primary-menu > li.menu-item-has-children:hover > a::after {
        transform: rotate(180deg);
    }
    
    /* Highlight parent when dropdown is open */
    .primary-menu > li.menu-item-has-children:hover > a {
        color: #2B4C7E;
        background-color: rgba(43, 76, 126, 0.08);
        border-radius: 6px;
    }
}

/* Smaller desktops - left-align dropdown to prevent off-screen */
@media (min-width: 769px) and (max-width: 1200px) {
    .primary-menu > li > .sub-menu {
        left: 0;
        transform: none;
        min-width: 440px;
    }
    
    .primary-menu > li.menu-item-has-children:hover > .sub-menu,
    .primary-menu > li.menu-item-has-children.submenu-open > .sub-menu {
        animation: megaMenuFadeInLeft 0.2s ease-out;
    }
    
    @keyframes megaMenuFadeInLeft {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .primary-menu > li > .sub-menu::before {
        left: 30px !important;
        transform: rotate(45deg) !important;
    }
}

/* ===================================================================
   MOBILE LANDSCAPE PREMIUM ENHANCEMENTS
   Additional landscape-specific fixes for premium styles
   =================================================================== */

/* Mobile Landscape - All Devices */
@media screen and (max-height: 500px) and (orientation: landscape) {
    
    /* Premium Hero adjustments */
    .hero-premium::before,
    .hero-overlay {
        opacity: 0.15 !important;
    }
    
    /* Stats inline - more compact */
    .hero-stats-inline {
        flex-wrap: wrap !important;
        gap: 16px !important;
    }
    
    /* Advisor cards - hide in landscape for space */
    .hero-advisor-cards,
    .advisor-card {
        display: none !important;
    }
    
    /* Trust indicators - smaller */
    .hero-trust {
        font-size: 0.8rem !important;
    }
    
    /* Feature sections */
    .feature-section,
    section[class*="feature"] {
        padding: 20px 0 !important;
    }
    
    /* Feature grid - 2 columns */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    /* Process steps - horizontal compact */
    .process-steps,
    .steps-container {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding-bottom: 10px !important;
    }
    
    .process-step,
    .step-item {
        min-width: 200px !important;
        flex-shrink: 0 !important;
    }
    
    /* Testimonials - hide images, keep compact */
    .testimonial-image,
    .testimonial img {
        display: none !important;
    }
    
    .testimonial-card {
        padding: 12px !important;
    }
    
    .testimonial-text {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* Stats cards - 3 columns */
    .stats-section .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Benefits grid - 2 columns */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    /* Comparison sections */
    .comparison-container {
        padding: 16px !important;
    }
    
    .comparison-vs {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.85rem !important;
        margin: 0 8px !important;
    }
    
    /* CTA sections - very compact */
    .cta-section {
        padding: 25px 0 !important;
        margin: 20px 0 !important;
    }
    
    .cta-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }
    
    .cta-section p {
        font-size: 0.95rem !important;
        margin-bottom: 16px !important;
    }
    
    /* Logo clouds/partner sections */
    .logo-cloud,
    .partners-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px !important;
    }
    
    .partner-logo,
    .logo-item {
        padding: 8px !important;
        height: 50px !important;
    }
    
    .partner-logo img,
    .logo-item img {
        max-height: 40px !important;
    }
}

/* Very small phones in landscape */
@media screen and (max-height: 414px) and (orientation: landscape) {
    
    /* Hide all decorative elements */
    .decorative-element,
    .background-shape,
    .pattern-overlay {
        display: none !important;
    }
    
    /* Single column for feature grids */
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Minimal hero */
    .hero-premium {
        padding: 15px 0 !important;
    }
    
    .hero-title {
        font-size: 1.4rem !important;
    }
    
    /* Hide stats in very small landscape */
    .hero-stats-inline {
        display: none !important;
    }
}

/* Tablets in landscape - keep some premium features */
@media screen and (min-width: 768px) and (max-height: 600px) and (orientation: landscape) {
    
    /* Keep hero images on tablets */
    .hero-images,
    .hero-image-primary {
        display: block !important;
    }
    
    /* 3 column grids on tablets */
    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* 4 column stats */
    .stats-section .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    /* Keep advisor cards on tablets */
    .hero-advisor-cards {
        display: grid !important;
    }
}

/* ===================================================================
   LANDSCAPE SPECIFIC CALCULATOR FIXES
   =================================================================== */

@media screen and (max-height: 500px) and (orientation: landscape) {
    
    /* Calculator header */
    .calculator-header {
        padding: 16px !important;
    }
    
    .calculator-title {
        font-size: 1.5rem !important;
        margin-bottom: 8px !important;
    }
    
    /* Calculator sections side-by-side */
    .calculator-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
    
    /* Form groups compact */
    .form-group {
        margin-bottom: 12px !important;
    }
    
    .form-group label {
        margin-bottom: 6px !important;
        font-size: 0.9rem !important;
    }
    
    /* Sliders compact */
    input[type="range"] {
        height: 6px !important;
    }
    
    /* Results boxes */
    .result-box,
    .calculator-result {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .result-value {
        font-size: 1.75rem !important;
    }
    
    .result-label {
        font-size: 0.85rem !important;
    }
    
    /* Chart containers */
    .chart-wrapper {
        max-height: 220px !important;
    }
}

/* ===================================================================
   LANDSCAPE SPECIFIC NAVIGATION MENU FIXES
   =================================================================== */

@media screen and (max-height: 500px) and (orientation: landscape) and (min-width: 769px) {
    
    /* Desktop nav in landscape - even more compact */
    .primary-menu > li > a {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .primary-menu {
        gap: 4px !important;
    }
    
    /* Dropdowns more compact in landscape */
    .primary-menu > li > .sub-menu {
        padding: 12px !important;
        min-width: 400px !important;
    }
    
    .primary-menu > li > .sub-menu > li a {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* ===================================================================
   LANDSCAPE SPECIFIC FOOTER ADJUSTMENTS
   =================================================================== */

@media screen and (max-height: 500px) and (orientation: landscape) {
    
    /* Compact footer */
    .site-footer {
        padding: 20px 0 12px !important;
    }
    
    /* Footer grid - 4 columns in landscape */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px !important;
        margin-bottom: 16px !important;
    }
    
    .footer-column {
        padding: 0 !important;
    }
    
    .footer-column h3 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .footer-column ul li {
        margin-bottom: 4px !important;
    }
    
    .footer-column a {
        font-size: 0.8rem !important;
        padding: 4px 0 !important;
    }
    
    .footer-bottom {
        padding-top: 12px !important;
        font-size: 0.75rem !important;
    }
}

/* ===================================================================
   LANDSCAPE SCROLLBAR STYLING (Better UX)
   =================================================================== */

@media screen and (max-height: 500px) and (orientation: landscape) {
    
    /* Thinner scrollbars for more content visibility */
    ::-webkit-scrollbar {
        width: 6px !important;
        height: 6px !important;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #888 !important;
        border-radius: 3px !important;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #555 !important;
    }
}


/* ===================================================================
   HTML5 VIDEO PLAYER STYLES
   =================================================================== */

#hero-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
