/* ============================================
   FLANGES STANDARDS SECTION STYLES
   ============================================ */

/* ============================================
   TABLE OF CONTENTS SECTION
   ============================================ */

.toc-section {
    padding: 50px 20px;
    background: linear-gradient(135deg, #0A6595 0%, #054463 100%);
}

.toc-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.toc-section h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.toc-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    text-decoration: none;
    color: #0A6595;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.toc-link i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #0A6595;
    transition: all 0.3s ease;
}

.toc-link span {
    text-align: center;
    display: block;
}

.toc-link:hover {
    background: white;
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.toc-link:hover i {
    color: #054463;
    transform: scale(1.1);
}

.toc-link:hover span {
    color: #054463;
}

.standards-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f3f7 100%);
}

.standards-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.standards-section h2 {
    font-size: 2.5rem;
    color: #1a3d5c;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.standards-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #0A6595 0%, #054463 100%);
    border-radius: 2px;
}

/* ============================================
   OVERVIEW CONTENT
   ============================================ */

.overview-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
}

.overview-content p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

.overview-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   ABOUT ARROW PIPING SECTION
   ============================================ */

.about-arrow-piping {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.about-arrow-piping h3 {
    font-size: 2rem;
    color: #1a3d5c;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-arrow-piping > p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.8;
    text-align: justify;
}

/* ============================================
   FEATURES GRID
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #0A6595;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(10, 101, 149, 0.15);
}

.feature-card h4 {
    font-size: 1.2rem;
    color: #1a3d5c;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* ============================================
   SPECIFICATIONS SECTION
   ============================================ */

.specifications-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.specifications-section h3 {
    font-size: 2rem;
    color: #1a3d5c;
    margin-bottom: 30px;
    font-weight: 700;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.spec-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-top: 4px solid #0A6595;
    transition: all 0.3s ease;
}

.spec-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.spec-item h4 {
    font-size: 1.1rem;
    color: #1a3d5c;
    margin-bottom: 12px;
    font-weight: 600;
}

.spec-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* ============================================
   FLANGE TYPES SECTION
   ============================================ */

.flange-types-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.flange-types-section h3 {
    font-size: 2rem;
    color: #1a3d5c;
    margin-bottom: 30px;
    font-weight: 700;
}

.flange-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.flange-type {
    background: linear-gradient(135deg, #0A6595 0%, #054463 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.flange-type:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(5, 68, 99, 0.3);
}

/* ============================================
   DIMENSION TABLE SECTION
   ============================================ */

.dimension-table-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.dimension-table-section h3 {
    font-size: 2rem;
    color: #1a3d5c;
    margin-bottom: 30px;
    font-weight: 700;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
}

.dimension-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.dimension-table thead {
    background: linear-gradient(135deg, #1a3d5c 0%, #2c5282 100%);
}

.dimension-table th {
    padding: 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.dimension-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.dimension-table tbody tr {
    transition: all 0.3s ease;
}

.dimension-table tbody tr:hover {
    background-color: #f8f9fa;
}

.dimension-table tbody tr:nth-child(even) {
    background-color: #f5f7fa;
}

/* ============================================
   STANDARDS OVERVIEW SECTION
   ============================================ */

.standards-overview-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.standards-overview-section h3 {
    font-size: 2rem;
    color: #1a3d5c;
    margin-bottom: 15px;
    font-weight: 700;
}

.standards-overview-section > p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.8;
}

.standards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.standards-group {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #0A6595;
}

.standards-group h4 {
    font-size: 1.1rem;
    color: #1a3d5c;
    margin-bottom: 15px;
    font-weight: 600;
}

.standards-group ul {
    list-style: none;
    padding: 0;
}

.standards-group li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.standards-group li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0A6595;
    font-weight: bold;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .toc-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .toc-link {
        padding: 20px 15px;
        font-size: 0.9rem;
    }

    .toc-link i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .standards-section h2 {
        font-size: 2rem;
    }

    .about-arrow-piping h3,
    .specifications-section h3,
    .flange-types-section h3,
    .dimension-table-section h3,
    .standards-overview-section h3 {
        font-size: 1.6rem;
    }

    .features-grid,
    .specs-grid,
    .standards-list {
        gap: 20px;
    }

    .flange-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .toc-section {
        padding: 35px 15px;
    }

    .toc-section h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .toc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .toc-link {
        padding: 18px 12px;
        font-size: 0.85rem;
    }

    .toc-link i {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .standards-section {
        padding: 40px 15px;
    }

    .overview-content,
    .about-arrow-piping,
    .specifications-section,
    .flange-types-section,
    .dimension-table-section,
    .standards-overview-section {
        padding: 25px 15px;
    }

    .standards-section h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .about-arrow-piping h3,
    .specifications-section h3,
    .flange-types-section h3,
    .dimension-table-section h3,
    .standards-overview-section h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .overview-content p {
        font-size: 0.95rem;
    }

    .features-grid,
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card,
    .spec-item {
        padding: 20px;
    }

    .feature-card h4,
    .spec-item h4 {
        font-size: 1rem;
    }

    .feature-card p,
    .spec-item p {
        font-size: 0.9rem;
    }

    .flange-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .flange-type {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .dimension-table th,
    .dimension-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .standards-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .standards-group {
        padding: 20px;
    }

    .standards-group h4 {
        font-size: 1rem;
    }

    .standards-group li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .toc-section {
        padding: 25px 10px;
    }

    .toc-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .toc-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .toc-link {
        padding: 15px 10px;
        font-size: 0.8rem;
    }

    .toc-link i {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .standards-section {
        padding: 25px 10px;
    }

    .overview-content,
    .about-arrow-piping,
    .specifications-section,
    .flange-types-section,
    .dimension-table-section,
    .standards-overview-section {
        padding: 15px 10px;
        border-radius: 8px;
    }

    .standards-section h2 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .standards-section h2::after {
        width: 80px;
    }

    .about-arrow-piping h3,
    .specifications-section h3,
    .flange-types-section h3,
    .dimension-table-section h3,
    .standards-overview-section h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .overview-content p,
    .about-arrow-piping > p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .feature-card,
    .spec-item {
        padding: 15px;
        border-radius: 8px;
    }

    .feature-card h4,
    .spec-item h4 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .feature-card p,
    .spec-item p {
        font-size: 0.85rem;
    }

    .flange-types-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .flange-type {
        padding: 10px;
        font-size: 0.8rem;
    }

    .table-responsive {
        font-size: 0.75rem;
    }

    .dimension-table th,
    .dimension-table td {
        padding: 8px 5px;
        font-size: 0.75rem;
    }

    .standards-group {
        padding: 15px;
        margin-bottom: 15px;
    }

    .standards-group h4 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .standards-group li {
        font-size: 0.85rem;
        margin-bottom: 6px;
        padding-left: 18px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
