/* Materials Guide Specialized Styling */

.page-header {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #1a1923 100%);
    color: var(--white);
    padding: 60px 0 40px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.guide-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.guide-nav-link {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.guide-nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.guide-nav-link.active {
    background: var(--orange-primary);
    border-color: var(--orange-primary);
}

/* Materials Introduction */
.materials-intro {
    background: var(--white);
    padding: 60px 0;
}

.intro-content h2 {
    margin-bottom: 20px;
}

.intro-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 20px;
}

.capability-note {
    background: var(--gray-light);
    padding: 35px;
    border-left: 4px solid var(--orange-primary);
    margin-top: 40px;
}

.capability-note h3 {
    color: var(--navy-dark);
    margin-bottom: 20px;
    font-size: 24px;
}

.capability-note p {
    margin-bottom: 15px;
}

.capability-note ul {
    margin: 20px 0;
}

.capability-note li {
    padding: 8px 0;
    color: var(--gray-dark);
    line-height: 1.7;
}

.capability-note strong {
    color: var(--orange-primary);
}

.note-emphasis {
    font-style: italic;
    color: var(--gray-text);
    font-size: 15px;
}

/* Material Section */
.material-section {
    background: var(--gray-light);
    padding: 60px 0;
}

/* Material Card */
.material-card {
    background: var(--white);
    margin-bottom: 50px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.material-header {
    background: var(--navy-dark);
    color: var(--white);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.material-header h3 {
    color: var(--white);
    font-size: 32px;
    margin: 0;
}

.material-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 15px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-aerospace {
    background: #1e88e5;
    color: var(--white);
}

.tag-hightemp {
    background: #d32f2f;
    color: var(--white);
}

.tag-strength {
    background: #388e3c;
    color: var(--white);
}

.tag-chemical {
    background: #7b1fa2;
    color: var(--white);
}

.tag-electrical {
    background: #f57c00;
    color: var(--white);
}

.tag-automotive {
    background: #0288d1;
    color: var(--white);
}

.tag-metal {
    background: #455a64;
    color: var(--white);
}

.tag-flexible {
    background: #00897b;
    color: var(--white);
}

.tag-uv {
    background: #fbc02d;
    color: var(--navy-dark);
}

.tag-composite {
    background: #5d4037;
    color: var(--white);
}

/* Material Body */
.material-body {
    padding: 40px;
}

.material-overview {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gray-light);
}

.material-overview p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-text);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 35px;
}

.property-group h4 {
    color: var(--orange-primary);
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--orange-primary);
}

.property-table {
    width: 100%;
}

.property-table tr {
    border-bottom: 1px solid var(--gray-light);
}

.property-table td {
    padding: 12px 0;
    font-size: 15px;
}

.property-table td:first-child {
    color: var(--gray-text);
    width: 60%;
}

.property-table td:last-child {
    color: var(--navy-dark);
    font-weight: 500;
    text-align: right;
}

.property-table strong {
    font-weight: 700;
}

/* Applications */
.applications {
    background: var(--gray-light);
    padding: 25px 30px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.applications h4 {
    color: var(--navy-dark);
    margin-bottom: 15px;
}

.applications ul {
    list-style: none;
}

.applications li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--gray-dark);
    line-height: 1.7;
}

.applications li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--orange-primary);
    font-weight: bold;
}

/* Design Notes */
.design-notes {
    border-left: 4px solid var(--cyan-tech);
    padding-left: 30px;
}

.design-notes h4 {
    color: var(--navy-dark);
    margin-bottom: 15px;
}

.design-notes ul {
    list-style: none;
    margin-bottom: 20px;
}

.design-notes li {
    padding: 10px 0;
    color: var(--gray-dark);
    line-height: 1.7;
}

.design-notes strong {
    color: var(--orange-primary);
}

.partner-note,
.in-house-note {
    background: rgba(242, 111, 39, 0.1);
    padding: 15px 20px;
    border-radius: 4px;
    border-left: 4px solid var(--orange-primary);
    margin-top: 15px;
}

.partner-note strong,
.in-house-note strong {
    color: var(--orange-primary);
}

/* Guide Navigation */
.guide-navigation {
    background: var(--white);
    padding: 40px 0;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-button-placeholder {
    width: 200px;
}

/* Comparison Table Styling */
.comparison-section {
    background: var(--white);
    padding: 60px 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 900px;
}

.comparison-table thead {
    background: var(--navy-dark);
    color: var(--white);
}

.comparison-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--gray-light);
    transition: background 0.2s;
}

.comparison-table tbody tr:hover {
    background: rgba(242, 111, 39, 0.05);
}

.comparison-table td {
    padding: 15px;
    font-size: 14px;
    color: var(--gray-dark);
}

.comparison-table .material-name {
    font-weight: 700;
    color: var(--navy-dark);
    font-size: 15px;
}

.rating {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.rating-excellent {
    background: #4caf50;
    color: var(--white);
}

.rating-good {
    background: #8bc34a;
    color: var(--white);
}

.rating-fair {
    background: #ffc107;
    color: var(--navy-dark);
}

.rating-poor {
    background: #ff9800;
    color: var(--white);
}

/* Decision Tree */
.decision-tree {
    background: var(--gray-light);
    padding: 40px;
    border-radius: 4px;
    margin-top: 40px;
}

.decision-node {
    background: var(--white);
    padding: 25px;
    border-left: 4px solid var(--orange-primary);
    margin-bottom: 20px;
}

.decision-node h4 {
    color: var(--navy-dark);
    margin-bottom: 10px;
}

.decision-node p {
    color: var(--gray-text);
    line-height: 1.7;
}

.decision-node .recommendation {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: var(--orange-primary);
    color: var(--white);
    font-weight: 600;
    border-radius: 3px;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .material-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .guide-nav {
        flex-direction: column;
    }

    .guide-nav-link {
        text-align: center;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .nav-button-placeholder {
        display: none;
    }
}
