body {
            font-family: Arial, sans-serif;
            /*display: flex;
            justify-content: center;
            padding: 40px;
            background-color: #ffffff;
            color: #33383D;*/
        }

.topic5 {
    width: 100%;
    max-width: 900px; /* Wider to fit side-by-side layout */
    /*display: flex;
            flex-direction: column;*/
    margin: 20px auto;
}

        .main-title5 {
            color: rgb(252, 139, 31);
            font-size: 28px;
            text-align: left;
        }
        .backgroundframe {
            background: #ffffff;
            border-radius: 6px;
            padding: 34px 82px 34px 82px;

            gap: 14px;
          
            justify-content: flex-start;
            position: relative;
            box-shadow: 0px 4px 8px 0px rgba(246, 246, 246, 1);
            backdrop-filter: blur(5px);
  
            /* 增加一點外距與底層背景區隔 */
            margin: 20px 0;
            border: 1px solid #f0f0f0;    
        }

        .form-section {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .sub-title5 {
            color: #233E83;
            font-weight: bold;
            margin-bottom: 20px;
            text-align: center;
            width: 100%;
        }

        /* CONTAINER FOR SIDE-BY-SIDE LAYOUT */
        .content-row {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 50px; /* Space between inputs and image */
            width: 100%;
            margin-bottom: 30px;
        }

        /* INPUT COLUMN STYLING */
        .inputs-column {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .input-group {
            display: grid;
            grid-template-columns: 180px 120px; /* Fixed widths for perfect alignment */
            align-items: center;
            gap: 15px;
        }

        .input-group label {
            font-size: 14px;
            text-align: left;
            font-weight: 500;
        }

        .input-group input, 
        .input-group select {
            padding: 6px;
            border: 1px solid #ccc;
            border-radius: 4px;
            outline: none;
            width: 100%;
        }

        .input-group select {
            border: 1px solid #E9C22A;
        }

        .diagram-container img {
            max-width: 230px;
            height: auto;
        }

        .btn-group {
            display: flex;
            gap: 14px;          
            margin-top: 10px;
            align-items: center; 
        }
        .Execute-btn {
            background-color: #1A3A8A;
            color: white;
            padding: 10px 30px;
            border: none;
            height: 39px;
            border-radius: 8px; 
            cursor: pointer;
            font-size: 15px;
            font-weight: bold;
            transition: background 0.3s;
        }

        .Execute-btn:hover {
            background-color: #0d255f;
        }

        .Link-btn {
            background-color: #f0f0f0; 
            color: #1A3A8A;            
            padding: 10px 30px;        
            text-decoration: none;     
            border: 1px solid #1A3A8A; 
            border-radius: 8px; 
            font-size: 15px;
            font-weight: bold;
            transition: all 0.3s;
            display: inline-block;
            text-align: center;
        }

            .Link-btn:hover {
            background-color: #1A3A8A;
            color: white;
        }
        /* RESULT SECTION */
        .result-section {
            margin-top: 40px;
            text-align: center;
            font-size: 18px;
            font-weight: bold;
        }

        .result-section input {
            border: 1px solid #ccc;
            padding: 8px;
            width: 160px;
            border-radius: 4px;
            background-color: #fff;
            margin-left: 10px;
            text-align: center;
        }

        .references {
            font-size: 11px;
            font-style: italic;
            color: #888;
            align-self: flex-start;
        }

        .references a {
            color: #3c90ff;
        }