   .container {
        max-width: 1000px;
            margin: auto;
            margin-top: 30px;
            margin-bottom: 30px;
        background: #fff;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

    h1 {
        text-align: center;
        color: #0056b3;
    }

    h2 {
        color: #0066cc;
        margin-top: 30px;
        border-bottom: 2px solid #ddd;
        padding-bottom: 5px;
    }

    h3 {
        color: #444;
    }

      div.container p {
            text-align: justify;
        }

        ul {
            margin-left: 20px;
        }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    table, th, td {
        border: 1px solid #ccc;
    }

    th {
        background-color: #0066cc;
        color: white;
        padding: 10px;
    }

    td {
        padding: 10px;
        text-align: center;
    }

    .formula {
        background: #eef6ff;
        padding: 15px;
        border-left: 5px solid #0066cc;
        margin: 15px 0;
        font-weight: bold;
    }

    .triangle {
        text-align: center;
        font-family: monospace;
        font-size: 20px;
        margin: 20px 0;
    }

    ul li {
        margin-bottom: 8px;
        padding-left: 10px;
    }

        .conclusion {
            background: #eaf4ff;
            padding: 20px;
            margin-top: 30px;
            border-radius: 8px;
        }
      
        div.bck-button {
            display: flex;
            justify-content: right;
            margin-bottom: 20px;
        }
        
        a.bck-btn {
            display: inline-block;
            padding: 10px 20px;
            background-color: rgb(16, 119, 174);
            color: white;
            text-decoration: none;
            font-size: 18px;
            border-radius: 5px;
        }
        
        a.bck-btn:hover {
            background-color: rgb(206, 132, 28);
            transition: background-color 0.3s ease;
        }   
        
        .component > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

    ol li {
        margin-bottom: 8px;
    }
    
    ol {
        padding-left: 40px;
        padding-top: 10px;
    }

          .component {
            background: #f8f9fa;
            padding: 20px;
            margin-top: 20px;
            border-radius: 8px;
            border-left: 4px solid #0d6efd;
        }

/* Fixes the H2 heading top-gap bug on live published pages */
.component > h2:first-child,
.component > h3:first-child,
.component > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* --- 🖥️ DESKTOP PRESETS: SIDE-BY-SIDE CONTENT LAYOUT --- */
.component-content-split {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 15px;
    width: 100%;
}

.component-text-side {
    flex: 1;
}

.component-image-side {
    width: 280px;
    text-align: center;
}

.component-image-side img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    margin: 0 !important;
}

/* --- 📱 MOBILE CONTROLS (Screens under 768px wide) --- */
@media screen and (max-width: 768px) {
    /* Keeps heading at the absolute top, structural split shifts vertical */
    .component-content-split {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* 🎯 MAGIC TRICK: Moves image side up right beneath the heading, text goes to bottom */
    .component-image-side {
        width: 100% !important;
        order: -1 !important; 
    }

    .component-image-side img {
        max-width: 300px !important;
        max-height: 220px !important;
        margin: 0 auto !important;
    }
    
    .component-text-side {
        width: 100% !important;
    }
}

/* --- ⚡ SAFE COMPONENT BOX HEADING STYLING --- */
.box-heading {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #1077ae !important;
    margin: 0 0 15px 0 !important;
    padding-top: 0 !important;
    display: block !important;
    line-height: 1.3 !important;
}

/* Fix dynamic spacing for mobile viewports */
@media screen and (max-width: 768px) {
    .box-heading {
        font-size: 20px !important;
        text-align: center !important;
    }
}

/* --- ⚡ UNIFIED HEADING STYLES (MATCHES BOTH STYLES PERFECTLY) --- */
.component h2,
.component h2:first-child,
.box-heading,
.component-title-block .box-heading {
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: bold !important;
    color: #1077ae !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 1.3 !important;
    text-transform: none !important; /* Prevents unwanted capitalization differences */
    letter-spacing: normal !important;
}

/* Unified Mobile Responsiveness for all Heading types */
@media screen and (max-width: 768px) {
    .component h2,
    .box-heading {
        font-size: 20px !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }
} 

/* --- 📱 THE PERFECT MOBILE TABLE FIX --- */
@media screen and (max-width: 768px) {
    /* 1. The container handles the scrolling bounds, NOT the table itself */
    .container table {
        display: table !important; /* Keep structural table integrity */
        width: 100% !important;
        max-width: 100% !important;
        border-collapse: collapse !important;
        margin: 0 auto 25px auto !important;
    }

    /* 2. Style individual rows to scale tightly */
    .container tr {
        display: table-row !important;
    }

    /* 3. Distribute the columns perfectly so they share the exact screen width */
    .container th, 
    .container td {
        display: table-cell !important;
        width: 33.33% !important; /* Since your tables have exactly 3 columns, split them perfectly! */
        text-align: center !important;
        padding: 12px 8px !important;
        box-sizing: border-box !important;
    }
}