/* --- SHARED INDUSTRIAL THEME CSS --- */
:root {
    --primary-color: #0b2c4d; /* Navy Blue */
    --secondary-color: #1a4a7a; /* Lighter Navy */
    --accent-color: #d35400;  /* Industrial Orange */
    --bg-light: #f4f7f6;
    --border-color: #e1e1e1;
    --text-main: #333;
    --text-muted: #555;
}

.category-page-wrapper {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-main);
    line-height: 1.6;
    padding: 20px 0;
}

/* --- TYPOGRAPHY & HEADERS --- */
.cat-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cat-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cat-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    display: flex;
    align-items: center;
}

/* --- PRODUCT CARDS (The "Spokes") --- */
.sub-grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.grade-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    flex-direction: column; /* Changed to column for better mobile stacking */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.grade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.grade-img {
    height: 250px;
    background-color: #ddd;
    overflow: hidden;
}

.grade-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.grade-card:hover .grade-img img { transform: scale(1.05); }

.grade-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grade-content h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-top: 0;
}

.grade-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }

.feature-tags {
    margin-bottom: 20px;
}
.feature-tags span {
    display: inline-block;
    background: #eef2f5;
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.view-grade-btn {
    margin-top: auto;
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 3px;
    text-align: center;
    transition: background 0.3s;
    font-weight: 600;
}

.view-grade-btn:hover { background: var(--accent-color); }

/* --- INFO SECTION: Inconel vs Incoloy --- */
.info-block {
    background: #fff;
    padding: 40px;
    margin-bottom: 50px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.two-col-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* --- COMPARISON TABLE --- */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.compare-table th {
    background: var(--secondary-color);
    color: #fff;
    padding: 15px;
    text-align: left;
}

.compare-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.compare-table tr:hover td { background-color: #f9f9f9; }

/* --- APPLICATIONS ICONS --- */
.app-icons-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    text-align: center;
}

.app-icon-box {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
}

.app-icon-symbol { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.app-icon-box h4 { margin: 0; color: var(--primary-color); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .two-col-text { grid-template-columns: 1fr; }
    .grade-card { flex-direction: column; }
}
h1 {
    text-align: center;
    margin-top: 30px;
}