/* Hide the regular header */
header.main-header {
    display: none;
}

/* New page header (like in sample reports) */
.page-header {
    background: linear-gradient(135deg, #0073e6, #10b981);
    color: white;
    text-align: center;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-header h2 {
    font-size: 1.6rem;
    margin: 0;
    color: white;
    line-height: 1.2;
}

.page-header p {
    font-size: 1rem;
    margin: 5px 0 0 0;
    color: white;
    line-height: 1.2;
}

.page-outer-container {
    position: relative;
    width: 100%;
}

.fixed-nav-container {
    height: 70px; /* Set to match your navigation height */
    width: 100%;
    margin-bottom: 30px;
}

.page-navigation {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 99;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.page-navigation.sticky {
    position: fixed;
    top: 0; /* Will be set to header height by JS */
    left: 0;
    right: 0;
    border-radius: 0;
    max-width: none;
}

.page-navigation a {
    display: inline-block;
    padding: 8px 15px;
    color: #0073e6;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-navigation a:hover {
    background: rgba(0, 115, 230, 0.1);
    transform: translateY(-2px);
}

.page-content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.science-header {
    background: linear-gradient(135deg, #0073e6, #10b981);
    color: white;
    padding: 40px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.science-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.science-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.science-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0073e6;
    scroll-margin-top: 120px;
}

.science-section h2 {
    color: #0073e6;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.science-section h3 {
    color: #10b981;
    margin: 25px 0 15px 0;
}

.science-section p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.trait-box {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border-left: 3px solid #10b981;
}

.trait-box h4 {
    color: #0073e6;
    margin-bottom: 10px;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.type-card {
    background: #f5f9ff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e7ff;
    transition: all 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #0073e6;
}

.type-card h4 {
    color: #0073e6;
    margin-bottom: 8px;
}

.type-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.enneagram-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.enneagram-grid .type-card {
    background: #f8f5ff;
    border-color: #d0c0f5;
}

.enneagram-grid .type-card:hover {
    border-color: #8a63da;
    box-shadow: 0 5px 15px rgba(138, 99, 218, 0.15);
}

.enneagram-grid .type-card h4 {
    color: #6b40c7;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th, .comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f5f9ff;
    color: #0073e6;
}

.comparison-table tr:hover {
    background: #f9f9f9;
}

.framework-icon {
    font-size: 3rem;
    color: #0073e6;
    margin: 15px 0;
    text-align: center;
    display: block;
}

.enneagram-symbol {
    font-size: 3rem;
    color: #6b40c7;
    margin: 15px 0;
    text-align: center;
    display: block;
}

.science-footer {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
    margin-top: 40px;
}

.back-to-tests {
    display: inline-block;
    background: #0073e6;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    margin: 20px auto;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.back-to-tests:hover {
    background: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* Home icon in the bottom right corner */
.home-icon {
    position: fixed;
    bottom: 20px;          /* Changed from top to bottom */
    right: 20px;           /* Changed from left to right */
    z-index: 1000;
    background: white;
    color: #0073e6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.home-icon:hover {
    transform: scale(1.1);
    background: #f0f8ff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.home-icon i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    /* Hide paragraph in header on mobile */
    .page-header p {
        display: none;
    }

    .page-header h2 {
        font-size: 1.2rem;
    }

    .fixed-nav-container {
        height: 60px; /* Smaller on mobile */
    }

    .page-navigation {
        padding: 10px 5px;
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        justify-content: flex-start;
    }

    .page-navigation a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .page-navigation.sticky {
        padding: 10px;
    }

    .science-header h2 {
        font-size: 2rem;
    }

    .science-section {
        padding: 20px;
    }

    /* Adjust home icon on mobile */
    .home-icon {
        bottom: 15px;      /* Changed from top to bottom */
        right: 15px;       /* Changed from left to right */
        width: 36px;
        height: 36px;
    }
}
    /* Page header styling with logo positioned on left and text centered */
.page-header {
    background: linear-gradient(135deg, #0073e6, #10b981);
    color: white;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.logo-container {
    position: absolute;
    left: 20px;
}

.site-logo {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.site-logo:hover {
    opacity: 0.9;
}

.header-content {
    width: 100%;
    text-align: center;
}

.page-header h2 {
    font-size: 1.6rem;
    margin: 0;
    color: white;
    line-height: 1.2;
}

.page-header p {
    font-size: 1rem;
    margin: 5px 0 0 0;
    color: white;
    line-height: 1.2;
}

/* Responsive styles for header */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 8px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .logo-container {
        position: static;
        margin-bottom: 10px;
    }

    .page-header h2 {
        font-size: 1.2rem;
    }

    /* Hide paragraph on mobile */
    .page-header p {
        display: none;
    }
}

/* Critical CSS for faster LCP */
.hero-section, .main-content {
  contain: layout style paint;
}

/* Improve INP */
button, .interactive-element {
  touch-action: manipulation;
}

/* Reduce CLS */
img {
  aspect-ratio: attr(width) / attr(height);
}
